@nebula.js/sn-table 4.8.0 → 4.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,29 +1,32 @@
1
1
  /*
2
- * @nebula.js/sn-table v4.8.0
2
+ * @nebula.js/sn-table v4.8.2
3
3
  * Copyright (c) 2025 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){"use strict";var t,r,n,o,i,a,s,l,u,c,d,p,f,m,h,g,b,v,y,x,S,w,E,C,R,O,P,A,I,D,M,L,k,T,_,j,q,N,F,z,H,B,$;return{setters:[function(e){t=e.useMemo,r=e.useOptions,n=e.usePromise,o=e.useState,i=e.useEffect,a=e.useTheme,s=e.useInteractionState,l=e.onContextMenu,u=e.onTakeSnapshot,c=e.useImperativeHandle,d=e.useElement,p=e.useStaleLayout,f=e.useApp,m=e.useModel,h=e.useTranslator,g=e.useSelections,b=e.useKeyboard,v=e.useRect,y=e.useEmbed},function(e){x=e.default,S=e,w=e.useContext,E=e.useState,C=e.useMemo,R=e.useEffect,O=e.createElement,P=e.isValidElement,A=e.cloneElement,I=e.Children,D=e.useReducer,M=e.createContext,L=e.useRef,k=e.useCallback,T=e.forwardRef,_=e.memo,j=e.useLayoutEffect,q=e.PureComponent,N=e.startTransition,F=e.useImperativeHandle},function(e){z=e.default,H=e},function(e){B=e.default},function(e){$=e.default}],execute:function(){function V(e){return"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function W(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length&&V(t[0]))return(t[0].r<<16)+(t[0].g<<8)+t[0].b;var n=0,o=0,i=0;if(1===t.length&&"string"==typeof t[0]){var a,s=t[0];(a=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(s))?(n=parseInt(a[1],10),o=parseInt(a[2],10),i=parseInt(a[3],10)):(a=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(s))?(n=parseInt(a[1],16),o=parseInt(a[2],16),i=parseInt(a[3],16)):(a=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(s))&&(n=parseInt(a[1]+a[1],16),o=parseInt(a[2]+a[2],16),i=parseInt(a[3]+a[3],16))}return(n<<16)+(o<<8)+i}function G(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;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:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?U(Object(r),!0).forEach((function(t){G(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}e("default",(function(e){return{qae:kk(e),ext:Pb(e),component(){var n;const o=d(),i=Ak(o),a=p(),s=f(),u=m(),c=_m(!!a.snapshotData),x=h(),S=g(),w=b(),E=r(),{freeResize:C}=E,R=v(),O=t((()=>{var e;return null!==(e=a.snapshotData)&&void 0!==e&&e.content&&!C?{...R,...a.snapshotData.content.size}:R}),[R,C,null===(n=a.snapshotData)||void 0===n?void 0:n.content]),P=zk(a),A=y(),I=Em(a,o,Hk,Bk),D=e.flags.isEnabled("CLIENT_IM_7150_TABLE_RTL")?E.direction:"ltr",M=Ik(a.qHyperCube,u),L=Ab(a.qHyperCube,u),k=Mm(I,a,e),T=St(),_={app:s,layout:a,model:u,rect:O,theme:I,keyboard:w,translator:x,interactions:c,selectionsAPI:S,changeSortOrder:M,rootElement:o,embed:A,reactRoot:i,applyColumnWidths:L,isFontLoaded:k,downloadService:T,viewService:P,direction:D,env:e};null==l||l(((e,t)=>{const r=t.target,n=null==r?void 0:r.closest(`.${Hm}`);null!=n&&n.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{Jm(n)}})})),Fk({layout:a,viewService:P,model:u,rootElement:o,contentRect:R}),Mk(_),Pk(_)}}}));var K={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}},X="qcm-color";function J(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o,i,a,s,l,u,c,d,p,f={type:X,r:0,g:0,b:0,a:1,l:void 0,invalid:!1,spaces:{}},m=0,h=0,g=0,b=1;if((null===(e=r[0])||void 0===e?void 0:e.type)===X){var v=r[0];m=v.r,h=v.g,g=v.b,b=v.a,f.invalid=r[0].invalid,f.spaces=Y({},r[0].spaces)}else if(r.length<3)if("string"==typeof r[0]){var y,x=r[0];if(y=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10);else if(y=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10),b=parseFloat(y[4]);else if(y=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))b=parseInt(y[1],10)/255,m=parseInt(y[2],10),h=parseInt(y[3],10),g=parseInt(y[4],10);else if(y=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(x))m=parseInt(y[1],16),h=parseInt(y[2],16),g=parseInt(y[3],16),b=1;else if(y=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(x))m=parseInt(y[1]+y[1],16),h=parseInt(y[2]+y[2],16),g=parseInt(y[3]+y[3],16),b=1;else if(y=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),s=parseFloat(y[5]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)<=.5?2*s*i:(2-2*s)*i)*(1-Math.abs(c%2-1));var S=[];switch(c=Math.floor(c)){case 0:S=[u,d,0];break;case 1:S=[d,u,0];break;case 2:S=[0,u,d];break;case 3:S=[0,d,u];break;case 4:S=[d,0,u];break;case 5:S=[u,0,d];break;default:S=[0,0,0]}p=s-.5*u,m=S[0]+p,h=S[1]+p,g=S[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(y=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),s=parseFloat(y[5]),b=parseFloat(y[7]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)<=.5?2*s*i:(2-2*s)*i)*(1-Math.abs(c%2-1));var w=[];switch(c=Math.floor(c)){case 0:w=[u,d,0];break;case 1:w=[d,u,0];break;case 2:w=[0,u,d];break;case 3:w=[0,d,u];break;case 4:w=[d,0,u];break;case 5:w=[u,0,d];break;default:w=[0,0,0]}p=s-.5*u,m=w[0]+p,h=w[1]+p,g=w[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g)}else if(y=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)*(i=(i/=100)<0?0:i>1?1:i))*(1-Math.abs(c%2-1));var E=[];switch(c=Math.floor(c)){case 0:E=[u,d,0];break;case 1:E=[d,u,0];break;case 2:E=[0,u,d];break;case 3:E=[0,d,u];break;case 4:E=[d,0,u];break;case 5:E=[u,0,d];break;default:E=[0,0,0]}p=l-u,m=E[0]+p,h=E[1]+p,g=E[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(K[x.toLowerCase()]){a=x.toLowerCase();var C=K[a];m=C.r,h=C.g,g=C.b,b="number"==typeof K[a].a?K[a].a:1}else f.invalid=!0}else"number"==typeof r[0]&&r[0]>=0&&"argb"===r[1]?(b=(4278190080&r[0])>>>24,b/=255,m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):"number"==typeof r[0]&&r[0]>=0?(m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):f.invalid=!0;else r.length>=3&&r.length<=4?(m=r[0],h=r[1],g=r[2],b=arguments.length>=4?r[3]:1):f.invalid=!0;return Number.isNaN(+m+h+g+b)&&(f.invalid=!0),f.r=Math.floor(m),f.g=Math.floor(h),f.b=Math.floor(g),f.a=b,f.l=s,f}function Z(e){var t,r,n=0,o="string"==typeof e?J(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=l;if(l===u)t=0,n=0;else{switch(t=0==(r=l-u)?0:r/c,l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function Q(e){if(V(e))return"rgb(".concat([e.r,e.g,e.b].join(", "),")");var t="string"==typeof e?W(e):e,r=(65280&t)>>8,n=255&t;return"rgb(".concat((16711680&t)>>16,", ").concat(r,", ").concat(n,")")}function ee(e,t){return V(e)?"rgba(".concat([e.r,e.g,e.b,e.a].join(", "),")"):ee(J(e))}function te(e){return V(e)?1===e.a?Q(e):ee(e):te(J(e))}var re=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function ne(e){return.2126*re(e.r)+.7152*re(e.g)+.0722*re(e.b)}function oe(){var e=J.apply(void 0,arguments),t={type:e.type,r:e.r,g:e.g,b:e.b,a:e.a,invalid:e.invalid,spaces:e.spaces},r=function(){return t.spaces.hsla||(t.spaces.hsla=function(e){var t,r,n=0,o="string"==typeof e?J(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=o.a,u=Math.max(i,a,s),c=Math.min(i,a,s),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return"hsla(".concat(360*n,", ").concat(100*t,", ").concat(100*d,", ").concat(l,")")}(t)),t.spaces.hsla},n=function(e){var t=r(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),o=parseFloat(n[1]),i=parseFloat(n[3]),a=parseFloat(n[7]),s=parseFloat(n[5]),l=Math.max(0,Math.min(s+e,100));return"hsla(".concat(o,", ").concat(i,", ").concat(l,", ").concat(a,")")};return{get type(){return t.type},isInvalid:function(){return t.invalid},get r(){return t.r},get g(){return t.g},get b(){return t.b},get a(){return t.a},getR:function(){return t.r},getG:function(){return t.g},getB:function(){return t.b},getAlpha:function(){return t.a},setAlpha:function(e){t.a=e,t.spaces={}},isEqualTo:function(e){var r=e.type===t.type?e:J(e);return r.r===t.r&&r.g===t.g&&r.b===t.b&&r.a===t.a},isDark:function(){return function(){var e=J.apply(void 0,arguments);return e.invalid||ne(e)<.4}(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=Q(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=ee(t)),t.spaces.rgba},getString:function(){return t.spaces.string||(t.spaces.string=te(t)),t.spaces.string},getHex:function(){return t.spaces.hex||(t.spaces.hex=function(e){var t,r,n;if(V(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat([t,r,n].join(""));var o="string"==typeof e?W(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat(t).concat(r).concat(n)}(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=function(e){var t,r,n=0,o="string"==typeof e?J(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=(l+u)/2;if(l===u)t=0,n=0;else{switch(r=l-u,t=c>.5?r/(2-l-u):r/(l+u),l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return"hsl(".concat(360*n,", ").concat(100*t,", ").concat(100*c,")")}(t)),t.spaces.hsl},getHSLA:r,getShiftedHSLA:n,getHSV:function(){return t.spaces.hsv||(t.spaces.hsv=function(e){var t=Z(e),r=t.h,n=t.s,o=t.v;return"hsv(".concat(r,", ").concat(n,", ").concat(o,")")}(t)),t.spaces.hsv},getHSVObject:function(){return t.spaces.hsvObject||(t.spaces.hsvObject=Z(t)),t.spaces.hsvObject},blend:function(e,r){var n=Math.floor(t.r+(e.r-t.r)*r),o=Math.floor(t.g+(e.g-t.g)*r),i=Math.floor(t.b+(e.b-t.b)*r),a=Math.floor(t.a+(e.getAlpha()-t.a)*r);return"rgba(".concat([n,o,i,a].join(", "),")")},getBrightenedColor:function(){return oe(n(18*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))},getDarkenedColor:function(){return oe(n(18*-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))}}}function ie(e,t){if(e&&t){var r=ne(e),n=ne(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}}var ae,se,le=["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"],ue=["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 ce(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?ue:le}var de=function(){if(se)return ae;se=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=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},s=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return ae=function e(){var t,r,n,l,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(l=s(t,r))&&(m&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(m,c,l)})):void 0!==l&&a(d,{name:r,newValue:l}));return d},ae}();function pe(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function fe(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function me(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(de);var he=1/.7,ge="\\s*([+-]?\\d+)\\s*",be="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ve="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ye=/^#([0-9a-f]{3,8})$/,xe=new RegExp(`^rgb\\(${ge},${ge},${ge}\\)$`),Se=new RegExp(`^rgb\\(${ve},${ve},${ve}\\)$`),we=new RegExp(`^rgba\\(${ge},${ge},${ge},${be}\\)$`),Ee=new RegExp(`^rgba\\(${ve},${ve},${ve},${be}\\)$`),Ce=new RegExp(`^hsl\\(${be},${ve},${ve}\\)$`),Re=new RegExp(`^hsla\\(${be},${ve},${ve},${be}\\)$`),Oe={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 Pe(){return this.rgb().formatHex()}function Ae(){return this.rgb().formatRgb()}function Ie(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ye.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?De(t):3===r?new Te(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Me(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Me(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=xe.exec(e))?new Te(t[1],t[2],t[3],1):(t=Se.exec(e))?new Te(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=we.exec(e))?Me(t[1],t[2],t[3],t[4]):(t=Ee.exec(e))?Me(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ce.exec(e))?ze(t[1],t[2]/100,t[3]/100,1):(t=Re.exec(e))?ze(t[1],t[2]/100,t[3]/100,t[4]):Oe.hasOwnProperty(e)?De(Oe[e]):"transparent"===e?new Te(NaN,NaN,NaN,0):null}function De(e){return new Te(e>>16&255,e>>8&255,255&e,1)}function Me(e,t,r,n){return n<=0&&(e=t=r=NaN),new Te(e,t,r,n)}function Le(e){return e instanceof me||(e=Ie(e)),e?new Te((e=e.rgb()).r,e.g,e.b,e.opacity):new Te}function ke(e,t,r,n){return 1===arguments.length?Le(e):new Te(e,t,r,null==n?1:n)}function Te(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function _e(){return`#${Fe(this.r)}${Fe(this.g)}${Fe(this.b)}`}function je(){const e=qe(this.opacity);return`${1===e?"rgb(":"rgba("}${Ne(this.r)}, ${Ne(this.g)}, ${Ne(this.b)}${1===e?")":`, ${e})`}`}function qe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ne(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Fe(e){return((e=Ne(e))<16?"0":"")+e.toString(16)}function ze(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Be(e,t,r,n)}function He(e){if(e instanceof Be)return new Be(e.h,e.s,e.l,e.opacity);if(e instanceof me||(e=Ie(e)),!e)return new Be;if(e instanceof Be)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Be(a,s,l,e.opacity)}function Be(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function $e(e){return(e=(e||0)%360)<0?e+360:e}function Ve(e){return Math.max(0,Math.min(1,e||0))}function We(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}pe(me,Ie,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Pe,formatHex:Pe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return He(this).formatHsl()},formatRgb:Ae,toString:Ae}),pe(Te,ke,fe(me,{brighter(e){return e=null==e?he:Math.pow(he,e),new Te(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Te(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Te(Ne(this.r),Ne(this.g),Ne(this.b),qe(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:_e,formatHex:_e,formatHex8:function(){return`#${Fe(this.r)}${Fe(this.g)}${Fe(this.b)}${Fe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:je,toString:je})),pe(Be,(function(e,t,r,n){return 1===arguments.length?He(e):new Be(e,t,r,null==n?1:n)}),fe(me,{brighter(e){return e=null==e?he:Math.pow(he,e),new Be(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Be(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,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Te(We(e>=240?e-240:e+120,o,n),We(e,o,n),We(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Be($e(this.h),Ve(this.s),Ve(this.l),qe(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=qe(this.opacity);return`${1===e?"hsl(":"hsla("}${$e(this.h)}, ${100*Ve(this.s)}%, ${100*Ve(this.l)}%${1===e?")":`, ${e})`}`}}));const Ge=Math.PI/180,Ue=180/Math.PI,Ye=4/29,Ke=6/29,Xe=3*Ke*Ke;function Je(e){if(e instanceof Ze)return new Ze(e.l,e.a,e.b,e.opacity);if(e instanceof nt)return ot(e);e instanceof Te||(e=Le(e));var t,r,n=rt(e.r),o=rt(e.g),i=rt(e.b),a=Qe((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=Qe((.4360747*n+.3850649*o+.1430804*i)/.96422),r=Qe((.0139322*n+.0971045*o+.7141733*i)/.82521)),new Ze(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Ze(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Qe(e){return e>.008856451679035631?Math.pow(e,1/3):e/Xe+Ye}function et(e){return e>Ke?e*e*e:Xe*(e-Ye)}function tt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function rt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function nt(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function ot(e){if(isNaN(e.h))return new Ze(e.l,0,0,e.opacity);var t=e.h*Ge;return new Ze(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}pe(Ze,(function(e,t,r,n){return 1===arguments.length?Je(e):new Ze(e,t,r,null==n?1:n)}),fe(me,{brighter(e){return new Ze(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Ze(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,r=isNaN(this.b)?e:e-this.b/200;return new Te(tt(3.1338561*(t=.96422*et(t))-1.6168667*(e=1*et(e))-.4906146*(r=.82521*et(r))),tt(-.9787684*t+1.9161415*e+.033454*r),tt(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),pe(nt,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof nt)return new nt(e.h,e.c,e.l,e.opacity);if(e instanceof Ze||(e=Je(e)),0===e.a&&0===e.b)return new nt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ue;return new nt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new nt(e,t,r,null==n?1:n)}),fe(me,{brighter(e){return new nt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new nt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ot(this).rgb()}}));var it=e=>()=>e;function at(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):it(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?at:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):it(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=ke(e)).r,(t=ke(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=at(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var st,lt="center",ut="bottom";function ct(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},r=function(){var e={};return{get:function(t){return e[t]},set:function(t,r){return e[t]=r,r},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(n){var o=t(n);return r.has(o)?r.get(o):r.set(o,e(n))}}function dt(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function pt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=mt)):void 0===t&&(t=ft);for(var r,n,o,i,a,s=new bt(e),l=[s];r=l.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)l.push(n=o[i]=new bt(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(gt)}function ft(e){return e.children}function mt(e){return Array.isArray(e)?e[1]:null}function ht(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function gt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function bt(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:lt,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:lt,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:lt,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:lt},{key:"DataRangeIncludingZero",alignment:ut},{key:"LimitedData",alignment:ut},{key:"NegativeOrZeroValues",alignment:ut}].reduce((function(e,t){return e[t.key]=t,e}),{}),bt.prototype=pt.prototype={constructor:bt,count:function(){return this.eachAfter(dt)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},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(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return pt(this).eachBefore(ht)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},st=function(e){
7
+ System.register(["@nebula.js/stardust","react","react-dom","picasso-plugin-q","picasso.js"],(function(e){"use strict";var t,r,n,o,i,a,s,l,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,A,D,L,I,q,P,M,_,k,T,O,N,F,j,z,H,B,$;return{setters:[function(e){t=e.useMemo,r=e.useOptions,n=e.usePromise,o=e.useState,i=e.useEffect,a=e.useTheme,s=e.useInteractionState,l=e.onContextMenu,u=e.onTakeSnapshot,c=e.useImperativeHandle,d=e.useElement,p=e.useStaleLayout,f=e.useApp,m=e.useModel,h=e.useTranslator,g=e.useSelections,b=e.useKeyboard,v=e.useRect,y=e.useEmbed},function(e){x=e.default,S=e,E=e.useContext,C=e.useState,w=e.useMemo,R=e.useEffect,A=e.createElement,D=e.isValidElement,L=e.cloneElement,I=e.Children,q=e.useReducer,P=e.createContext,M=e.useRef,_=e.useCallback,k=e.forwardRef,T=e.memo,O=e.useLayoutEffect,N=e.PureComponent,F=e.startTransition,j=e.useImperativeHandle},function(e){z=e.default,H=e},function(e){B=e.default},function(e){$=e.default}],execute:function(){function V(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 G(e){if("object"==typeof e&&V(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,r=0,n=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),r=parseInt(o[2],10),n=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),r=parseInt(o[2],16),n=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),r=parseInt(o[2]+o[2],16),n=parseInt(o[3]+o[3],16))}return(t<<16)+(r<<8)+n}e("default",(function(e){return{qae:wT(),ext:LC(e),component(){var n;const o=d(),i=yT(o),a=p(),s=f(),u=m(),c=KS(!!a.snapshotData),x=h(),S=g(),E=b(),C=r(),{freeResize:w}=C,R=v(),A=t((()=>{var e;return null!==(e=a.snapshotData)&&void 0!==e&&e.content&&!w?{...R,...a.snapshotData.content.size}:R}),[R,w,null===(n=a.snapshotData)||void 0===n?void 0:n.content]),D=PT(a),L=y(),I=NS(a,o,MT,_T),q=e.flags.isEnabled("CLIENT_IM_7150_TABLE_RTL")?C.direction:"ltr",P=xT(a.qHyperCube,u),M=IC(a.qHyperCube,u),_=GS(I,a,e),k=xt(),T={app:s,layout:a,model:u,rect:A,theme:I,keyboard:E,translator:x,interactions:c,selectionsAPI:S,changeSortOrder:P,rootElement:o,embed:L,reactRoot:i,applyColumnWidths:M,isFontLoaded:_,downloadService:k,viewService:D,direction:q,env:e};null==l||l(((e,t)=>{const r=t.target,n=null==r?void 0:r.closest(`.${tE}`);null!=n&&n.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{dE(n)}})})),qT({layout:a,viewService:D,model:u,rootElement:o,contentRect:R}),ET(T),vT(T)}}}));const W={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}};function U(...e){const t={type:"qcm-color",r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let r=0,n=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&"qcm-color"===a.type)({r:r,g:n,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(V(e[0]))({r:r,g:n,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))r=parseInt(s[1],10),n=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))r=parseInt(s[1],10),n=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,r=parseInt(s[2],10),n=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))r=parseInt(s[1],16),n=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))r=parseInt(s[1]+s[1],16),n=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 u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),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 u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),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 u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in W}(e)){const t=W[e];({r:r,g:n,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,r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(r=e[0],n=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+r+n+o+i)&&(t.invalid=!0),t.r=Math.floor(r),t.g=Math.floor(n),t.b=Math.floor(o),t.a=i,t}function Y(e){let t,r,n=0;const o="string"==typeof e?U(e):e,i=o.r/255,a=o.g/255,s=o.b/255,{a:l}=o,u=Math.max(i,a,s),c=Math.min(i,a,s),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n,s:100*t,l:100*d,a:l}}function K(e){let t,r,n=0;const o="string"==typeof e?U(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=l;if(l===u)t=0,n=0;else{switch(r=l-u,t=0===r?0:r/c,l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function X(e){if(V(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?G(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function J(e,t){return V(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:J(U(e))}function Z(e){return V(e)?1===e.a?X(e):J(e):Z(U(e))}const Q=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function ee(e){return.2126*Q(e.r)+.7152*Q(e.g)+.0722*Q(e.b)}function te(...e){const t=U(...e),r={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},n=()=>(r.spaces.hslaObject||(r.spaces.hslaObject=Y(r)),r.spaces.hslaObject),o=e=>{const t=n(),{h:r,s:o,l:i,a:a}=t;return`hsla(${r}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return r.type},isInvalid:()=>r.invalid,get r(){return r.r},get g(){return r.g},get b(){return r.b},get a(){return r.a},getR:()=>r.r,getG:()=>r.g,getB:()=>r.b,getAlpha:()=>r.a,setAlpha:e=>{r.a=e,r.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=U(e);else{if(e.type!==r.type)return!1;t=e}return t.r===r.r&&t.g===r.g&&t.b===r.b&&t.a===r.a},isDark:()=>function(...e){const t=U(...e);return t.invalid||ee(t)<.4}(r),getRGB:()=>(r.spaces.rgb||(r.spaces.rgb=X(r)),r.spaces.rgb),getRGBA:()=>(r.spaces.rgba||(r.spaces.rgba=J(r)),r.spaces.rgba),getString:()=>(r.spaces.string||(r.spaces.string=Z(r)),r.spaces.string),getHex:()=>(r.spaces.hex||(r.spaces.hex=function(e){let t,r,n;if(V(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${[t,r,n].join("")}`;const o="string"==typeof e?G(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${t}${r}${n}`}(r)),r.spaces.hex),getHSL:()=>(r.spaces.hsl||(r.spaces.hsl=function(e){let t,r,n=0;const o="string"==typeof e?U(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=(l+u)/2;if(l===u)t=0,n=0;else{switch(r=l-u,t=c>.5?r/(2-l-u):r/(l+u),l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return`hsl(${360*n}, ${100*t}, ${100*c})`}(r)),r.spaces.hsl),getHSLA:()=>(r.spaces.hsla||(r.spaces.hsla=function(e){const{h:t,s:r,l:n,a:o}=Y(e);return`hsla(${t}, ${r}, ${n}, ${o})`}(r)),r.spaces.hsla),getHSLAObject:n,getShiftedHSLA:o,getHSV:()=>(r.spaces.hsv||(r.spaces.hsv=function(e){const{h:t,s:r,v:n}=K(e);return`hsv(${t}, ${r}, ${n})`}(r)),r.spaces.hsv),getHSVObject:()=>(r.spaces.hsvObject||(r.spaces.hsvObject=K(r)),r.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(r.r+(e.r-r.r)*t)}, ${Math.floor(r.g+(e.g-r.g)*t)}, ${Math.floor(r.b+(e.b-r.b)*t)}, ${Math.floor(r.a+(e.getAlpha()-r.a)*t)})`,getBrightenedColor:(e=1)=>te(o(18*e)),getDarkenedColor:(e=1)=>te(o(18*-e))}}function re(e,t){if(!e||!t)return;const r=ee(e),n=ee(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}var ne,oe,ie=["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"],ae=["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 se(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?ae:ie}var le=function(){if(oe)return ne;oe=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=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},s=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return ne=function e(){var t,r,n,l,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(l=s(t,r))&&(m&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(m,c,l)})):void 0!==l&&a(d,{name:r,newValue:l}));return d},ne}();function ue(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function ce(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function de(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(le);var pe=1/.7,fe="\\s*([+-]?\\d+)\\s*",me="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",he="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ge=/^#([0-9a-f]{3,8})$/,be=new RegExp(`^rgb\\(${fe},${fe},${fe}\\)$`),ve=new RegExp(`^rgb\\(${he},${he},${he}\\)$`),ye=new RegExp(`^rgba\\(${fe},${fe},${fe},${me}\\)$`),xe=new RegExp(`^rgba\\(${he},${he},${he},${me}\\)$`),Se=new RegExp(`^hsl\\(${me},${he},${he}\\)$`),Ee=new RegExp(`^hsla\\(${me},${he},${he},${me}\\)$`),Ce={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 we(){return this.rgb().formatHex()}function Re(){return this.rgb().formatRgb()}function Ae(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ge.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?De(t):3===r?new Pe(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Le(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Le(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=be.exec(e))?new Pe(t[1],t[2],t[3],1):(t=ve.exec(e))?new Pe(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ye.exec(e))?Le(t[1],t[2],t[3],t[4]):(t=xe.exec(e))?Le(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Se.exec(e))?Ne(t[1],t[2]/100,t[3]/100,1):(t=Ee.exec(e))?Ne(t[1],t[2]/100,t[3]/100,t[4]):Ce.hasOwnProperty(e)?De(Ce[e]):"transparent"===e?new Pe(NaN,NaN,NaN,0):null}function De(e){return new Pe(e>>16&255,e>>8&255,255&e,1)}function Le(e,t,r,n){return n<=0&&(e=t=r=NaN),new Pe(e,t,r,n)}function Ie(e){return e instanceof de||(e=Ae(e)),e?new Pe((e=e.rgb()).r,e.g,e.b,e.opacity):new Pe}function qe(e,t,r,n){return 1===arguments.length?Ie(e):new Pe(e,t,r,null==n?1:n)}function Pe(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Me(){return`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}`}function _e(){const e=ke(this.opacity);return`${1===e?"rgb(":"rgba("}${Te(this.r)}, ${Te(this.g)}, ${Te(this.b)}${1===e?")":`, ${e})`}`}function ke(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Te(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Oe(e){return((e=Te(e))<16?"0":"")+e.toString(16)}function Ne(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new je(e,t,r,n)}function Fe(e){if(e instanceof je)return new je(e.h,e.s,e.l,e.opacity);if(e instanceof de||(e=Ae(e)),!e)return new je;if(e instanceof je)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new je(a,s,l,e.opacity)}function je(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function ze(e){return(e=(e||0)%360)<0?e+360:e}function He(e){return Math.max(0,Math.min(1,e||0))}function Be(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}ue(de,Ae,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:we,formatHex:we,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Fe(this).formatHsl()},formatRgb:Re,toString:Re}),ue(Pe,qe,ce(de,{brighter(e){return e=null==e?pe:Math.pow(pe,e),new Pe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Pe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Pe(Te(this.r),Te(this.g),Te(this.b),ke(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:Me,formatHex:Me,formatHex8:function(){return`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}${Oe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:_e,toString:_e})),ue(je,(function(e,t,r,n){return 1===arguments.length?Fe(e):new je(e,t,r,null==n?1:n)}),ce(de,{brighter(e){return e=null==e?pe:Math.pow(pe,e),new je(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new je(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,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Pe(Be(e>=240?e-240:e+120,o,n),Be(e,o,n),Be(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new je(ze(this.h),He(this.s),He(this.l),ke(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=ke(this.opacity);return`${1===e?"hsl(":"hsla("}${ze(this.h)}, ${100*He(this.s)}%, ${100*He(this.l)}%${1===e?")":`, ${e})`}`}}));const $e=Math.PI/180,Ve=180/Math.PI,Ge=4/29,We=6/29,Ue=3*We*We;function Ye(e){if(e instanceof Ke)return new Ke(e.l,e.a,e.b,e.opacity);if(e instanceof et)return tt(e);e instanceof Pe||(e=Ie(e));var t,r,n=Qe(e.r),o=Qe(e.g),i=Qe(e.b),a=Xe((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=Xe((.4360747*n+.3850649*o+.1430804*i)/.96422),r=Xe((.0139322*n+.0971045*o+.7141733*i)/.82521)),new Ke(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Ke(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Xe(e){return e>.008856451679035631?Math.pow(e,1/3):e/Ue+Ge}function Je(e){return e>We?e*e*e:Ue*(e-Ge)}function Ze(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Qe(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function et(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function tt(e){if(isNaN(e.h))return new Ke(e.l,0,0,e.opacity);var t=e.h*$e;return new Ke(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ue(Ke,(function(e,t,r,n){return 1===arguments.length?Ye(e):new Ke(e,t,r,null==n?1:n)}),ce(de,{brighter(e){return new Ke(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Ke(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,r=isNaN(this.b)?e:e-this.b/200;return new Pe(Ze(3.1338561*(t=.96422*Je(t))-1.6168667*(e=1*Je(e))-.4906146*(r=.82521*Je(r))),Ze(-.9787684*t+1.9161415*e+.033454*r),Ze(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),ue(et,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof et)return new et(e.h,e.c,e.l,e.opacity);if(e instanceof Ke||(e=Ye(e)),0===e.a&&0===e.b)return new et(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ve;return new et(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new et(e,t,r,null==n?1:n)}),ce(de,{brighter(e){return new et(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new et(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return tt(this).rgb()}}));var rt=e=>()=>e;function nt(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):rt(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?nt:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):rt(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=qe(e)).r,(t=qe(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=nt(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var ot="center",it="bottom";[{key:"NoDataExist",alignment:ot,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:ot,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:ot,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:ot},{key:"DataRangeIncludingZero",alignment:it},{key:"LimitedData",alignment:it},{key:"NegativeOrZeroValues",alignment:it}].reduce((function(e,t){return e[t.key]=t,e}),{});var at,st=["__proto__","constructor"];function lt(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!st.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var s=n[a];void 0===i[s]&&(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}}}function ut(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},r=function(){var e={};return{get:function(t){return e[t]},set:function(t,r){return e[t]=r,r},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(n){var o=t(n);return r.has(o)?r.get(o):r.set(o,e(n))}}function ct(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function dt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=ft)):void 0===t&&(t=pt);for(var r,n,o,i,a,s=new gt(e),l=[s];r=l.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)l.push(n=o[i]=new gt(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(ht)}function pt(e){return e.children}function ft(e){return Array.isArray(e)?e[1]:null}function mt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function ht(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function gt(e){this.data=e,this.depth=this.height=0,this.parent=null}gt.prototype=dt.prototype={constructor:gt,count:function(){return this.eachAfter(ct)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},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(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return dt(this).eachBefore(mt)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},at=function(e){
8
8
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
9
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.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(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%l)&&y<p-l&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},st({exports:{}});const vt=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function yt(e,r){return t((()=>e),r)}const xt={},St=()=>{const{viewState:e}=r(),o=(e=>{const r=t((()=>({current:xt})),[]);return r.current=r.current===xt?e:r.current,r})(new Set),i=void 0!==e,{promise:a,resolve:s}=t((()=>vt()),[]),l=yt((e=>{i&&o.current.add(e)}),[o]),u=yt(function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=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(n,i)}),r)}}((async()=>{await Promise.all(o.current),o.current.clear(),s()}),1e3),[s,o]);return n((async()=>{i&&await a}),[a,i]),t((()=>({viewState:e,isDownloadedAsPDForImage:i,notifyIsDoneRendering:u,waitForPromise:l})),[u,i,e,l])};function wt(){return wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wt.apply(null,arguments)}function Et(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ct(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var Rt={exports:{}};function Ot(){}function Pt(){}Pt.resetWarningCache=Ot;Rt.exports=function(){function e(e,t,r,n,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=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 a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Pt,resetWarningCache:Ot};return r.PropTypes=r,r}();var At=Et(Rt.exports);function It(e){if(e.type)return e;if("#"===e.charAt(0))return It(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map((function(e){return parseFloat(e)}))}}function Dt(e,t){return e=It(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}(e)}function Mt(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function Lt(e,t){return Lt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lt(e,t)}function kt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Lt(e,t)}function Tt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const _t={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"},jt={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",..._t,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)"},qt=12,Nt=14,Ft=16,zt=24,Ht=3,Bt=300,$t=400,Vt=600,Wt=700,Gt={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Dt(jt.GREYSCALE_0,.05),Dt(jt.GREEN_PALE,.5),Dt(jt.BLUE_PALE,.5),Dt(jt.GREEN_PALE,.5),Dt(jt.BLUE_PALE,.5),Dt(jt.GREEN_PALE,.5),Dt(jt.BLUE_PALE,.5);Dt(jt.GREEN_PALE,.5),Dt(jt.BLUE_PALE,.5),Dt(jt.GREEN_PALE,.5),Dt(jt.BLUE_PALE,.5);var Ut={exports:{}},Yt={},Kt=x,Xt=Symbol.for("react.element"),Jt=Symbol.for("react.fragment"),Zt=Object.prototype.hasOwnProperty,Qt=Kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,er={key:!0,ref:!0,__self:!0,__source:!0};function tr(e,t,r){var n,o={},i=null,a=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Zt.call(t,n)&&!er.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:Xt,type:e,key:i,ref:a,props:o,_owner:Qt.current}}Yt.Fragment=Jt,Yt.jsx=tr,Yt.jsxs=tr,Ut.exports=Yt;var rr,nr=Ut.exports;function or(){return or=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},or.apply(null,arguments)}var ir,ar=function(e){return S.createElement("svg",or({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),rr||(rr=S.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function sr(){return sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sr.apply(null,arguments)}var lr=function(e){return S.createElement("svg",sr({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),ir||(ir=S.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function ur({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return nr.jsx("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})}function cr(e={}){return nr.jsx(ur,{...e,children:nr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[nr.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),nr.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function dr(e={}){return nr.jsx(ur,{...e,children:nr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:nr.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[nr.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),nr.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function pr(e={}){return nr.jsx(ur,{fontSize:"medium",...e,children:nr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:nr.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:nr.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function fr(e={}){return nr.jsx(ur,{fontSize:"medium",...e,children:nr.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[nr.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),nr.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function mr({className:e}){return nr.jsx(ur,{fontSize:"small",className:e,children:nr.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:nr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:nr.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:nr.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[nr.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),nr.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}nr.jsx(lr,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),nr.jsx(ar,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),nr.jsx(pr,{}),nr.jsx(fr,{}),nr.jsx((function(e={}){return nr.jsx(ur,{...e,children:nr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:nr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:nr.jsx("rect",{stroke:"#000000",fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}),{}),nr.jsx(cr,{}),nr.jsx(dr,{}),nr.jsx(ar,{style:{color:jt.TEXT_PRIMARY},"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16});const hr={black:"#000",white:"#fff"},gr="#e57373",br="#ef5350",vr="#f44336",yr="#d32f2f",xr="#c62828",Sr="#f3e5f5",wr="#ce93d8",Er="#ba68c8",Cr="#ab47bc",Rr="#9c27b0",Or="#7b1fa2",Pr="#e3f2fd",Ar="#90caf9",Ir="#42a5f5",Dr="#1976d2",Mr="#1565c0",Lr="#4fc3f7",kr="#29b6f6",Tr="#03a9f4",_r="#0288d1",jr="#01579b",qr="#81c784",Nr="#66bb6a",Fr="#4caf50",zr="#388e3c",Hr="#2e7d32",Br="#1b5e20",$r="#ffb74d",Vr="#ffa726",Wr="#ff9800",Gr="#f57c00",Ur="#e65100",Yr={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 Kr(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 Xr="$$material";function Jr(){return Jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jr.apply(this,arguments)}function Zr(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function Qr(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 en=function(){return en=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},en.apply(this,arguments)};function tn(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var rn=Et((function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var u=i[l];if(!s(u))return!1;var c=e[u],d=t[u];if(!1===(o=r?r.call(n,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0})),nn="-ms-",on="-moz-",an="-webkit-",sn="comm",ln="rule",un="decl",cn="@keyframes",dn=Math.abs,pn=String.fromCharCode,fn=Object.assign;function mn(e){return e.trim()}function hn(e,t){return(e=t.exec(e))?e[0]:e}function gn(e,t,r){return e.replace(t,r)}function bn(e,t,r){return e.indexOf(t,r)}function vn(e,t){return 0|e.charCodeAt(t)}function yn(e,t,r){return e.slice(t,r)}function xn(e){return e.length}function Sn(e){return e.length}function wn(e,t){return t.push(e),e}function En(e,t){return e.filter((function(e){return!hn(e,t)}))}var Cn=1,Rn=1,On=0,Pn=0,An=0,In="";function Dn(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Cn,column:Rn,length:a,return:"",siblings:s}}function Mn(e,t){return fn(Dn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ln(e){for(;e.root;)e=Mn(e.root,{children:[e]});wn(e,e.siblings)}function kn(){return An=Pn<On?vn(In,Pn++):0,Rn++,10===An&&(Rn=1,Cn++),An}function Tn(){return vn(In,Pn)}function _n(){return Pn}function jn(e,t){return yn(In,e,t)}function qn(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 Nn(e){return mn(jn(Pn-1,Hn(91===e?e+2:40===e?e+1:e)))}function Fn(e){for(;(An=Tn())&&An<33;)kn();return qn(e)>2||qn(An)>3?"":" "}function zn(e,t){for(;--t&&kn()&&!(An<48||An>102||An>57&&An<65||An>70&&An<97););return jn(e,_n()+(t<6&&32==Tn()&&32==kn()))}function Hn(e){for(;kn();)switch(An){case e:return Pn;case 34:case 39:34!==e&&39!==e&&Hn(An);break;case 40:41===e&&Hn(e);break;case 92:kn()}return Pn}function Bn(e,t){for(;kn()&&e+An!==57&&(e+An!==84||47!==Tn()););return"/*"+jn(t,Pn-1)+"*"+pn(47===e?e:kn())}function $n(e){for(;!qn(Tn());)kn();return jn(e,Pn)}function Vn(e){return function(e){return In="",e}(Wn("",null,null,null,[""],e=function(e){return Cn=Rn=1,On=xn(In=e),Pn=0,[]}(e),0,[0],e))}function Wn(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,w=n,E=y;g;)switch(m=v,v=kn()){case 40:if(108!=m&&58==vn(E,d-1)){-1!=bn(E+=gn(Nn(v),"&","&\f"),"&\f",dn(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:E+=Nn(v);break;case 9:case 10:case 13:case 32:E+=Fn(m);break;case 92:E+=zn(_n()-1,7);continue;case 47:switch(Tn()){case 42:case 47:wn(Un(Bn(kn(),_n()),t,r,l),l);break;default:E+="/"}break;case 123*h:s[u++]=xn(E)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(E=gn(E,/\f/g,"")),f>0&&xn(E)-d&&wn(f>32?Yn(E+";",n,r,d-1,l):Yn(gn(E," ","")+";",n,r,d-2,l),l);break;case 59:E+=";";default:if(wn(w=Gn(E,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)Wn(E,t,w,w,x,i,d,s,S);else switch(99===p&&110===vn(E,3)?100:p){case 100:case 108:case 109:case 115:Wn(e,w,w,n&&wn(Gn(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S);break;default:Wn(E,w,w,w,[""],S,0,s,S)}}u=c=f=0,h=b=1,y=E="",d=a;break;case 58:d=1+xn(E),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==(An=Pn>0?vn(In,--Pn):0,Rn--,10===An&&(Rn=1,Cn--),An))continue;switch(E+=pn(v),v*h){case 38:b=c>0?1:(E+="\f",-1);break;case 44:s[u++]=(xn(E)-1)*b,b=1;break;case 64:45===Tn()&&(E+=Nn(kn())),p=Tn(),c=d=xn(y=E+=$n(_n())),v++;break;case 45:45===m&&2==xn(E)&&(h=0)}}return i}function Gn(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],m=Sn(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=yn(e,p+1,p=dn(g=a[h])),x=e;v<m;++v)(x=mn(g>0?f[v]+" "+y:gn(y,/&\f/g,f[v])))&&(l[b++]=x);return Dn(e,t,r,0===o?ln:s,l,u,c,d)}function Un(e,t,r,n){return Dn(e,t,r,sn,pn(An),yn(e,2,-2),0,n)}function Yn(e,t,r,n,o){return Dn(e,t,r,un,yn(e,0,n),yn(e,n+1,-1),n,o)}function Kn(e,t,r){switch(function(e,t){return 45^vn(e,0)?(((t<<2^vn(e,0))<<2^vn(e,1))<<2^vn(e,2))<<2^vn(e,3):0}(e,t)){case 5103:return an+"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 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return an+e+e;case 4789:return on+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return an+e+on+e+nn+e+e;case 5936:switch(vn(e,t+11)){case 114:return an+e+nn+gn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return an+e+nn+gn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return an+e+nn+gn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return an+e+nn+e+e;case 6165:return an+e+nn+"flex-"+e+e;case 5187:return an+e+gn(e,/(\w+).+(:[^]+)/,an+"box-$1$2"+nn+"flex-$1$2")+e;case 5443:return an+e+nn+"flex-item-"+gn(e,/flex-|-self/g,"")+(hn(e,/flex-|baseline/)?"":nn+"grid-row-"+gn(e,/flex-|-self/g,""))+e;case 4675:return an+e+nn+"flex-line-pack"+gn(e,/align-content|flex-|-self/g,"")+e;case 5548:return an+e+nn+gn(e,"shrink","negative")+e;case 5292:return an+e+nn+gn(e,"basis","preferred-size")+e;case 6060:return an+"box-"+gn(e,"-grow","")+an+e+nn+gn(e,"grow","positive")+e;case 4554:return an+gn(e,/([^-])(transform)/g,"$1"+an+"$2")+e;case 6187:return gn(gn(gn(e,/(zoom-|grab)/,an+"$1"),/(image-set)/,an+"$1"),e,"")+e;case 5495:case 3959:return gn(e,/(image-set\([^]*)/,an+"$1$`$1");case 4968:return gn(gn(e,/(.+:)(flex-)?(.*)/,an+"box-pack:$3"+nn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+an+e+e;case 4200:if(!hn(e,/flex-|baseline/))return nn+"grid-column-align"+yn(e,t)+e;break;case 2592:case 3360:return nn+gn(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,hn(e.props,/grid-\w+-end/)}))?~bn(e+(r=r[t].value),"span",0)?e:nn+gn(e,"-start","")+e+nn+"grid-row-span:"+(~bn(r,"span",0)?hn(r,/\d+/):+hn(r,/\d+/)-+hn(e,/\d+/))+";":nn+gn(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return hn(e.props,/grid-\w+-start/)}))?e:nn+gn(gn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return gn(e,/(.+)-inline(.+)/,an+"$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(xn(e)-1-t>6)switch(vn(e,t+1)){case 109:if(45!==vn(e,t+4))break;case 102:return gn(e,/(.+:)(.+)-([^]+)/,"$1"+an+"$2-$3$1"+on+(108==vn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~bn(e,"stretch",0)?Kn(gn(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return gn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,s){return nn+r+":"+n+s+(o?nn+r+"-span:"+(i?a:+a-+n)+s:"")+e}));case 4949:if(121===vn(e,t+6))return gn(e,":",":"+an)+e;break;case 6444:switch(vn(e,45===vn(e,14)?18:11)){case 120:return gn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+an+(45===vn(e,14)?"inline-":"")+"box$3$1"+an+"$2$3$1"+nn+"$2box$3")+e;case 100:return gn(e,":",":"+nn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return gn(e,"scroll-","scroll-snap-")+e}return e}function Xn(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Jn(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case un:return e.return=e.return||e.value;case sn:return"";case cn:return e.return=e.value+"{"+Xn(e.children,n)+"}";case ln:if(!xn(e.value=e.props.join(",")))return""}return xn(r=Xn(e.children,n))?e.return=e.value+"{"+r+"}":""}function Zn(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case un:return void(e.return=Kn(e.value,e.length,r));case cn:return Xn([Mn(e,{value:gn(e.value,"@","@"+an)})],n);case ln:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(hn(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ln(Mn(e,{props:[gn(t,/:(read-\w+)/,":-moz-$1")]})),Ln(Mn(e,{props:[t]})),fn(e,{props:En(r,n)});break;case"::placeholder":Ln(Mn(e,{props:[gn(t,/:(plac\w+)/,":"+an+"input-$1")]})),Ln(Mn(e,{props:[gn(t,/:(plac\w+)/,":-moz-$1")]})),Ln(Mn(e,{props:[gn(t,/:(plac\w+)/,nn+"input-$1")]})),Ln(Mn(e,{props:[t]})),fn(e,{props:En(r,n)})}return""}))}}var Qn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans: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},eo="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",to="active",ro="data-styled-version",no="6.1.17",oo="/*!sc*/\n",io="undefined"!=typeof window&&"HTMLElement"in window,ao=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),so={},lo=Object.freeze([]),uo=Object.freeze({});function co(e,t,r){return void 0===r&&(r=uo),e.theme!==r.theme&&e.theme||t||r.theme}var po=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","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","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),fo=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,mo=/(^-|-$)/g;function ho(e){return e.replace(fo,"-").replace(mo,"")}var go=/(a)(d)/gi,bo=function(e){return String.fromCharCode(e+(e>25?39:97))};function vo(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=bo(t%52)+r;return(bo(t%52)+r).replace(go,"$1-$2")}var yo,xo=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},So=function(e){return xo(5381,e)};function wo(e){return vo(So(e)>>>0)}function Eo(e){return"string"==typeof e&&!0}var Co="function"==typeof Symbol&&Symbol.for,Ro=Co?Symbol.for("react.memo"):60115,Oo=Co?Symbol.for("react.forward_ref"):60112,Po={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ao={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Io={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Do=((yo={})[Oo]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},yo[Ro]=Io,yo);function Mo(e){return("type"in(t=e)&&t.type.$$typeof)===Ro?Io:"$$typeof"in e?Do[e.$$typeof]:Po;var t}var Lo=Object.defineProperty,ko=Object.getOwnPropertyNames,To=Object.getOwnPropertySymbols,_o=Object.getOwnPropertyDescriptor,jo=Object.getPrototypeOf,qo=Object.prototype;function No(e,t,r){if("string"!=typeof t){if(qo){var n=jo(t);n&&n!==qo&&No(e,n,r)}var o=ko(t);To&&(o=o.concat(To(t)));for(var i=Mo(e),a=Mo(t),s=0;s<o.length;++s){var l=o[s];if(!(l in Ao||r&&r[l]||a&&l in a||i&&l in i)){var u=_o(t,l);try{Lo(e,l,u)}catch(e){}}}}return e}function Fo(e){return"function"==typeof e}function zo(e){return"object"==typeof e&&"styledComponentId"in e}function Ho(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Bo(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function $o(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Vo(e,t,r){if(void 0===r&&(r=!1),!r&&!$o(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Vo(e[n],t[n]);else if($o(t))for(var n in t)e[n]=Vo(e[n],t[n]);return e}function Wo(e,t){Object.defineProperty(e,"toString",{value:t})}function Go(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Uo=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw Go(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=(i=0,t.length);i<s;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(oo);return t},e}(),Yo=new Map,Ko=new Map,Xo=1,Jo=function(e){if(Yo.has(e))return Yo.get(e);for(;Ko.has(Xo);)Xo++;var t=Xo++;return Yo.set(e,t),Ko.set(t,e),t},Zo=function(e,t){Xo=t+1,Yo.set(e,t),Ko.set(t,e)},Qo="style[".concat(eo,"][").concat(ro,'="').concat(no,'"]'),ei=new RegExp("^".concat(eo,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ti=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},ri=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(oo),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var l=s.match(ei);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(Zo(c,u),ti(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},ni=function(e){for(var t=document.querySelectorAll(Qo),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(eo)!==to&&(ri(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var oi=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(eo,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(eo,to),n.setAttribute(ro,no);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},ii=function(){function e(e){this.element=oi(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}throw Go(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),ai=function(){function e(e){this.element=oi(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),si=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),li=io,ui={isServer:!io,useCSSOMInjection:!ao},ci=function(){function e(e,t,r){void 0===e&&(e=uo),void 0===t&&(t={});var n=this;this.options=en(en({},ui),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&io&&li&&(li=!1,ni(this)),Wo(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return Ko.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(r);if(void 0===i||!i.size||0===a.length)return"continue";var s="".concat(eo,".g").concat(r,'[id="').concat(o,'"]'),l="";void 0!==i&&i.forEach((function(e){e.length>0&&(l+="".concat(e,","))})),n+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(oo)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return Jo(e)},e.prototype.rehydrate=function(){!this.server&&io&&ni(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(en(en({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new si(r):t?new ii(r):new ai(r)}(this.options),new Uo(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Jo(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(Jo(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Jo(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),di=/&/g,pi=/^\s*\/\/.*$/gm;function fi(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=fi(e.children,t)),e}))}function mi(e){var t,r,n,o=void 0===e?uo:e,i=o.options,a=void 0===i?uo:i,s=o.plugins,l=void 0===s?lo:s,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},c=l.slice();c.push((function(e){e.type===ln&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(di,r).replace(n,u))})),a.prefix&&c.push(Zn),c.push(Jn);var d=function(e,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var l=e.replace(pi,""),u=Vn(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(u=fi(u,a.namespace));var d,p=[];return Xn(u,function(e){var t=Sn(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=l.length?l.reduce((function(e,t){return t.name||Go(15),xo(e,t.name)}),5381).toString():"",d}var hi=new ci,gi=mi(),bi=x.createContext({shouldForwardProp:void 0,styleSheet:hi,stylis:gi});bi.Consumer;var vi=x.createContext(void 0);function yi(){return w(bi)}function xi(e){var t=E(e.stylisPlugins),r=t[0],n=t[1],o=yi().styleSheet,i=C((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,o]),a=C((function(){return mi({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})}),[e.enableVendorPrefixes,e.namespace,r]);R((function(){rn(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]);var s=C((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}}),[e.shouldForwardProp,i,a]);return x.createElement(bi.Provider,{value:s},x.createElement(vi.Provider,{value:a},e.children))}var Si=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=gi);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Wo(this,(function(){throw Go(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=gi),this.name+e.hash},e}(),wi=function(e){return e>="A"&&e<="Z"};function Ei(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;wi(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Ci=function(e){return null==e||!1===e||""===e},Ri=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Ci(i)&&(Array.isArray(i)&&i.isCss||Fo(i)?n.push("".concat(Ei(o),":"),i,";"):$o(i)?n.push.apply(n,tn(tn(["".concat(o," {")],Ri(i),!1),["}"],!1)):n.push("".concat(Ei(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in Qn||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Oi(e,t,r,n){return Ci(e)?[]:zo(e)?[".".concat(e.styledComponentId)]:Fo(e)?!Fo(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Oi(e(t),t,r,n):e instanceof Si?r?(e.inject(r,n),[e.getName(n)]):[e]:$o(e)?Ri(e):Array.isArray(e)?Array.prototype.concat.apply(lo,e.map((function(e){return Oi(e,t,r,n)}))):[e.toString()];var o}function Pi(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Fo(r)&&!zo(r))return!1}return!0}var Ai=So(no),Ii=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Pi(e),this.componentId=t,this.baseHash=xo(Ai,t),this.baseStyle=r,ci.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=Ho(n,this.staticRulesId);else{var o=Bo(Oi(this.rules,e,t,r)),i=vo(xo(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=r(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}n=Ho(n,i),this.staticRulesId=i}else{for(var s=xo(this.baseHash,r.hash),l="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)l+=c;else if(c){var d=Bo(Oi(c,e,t,r));s=xo(s,d+u),l+=d}}if(l){var p=vo(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(l,".".concat(p),void 0,this.componentId)),n=Ho(n,p)}}return n},e}(),Di=x.createContext(void 0);Di.Consumer;var Mi={};function Li(e,t,r){var n=zo(e),o=e,i=!Eo(e),a=t.attrs,s=void 0===a?lo:a,l=t.componentId,u=void 0===l?function(e,t){var r="string"!=typeof e?"sc":ho(e);Mi[r]=(Mi[r]||0)+1;var n="".concat(r,"-").concat(wo(no+r+Mi[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):l,c=t.displayName,d=void 0===c?function(e){return Eo(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(ho(t.displayName),"-").concat(t.componentId):t.componentId||u,f=n&&o.attrs?o.attrs.concat(s).filter(Boolean):s,m=t.shouldForwardProp;if(n&&o.shouldForwardProp){var h=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return h(e,t)&&g(e,t)}}else m=h}var b=new Ii(r,p,n?o.componentStyle:void 0);function v(e,t){return function(e,t,r){var n=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,s=e.styledComponentId,l=e.target,u=x.useContext(Di),c=yi(),d=e.shouldForwardProp||c.shouldForwardProp,p=co(t,u,i)||uo,f=function(e,t,r){for(var n,o=en(en({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=Fo(n=e[i])?n(o):n;for(var s in a)o[s]="className"===s?Ho(o[s],a[s]):"style"===s?en(en({},o[s]),a[s]):a[s]}return t.className&&(o.className=Ho(o.className,t.className)),o}(n,t,p),m=f.as||l,h={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?h.as=f.forwardedAs:d&&!d(g,m)||(h[g]=f[g]));var b=function(e,t){var r=yi();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=Ho(a,s);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),h[Eo(m)&&!po.has(m)?"class":"className"]=v,r&&(h.ref=r),O(m,h)}(y,e,t)}v.displayName=d;var y=x.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=m,y.foldedComponentIds=n?Ho(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=n?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=n?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)Vo(e,o[n],!0);return e}({},o.defaultProps,e):e}}),Wo(y,(function(){return".".concat(y.styledComponentId)})),i&&No(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function ki(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var Ti=function(e){return Object.assign(e,{isCss:!0})};function _i(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Fo(e)||$o(e))return Ti(Oi(ki(lo,tn([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Oi(n):Ti(Oi(ki(n,t)))}function ji(e,t,r){if(void 0===r&&(r=uo),!t)throw Go(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,_i.apply(void 0,tn([n],o,!1)))};return n.attrs=function(n){return ji(e,t,en(en({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return ji(e,t,en(en({},r),n))},n}var qi=function(e){return ji(Li,e)},Ni=qi;po.forEach((function(e){Ni[e]=qi(e)}));var Fi=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Pi(e),ci.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(Bo(Oi(this.rules,t,r,n)),""),i=this.componentId+e;r.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&ci.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function zi(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Bo(_i.apply(void 0,tn([e],t,!1))),o=wo(n);return new Si(o,n)}function Hi(e){const{injectFirst:t,children:r}=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 r}Hi.propTypes={children:At.node,injectFirst:At.bool};const Bi=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=_i.apply(void 0,tn([e],t,!1)),o="sc-global-".concat(wo(JSON.stringify(n))),i=new Fi(n,o),a=function(e){var t=yi(),r=x.useContext(Di),n=x.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&s(n,e,t.styleSheet,r,t.stylis),x.useLayoutEffect((function(){if(!t.styleSheet.server)return s(n,e,t.styleSheet,r,t.stylis),function(){return i.removeStyles(n,t.styleSheet)}}),[n,e,t.styleSheet,r,t.stylis]),null};function s(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,so,r,o);else{var s=en(en({},t),{theme:co(t,n,a.defaultProps)});i.renderStyles(e,s,r,o)}}return x.memo(a)}((e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n}));
9
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.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(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%l)&&y<p-l&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},at({exports:{}});const bt=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function vt(e,r){return t((()=>e),r)}const yt={},xt=()=>{const{viewState:e}=r(),o=(e=>{const r=t((()=>({current:yt})),[]);return r.current=r.current===yt?e:r.current,r})(new Set),i=void 0!==e,{promise:a,resolve:s}=t((()=>bt()),[]),l=vt((e=>{i&&o.current.add(e)}),[o]),u=vt(function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var n=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(n,i)}),r)}}((async()=>{await Promise.all(o.current),o.current.clear(),s()}),1e3),[s,o]);return n((async()=>{i&&await a}),[a,i]),t((()=>({viewState:e,isDownloadedAsPDForImage:i,notifyIsDoneRendering:u,waitForPromise:l})),[u,i,e,l])};function St(e,t){return function(){return null}}function Et(){return Et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Et.apply(null,arguments)}function Ct(e){return Ct="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},Ct(e)}function wt(e){return e&&"object"===Ct(e)&&e.constructor===Object}function Rt(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?Et({},e):e;return wt(e)&&wt(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(wt(t[o])&&o in e?n[o]=Rt(e[o],t[o],r):n[o]=t[o])})),n}function At(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Dt(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})})),r}var Lt={exports:{}};function It(){}function qt(){}qt.resetWarningCache=It;Lt.exports=function(){function e(e,t,r,n,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=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 a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:qt,resetWarningCache:It};return r.PropTypes=r,r}();var Pt=At(Lt.exports),Mt=(Pt.element,function(){return null});Mt.isRequired=(Pt.element.isRequired,function(){return null});var _t=function(){return null};function kt(e){var t=function(e,t){if("object"!=Ct(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=Ct(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Ct(t)?t:t+""}function Tt(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}var Ot={exports:{}},Nt={},Ft=60103,jt=60106,zt=60107,Ht=60108,Bt=60114,$t=60109,Vt=60110,Gt=60112,Wt=60113,Ut=60120,Yt=60115,Kt=60116,Xt=60121,Jt=60122,Zt=60117,Qt=60129,er=60131;if("function"==typeof Symbol&&Symbol.for){var tr=Symbol.for;Ft=tr("react.element"),jt=tr("react.portal"),zt=tr("react.fragment"),Ht=tr("react.strict_mode"),Bt=tr("react.profiler"),$t=tr("react.provider"),Vt=tr("react.context"),Gt=tr("react.forward_ref"),Wt=tr("react.suspense"),Ut=tr("react.suspense_list"),Yt=tr("react.memo"),Kt=tr("react.lazy"),Xt=tr("react.block"),Jt=tr("react.server.block"),Zt=tr("react.fundamental"),Qt=tr("react.debug_trace_mode"),er=tr("react.legacy_hidden")}function rr(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ft:switch(e=e.type){case zt:case Bt:case Ht:case Wt:case Ut:return e;default:switch(e=e&&e.$$typeof){case Vt:case Gt:case Kt:case Yt:case $t:return e;default:return t}}case jt:return t}}}var nr=$t,or=Ft,ir=Gt,ar=zt,sr=Kt,lr=Yt,ur=jt,cr=Bt,dr=Ht,pr=Wt;Nt.ContextConsumer=Vt,Nt.ContextProvider=nr,Nt.Element=or,Nt.ForwardRef=ir,Nt.Fragment=ar,Nt.Lazy=sr,Nt.Memo=lr,Nt.Portal=ur,Nt.Profiler=cr,Nt.StrictMode=dr,Nt.Suspense=pr,Nt.isAsyncMode=function(){return!1},Nt.isConcurrentMode=function(){return!1},Nt.isContextConsumer=function(e){return rr(e)===Vt},Nt.isContextProvider=function(e){return rr(e)===$t},Nt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ft},Nt.isForwardRef=function(e){return rr(e)===Gt},Nt.isFragment=function(e){return rr(e)===zt},Nt.isLazy=function(e){return rr(e)===Kt},Nt.isMemo=function(e){return rr(e)===Yt},Nt.isPortal=function(e){return rr(e)===jt},Nt.isProfiler=function(e){return rr(e)===Bt},Nt.isStrictMode=function(e){return rr(e)===Ht},Nt.isSuspense=function(e){return rr(e)===Wt},Nt.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===zt||e===Bt||e===Qt||e===Ht||e===Wt||e===Ut||e===er||"object"==typeof e&&null!==e&&(e.$$typeof===Kt||e.$$typeof===Yt||e.$$typeof===$t||e.$$typeof===Vt||e.$$typeof===Gt||e.$$typeof===Zt||e.$$typeof===Xt||e[0]===Jt)},Nt.typeOf=rr,Ot.exports=Nt;var fr=Ot.exports,mr=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function hr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(mr);return t&&t[1]||""}(e)||t}function gr(e,t,r){var n=hr(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var br="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),vr=Pt.oneOfType([Pt.func,Pt.object]),yr=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:St,deepmerge:Rt,elementAcceptingRef:Mt,elementTypeAcceptingRef:_t,exactProp:function(e){return e},formatMuiErrorMessage:Tt,getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return hr(e,"Component");if("object"===Ct(e))switch(e.$$typeof){case fr.ForwardRef:return gr(e,e.render,"ForwardRef");case fr.Memo:return gr(e,e.type,"memo");default:return}}},ponyfillGlobal:br,refType:vr});function xr(e){if(e.type)return e;if("#"===e.charAt(0))return xr(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error(Tt(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map((function(e){return parseFloat(e)}))}}function Sr(e,t){return e=xr(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}(e)}function Er(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function Cr(e,t){if(null==e)return{};var r,n,o=Er(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function wr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Rr(e,t){if(e){if("string"==typeof e)return wr(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wr(e,t):void 0}}function Ar(e){return function(e){if(Array.isArray(e))return wr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Rr(e)||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.")}()}function Dr(e,t){return t?Rt(e,t,{clone:!1}):e}var Lr={xs:0,sm:600,md:960,lg:1280,xl:1920},Ir={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(Lr[e],"px)")}};function qr(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||Ir;return t.reduce((function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e}),{})}if("object"===Ct(t)){var o=e.theme.breakpoints||Ir;return Object.keys(t).reduce((function(e,n){return e[o.up(n)]=r(t[n]),e}),{})}return r(t)}function Pr(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function Mr(e){var t=e.prop,r=e.cssProperty,n=void 0===r?e.prop:r,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var r=e[t],a=Pr(e.theme,o)||{};return qr(e,r,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=Pr(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=kt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},n,t)}))};return a.propTypes={},a.filterProps=[t],a}function _r(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=function(e){return t.reduce((function(t,r){var n=r(e);return n?Dr(t,n):t}),{})};return n.propTypes={},n.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),n}function kr(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var Tr=Mr({prop:"border",themeKey:"borders",transform:kr}),Or=Mr({prop:"borderTop",themeKey:"borders",transform:kr}),Nr=Mr({prop:"borderRight",themeKey:"borders",transform:kr}),Fr=Mr({prop:"borderBottom",themeKey:"borders",transform:kr}),jr=Mr({prop:"borderLeft",themeKey:"borders",transform:kr}),zr=Mr({prop:"borderColor",themeKey:"palette"}),Hr=Mr({prop:"borderRadius",themeKey:"shape"}),Br=_r(Tr,Or,Nr,Fr,jr,zr,Hr);function $r(e,t){var r={};return Object.keys(e).forEach((function(n){-1===t.indexOf(n)&&(r[n]=e[n])})),r}function Vr(e){var t=function(t){var r=e(t);return t.css?Et({},Dr(r,e(Et({theme:t.theme},t.css))),$r(t.css,[e.filterProps])):t.sx?Et({},Dr(r,e(Et({theme:t.theme},t.sx))),$r(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(Ar(e.filterProps)),t}var Gr=_r(Mr({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),Mr({prop:"display"}),Mr({prop:"overflow"}),Mr({prop:"textOverflow"}),Mr({prop:"visibility"}),Mr({prop:"whiteSpace"})),Wr=Mr({prop:"flexBasis"}),Ur=Mr({prop:"flexDirection"}),Yr=Mr({prop:"flexWrap"}),Kr=Mr({prop:"justifyContent"}),Xr=Mr({prop:"alignItems"}),Jr=Mr({prop:"alignContent"}),Zr=Mr({prop:"order"}),Qr=Mr({prop:"flex"}),en=Mr({prop:"flexGrow"}),tn=Mr({prop:"flexShrink"}),rn=Mr({prop:"alignSelf"}),nn=Mr({prop:"justifyItems"}),on=Mr({prop:"justifySelf"}),an=_r(Wr,Ur,Yr,Kr,Xr,Jr,Zr,Qr,en,tn,rn,nn,on),sn=Mr({prop:"gridGap"}),ln=Mr({prop:"gridColumnGap"}),un=Mr({prop:"gridRowGap"}),cn=Mr({prop:"gridColumn"}),dn=Mr({prop:"gridRow"}),pn=Mr({prop:"gridAutoFlow"}),fn=Mr({prop:"gridAutoColumns"}),mn=Mr({prop:"gridAutoRows"}),hn=Mr({prop:"gridTemplateColumns"}),gn=Mr({prop:"gridTemplateRows"}),bn=Mr({prop:"gridTemplateAreas"}),vn=Mr({prop:"gridArea"}),yn=_r(sn,ln,un,cn,dn,pn,fn,mn,hn,gn,bn,vn),xn=Mr({prop:"color",themeKey:"palette"}),Sn=Mr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),En=_r(xn,Sn),Cn=Mr({prop:"position"}),wn=Mr({prop:"zIndex",themeKey:"zIndex"}),Rn=Mr({prop:"top"}),An=Mr({prop:"right"}),Dn=Mr({prop:"bottom"}),Ln=Mr({prop:"left"}),In=_r(Cn,wn,Rn,An,Dn,Ln),qn=Mr({prop:"boxShadow",themeKey:"shadows"});function Pn(e){return e<=1?"".concat(100*e,"%"):e}var Mn=Mr({prop:"width",transform:Pn}),_n=Mr({prop:"maxWidth",transform:Pn}),kn=Mr({prop:"minWidth",transform:Pn}),Tn=Mr({prop:"height",transform:Pn}),On=Mr({prop:"maxHeight",transform:Pn}),Nn=Mr({prop:"minHeight",transform:Pn}),Fn=Mr({prop:"size",cssProperty:"width",transform:Pn}),jn=Mr({prop:"size",cssProperty:"height",transform:Pn}),zn=Mr({prop:"boxSizing"}),Hn=_r(Mn,_n,kn,Tn,On,Nn,zn);function Bn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||Rr(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var $n={m:"margin",p:"padding"},Vn={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Gn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Wn=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}((function(e){if(e.length>2){if(!Gn[e])return[e];e=Gn[e]}var t=Bn(e.split(""),2),r=t[0],n=t[1],o=$n[r],i=Vn[n]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),Un=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function Yn(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function Kn(e,t){return function(r){return e.reduce((function(e,n){return e[n]=function(e,t){if("string"==typeof t||null==t)return t;var r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:"-".concat(r)}(t,r),e}),{})}}function Xn(e){var t=Yn(e.theme);return Object.keys(e).map((function(r){if(-1===Un.indexOf(r))return null;var n=Kn(Wn(r),t),o=e[r];return qr(e,o,n)})).reduce(Dr,{})}Xn.propTypes={},Xn.filterProps=Un;var Jn=Mr({prop:"fontFamily",themeKey:"typography"}),Zn=Mr({prop:"fontSize",themeKey:"typography"}),Qn=Mr({prop:"fontStyle",themeKey:"typography"}),eo=Mr({prop:"fontWeight",themeKey:"typography"}),to=Mr({prop:"letterSpacing"}),ro=Mr({prop:"lineHeight"}),no=Mr({prop:"textAlign"}),oo=_r(Jn,Zn,Qn,eo,to,ro,no),io=Object.freeze({__proto__:null,alignContent:Jr,alignItems:Xr,alignSelf:rn,bgcolor:Sn,border:Tr,borderBottom:Fr,borderColor:zr,borderLeft:jr,borderRadius:Hr,borderRight:Nr,borderTop:Or,borders:Br,bottom:Dn,boxSizing:zn,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||Ir,o=n.keys.reduce((function(r,o){return t[o]&&((r=r||{})[n.up(o)]=e(Et({theme:t.theme},t[o]))),r}),null);return Dr(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(Ar(e.filterProps)),t},color:xn,compose:_r,createUnarySpacing:Yn,css:function(e){return Vr(e)},display:Gr,flex:Qr,flexBasis:Wr,flexDirection:Ur,flexGrow:en,flexShrink:tn,flexWrap:Yr,flexbox:an,fontFamily:Jn,fontSize:Zn,fontStyle:Qn,fontWeight:eo,grid:yn,gridArea:vn,gridAutoColumns:fn,gridAutoFlow:pn,gridAutoRows:mn,gridColumn:cn,gridColumnGap:ln,gridGap:sn,gridRow:dn,gridRowGap:un,gridTemplateAreas:bn,gridTemplateColumns:hn,gridTemplateRows:gn,height:Tn,justifyContent:Kr,justifyItems:nn,justifySelf:on,left:Ln,letterSpacing:to,lineHeight:ro,maxHeight:On,maxWidth:_n,minHeight:Nn,minWidth:kn,order:Zr,palette:En,position:Cn,positions:In,right:An,shadows:qn,sizeHeight:jn,sizeWidth:Fn,sizing:Hn,spacing:Xn,style:Mr,styleFunctionSx:Vr,textAlign:no,top:Rn,typography:oo,width:Mn,zIndex:wn}),ao="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",so=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function lo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,r=void 0!==t&&t,n=e.productionPrefix,o=void 0===n?"jss":n,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,u=function(){return l+=1};return function(e,t){var n=t.options.name;if(n&&0===n.indexOf("Mui")&&!t.options.link&&!r){if(-1!==so.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[ao]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function uo(e){var t=e.theme,r=e.name,n=e.props;if(!t||!t.props||!t.props[r])return n;var o,i=t.props[r];for(o in i)void 0===n[o]&&(n[o]=i[o]);return n}var co="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},po="object"===("undefined"==typeof window?"undefined":co(window))&&"object"===("undefined"==typeof document?"undefined":co(document))&&9===document.nodeType;function fo(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,kt(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mo(e,t){return mo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mo(e,t)}function ho(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,mo(e,t)}function go(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var bo={}.constructor;function vo(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(vo);if(e.constructor!==bo)return e;var t={};for(var r in e)t[r]=vo(e[r]);return t}function yo(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=vo(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var xo=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},So=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)t&&(t+=", "),t+=xo(e[r]," ");else t=xo(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function Eo(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function Co(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function wo(e,t,r){void 0===r&&(r={});var n="";if(!t)return n;var o=r.indent,i=void 0===o?0:o,a=t.fallbacks;!1===r.format&&(i=-1/0);var s=Eo(r),l=s.linebreak,u=s.space;if(e&&i++,a)if(Array.isArray(a))for(var c=0;c<a.length;c++){var d=a[c];for(var p in d){var f=d[p];null!=f&&(n&&(n+=l),n+=Co(p+":"+u+So(f)+";",i))}}else for(var m in a){var h=a[m];null!=h&&(n&&(n+=l),n+=Co(m+":"+u+So(h)+";",i))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(n&&(n+=l),n+=Co(g+":"+u+So(b)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),Co(""+e+u+"{"+n,--i)+Co("}",i)):n}var Ro=/([[\].#*$><+~=|^:(),"'`\s])/g,Ao="undefined"!=typeof CSS&&CSS.escape,Do=function(e){return Ao?Ao(e):e.replace(Ro,"\\$1")},Lo=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,o=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var o=t;r&&!1===r.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!n)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),Io=function(e){function t(t,r,n){var o;o=e.call(this,t,r,n)||this;var i=n.selector,a=n.scoped,s=n.sheet,l=n.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(go(go(o)),s),o.selectorText="."+Do(o.id)),o}ho(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!=typeof r?e[t]=r:Array.isArray(r)&&(e[t]=So(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?Et({},e,{allowEmpty:!0}):e;return wo(this.selectorText,this.style,r)},fo(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;if(r&&t)t.setSelector(r,e)||t.replaceRule(r,this)}},get:function(){return this.selectorText}}]),t}(Lo),qo={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new Io(e,t,r)}},Po={indent:1,children:!0},Mo=/@([\w-]+)/,_o=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(Mo);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new ni(Et({},r,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=Po);var t=Eo(e).linebreak;if(null==e.indent&&(e.indent=Po.indent),null==e.children&&(e.children=Po.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),ko=/@container|@media|@supports\s+/,To={onCreateRule:function(e,t,r){return ko.test(e)?new _o(e,t,r):null}},Oo={indent:1,children:!0},No=/@keyframes\s+([\w-]+)/,Fo=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(No);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var o=r.scoped,i=r.sheet,a=r.generateId;for(var s in this.id=!1===o?this.name:Do(a(this,i)),this.rules=new ni(Et({},r,{parent:this})),t)this.rules.add(s,t[s],Et({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Oo);var t=Eo(e).linebreak;if(null==e.indent&&(e.indent=Oo.indent),null==e.children&&(e.children=Oo.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),jo=/@keyframes\s+/,zo=/\$([\w-]+)/g,Ho=function(e,t){return"string"==typeof e?e.replace(zo,(function(e,r){return r in t?t[r]:e})):e},Bo=function(e,t,r){var n=e[t],o=Ho(n,r);o!==n&&(e[t]=o)},$o={onCreateRule:function(e,t,r){return"string"==typeof e&&jo.test(e)?new Fo(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&Bo(e,"animation-name",r.keyframes),"animation"in e&&Bo(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return Ho(e,n.keyframes);default:return e}}},Vo=function(e){function t(){return e.apply(this,arguments)||this}return ho(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?Et({},e,{allowEmpty:!0}):e;return wo(this.key,this.style,r)},t}(Lo),Go={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new Vo(e,t,r):null}},Wo=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=Eo(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=wo(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return wo(this.at,this.style,e)},e}(),Uo=/@font-face/,Yo={onCreateRule:function(e,t,r){return Uo.test(e)?new Wo(e,t,r):null}},Ko=function(){function e(e,t,r){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){return wo(this.key,this.style,e)},e}(),Xo={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new Ko(e,t,r):null}},Jo=function(){function e(e,t,r){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=r}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",r=0;r<this.value.length;r++)t+=this.key+" "+this.value[r]+";",this.value[r+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),Zo={"@charset":!0,"@import":!0,"@namespace":!0},Qo={onCreateRule:function(e,t,r){return e in Zo?new Jo(e,t,r):null}},ei=[qo,To,$o,Go,Yo,Xo,Qo],ti={process:!0},ri={force:!0,process:!0},ni=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,r){var n=this.options,o=n.parent,i=n.sheet,a=n.jss,s=n.Renderer,l=n.generateId,u=n.scoped,c=Et({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},r),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(c.selector="."+Do(this.classes[d]));var p=yo(d,t,c);if(!p)return null;this.register(p);var f=void 0===c.index?this.index.length:c.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,r){var n=this.get(e),o=this.index.indexOf(n);n&&this.remove(n);var i=r;return-1!==o&&(i=Et({},r,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Io?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Fo&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Io?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Fo&&delete this.keyframes[e.name]},t.update=function(){var e,t,r;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],t,r)},t.updateOne=function(t,r,n){void 0===n&&(n=ti);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(r,n);else{var s=t.style;if(i.onUpdate(r,t,a,n),n.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,ri)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,ri)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=Eo(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||n)&&(t&&(t+=o),t+=a)}return t},e}(),oi=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Et({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new ni(this.options),e)this.rules.add(r,e[r]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var o=this.rules.add(e,t,r);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(n?n.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,r){var n=this.rules.get(e);if(!n)return this.addRule(e,t,r);var o=this.rules.replace(e,t,r);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?n.renderable&&this.renderer.replaceRule(n.renderable,o):this.renderer.deleteRule(n)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var r=[];for(var n in e){var o=this.addRule(n,e[n],t);o&&r.push(o)}return r},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,r){return this.rules.updateOne(e,t,r),this},t.toString=function(e){return this.rules.toString(e)},e}(),ii=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var o=this.registry.onCreateRule[n](e,t,r);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)t.style=this.registry.onProcessStyle[n](t.style,t,r)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,r,n){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,r,n)},t.onChangeValue=function(e,t,r){for(var n=e,o=0;o<this.registry.onChangeValue.length;o++)n=this.registry.onChangeValue[o](n,t,r);return n},t.use=function(e,t){void 0===t&&(t={queue:"external"});var r=this.plugins[t.queue];-1===r.indexOf(e)&&(r.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var r in t)r in e&&e[r].push(t[r]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),ai=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,r=e.options.index;if(-1===t.indexOf(e))if(0===t.length||r>=this.index)t.push(e);else for(var n=0;n<t.length;n++)if(t[n].options.index>r)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=Er(t,["attached"]),o=Eo(n).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=r&&s.attached!==r||(i&&(i+=o),i+=s.toString(n))}return i},fo(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),si=new ai,li="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ui="2f1acc6c3a606b082e5eef5e54414ffb";null==li[ui]&&(li[ui]=0);var ci=li[ui]++,di=function(e){void 0===e&&(e={});var t=0;return function(r,n){t+=1;var o="",i="";return n&&(n.options.classNamePrefix&&(i=n.options.classNamePrefix),null!=n.options.jss.id&&(o=String(n.options.jss.id))),e.minify?""+(i||"c")+ci+o+t:i+r.key+"-"+ci+(o?"-"+o:"")+"-"+t}},pi=function(e){var t;return function(){return t||(t=e()),t}},fi=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},mi=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=So(r)),e.attributeStyleMap)e.attributeStyleMap.set(t,n);else{var o=n?n.indexOf("!important"):-1,i=o>-1?n.substr(0,o-1):n;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},hi=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},gi=function(e,t){return e.selectorText=t,e.selectorText===t},bi=pi((function(){return document.querySelector("head")}));function vi(e){var t=si.registry;if(t.length>0){var r=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"==typeof n){var o=function(e){for(var t=bi(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===e)return n}return null}(n);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var yi=pi((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),xi=function(e,t,r){try{"insertRule"in e?e.insertRule(t,r):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[r]},Si=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},Ei=function(){function e(e){this.getPropertyValue=fi,this.setProperty=mi,this.removeProperty=hi,this.setSelector=gi,this.hasInsertedRules=!1,this.cssRules=[],e&&si.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var i=yi();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=vi(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"==typeof r.nodeType){var o=r,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else bi().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r<e.index.length;r++)this.insertRule(e.index[r],r,t)},t.insertRule=function(e,t,r){if(void 0===r&&(r=this.element.sheet),e.rules){var n=e,o=r;if("conditional"===e.type||"keyframes"===e.type){var i=Si(r,t);if(!1===(o=xi(r,n.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(n.rules,o),o}var a=e.toString();if(!a)return!1;var s=Si(r,t),l=xi(r,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,r){e.renderable=r,e.options.parent instanceof oi&&this.cssRules.splice(t,0,r)},t.deleteRule=function(e){var t=this.element.sheet,r=this.indexOf(e);return-1!==r&&(t.deleteRule(r),this.cssRules.splice(r,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var r=this.indexOf(e);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(t,r))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Ci=0,wi=function(){function e(e){this.id=Ci++,this.version="10.10.0",this.plugins=new ii,this.options={id:{minify:!1},createGenerateId:di,Renderer:po?Ei:null,plugins:[]},this.generateId=di({minify:!1});for(var t=0;t<ei.length;t++)this.plugins.use(ei[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=Et({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var r=t.index;"number"!=typeof r&&(r=0===si.index?0:si.index+1);var n=new oi(e,Et({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},t.removeStyleSheet=function(e){return e.detach(),si.remove(e),this},t.createRule=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),"object"==typeof e)return this.createRule(void 0,e,t);var n=Et({},r,{name:e,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var o=yo(e,t,n);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach((function(t){e.plugins.use(t)})),this},e}(),Ri=function(e){return new wi(e)},Ai="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Di(e){var t=null;for(var r in e){var n=e[r],o=typeof n;if("function"===o)t||(t={}),t[r]=n;else if("object"===o&&null!==n&&!Array.isArray(n)){var i=Di(n);i&&(t||(t={}),t[r]=i)}}return t}
10
10
  /**
11
- * @mui/styled-engine-sc v6.4.2
11
+ * A better abstraction over CSS.
12
12
  *
13
+ * @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
14
+ * @website https://github.com/cssinjs/jss
13
15
  * @license MIT
16
+ */Ri();var Li=Date.now(),Ii="fnValues"+Li,qi="fnStyle"+ ++Li,Pi="@global",Mi="@global ",_i=function(){function e(e,t,r){for(var n in this.type="global",this.at=Pi,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new ni(Et({},r,{parent:this})),t)this.rules.add(n,t[n]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),ki=function(){function e(e,t,r){this.type="global",this.at=Pi,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,Et({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Ti=/\s*,\s*/g;function Oi(e,t){for(var r=e.split(Ti),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function Ni(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===Pi)return new _i(e,t,r);if("@"===e[0]&&e.substr(0,8)===Mi)return new ki(e,t,r);var n=r.parent;return n&&("global"===n.type||n.options.parent&&"global"===n.options.parent.type)&&(r.scoped=!1),r.selector||!1!==r.scoped||(r.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var r=e.options,n=e.style,o=n?n[Pi]:null;if(o){for(var i in o)t.addRule(i,o[i],Et({},r,{selector:Oi(i,e.selector)}));delete n[Pi]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var o in n)if("@"===o[0]&&o.substr(0,7)===Pi){var i=Oi(o.substr(7),e.selector);t.addRule(i,n[o],Et({},r,{selector:i})),delete n[o]}}(e,t))}}}var Fi=/\s*,\s*/g,ji=/&/g,zi=/\$([\w-]+)/g;function Hi(){function e(e,t){return function(r,n){var o=e.getRule(n)||t&&t.getRule(n);return o?o.selector:n}}function t(e,t){for(var r=t.split(Fi),n=e.split(Fi),o="",i=0;i<r.length;i++)for(var a=r[i],s=0;s<n.length;s++){var l=n[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(ji,a):a+" "+l}return o}function r(e,t,r){if(r)return Et({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var o=Et({},e.options,{nestingLevel:n,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(n,o,i){if("style"!==o.type)return n;var a,s,l=o,u=l.options.parent;for(var c in n){var d=-1!==c.indexOf("&"),p="@"===c[0];if(d||p){if(a=r(l,u,a),d){var f=t(c,l.selector);s||(s=e(u,i)),f=f.replace(zi,s);var m=l.key+"-"+c;"replaceRule"in u?u.replaceRule(m,n[c],Et({},a,{selector:f})):u.addRule(m,n[c],Et({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(l.key,n[c],{selector:l.selector});delete n[c]}}return n}}}var Bi=/[A-Z]/g,$i=/^ms-/,Vi={};function Gi(e){return"-"+e.toLowerCase()}function Wi(e){if(Vi.hasOwnProperty(e))return Vi[e];var t=e.replace(Bi,Gi);return Vi[e]=$i.test(t)?"-"+t:t}function Ui(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:Wi(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Ui):t.fallbacks=Ui(e.fallbacks)),t}var Yi=Ai&&CSS?CSS.px:"px",Ki=Ai&&CSS?CSS.ms:"ms",Xi=Ai&&CSS?CSS.percent:"%";function Ji(e){var t=/(-[a-z])/g,r=function(e){return e[1].toUpperCase()},n={};for(var o in e)n[o]=e[o],n[o.replace(t,r)]=e[o];return n}var Zi=Ji({"animation-delay":Ki,"animation-duration":Ki,"background-position":Yi,"background-position-x":Yi,"background-position-y":Yi,"background-size":Yi,border:Yi,"border-bottom":Yi,"border-bottom-left-radius":Yi,"border-bottom-right-radius":Yi,"border-bottom-width":Yi,"border-left":Yi,"border-left-width":Yi,"border-radius":Yi,"border-right":Yi,"border-right-width":Yi,"border-top":Yi,"border-top-left-radius":Yi,"border-top-right-radius":Yi,"border-top-width":Yi,"border-width":Yi,"border-block":Yi,"border-block-end":Yi,"border-block-end-width":Yi,"border-block-start":Yi,"border-block-start-width":Yi,"border-block-width":Yi,"border-inline":Yi,"border-inline-end":Yi,"border-inline-end-width":Yi,"border-inline-start":Yi,"border-inline-start-width":Yi,"border-inline-width":Yi,"border-start-start-radius":Yi,"border-start-end-radius":Yi,"border-end-start-radius":Yi,"border-end-end-radius":Yi,margin:Yi,"margin-bottom":Yi,"margin-left":Yi,"margin-right":Yi,"margin-top":Yi,"margin-block":Yi,"margin-block-end":Yi,"margin-block-start":Yi,"margin-inline":Yi,"margin-inline-end":Yi,"margin-inline-start":Yi,padding:Yi,"padding-bottom":Yi,"padding-left":Yi,"padding-right":Yi,"padding-top":Yi,"padding-block":Yi,"padding-block-end":Yi,"padding-block-start":Yi,"padding-inline":Yi,"padding-inline-end":Yi,"padding-inline-start":Yi,"mask-position-x":Yi,"mask-position-y":Yi,"mask-size":Yi,height:Yi,width:Yi,"min-height":Yi,"max-height":Yi,"min-width":Yi,"max-width":Yi,bottom:Yi,left:Yi,top:Yi,right:Yi,inset:Yi,"inset-block":Yi,"inset-block-end":Yi,"inset-block-start":Yi,"inset-inline":Yi,"inset-inline-end":Yi,"inset-inline-start":Yi,"box-shadow":Yi,"text-shadow":Yi,"column-gap":Yi,"column-rule":Yi,"column-rule-width":Yi,"column-width":Yi,"font-size":Yi,"font-size-delta":Yi,"letter-spacing":Yi,"text-decoration-thickness":Yi,"text-indent":Yi,"text-stroke":Yi,"text-stroke-width":Yi,"word-spacing":Yi,motion:Yi,"motion-offset":Yi,outline:Yi,"outline-offset":Yi,"outline-width":Yi,perspective:Yi,"perspective-origin-x":Xi,"perspective-origin-y":Xi,"transform-origin":Xi,"transform-origin-x":Xi,"transform-origin-y":Xi,"transform-origin-z":Xi,"transition-delay":Ki,"transition-duration":Ki,"vertical-align":Yi,"flex-basis":Yi,"shape-margin":Yi,size:Yi,gap:Yi,grid:Yi,"grid-gap":Yi,"row-gap":Yi,"grid-row-gap":Yi,"grid-column-gap":Yi,"grid-template-rows":Yi,"grid-template-columns":Yi,"grid-auto-rows":Yi,"grid-auto-columns":Yi,"box-shadow-x":Yi,"box-shadow-y":Yi,"box-shadow-blur":Yi,"box-shadow-spread":Yi,"font-line-height":Yi,"text-shadow-x":Yi,"text-shadow-y":Yi,"text-shadow-blur":Yi});function Qi(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=Qi(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=Qi(o,t[o],r);else for(var i in t)t[i]=Qi(e+"-"+i,t[i],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||Zi[e];return!a||0===t&&a===Yi?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function ea(e){void 0===e&&(e={});var t=Ji(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=Qi(n,e[n],t);return e},onChangeValue:function(e,r){return Qi(r,e,t)}}}var ta="",ra="",na="",oa="",ia=po&&"ontouchstart"in document.documentElement;if(po){var aa={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},sa=document.createElement("p").style;for(var la in aa)if(la+"Transform"in sa){ta=la,ra=aa[la];break}"Webkit"===ta&&"msHyphens"in sa&&(ta="ms",ra=aa.ms,oa="edge"),"Webkit"===ta&&"-apple-trailing-word"in sa&&(na="apple")}var ua=ta,ca=ra,da=na,pa=oa,fa=ia;var ma={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===ua?"-webkit-"+e:ca+e)}},ha={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===ua?ca+"print-"+e:e)}},ga=/[-\s]+(.)?/g;function ba(e,t){return t?t.toUpperCase():""}function va(e){return e.replace(ga,ba)}function ya(e){return va("-"+e)}var xa,Sa={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===ua){var r="mask-image";if(va(r)in t)return e;if(ua+ya(r)in t)return ca+e}return e}},Ea={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==da||fa?e:ca+e)}},Ca={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:ca+e)}},wa={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:ca+e)}},Ra={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===ua||"ms"===ua&&"edge"!==pa?ca+e:e)}},Aa={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===ua||"ms"===ua||"apple"===da?ca+e:e)}},Da={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===ua?"WebkitColumn"+ya(e)in t&&ca+"column-"+e:"Moz"===ua&&("page"+ya(e)in t&&"page-"+e))}},La={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===ua)return e;var r=e.replace("-inline","");return ua+ya(r)in t&&ca+r}},Ia={supportedProperty:function(e,t){return va(e)in t&&e}},qa={supportedProperty:function(e,t){var r=ya(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:ua+r in t?ca+e:"Webkit"!==ua&&"Webkit"+r in t&&"-webkit-"+e}},Pa={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===ua?""+ca+e:e)}},Ma={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===ua?ca+"scroll-chaining":e)}},_a={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},ka={supportedProperty:function(e,t){var r=_a[e];return!!r&&(ua+ya(r)in t&&ca+r)}},Ta={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Oa=Object.keys(Ta),Na=function(e){return ca+e},Fa={supportedProperty:function(e,t,r){var n=r.multiple;if(Oa.indexOf(e)>-1){var o=Ta[e];if(!Array.isArray(o))return ua+ya(o)in t&&ca+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(ua+ya(o[0])in t))return!1;return o.map(Na)}return!1}},ja=[ma,ha,Sa,Ea,Ca,wa,Ra,Aa,Da,La,Ia,qa,Pa,Ma,ka,Fa],za=ja.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Ha=ja.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Ar(t.noPrefill)),e}),[]),Ba={};if(po){xa=document.createElement("p");var $a=window.getComputedStyle(document.documentElement,"");for(var Va in $a)isNaN(Va)||(Ba[$a[Va]]=$a[Va]);Ha.forEach((function(e){return delete Ba[e]}))}function Ga(e,t){if(void 0===t&&(t={}),!xa)return e;if(null!=Ba[e])return Ba[e];"transition"!==e&&"transform"!==e||(t[e]=e in xa.style);for(var r=0;r<za.length&&(Ba[e]=za[r](e,xa.style,t),!Ba[e]);r++);try{xa.style[e]=""}catch(e){return!1}return Ba[e]}var Wa,Ua={},Ya={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Ka=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Xa(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?Ga(t):", "+Ga(r);return n||(t||r)}function Ja(e,t){var r=t;if(!Wa||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=Ua[n])return Ua[n];try{Wa.style[e]=r}catch(e){return Ua[n]=!1,!1}if(Ya[e])r=r.replace(Ka,Xa);else if(""===Wa.style[e]&&("-ms-flex"===(r=ca+r)&&(Wa.style[e]="-ms-flexbox"),Wa.style[e]=r,""===Wa.style[e]))return Ua[n]=!1,!1;return Wa.style[e]="",Ua[n]=r,Ua[n]}function Za(){function e(t){for(var r in t){var n=t[r];if("fallbacks"===r&&Array.isArray(n))t[r]=n.map(e);else{var o=!1,i=Ga(r);i&&i!==r&&(o=!0);var a=!1,s=Ja(i,So(n));s&&s!==n&&(a=!0),(o||a)&&(o&&delete t[r],t[i||r]=s||n)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===ua?e:"@"+ca+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return Ja(t,So(e))||e}}}function Qa(){return{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=yo(e,{},r);return n[qi]=t,n},onProcessStyle:function(e,t){if(Ii in t||qi in t)return e;var r={};for(var n in e){var o=e[n];"function"==typeof o&&(delete e[n],r[n]=o)}return t[Ii]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[qi];i&&(o.style=i(e)||{});var a=o[Ii];if(a)for(var s in a)o.prop(s,a[s](e),n)}},Ni(),Hi(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Ui(e[t]);return e}return Ui(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=Wi(t);return t===n?e:(r.prop(n,e),null)}},ea(),"undefined"==typeof window?null:Za(),(e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length},{onProcessStyle:function(t,r){if("style"!==r.type)return t;for(var n={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)n[o[i]]=t[o[i]];return n}})]};var e}function es(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,r=e.newClasses;if(e.Component,!r)return t;var n=Et({},t);return Object.keys(r).forEach((function(e){r[e]&&(n[e]="".concat(t[e]," ").concat(r[e]))})),n}po&&(Wa=document.createElement("p"));var ts=function(e,t,r,n){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},rs=function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},ns=function(e,t,r){e.get(t).delete(r)},os=x.createContext(null);function is(){return x.useContext(os)}var as,ss=Ri(Qa()),ls=lo(),us=new Map,cs={disableGeneration:!1,generateClassName:ls,jss:ss,sheetsCache:null,sheetsManager:us,sheetsRegistry:null},ds=x.createContext(cs);function ps(e){var t=e.children,r=e.injectFirst,n=void 0!==r&&r,o=e.disableGeneration,i=void 0!==o&&o,a=Cr(e,["children","injectFirst","disableGeneration"]),s=Et({},x.useContext(ds),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&n&&"undefined"!=typeof window){if(!as){var l=document.head;as=document.createComment("mui-inject-first"),l.insertBefore(as,l.firstChild)}s.jss=Ri({plugins:Qa().plugins,insertionPoint:as})}return x.createElement(ds.Provider,{value:s},t)}var fs=-1e9;var ms={};function hs(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=rs(o.sheetsManager,i,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},ts(o.sheetsManager,i,n,s));var l=Et({},i.options,o,{theme:n,flip:"boolean"==typeof o.flip?o.flip:"rtl"===n.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=o.sheetsRegistry;if(0===s.refs){var c;o.sheetsCache&&(c=rs(o.sheetsCache,i,n));var d=i.create(n,a);c||((c=o.jss.createStyleSheet(d,Et({link:!1},l))).attach(),o.sheetsCache&&ts(o.sheetsCache,i,n,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=Di(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,Et({link:!0},l));p.update(t),p.attach(),r.dynamicSheet=p,r.classes=es({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else r.classes=s.staticSheet.classes;s.refs+=1}}function gs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.name,n=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=void 0===i?ms:i,s=Cr(t,["name","classNamePrefix","Component","defaultTheme"]),l=function(e){var t="function"==typeof e;return{create:function(r,n){var o;try{o=t?e(r):e}catch(e){throw e}if(!n||!r.overrides||!r.overrides[n])return o;var i=r.overrides[n],a=Et({},o);return Object.keys(i).forEach((function(e){a[e]=Rt(a[e],i[e])})),a},options:{}}}(e),u=r||n||"makeStyles";l.options={index:fs+=1,name:r,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=is()||a,n=Et({},x.useContext(ds),s),i=x.useRef(),u=x.useRef();!function(e,t){var r,n=x.useRef([]),o=x.useMemo((function(){return{}}),t);n.current!==o&&(n.current=o,r=e()),x.useEffect((function(){return function(){r&&r()}}),[o])}((function(){var o={name:r,state:{},stylesCreator:l,stylesOptions:n,theme:t};return hs(o,e),u.current=!1,i.current=o,function(){!function(e){var t=e.state,r=e.theme,n=e.stylesOptions,o=e.stylesCreator;if(!n.disableGeneration){var i=rs(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;0===i.refs&&(ns(n.sheetsManager,o,r),n.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(n.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}}),[t,l]),x.useEffect((function(){u.current&&function(e,t){var r=e.state;r.dynamicSheet&&r.dynamicSheet.update(t)}(i.current,e),u.current=!0}));var c=function(e,t,r){var n=e.state;if(e.stylesOptions.disableGeneration)return t||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,o=!0),t!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=t,o=!0),o&&(n.cacheClasses.value=es({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(i.current,e.classes,o);return c}}var bs=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=t}return fo(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new ai;var r=lo();return x.createElement(ps,Et({sheetsManager:t,serverGenerateClassName:r,sheetsRegistry:this.sheetsRegistry},this.options),e)}},{key:"toString",value:function(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}},{key:"getStyleElement",value:function(e){return x.createElement("style",Et({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function vs(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=vs(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function ys(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=vs(e))&&(n&&(n+=" "),n+=t);return n}var xs={exports:{}},Ss={},Es="function"==typeof Symbol&&Symbol.for,Cs=Es?Symbol.for("react.element"):60103,ws=Es?Symbol.for("react.portal"):60106,Rs=Es?Symbol.for("react.fragment"):60107,As=Es?Symbol.for("react.strict_mode"):60108,Ds=Es?Symbol.for("react.profiler"):60114,Ls=Es?Symbol.for("react.provider"):60109,Is=Es?Symbol.for("react.context"):60110,qs=Es?Symbol.for("react.async_mode"):60111,Ps=Es?Symbol.for("react.concurrent_mode"):60111,Ms=Es?Symbol.for("react.forward_ref"):60112,_s=Es?Symbol.for("react.suspense"):60113,ks=Es?Symbol.for("react.suspense_list"):60120,Ts=Es?Symbol.for("react.memo"):60115,Os=Es?Symbol.for("react.lazy"):60116,Ns=Es?Symbol.for("react.block"):60121,Fs=Es?Symbol.for("react.fundamental"):60117,js=Es?Symbol.for("react.responder"):60118,zs=Es?Symbol.for("react.scope"):60119;function Hs(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Cs:switch(e=e.type){case qs:case Ps:case Rs:case Ds:case As:case _s:return e;default:switch(e=e&&e.$$typeof){case Is:case Ms:case Os:case Ts:case Ls:return e;default:return t}}case ws:return t}}}function Bs(e){return Hs(e)===Ps}Ss.AsyncMode=qs,Ss.ConcurrentMode=Ps,Ss.ContextConsumer=Is,Ss.ContextProvider=Ls,Ss.Element=Cs,Ss.ForwardRef=Ms,Ss.Fragment=Rs,Ss.Lazy=Os,Ss.Memo=Ts,Ss.Portal=ws,Ss.Profiler=Ds,Ss.StrictMode=As,Ss.Suspense=_s,Ss.isAsyncMode=function(e){return Bs(e)||Hs(e)===qs},Ss.isConcurrentMode=Bs,Ss.isContextConsumer=function(e){return Hs(e)===Is},Ss.isContextProvider=function(e){return Hs(e)===Ls},Ss.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Cs},Ss.isForwardRef=function(e){return Hs(e)===Ms},Ss.isFragment=function(e){return Hs(e)===Rs},Ss.isLazy=function(e){return Hs(e)===Os},Ss.isMemo=function(e){return Hs(e)===Ts},Ss.isPortal=function(e){return Hs(e)===ws},Ss.isProfiler=function(e){return Hs(e)===Ds},Ss.isStrictMode=function(e){return Hs(e)===As},Ss.isSuspense=function(e){return Hs(e)===_s},Ss.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Rs||e===Ps||e===Ds||e===As||e===_s||e===ks||"object"==typeof e&&null!==e&&(e.$$typeof===Os||e.$$typeof===Ts||e.$$typeof===Ls||e.$$typeof===Is||e.$$typeof===Ms||e.$$typeof===Fs||e.$$typeof===js||e.$$typeof===zs||e.$$typeof===Ns)},Ss.typeOf=Hs,xs.exports=Ss;var $s=xs.exports,Vs={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Gs={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ws={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Us={};function Ys(e){return $s.isMemo(e)?Ws:Us[e.$$typeof]||Vs}Us[$s.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Us[$s.Memo]=Ws;var Ks=Object.defineProperty,Xs=Object.getOwnPropertyNames,Js=Object.getOwnPropertySymbols,Zs=Object.getOwnPropertyDescriptor,Qs=Object.getPrototypeOf,el=Object.prototype;var tl=function e(t,r,n){if("string"!=typeof r){if(el){var o=Qs(r);o&&o!==el&&e(t,o,n)}var i=Xs(r);Js&&(i=i.concat(Js(r)));for(var a=Ys(t),s=Ys(r),l=0;l<i.length;++l){var u=i[l];if(!(Gs[u]||n&&n[u]||s&&s[u]||a&&a[u])){var c=Zs(r,u);try{Ks(t,u,c)}catch(e){}}}}return t},rl=At(tl);function nl(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).defaultTheme;return function(t){var r=x.forwardRef((function(r,n){var o=r.innerRef,i=Cr(r,["innerRef"]),a=is()||e;return x.createElement(t,Et({theme:a,ref:o||n},i))}));return rl(r,t),r}}var ol=nl(),il=Object.freeze({__proto__:null,ServerStyleSheets:bs,StylesContext:ds,StylesProvider:ps,ThemeProvider:function(e){var t=e.children,r=e.theme,n=is(),o=x.useMemo((function(){var e=null===n?r:function(e,t){return"function"==typeof t?t(e):Et({},e,t)}(n,r);return null!=e&&(e[ao]=null!==n),e}),[r,n]);return x.createElement(os.Provider,{value:o},t)},createGenerateClassName:lo,createStyles:function(e){return e},getThemeProps:uo,jssPreset:Qa,makeStyles:gs,mergeClasses:es,sheetsManager:us,styled:function(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.name,i=Cr(n,["name"]),a=o,s=gs("function"==typeof t?function(e){return{root:function(r){return t(Et({theme:e},r))}}}:{root:t},Et({Component:e,name:o||e.displayName,classNamePrefix:a},i));t.filterProps&&(r=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var l=x.forwardRef((function(t,n){var o,i,a,l=t.children,u=t.className,c=t.clone,d=t.component,p=Cr(t,["children","className","clone","component"]),f=ys(s(t).root,u),m=p;if(r&&(o=m,i=r,a={},Object.keys(o).forEach((function(e){-1===i.indexOf(e)&&(a[e]=o[e])})),m=a),c)return x.cloneElement(l,Et({className:ys(l.props.className,f)},m));if("function"==typeof l)return l(Et({className:f},m));var h=d||e;return x.createElement(h,Et({ref:n,className:f},m),l)}));return rl(l,e),l}},useTheme:is,withStyles:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){var n=t.defaultTheme,o=t.withTheme,i=void 0!==o&&o,a=t.name,s=Cr(t,["defaultTheme","withTheme","name"]),l=a,u=gs(e,Et({defaultTheme:n,Component:r,name:a||r.displayName,classNamePrefix:l},s)),c=x.forwardRef((function(e,t){e.classes;var o,s=e.innerRef,l=Cr(e,["classes","innerRef"]),c=u(Et({},r.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=is()||n,a&&(d=uo({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),x.createElement(r,Et({ref:s||t,classes:c},d))}));return rl(c,r),c}},withTheme:ol,withThemeCreator:nl});
17
+ /** @license Material-UI v4.11.5
18
+ *
14
19
  * This source code is licensed under the MIT license found in the
15
20
  * LICENSE file in the root directory of this source tree.
16
- */
17
- function $i(e,t){let r;return r=t?Ni(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Ni(e),r}function Vi(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function Wi(e,t){return Vi(e,t)}Bi.propTypes={defaultTheme:At.object,styles:At.oneOfType([At.array,At.string,At.object,At.func])};var Gi=Object.freeze({__proto__:null,GlobalStyles:Bi,StyledEngineProvider:Hi,ThemeContext:Di,css:_i,default:$i,internal_mutateStyles:Vi,internal_processStyles:Wi,internal_serializeStyles:function(e){return e},keyframes:zi});function Ui(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Yi(e){if(S.isValidElement(e)||!Ui(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Yi(e[r])})),t}function Ki(e,t,r={clone:!0}){const n=r.clone?wt({},e):e;return Ui(e)&&Ui(t)&&Object.keys(t).forEach((o=>{S.isValidElement(t[o])?n[o]=t[o]:Ui(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ui(e[o])?n[o]=Ki(e[o],t[o],r):r.clone?n[o]=Ui(t[o])?Yi(t[o]):t[o]:n[o]=t[o]})),n}var Xi={exports:{}},Ji={},Zi=Symbol.for("react.transitional.element"),Qi=Symbol.for("react.portal"),ea=Symbol.for("react.fragment"),ta=Symbol.for("react.strict_mode"),ra=Symbol.for("react.profiler"),na=Symbol.for("react.consumer"),oa=Symbol.for("react.context"),ia=Symbol.for("react.forward_ref"),aa=Symbol.for("react.suspense"),sa=Symbol.for("react.suspense_list"),la=Symbol.for("react.memo"),ua=Symbol.for("react.lazy"),ca=Symbol.for("react.offscreen"),da=Symbol.for("react.client.reference");function pa(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Zi:switch(e=e.type){case ea:case ra:case ta:case aa:case sa:return e;default:switch(e=e&&e.$$typeof){case oa:case ia:case ua:case la:case na:return e;default:return t}}case Qi:return t}}}Ji.ContextConsumer=na,Ji.ContextProvider=oa,Ji.Element=Zi,Ji.ForwardRef=ia,Ji.Fragment=ea,Ji.Lazy=ua,Ji.Memo=la,Ji.Portal=Qi,Ji.Profiler=ra,Ji.StrictMode=ta,Ji.Suspense=aa,Ji.SuspenseList=sa,Ji.isContextConsumer=function(e){return pa(e)===na},Ji.isContextProvider=function(e){return pa(e)===oa},Ji.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Zi},Ji.isForwardRef=function(e){return pa(e)===ia},Ji.isFragment=function(e){return pa(e)===ea},Ji.isLazy=function(e){return pa(e)===ua},Ji.isMemo=function(e){return pa(e)===la},Ji.isPortal=function(e){return pa(e)===Qi},Ji.isProfiler=function(e){return pa(e)===ra},Ji.isStrictMode=function(e){return pa(e)===ta},Ji.isSuspense=function(e){return pa(e)===aa},Ji.isSuspenseList=function(e){return pa(e)===sa},Ji.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===ea||e===ra||e===ta||e===aa||e===sa||e===ca||"object"==typeof e&&null!==e&&(e.$$typeof===ua||e.$$typeof===la||e.$$typeof===oa||e.$$typeof===na||e.$$typeof===ia||e.$$typeof===da||void 0!==e.getModuleId)},Ji.typeOf=pa,Xi.exports=Ji;var fa=Xi.exports;function ma(e){if("string"!=typeof e)throw new Error(Qr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ha(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function ga(e){return e&&e.ownerDocument||document}function ba(e){return ga(e).defaultView||window}function va(e,t){"function"==typeof e?e(t):e&&(e.current=t)}const ya="undefined"!=typeof window?S.useLayoutEffect:S.useEffect;function xa(e){const t=S.useRef(e);return ya((()=>{t.current=e})),S.useRef(((...e)=>(0,t.current)(...e))).current}function Sa(...e){return S.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{va(e,t)}))}),e)}function wa(e,t){const r=wt({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=wt({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=wt({},i),Object.keys(o).forEach((e=>{r[n][e]=wa(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function Ea(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}function Ca(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Ca(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ra(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Ca(e))&&(n&&(n+=" "),n+=t);return n}const Oa=["values","unit","step"];function Pa(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Mt(e,Oa),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>wt({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return wt({keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const Aa={borderRadius:4};function Ia(e,t){return t?Ki(e,t,{clone:!1}):e}const Da={xs:0,sm:600,md:900,lg:1200,xl:1536},Ma={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Da[e]}px)`};function La(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Ma;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Ma;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Da).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function ka(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Ta(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:ka(e,r)||n,t&&(o=t(o,n,e)),o}function _a(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=ka(e.theme,n)||{};return La(e,i,(e=>{let n=Ta(a,o,e);return e===n&&"string"==typeof e&&(n=Ta(a,o,`${t}${"default"===e?"":ma(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const ja={m:"margin",p:"padding"},qa={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Na={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Fa=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Na[e])return[e];e=Na[e]}const[t,r]=e.split(""),n=ja[t],o=qa[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),za=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ha=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Ba(e,t,r,n){var o;const i=null!=(o=ka(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function $a(e){return Ba(e,"spacing",8)}function Va(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function Wa(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Va(t,r),e)),{})}(Fa(r),n);return La(e,e[r],o)}function Ga(e,t){const r=$a(e.theme);return Object.keys(e).map((n=>Wa(e,t,n,r))).reduce(Ia,{})}function Ua(e){return Ga(e,za)}function Ya(e){return Ga(e,Ha)}function Ka(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?Ia(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Xa(e){return"number"!=typeof e?e:`${e}px solid`}function Ja(e,t){return _a({prop:e,themeKey:"borders",transform:t})}Ua.propTypes={},Ua.filterProps=za,Ya.propTypes={},Ya.filterProps=Ha;const Za=Ja("border",Xa),Qa=Ja("borderTop",Xa),es=Ja("borderRight",Xa),ts=Ja("borderBottom",Xa),rs=Ja("borderLeft",Xa),ns=Ja("borderColor"),os=Ja("borderTopColor"),is=Ja("borderRightColor"),as=Ja("borderBottomColor"),ss=Ja("borderLeftColor"),ls=Ja("outline",Xa),us=Ja("outlineColor"),cs=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Ba(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Va(t,e)});return La(e,e.borderRadius,r)}return null};cs.propTypes={},cs.filterProps=["borderRadius"],Ka(Za,Qa,es,ts,rs,ns,os,is,as,ss,cs,ls,us);const ds=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Ba(e.theme,"spacing",8),r=e=>({gap:Va(t,e)});return La(e,e.gap,r)}return null};ds.propTypes={},ds.filterProps=["gap"];const ps=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Ba(e.theme,"spacing",8),r=e=>({columnGap:Va(t,e)});return La(e,e.columnGap,r)}return null};ps.propTypes={},ps.filterProps=["columnGap"];const fs=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Ba(e.theme,"spacing",8),r=e=>({rowGap:Va(t,e)});return La(e,e.rowGap,r)}return null};fs.propTypes={},fs.filterProps=["rowGap"];function ms(e,t){return"grey"===t?t:e}Ka(ds,ps,fs,_a({prop:"gridColumn"}),_a({prop:"gridRow"}),_a({prop:"gridAutoFlow"}),_a({prop:"gridAutoColumns"}),_a({prop:"gridAutoRows"}),_a({prop:"gridTemplateColumns"}),_a({prop:"gridTemplateRows"}),_a({prop:"gridTemplateAreas"}),_a({prop:"gridArea"}));function hs(e){return e<=1&&0!==e?100*e+"%":e}Ka(_a({prop:"color",themeKey:"palette",transform:ms}),_a({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ms}),_a({prop:"backgroundColor",themeKey:"palette",transform:ms}));const gs=_a({prop:"width",transform:hs}),bs=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||Da[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:hs(t)}};return La(e,e.maxWidth,t)}return null};bs.filterProps=["maxWidth"];const vs=_a({prop:"minWidth",transform:hs}),ys=_a({prop:"height",transform:hs}),xs=_a({prop:"maxHeight",transform:hs}),Ss=_a({prop:"minHeight",transform:hs});_a({prop:"size",cssProperty:"width",transform:hs}),_a({prop:"size",cssProperty:"height",transform:hs});Ka(gs,bs,vs,ys,xs,Ss,_a({prop:"boxSizing"}));const ws={border:{themeKey:"borders",transform:Xa},borderTop:{themeKey:"borders",transform:Xa},borderRight:{themeKey:"borders",transform:Xa},borderBottom:{themeKey:"borders",transform:Xa},borderLeft:{themeKey:"borders",transform:Xa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Xa},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:cs},color:{themeKey:"palette",transform:ms},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ms},backgroundColor:{themeKey:"palette",transform:ms},p:{style:Ya},pt:{style:Ya},pr:{style:Ya},pb:{style:Ya},pl:{style:Ya},px:{style:Ya},py:{style:Ya},padding:{style:Ya},paddingTop:{style:Ya},paddingRight:{style:Ya},paddingBottom:{style:Ya},paddingLeft:{style:Ya},paddingX:{style:Ya},paddingY:{style:Ya},paddingInline:{style:Ya},paddingInlineStart:{style:Ya},paddingInlineEnd:{style:Ya},paddingBlock:{style:Ya},paddingBlockStart:{style:Ya},paddingBlockEnd:{style:Ya},m:{style:Ua},mt:{style:Ua},mr:{style:Ua},mb:{style:Ua},ml:{style:Ua},mx:{style:Ua},my:{style:Ua},margin:{style:Ua},marginTop:{style:Ua},marginRight:{style:Ua},marginBottom:{style:Ua},marginLeft:{style:Ua},marginX:{style:Ua},marginY:{style:Ua},marginInline:{style:Ua},marginInlineStart:{style:Ua},marginInlineEnd:{style:Ua},marginBlock:{style:Ua},marginBlockStart:{style:Ua},marginBlockEnd:{style:Ua},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ds},rowGap:{style:fs},columnGap:{style:ps},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:hs},maxWidth:{style:bs},minWidth:{transform:hs},height:{transform:hs},maxHeight:{transform:hs},minHeight:{transform:hs},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Es=function(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=ka(r,s)||{};if(u)return u(o);return La(o,t,(t=>{let r=Ta(c,l,t);return t===r&&"string"==typeof t&&(r=Ta(c,l,`${e}${"default"===t?"":ma(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=null!=(n=i.unstable_sxConfig)?n:ws;function s(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),s=Object.keys(o);let l=o;return Object.keys(n).forEach((r=>{const o=(s=n[r],u=i,"function"==typeof s?s(u):s);var s,u;if(null!=o)if("object"==typeof o)if(a[r])l=Ia(l,e(r,o,i,a));else{const e=La({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?l=Ia(l,e):l[r]=t({sx:o,theme:i})}else l=Ia(l,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(o)?o.map(s):s(o)}}();function Cs(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}Es.filterProps=["sx"];const Rs=["breakpoints","palette","spacing","shape"];function Os(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Mt(e,Rs),s=Pa(r),l=function(e=8){if(e.mui)return e;const t=$a({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=Ki({breakpoints:s,direction:"ltr",components:{},palette:wt({mode:"light"},n),spacing:l,shape:wt({},Aa,i)},a);return u.applyStyles=Cs,u=t.reduce(((e,t)=>Ki(e,t)),u),u.unstable_sxConfig=wt({},ws,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Es({sx:e,theme:this})},u}function Ps(e=null){const t=S.useContext(Di);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const As=Os();function Is(e=As){return Ps(e)}function Ds({styles:e,themeId:t,defaultTheme:r={}}){const n=Is(r),o="function"==typeof e?e(t&&n[t]||n):e;return nr.jsx(Bi,{styles:o})}const Ms=["sx"];function Ls(e){const{sx:t}=e,r=Mt(e,Ms),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:ws;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return Ui(r)?wt({},n,r):n}:wt({},n,t),wt({},o,{sx:i})}const ks=["className","component"];const Ts=["ownerState"],_s=["variants"],js=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function qs(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Ns=Os(),Fs=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function zs({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Hs(e){return e?(t,r)=>r[e]:null}function Bs(e,t){let{ownerState:r}=t,n=Mt(t,Ts);const o="function"==typeof e?e(wt({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>Bs(e,wt({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=Mt(o,_s);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(wt({ownerState:r},n)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(wt({ownerState:r},n)):e.style))})),t}return o}function $s(e){const{theme:t,name:r,props:n}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?wa(t.components[r].defaultProps,n):n}function Vs(e,t=0,r=1){return function(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}(e,t,r)}function Ws(e){if(e.type)return e;if("#"===e.charAt(0))return Ws(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(Qr(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(Qr(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Gs(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function Us(e){let t="hsl"===(e=Ws(e)).type||"hsla"===e.type?Ws(function(e){e=Ws(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Gs({type:s,values:l})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ys(e,t){return e=Ws(e),t=Vs(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Gs(e)}function Ks(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Xs(e){if(S.isValidElement(e)||!Ks(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Xs(e[r])})),t}function Js(e,t,r={clone:!0}){const n=r.clone?wt({},e):e;return Ks(e)&&Ks(t)&&Object.keys(t).forEach((o=>{S.isValidElement(t[o])?n[o]=t[o]:Ks(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Ks(e[o])?n[o]=Js(e[o],t[o],r):r.clone?n[o]=Ks(t[o])?Xs(t[o]):t[o]:n[o]=t[o]})),n}var Zs=Object.freeze({__proto__:null,default:Js,isPlainObject:Ks});function Qs(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 el=Object.freeze({__proto__:null,default:Qs});const tl=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function rl(e){const t=`${e}`.match(tl);return t&&t[1]||""}function nl(e,t=""){return e.displayName||e.name||rl(e)||t}function ol(e,t,r){const n=nl(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var il=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return nl(e,"Component");if("object"==typeof e)switch(e.$$typeof){case fa.ForwardRef:return ol(e,e.render,"ForwardRef");case fa.Memo:return ol(e,e.type,"memo");default:return}}},getFunctionName:rl});function al(e){if("string"!=typeof e)throw new Error(Qs(7));return e.charAt(0).toUpperCase()+e.slice(1)}var sl=Object.freeze({__proto__:null,default:al});const ll="undefined"!=typeof window?S.useLayoutEffect:S.useEffect;function ul(e){const t=S.useRef(e);return ll((()=>{t.current=e})),S.useRef(((...e)=>(0,t.current)(...e))).current}function cl(...e){return S.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}const dl={};const pl=[];let fl=class e{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new e}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}};function ml(){const e=function(e,t){const r=S.useRef(dl);return r.current===dl&&(r.current=e(t)),r}(fl.create).current;return function(e){S.useEffect(e,pl)}(e.disposeEffect),e}let hl=!0,gl=!1;const bl=new fl,vl={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function yl(e){e.metaKey||e.altKey||e.ctrlKey||(hl=!0)}function xl(){hl=!1}function Sl(){"hidden"===this.visibilityState&&gl&&(hl=!0)}function wl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return hl||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!vl[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function El(){const e=S.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",yl,!0),t.addEventListener("mousedown",xl,!0),t.addEventListener("pointerdown",xl,!0),t.addEventListener("touchstart",xl,!0),t.addEventListener("visibilitychange",Sl,!0))}),[]),t=S.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!wl(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(gl=!0,bl.start(100,(()=>{gl=!1})),t.current=!1,!0)},ref:e}}function Cl(e,t){const r=wt({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=wt({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=wt({},i),Object.keys(o).forEach((e=>{r[n][e]=Cl(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function Rl(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}const Ol=e=>e,Pl=(()=>{let e=Ol;return{configure(t){e=t},generate:t=>e(t),reset(){e=Ol}}})(),Al={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Il(e,t,r="Mui"){const n=Al[t];return n?`${r}-${n}`:`${Pl.generate(e)}-${t}`}function Dl(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=Il(e,t,r)})),n}function Ml(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var Ll=Object.freeze({__proto__:null,default:Ml});function kl(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Tl(e){if(!kl(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Tl(e[r])})),t}function _l(e,t,r={clone:!0}){const n=r.clone?wt({},e):e;return kl(e)&&kl(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(kl(t[o])&&o in e&&kl(e[o])?n[o]=_l(e[o],t[o],r):r.clone?n[o]=kl(t[o])?Tl(t[o]):t[o]:n[o]=t[o])})),n}function jl(e){if("string"!=typeof e)throw new Error(Kr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ql(e){return e&&e.ownerDocument||document}function Nl(e){return ql(e).defaultView||window}const Fl="undefined"!=typeof window?S.useLayoutEffect:S.useEffect;let zl=0;const Hl=S["useId".toString()];function Bl(e){if(void 0!==Hl){return Hl()}return function(e){const[t,r]=S.useState(e),n=t;return S.useEffect((()=>{null==t&&(zl+=1,r(`mui-${zl}`))}),[t]),n}(e)}function $l({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=S.useRef(void 0!==e),[i,a]=S.useState(t);return[o?e:i,S.useCallback((e=>{o||a(e)}),[])]}function Vl(e){const t=S.useRef(e);return Fl((()=>{t.current=e})),S.useRef(((...e)=>(0,t.current)(...e))).current}function Wl(...e){return S.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}class Gl{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new Gl}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let Ul=!0,Yl=!1;const Kl=new Gl,Xl={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Jl(e){e.metaKey||e.altKey||e.ctrlKey||(Ul=!0)}function Zl(){Ul=!1}function Ql(){"hidden"===this.visibilityState&&Yl&&(Ul=!0)}function eu(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Ul||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Xl[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function tu(){const e=S.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Jl,!0),t.addEventListener("mousedown",Zl,!0),t.addEventListener("pointerdown",Zl,!0),t.addEventListener("touchstart",Zl,!0),t.addEventListener("visibilitychange",Ql,!0))}),[]),t=S.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!eu(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Yl=!0,Kl.start(100,(()=>{Yl=!1})),t.current=!1,!0)},ref:e}}function ru(e,t){const r=wt({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=wt({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=wt({},i),Object.keys(o).forEach((e=>{r[n][e]=ru(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const nu=e=>e,ou=(()=>{let e=nu;return{configure(t){e=t},generate:t=>e(t),reset(){e=nu}}})(),iu={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function au(e,t,r="Mui"){const n=iu[t];return n?`${r}-${n}`:`${ou.generate(e)}-${t}`}function su(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=au(e,t,r)})),n}const lu=["mode","contrastThreshold","tonalOffset"],uu={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:hr.white,default:hr.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},cu={text:{primary:hr.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:hr.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function du(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=function(e,t){if(e=Ws(e),t=Vs(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Gs(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Ws(e),t=Vs(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Gs(e)}(e.main,i)))}function pu(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Zr(e,lu),i=e.primary||function(e="light"){return"dark"===e?{main:Ar,light:Pr,dark:Ir}:{main:Dr,light:Ir,dark:Mr}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:wr,light:Sr,dark:Cr}:{main:Rr,light:Er,dark:Or}}(t),s=e.error||function(e="light"){return"dark"===e?{main:vr,light:gr,dark:yr}:{main:yr,light:br,dark:xr}}(t),l=e.info||function(e="light"){return"dark"===e?{main:kr,light:Lr,dark:_r}:{main:_r,light:Tr,dark:jr}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Nr,light:qr,dark:zr}:{main:Hr,light:Fr,dark:Br}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Vr,light:$r,dark:Gr}:{main:"#ed6c02",light:Wr,dark:Ur}}(t);function d(e){const t=function(e,t){const r=Us(e),n=Us(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,cu.text.primary)>=r?cu.text.primary:uu.text.primary;return t}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Jr({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Kr(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Kr(12,t?` (${t})`:"",JSON.stringify(e.main)));return du(e,"light",o,n),du(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:cu,light:uu};return _l(Jr({common:Jr({},hr),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:Yr,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const fu=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const mu={textTransform:"uppercase"},hu='"Roboto", "Helvetica", "Arial", sans-serif';function gu(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=hu,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Zr(r,fu),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return Jr({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===hu?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(s,14,1.75,.4,mu),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,mu),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return _l(Jr({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function bu(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const vu=["none",bu(0,2,1,-1,0,1,1,0,0,1,3,0),bu(0,3,1,-2,0,2,2,0,0,1,5,0),bu(0,3,3,-2,0,3,4,0,0,1,8,0),bu(0,2,4,-1,0,4,5,0,0,1,10,0),bu(0,3,5,-1,0,5,8,0,0,1,14,0),bu(0,3,5,-1,0,6,10,0,0,1,18,0),bu(0,4,5,-2,0,7,10,1,0,2,16,1),bu(0,5,5,-3,0,8,10,1,0,3,14,2),bu(0,5,6,-3,0,9,12,1,0,3,16,2),bu(0,6,6,-3,0,10,14,1,0,4,18,3),bu(0,6,7,-4,0,11,15,1,0,4,20,3),bu(0,7,8,-4,0,12,17,2,0,5,22,4),bu(0,7,8,-4,0,13,19,2,0,5,24,4),bu(0,7,9,-4,0,14,21,2,0,5,26,4),bu(0,8,9,-5,0,15,22,2,0,6,28,5),bu(0,8,10,-5,0,16,24,2,0,6,30,5),bu(0,8,11,-5,0,17,26,2,0,6,32,5),bu(0,9,11,-5,0,18,28,2,0,7,34,6),bu(0,9,12,-6,0,19,29,2,0,7,36,6),bu(0,10,13,-6,0,20,31,3,0,8,38,7),bu(0,10,13,-6,0,21,33,3,0,8,40,7),bu(0,10,14,-6,0,22,35,3,0,8,42,7),bu(0,11,14,-7,0,23,36,3,0,9,44,8),bu(0,11,15,-7,0,24,38,3,0,9,46,8)],yu=["duration","easing","delay"],xu={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Su={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function wu(e){return`${Math.round(e)}ms`}function Eu(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Cu(e){const t=Jr({},xu,e.easing),r=Jr({},Su,e.duration);return Jr({getAutoHeightDuration:Eu,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Zr(n,yu),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:wu(o)} ${i} ${"string"==typeof a?a:wu(a)}`)).join(",")}},e,{easing:t,duration:r})}const Ru={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ou=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Pu(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Zr(e,Ou);if(e.vars)throw new Error(Kr(18));const s=pu(n),l=Os(e);let u=_l(l,{mixins:(c=l.breakpoints,d=r,Jr({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:vu.slice(),typography:gu(s,i),transitions:Cu(o),zIndex:Jr({},Ru),applyDarkStyles(e){if(this.vars){const t=this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)");return{[t]:e}}return"dark"===this.palette.mode?e:{}}});var c,d;return u=_l(u,a),u=t.reduce(((e,t)=>_l(e,t)),u),u.unstable_sxConfig=Jr({},ws,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Es({sx:e,theme:this})},u}const Au=Pu();function Iu(){const e=Is(Au);return e[Xr]||e}function Du({props:e,name:t}){return function({props:e,name:t,defaultTheme:r,themeId:n}){let o=Is(r);return o=o[n]||o,$s({theme:o,name:t,props:e})}({props:e,name:t,defaultTheme:Au,themeId:Xr})}const Mu=e=>qs(e)&&"classes"!==e,Lu=qs,ku=function(e={}){const{themeId:t,defaultTheme:r=Ns,rootShouldForwardProp:n=qs,slotShouldForwardProp:o=qs}=e,i=e=>Es(wt({},e,{theme:zs(wt({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{Wi(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Hs(Fs(l))}=a,p=Mt(a,js),f=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let h=qs;"Root"===l||"root"===l?h=n:l?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=$i(e,wt({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||Ui(e)?n=>Bs(e,wt({},n,{theme:zs({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const l=o?o.map(b):[];s&&d&&l.push((e=>{const n=zs(wt({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const o=n.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=Bs(r,wt({},e,{theme:n}))})),d(e,i)})),s&&!f&&l.push((e=>{var n;const o=zs(wt({},e,{defaultTheme:r,themeId:t}));return Bs({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},wt({},e,{theme:o}))})),m||l.push(i);const u=l.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:Xr,defaultTheme:Au,rootShouldForwardProp:Mu}),Tu=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function _u(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=_u(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ju(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=_u(e))&&(n&&(n+=" "),n+=t);return n}function qu(e){return au("MuiSvgIcon",e)}su("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Nu=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Fu=ku("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${jl(r.color)}`],t[`fontSize${jl(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,s,l,u,c,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),zu=S.forwardRef((function(e,t){const r=Du({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=r,p=Zr(r,Nu),f=S.isValidElement(n)&&"svg"===n.type,m=Jr({},r,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),h={};u||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return Ea({root:["root","inherit"!==t&&`color${jl(t)}`,`fontSize${jl(r)}`]},qu,n)})(m);return nr.jsxs(Fu,Jr({as:a,className:ju(g.root,o),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,f&&n.props,{ownerState:m,children:[f?n.props.children:n,c?nr.jsx("title",{children:c}):null]}))}));zu.muiName="SvgIcon";var Hu,Bu={},$u=Symbol.for("react.element"),Vu=Symbol.for("react.portal"),Wu=Symbol.for("react.fragment"),Gu=Symbol.for("react.strict_mode"),Uu=Symbol.for("react.profiler"),Yu=Symbol.for("react.provider"),Ku=Symbol.for("react.context"),Xu=Symbol.for("react.server_context"),Ju=Symbol.for("react.forward_ref"),Zu=Symbol.for("react.suspense"),Qu=Symbol.for("react.suspense_list"),ec=Symbol.for("react.memo"),tc=Symbol.for("react.lazy"),rc=Symbol.for("react.offscreen");
21
+ */const al={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"},sl={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",...al,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)"},ll=12,ul=14,cl=16,dl=24,pl=3,fl=300,ml=400,hl=600,gl=700,bl={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Sr(sl.GREYSCALE_0,.05),Sr(sl.GREEN_PALE,.5),Sr(sl.BLUE_PALE,.5),Sr(sl.GREEN_PALE,.5),Sr(sl.BLUE_PALE,.5),Sr(sl.GREEN_PALE,.5),Sr(sl.BLUE_PALE,.5);Sr(sl.GREEN_PALE,.5),Sr(sl.BLUE_PALE,.5),Sr(sl.GREEN_PALE,.5),Sr(sl.BLUE_PALE,.5);var vl={exports:{}},yl={},xl=x,Sl=Symbol.for("react.element"),El=Symbol.for("react.fragment"),Cl=Object.prototype.hasOwnProperty,wl=xl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Rl={key:!0,ref:!0,__self:!0,__source:!0};function Al(e,t,r){var n,o={},i=null,a=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Cl.call(t,n)&&!Rl.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:Sl,type:e,key:i,ref:a,props:o,_owner:wl.current}}yl.Fragment=El,yl.jsx=Al,yl.jsxs=Al,vl.exports=yl;var Dl,Ll=vl.exports;function Il(){return Il=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Il.apply(null,arguments)}var ql,Pl=function(e){return S.createElement("svg",Il({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Dl||(Dl=S.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Ml(){return Ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ml.apply(null,arguments)}var _l=function(e){return S.createElement("svg",Ml({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),ql||(ql=S.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function kl({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Ll.jsx("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})}function Tl(e={}){return Ll.jsx(kl,{...e,children:Ll.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Ll.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Ll.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function Ol(e={}){return Ll.jsx(kl,{...e,children:Ll.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Ll.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Ll.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Ll.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function Nl(e={}){return Ll.jsx(kl,{fontSize:"medium",...e,children:Ll.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Ll.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Ll.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function Fl(e={}){return Ll.jsx(kl,{fontSize:"medium",...e,children:Ll.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Ll.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Ll.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function jl({className:e}){return Ll.jsx(kl,{fontSize:"small",className:e,children:Ll.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Ll.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Ll.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Ll.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Ll.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Ll.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}Ll.jsx(_l,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Ll.jsx(Pl,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Ll.jsx(Nl,{}),Ll.jsx(Fl,{}),Ll.jsx((function(e={}){return Ll.jsx(kl,{...e,children:Ll.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Ll.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Ll.jsx("rect",{stroke:"#000000",fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}),{}),Ll.jsx(Tl,{}),Ll.jsx(Ol,{}),Ll.jsx(Pl,{style:{color:sl.TEXT_PRIMARY},"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16});const zl={black:"#000",white:"#fff"},Hl="#e57373",Bl="#ef5350",$l="#f44336",Vl="#d32f2f",Gl="#c62828",Wl="#f3e5f5",Ul="#ce93d8",Yl="#ba68c8",Kl="#ab47bc",Xl="#9c27b0",Jl="#7b1fa2",Zl="#e3f2fd",Ql="#90caf9",eu="#42a5f5",tu="#1976d2",ru="#1565c0",nu="#4fc3f7",ou="#29b6f6",iu="#03a9f4",au="#0288d1",su="#01579b",lu="#81c784",uu="#66bb6a",cu="#4caf50",du="#388e3c",pu="#2e7d32",fu="#1b5e20",mu="#ffb74d",hu="#ffa726",gu="#ff9800",bu="#f57c00",vu="#e65100",yu={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 xu(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 Su=Object.freeze({__proto__:null,default:xu}),Eu="$$material";function Cu(){return Cu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cu.apply(this,arguments)}function wu(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var Ru=function(){return Ru=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ru.apply(this,arguments)};function Au(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var Du=function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var u=i[l];if(!s(u))return!1;var c=e[u],d=t[u];if(!1===(o=r?r.call(n,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0},Lu=At(Du),Iu="-ms-",qu="-moz-",Pu="-webkit-",Mu="comm",_u="rule",ku="decl",Tu="@keyframes",Ou=Math.abs,Nu=String.fromCharCode,Fu=Object.assign;function ju(e){return e.trim()}function zu(e,t){return(e=t.exec(e))?e[0]:e}function Hu(e,t,r){return e.replace(t,r)}function Bu(e,t,r){return e.indexOf(t,r)}function $u(e,t){return 0|e.charCodeAt(t)}function Vu(e,t,r){return e.slice(t,r)}function Gu(e){return e.length}function Wu(e){return e.length}function Uu(e,t){return t.push(e),e}function Yu(e,t){return e.filter((function(e){return!zu(e,t)}))}var Ku=1,Xu=1,Ju=0,Zu=0,Qu=0,ec="";function tc(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Ku,column:Xu,length:a,return:"",siblings:s}}function rc(e,t){return Fu(tc("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function nc(e){for(;e.root;)e=rc(e.root,{children:[e]});Uu(e,e.siblings)}function oc(){return Qu=Zu<Ju?$u(ec,Zu++):0,Xu++,10===Qu&&(Xu=1,Ku++),Qu}function ic(){return $u(ec,Zu)}function ac(){return Zu}function sc(e,t){return Vu(ec,e,t)}function lc(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 uc(e){return ju(sc(Zu-1,pc(91===e?e+2:40===e?e+1:e)))}function cc(e){for(;(Qu=ic())&&Qu<33;)oc();return lc(e)>2||lc(Qu)>3?"":" "}function dc(e,t){for(;--t&&oc()&&!(Qu<48||Qu>102||Qu>57&&Qu<65||Qu>70&&Qu<97););return sc(e,ac()+(t<6&&32==ic()&&32==oc()))}function pc(e){for(;oc();)switch(Qu){case e:return Zu;case 34:case 39:34!==e&&39!==e&&pc(Qu);break;case 40:41===e&&pc(e);break;case 92:oc()}return Zu}function fc(e,t){for(;oc()&&e+Qu!==57&&(e+Qu!==84||47!==ic()););return"/*"+sc(t,Zu-1)+"*"+Nu(47===e?e:oc())}function mc(e){for(;!lc(ic());)oc();return sc(e,Zu)}function hc(e){return function(e){return ec="",e}(gc("",null,null,null,[""],e=function(e){return Ku=Xu=1,Ju=Gu(ec=e),Zu=0,[]}(e),0,[0],e))}function gc(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,E=n,C=y;g;)switch(m=v,v=oc()){case 40:if(108!=m&&58==$u(C,d-1)){-1!=Bu(C+=Hu(uc(v),"&","&\f"),"&\f",Ou(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=uc(v);break;case 9:case 10:case 13:case 32:C+=cc(m);break;case 92:C+=dc(ac()-1,7);continue;case 47:switch(ic()){case 42:case 47:Uu(vc(fc(oc(),ac()),t,r,l),l);break;default:C+="/"}break;case 123*h:s[u++]=Gu(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=Hu(C,/\f/g,"")),f>0&&Gu(C)-d&&Uu(f>32?yc(C+";",n,r,d-1,l):yc(Hu(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(Uu(E=bc(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)gc(C,t,E,E,x,i,d,s,S);else switch(99===p&&110===$u(C,3)?100:p){case 100:case 108:case 109:case 115:gc(e,E,E,n&&Uu(bc(e,E,E,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S);break;default:gc(C,E,E,E,[""],S,0,s,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+Gu(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==(Qu=Zu>0?$u(ec,--Zu):0,Xu--,10===Qu&&(Xu=1,Ku--),Qu))continue;switch(C+=Nu(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(Gu(C)-1)*b,b=1;break;case 64:45===ic()&&(C+=uc(oc())),p=ic(),c=d=Gu(y=C+=mc(ac())),v++;break;case 45:45===m&&2==Gu(C)&&(h=0)}}return i}function bc(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],m=Wu(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=Vu(e,p+1,p=Ou(g=a[h])),x=e;v<m;++v)(x=ju(g>0?f[v]+" "+y:Hu(y,/&\f/g,f[v])))&&(l[b++]=x);return tc(e,t,r,0===o?_u:s,l,u,c,d)}function vc(e,t,r,n){return tc(e,t,r,Mu,Nu(Qu),Vu(e,2,-2),0,n)}function yc(e,t,r,n,o){return tc(e,t,r,ku,Vu(e,0,n),Vu(e,n+1,-1),n,o)}function xc(e,t,r){switch(function(e,t){return 45^$u(e,0)?(((t<<2^$u(e,0))<<2^$u(e,1))<<2^$u(e,2))<<2^$u(e,3):0}(e,t)){case 5103:return Pu+"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 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Pu+e+e;case 4789:return qu+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Pu+e+qu+e+Iu+e+e;case 5936:switch($u(e,t+11)){case 114:return Pu+e+Iu+Hu(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Pu+e+Iu+Hu(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Pu+e+Iu+Hu(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Pu+e+Iu+e+e;case 6165:return Pu+e+Iu+"flex-"+e+e;case 5187:return Pu+e+Hu(e,/(\w+).+(:[^]+)/,Pu+"box-$1$2"+Iu+"flex-$1$2")+e;case 5443:return Pu+e+Iu+"flex-item-"+Hu(e,/flex-|-self/g,"")+(zu(e,/flex-|baseline/)?"":Iu+"grid-row-"+Hu(e,/flex-|-self/g,""))+e;case 4675:return Pu+e+Iu+"flex-line-pack"+Hu(e,/align-content|flex-|-self/g,"")+e;case 5548:return Pu+e+Iu+Hu(e,"shrink","negative")+e;case 5292:return Pu+e+Iu+Hu(e,"basis","preferred-size")+e;case 6060:return Pu+"box-"+Hu(e,"-grow","")+Pu+e+Iu+Hu(e,"grow","positive")+e;case 4554:return Pu+Hu(e,/([^-])(transform)/g,"$1"+Pu+"$2")+e;case 6187:return Hu(Hu(Hu(e,/(zoom-|grab)/,Pu+"$1"),/(image-set)/,Pu+"$1"),e,"")+e;case 5495:case 3959:return Hu(e,/(image-set\([^]*)/,Pu+"$1$`$1");case 4968:return Hu(Hu(e,/(.+:)(flex-)?(.*)/,Pu+"box-pack:$3"+Iu+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Pu+e+e;case 4200:if(!zu(e,/flex-|baseline/))return Iu+"grid-column-align"+Vu(e,t)+e;break;case 2592:case 3360:return Iu+Hu(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,zu(e.props,/grid-\w+-end/)}))?~Bu(e+(r=r[t].value),"span",0)?e:Iu+Hu(e,"-start","")+e+Iu+"grid-row-span:"+(~Bu(r,"span",0)?zu(r,/\d+/):+zu(r,/\d+/)-+zu(e,/\d+/))+";":Iu+Hu(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return zu(e.props,/grid-\w+-start/)}))?e:Iu+Hu(Hu(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Hu(e,/(.+)-inline(.+)/,Pu+"$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(Gu(e)-1-t>6)switch($u(e,t+1)){case 109:if(45!==$u(e,t+4))break;case 102:return Hu(e,/(.+:)(.+)-([^]+)/,"$1"+Pu+"$2-$3$1"+qu+(108==$u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Bu(e,"stretch",0)?xc(Hu(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Hu(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,s){return Iu+r+":"+n+s+(o?Iu+r+"-span:"+(i?a:+a-+n)+s:"")+e}));case 4949:if(121===$u(e,t+6))return Hu(e,":",":"+Pu)+e;break;case 6444:switch($u(e,45===$u(e,14)?18:11)){case 120:return Hu(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Pu+(45===$u(e,14)?"inline-":"")+"box$3$1"+Pu+"$2$3$1"+Iu+"$2box$3")+e;case 100:return Hu(e,":",":"+Iu)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Hu(e,"scroll-","scroll-snap-")+e}return e}function Sc(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Ec(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ku:return e.return=e.return||e.value;case Mu:return"";case Tu:return e.return=e.value+"{"+Sc(e.children,n)+"}";case _u:if(!Gu(e.value=e.props.join(",")))return""}return Gu(r=Sc(e.children,n))?e.return=e.value+"{"+r+"}":""}function Cc(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case ku:return void(e.return=xc(e.value,e.length,r));case Tu:return Sc([rc(e,{value:Hu(e.value,"@","@"+Pu)})],n);case _u:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(zu(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":nc(rc(e,{props:[Hu(t,/:(read-\w+)/,":-moz-$1")]})),nc(rc(e,{props:[t]})),Fu(e,{props:Yu(r,n)});break;case"::placeholder":nc(rc(e,{props:[Hu(t,/:(plac\w+)/,":"+Pu+"input-$1")]})),nc(rc(e,{props:[Hu(t,/:(plac\w+)/,":-moz-$1")]})),nc(rc(e,{props:[Hu(t,/:(plac\w+)/,Iu+"input-$1")]})),nc(rc(e,{props:[t]})),Fu(e,{props:Yu(r,n)})}return""}))}}var wc={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans: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},Rc="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ac="active",Dc="data-styled-version",Lc="6.1.18",Ic="/*!sc*/\n",qc="undefined"!=typeof window&&"undefined"!=typeof document,Pc=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),Mc={},_c=Object.freeze([]),kc=Object.freeze({});function Tc(e,t,r){return void 0===r&&(r=kc),e.theme!==r.theme&&e.theme||t||r.theme}var Oc=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","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","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Nc=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Fc=/(^-|-$)/g;function jc(e){return e.replace(Nc,"-").replace(Fc,"")}var zc=/(a)(d)/gi,Hc=function(e){return String.fromCharCode(e+(e>25?39:97))};function Bc(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Hc(t%52)+r;return(Hc(t%52)+r).replace(zc,"$1-$2")}var $c,Vc=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Gc=function(e){return Vc(5381,e)};function Wc(e){return Bc(Gc(e)>>>0)}function Uc(e){return"string"==typeof e&&!0}var Yc="function"==typeof Symbol&&Symbol.for,Kc=Yc?Symbol.for("react.memo"):60115,Xc=Yc?Symbol.for("react.forward_ref"):60112,Jc={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Zc={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Qc={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ed=(($c={})[Xc]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},$c[Kc]=Qc,$c);function td(e){return("type"in(t=e)&&t.type.$$typeof)===Kc?Qc:"$$typeof"in e?ed[e.$$typeof]:Jc;var t}var rd=Object.defineProperty,nd=Object.getOwnPropertyNames,od=Object.getOwnPropertySymbols,id=Object.getOwnPropertyDescriptor,ad=Object.getPrototypeOf,sd=Object.prototype;function ld(e,t,r){if("string"!=typeof t){if(sd){var n=ad(t);n&&n!==sd&&ld(e,n,r)}var o=nd(t);od&&(o=o.concat(od(t)));for(var i=td(e),a=td(t),s=0;s<o.length;++s){var l=o[s];if(!(l in Zc||r&&r[l]||a&&l in a||i&&l in i)){var u=id(t,l);try{rd(e,l,u)}catch(e){}}}}return e}function ud(e){return"function"==typeof e}function cd(e){return"object"==typeof e&&"styledComponentId"in e}function dd(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function pd(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function fd(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function md(e,t,r){if(void 0===r&&(r=!1),!r&&!fd(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=md(e[n],t[n]);else if(fd(t))for(var n in t)e[n]=md(e[n],t[n]);return e}function hd(e,t){Object.defineProperty(e,"toString",{value:t})}function gd(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var bd=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw gd(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=(i=0,t.length);i<s;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(Ic);return t},e}(),vd=new Map,yd=new Map,xd=1,Sd=function(e){if(vd.has(e))return vd.get(e);for(;yd.has(xd);)xd++;var t=xd++;return vd.set(e,t),yd.set(t,e),t},Ed=function(e,t){xd=t+1,vd.set(e,t),yd.set(t,e)},Cd="style[".concat(Rc,"][").concat(Dc,'="').concat(Lc,'"]'),wd=new RegExp("^".concat(Rc,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Rd=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},Ad=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Ic),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var l=s.match(wd);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(Ed(c,u),Rd(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},Dd=function(e){for(var t=document.querySelectorAll(Cd),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Rc)!==Ac&&(Ad(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Ld=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Rc,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Rc,Ac),n.setAttribute(Dc,Lc);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Id=function(){function e(e){this.element=Ld(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}throw gd(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),qd=function(){function e(e){this.element=Ld(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Pd=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Md=qc,_d={isServer:!qc,useCSSOMInjection:!Pc},kd=function(){function e(e,t,r){void 0===e&&(e=kc),void 0===t&&(t={});var n=this;this.options=Ru(Ru({},_d),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&qc&&Md&&(Md=!1,Dd(this)),hd(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return yd.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(r);if(void 0===i||!i.size||0===a.length)return"continue";var s="".concat(Rc,".g").concat(r,'[id="').concat(o,'"]'),l="";void 0!==i&&i.forEach((function(e){e.length>0&&(l+="".concat(e,","))})),n+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(Ic)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return Sd(e)},e.prototype.rehydrate=function(){!this.server&&qc&&Dd(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(Ru(Ru({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new Pd(r):t?new Id(r):new qd(r)}(this.options),new bd(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(Sd(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(Sd(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Sd(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Td=/&/g,Od=/^\s*\/\/.*$/gm;function Nd(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Nd(e.children,t)),e}))}function Fd(e){var t,r,n,o=void 0===e?kc:e,i=o.options,a=void 0===i?kc:i,s=o.plugins,l=void 0===s?_c:s,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},c=l.slice();c.push((function(e){e.type===_u&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Td,r).replace(n,u))})),a.prefix&&c.push(Cc),c.push(Ec);var d=function(e,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var l=e.replace(Od,""),u=hc(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(u=Nd(u,a.namespace));var d,p=[];return Sc(u,function(e){var t=Wu(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=l.length?l.reduce((function(e,t){return t.name||gd(15),Vc(e,t.name)}),5381).toString():"",d}var jd=new kd,zd=Fd(),Hd=x.createContext({shouldForwardProp:void 0,styleSheet:jd,stylis:zd});Hd.Consumer;var Bd=x.createContext(void 0);function $d(){return E(Hd)}function Vd(e){var t=C(e.stylisPlugins),r=t[0],n=t[1],o=$d().styleSheet,i=w((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,o]),a=w((function(){return Fd({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})}),[e.enableVendorPrefixes,e.namespace,r]);R((function(){Lu(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]);var s=w((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}}),[e.shouldForwardProp,i,a]);return x.createElement(Hd.Provider,{value:s},x.createElement(Bd.Provider,{value:a},e.children))}var Gd=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=zd);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,hd(this,(function(){throw gd(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=zd),this.name+e.hash},e}(),Wd=function(e){return e>="A"&&e<="Z"};function Ud(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Wd(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Yd=function(e){return null==e||!1===e||""===e},Kd=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Yd(i)&&(Array.isArray(i)&&i.isCss||ud(i)?n.push("".concat(Ud(o),":"),i,";"):fd(i)?n.push.apply(n,Au(Au(["".concat(o," {")],Kd(i),!1),["}"],!1)):n.push("".concat(Ud(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in wc||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Xd(e,t,r,n){return Yd(e)?[]:cd(e)?[".".concat(e.styledComponentId)]:ud(e)?!ud(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Xd(e(t),t,r,n):e instanceof Gd?r?(e.inject(r,n),[e.getName(n)]):[e]:fd(e)?Kd(e):Array.isArray(e)?Array.prototype.concat.apply(_c,e.map((function(e){return Xd(e,t,r,n)}))):[e.toString()];var o}function Jd(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(ud(r)&&!cd(r))return!1}return!0}var Zd=Gc(Lc),Qd=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Jd(e),this.componentId=t,this.baseHash=Vc(Zd,t),this.baseStyle=r,kd.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=dd(n,this.staticRulesId);else{var o=pd(Xd(this.rules,e,t,r)),i=Bc(Vc(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=r(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}n=dd(n,i),this.staticRulesId=i}else{for(var s=Vc(this.baseHash,r.hash),l="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)l+=c;else if(c){var d=pd(Xd(c,e,t,r));s=Vc(s,d+u),l+=d}}if(l){var p=Bc(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(l,".".concat(p),void 0,this.componentId)),n=dd(n,p)}}return n},e}(),ep=x.createContext(void 0);ep.Consumer;var tp={};function rp(e,t,r){var n=cd(e),o=e,i=!Uc(e),a=t.attrs,s=void 0===a?_c:a,l=t.componentId,u=void 0===l?function(e,t){var r="string"!=typeof e?"sc":jc(e);tp[r]=(tp[r]||0)+1;var n="".concat(r,"-").concat(Wc(Lc+r+tp[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):l,c=t.displayName,d=void 0===c?function(e){return Uc(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(jc(t.displayName),"-").concat(t.componentId):t.componentId||u,f=n&&o.attrs?o.attrs.concat(s).filter(Boolean):s,m=t.shouldForwardProp;if(n&&o.shouldForwardProp){var h=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return h(e,t)&&g(e,t)}}else m=h}var b=new Qd(r,p,n?o.componentStyle:void 0);function v(e,t){return function(e,t,r){var n=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,s=e.styledComponentId,l=e.target,u=x.useContext(ep),c=$d(),d=e.shouldForwardProp||c.shouldForwardProp,p=Tc(t,u,i)||kc,f=function(e,t,r){for(var n,o=Ru(Ru({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=ud(n=e[i])?n(o):n;for(var s in a)o[s]="className"===s?dd(o[s],a[s]):"style"===s?Ru(Ru({},o[s]),a[s]):a[s]}return t.className&&(o.className=dd(o.className,t.className)),o}(n,t,p),m=f.as||l,h={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?h.as=f.forwardedAs:d&&!d(g,m)||(h[g]=f[g]));var b=function(e,t){var r=$d();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=dd(a,s);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),h[Uc(m)&&!Oc.has(m)?"class":"className"]=v,r&&(h.ref=r),A(m,h)}(y,e,t)}v.displayName=d;var y=x.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=m,y.foldedComponentIds=n?dd(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=n?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=n?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)md(e,o[n],!0);return e}({},o.defaultProps,e):e}}),hd(y,(function(){return".".concat(y.styledComponentId)})),i&&ld(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function np(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var op=function(e){return Object.assign(e,{isCss:!0})};function ip(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(ud(e)||fd(e))return op(Xd(np(_c,Au([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Xd(n):op(Xd(np(n,t)))}function ap(e,t,r){if(void 0===r&&(r=kc),!t)throw gd(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,ip.apply(void 0,Au([n],o,!1)))};return n.attrs=function(n){return ap(e,t,Ru(Ru({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return ap(e,t,Ru(Ru({},r),n))},n}var sp=function(e){return ap(rp,e)},lp=sp;Oc.forEach((function(e){lp[e]=sp(e)}));var up=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Jd(e),kd.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(pd(Xd(this.rules,t,r,n)),""),i=this.componentId+e;r.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&kd.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function cp(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=pd(ip.apply(void 0,Au([e],t,!1))),o=Wc(n);return new Gd(o,n)}function dp(e){const{injectFirst:t,children:r}=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 r}dp.propTypes={children:Pt.node,injectFirst:Pt.bool};const pp=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=ip.apply(void 0,Au([e],t,!1)),o="sc-global-".concat(Wc(JSON.stringify(n))),i=new up(n,o),a=function(e){var t=$d(),r=x.useContext(ep),n=x.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&s(n,e,t.styleSheet,r,t.stylis),x.useLayoutEffect((function(){if(!t.styleSheet.server)return s(n,e,t.styleSheet,r,t.stylis),function(){return i.removeStyles(n,t.styleSheet)}}),[n,e,t.styleSheet,r,t.stylis]),null};function s(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,Mc,r,o);else{var s=Ru(Ru({},t),{theme:Tc(t,n,a.defaultProps)});i.renderStyles(e,s,r,o)}}return x.memo(a)}((e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n}));
18
22
  /**
19
- * @license React
20
- * react-is.production.min.js
21
- *
22
- * Copyright (c) Facebook, Inc. and its affiliates.
23
+ * @mui/styled-engine-sc v6.4.2
23
24
  *
25
+ * @license MIT
24
26
  * This source code is licensed under the MIT license found in the
25
27
  * LICENSE file in the root directory of this source tree.
26
- */function nc(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case $u:switch(e=e.type){case Wu:case Uu:case Gu:case Zu:case Qu:return e;default:switch(e=e&&e.$$typeof){case Xu:case Ku:case Ju:case tc:case ec:case Yu:return e;default:return t}}case Vu:return t}}}Hu=Symbol.for("react.module.reference"),Bu.ContextConsumer=Ku,Bu.ContextProvider=Yu,Bu.Element=$u,Bu.ForwardRef=Ju,Bu.Fragment=Wu,Bu.Lazy=tc,Bu.Memo=ec,Bu.Portal=Vu,Bu.Profiler=Uu,Bu.StrictMode=Gu,Bu.Suspense=Zu,Bu.SuspenseList=Qu,Bu.isAsyncMode=function(){return!1},Bu.isConcurrentMode=function(){return!1},Bu.isContextConsumer=function(e){return nc(e)===Ku},Bu.isContextProvider=function(e){return nc(e)===Yu},Bu.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===$u},Bu.isForwardRef=function(e){return nc(e)===Ju},Bu.isFragment=function(e){return nc(e)===Wu},Bu.isLazy=function(e){return nc(e)===tc},Bu.isMemo=function(e){return nc(e)===ec},Bu.isPortal=function(e){return nc(e)===Vu},Bu.isProfiler=function(e){return nc(e)===Uu},Bu.isStrictMode=function(e){return nc(e)===Gu},Bu.isSuspense=function(e){return nc(e)===Zu},Bu.isSuspenseList=function(e){return nc(e)===Qu},Bu.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Wu||e===Uu||e===Gu||e===Zu||e===Qu||e===rc||"object"==typeof e&&null!==e&&(e.$$typeof===tc||e.$$typeof===ec||e.$$typeof===Yu||e.$$typeof===Ku||e.$$typeof===Ju||e.$$typeof===Hu||void 0!==e.getModuleId)},Bu.typeOf=nc;var oc=!1,ic=x.createContext(null),ac="unmounted",sc="exited",lc="entering",uc="entered",cc="exiting",dc=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=sc,n.appearStatus=lc):o=uc:o=t.unmountOnExit||t.mountOnEnter?ac:sc,n.state={status:o},n.nextCallback=null,n}kt(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ac?{status:sc}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==lc&&r!==uc&&(t=lc):r!==lc&&r!==uc||(t=cc)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===lc){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:z.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===sc&&this.setState({status:ac})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[z.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||oc?this.safeSetState({status:uc},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:lc},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:uc},(function(){t.props.onEntered(i,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:z.findDOMNode(this);t&&!oc?(this.props.onExit(n),this.safeSetState({status:cc},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:sc},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:sc},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:z.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===ac)return null;var t=this.props,r=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var n=Mt(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(ic.Provider,{value:null},"function"==typeof r?r(e,n):x.cloneElement(x.Children.only(r),n))},t}(x.Component);function pc(){}function fc(e,t){var r=Object.create(null);return e&&I.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&P(e)?t(e):e}(e)})),r}function mc(e,t,r){return null!=r[t]?r[t]:e.props[t]}function hc(e,t,r){var n=fc(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var u=o[l][n];s[o[l][n]]=r(u)}s[l]=r(l)}for(n=0;n<i.length;n++)s[i[n]]=r(i[n]);return s}(t,n);return Object.keys(o).forEach((function(i){var a=o[i];if(P(a)){var s=i in t,l=i in n,u=t[i],c=P(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&P(u)&&(o[i]=A(a,{onExited:r.bind(null,a),in:u.props.in,exit:mc(a,"exit",e),enter:mc(a,"enter",e)})):o[i]=A(a,{in:!1}):o[i]=A(a,{onExited:r.bind(null,a),in:!0,exit:mc(a,"exit",e),enter:mc(a,"enter",e)})}})),o}dc.contextType=ic,dc.propTypes={},dc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:pc,onEntering:pc,onEntered:pc,onExit:pc,onExiting:pc,onExited:pc},dc.UNMOUNTED=ac,dc.EXITED=sc,dc.ENTERING=lc,dc.ENTERED=uc,dc.EXITING=cc;var gc=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},bc=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(Tt(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}kt(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,fc(r.children,(function(e){return A(e,{onExited:n.bind(null,e),in:!0,appear:mc(e,"appear",r),enter:mc(e,"enter",r),exit:mc(e,"exit",r)})}))):hc(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=fc(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=wt({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=Mt(e,["component","childFactory"]),o=this.state.contextValue,i=gc(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?x.createElement(ic.Provider,{value:o},i):x.createElement(ic.Provider,{value:o},x.createElement(t,n,i))},t}(x.Component);bc.propTypes={},bc.defaultProps={component:"div",childFactory:function(e){return e}};const vc=e=>e.scrollTop;function yc(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function xc(e){return au("MuiPaper",e)}su("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Sc=["className","component","elevation","square","variant"],wc=ku("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return Jr({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&Jr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Ys("#fff",Tu(t.elevation))}, ${Ys("#fff",Tu(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),Ec=S.forwardRef((function(e,t){const r=Du({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=Zr(r,Sc),u=Jr({},r,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return Ea({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},xc,o)})(u);return nr.jsx(wc,Jr({as:o,ownerState:u,className:ju(c.root,n),ref:t},l))}));function Cc(e){return"string"==typeof e}function Rc(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function Oc(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}const Pc=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Ac(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Mt(e,Pc),s=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:l,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=Ra(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=wt({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=wt({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Rc(wt({},o,n)),s=Oc(n),l=Oc(o),u=t(a),c=Ra(null==u?void 0:u.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),d=wt({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=wt({},u,r,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(wt({},a,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||Cc(e)?t:wt({},t,{ownerState:wt({},t.ownerState,r)})}(r,wt({},l,{ref:Sa(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}const Ic=su("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Dc=["center","classes","className"];let Mc,Lc,kc,Tc,_c=e=>e;const jc=zi(Mc||(Mc=_c`
28
+ */
29
+ function fp(e,t){let r;return r=t?lp(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):lp(e),r}function mp(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}pp.propTypes={defaultTheme:Pt.object,styles:Pt.oneOfType([Pt.array,Pt.string,Pt.object,Pt.func])};var hp=Object.freeze({__proto__:null,GlobalStyles:pp,StyledEngineProvider:dp,ThemeContext:ep,css:ip,default:fp,internal_mutateStyles:mp,internal_processStyles:function(e,t){return mp(e,t)},internal_serializeStyles:function(e){return e},keyframes:cp});function gp(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function bp(e){if(S.isValidElement(e)||!gp(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=bp(e[r])})),t}function vp(e,t,r={clone:!0}){const n=r.clone?Et({},e):e;return gp(e)&&gp(t)&&Object.keys(t).forEach((o=>{S.isValidElement(t[o])?n[o]=t[o]:gp(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&gp(e[o])?n[o]=vp(e[o],t[o],r):r.clone?n[o]=gp(t[o])?bp(t[o]):t[o]:n[o]=t[o]})),n}var yp=Object.freeze({__proto__:null,default:vp,isPlainObject:gp});const xp=["values","unit","step"];function Sp(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Er(e,xp),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>Et({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return Et({keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const Ep={borderRadius:4};function Cp(e,t){return t?vp(e,t,{clone:!1}):e}const wp={xs:0,sm:600,md:900,lg:1200,xl:1536},Rp={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${wp[e]}px)`};function Ap(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Rp;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Rp;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||wp).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Dp(e){if("string"!=typeof e)throw new Error(xu(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Lp=Object.freeze({__proto__:null,default:Dp});function Ip(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function qp(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Ip(e,r)||n,t&&(o=t(o,n,e)),o}function Pp(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Ip(e.theme,n)||{};return Ap(e,i,(e=>{let n=qp(a,o,e);return e===n&&"string"==typeof e&&(n=qp(a,o,`${t}${"default"===e?"":Dp(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Mp={m:"margin",p:"padding"},_p={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},kp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Tp=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!kp[e])return[e];e=kp[e]}const[t,r]=e.split(""),n=Mp[t],o=_p[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Op=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Np=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Fp(e,t,r,n){var o;const i=null!=(o=Ip(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function jp(e){return Fp(e,"spacing",8)}function zp(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function Hp(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=zp(t,r),e)),{})}(Tp(r),n);return Ap(e,e[r],o)}function Bp(e,t){const r=jp(e.theme);return Object.keys(e).map((n=>Hp(e,t,n,r))).reduce(Cp,{})}function $p(e){return Bp(e,Op)}function Vp(e){return Bp(e,Np)}function Gp(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?Cp(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Wp(e){return"number"!=typeof e?e:`${e}px solid`}function Up(e,t){return Pp({prop:e,themeKey:"borders",transform:t})}$p.propTypes={},$p.filterProps=Op,Vp.propTypes={},Vp.filterProps=Np;const Yp=Up("border",Wp),Kp=Up("borderTop",Wp),Xp=Up("borderRight",Wp),Jp=Up("borderBottom",Wp),Zp=Up("borderLeft",Wp),Qp=Up("borderColor"),ef=Up("borderTopColor"),tf=Up("borderRightColor"),rf=Up("borderBottomColor"),nf=Up("borderLeftColor"),of=Up("outline",Wp),af=Up("outlineColor"),sf=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Fp(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:zp(t,e)});return Ap(e,e.borderRadius,r)}return null};sf.propTypes={},sf.filterProps=["borderRadius"],Gp(Yp,Kp,Xp,Jp,Zp,Qp,ef,tf,rf,nf,sf,of,af);const lf=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Fp(e.theme,"spacing",8),r=e=>({gap:zp(t,e)});return Ap(e,e.gap,r)}return null};lf.propTypes={},lf.filterProps=["gap"];const uf=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Fp(e.theme,"spacing",8),r=e=>({columnGap:zp(t,e)});return Ap(e,e.columnGap,r)}return null};uf.propTypes={},uf.filterProps=["columnGap"];const cf=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Fp(e.theme,"spacing",8),r=e=>({rowGap:zp(t,e)});return Ap(e,e.rowGap,r)}return null};cf.propTypes={},cf.filterProps=["rowGap"];function df(e,t){return"grey"===t?t:e}Gp(lf,uf,cf,Pp({prop:"gridColumn"}),Pp({prop:"gridRow"}),Pp({prop:"gridAutoFlow"}),Pp({prop:"gridAutoColumns"}),Pp({prop:"gridAutoRows"}),Pp({prop:"gridTemplateColumns"}),Pp({prop:"gridTemplateRows"}),Pp({prop:"gridTemplateAreas"}),Pp({prop:"gridArea"}));function pf(e){return e<=1&&0!==e?100*e+"%":e}Gp(Pp({prop:"color",themeKey:"palette",transform:df}),Pp({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:df}),Pp({prop:"backgroundColor",themeKey:"palette",transform:df}));const ff=Pp({prop:"width",transform:pf}),mf=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||wp[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:pf(t)}};return Ap(e,e.maxWidth,t)}return null};mf.filterProps=["maxWidth"];const hf=Pp({prop:"minWidth",transform:pf}),gf=Pp({prop:"height",transform:pf}),bf=Pp({prop:"maxHeight",transform:pf}),vf=Pp({prop:"minHeight",transform:pf});Pp({prop:"size",cssProperty:"width",transform:pf}),Pp({prop:"size",cssProperty:"height",transform:pf});Gp(ff,mf,hf,gf,bf,vf,Pp({prop:"boxSizing"}));const yf={border:{themeKey:"borders",transform:Wp},borderTop:{themeKey:"borders",transform:Wp},borderRight:{themeKey:"borders",transform:Wp},borderBottom:{themeKey:"borders",transform:Wp},borderLeft:{themeKey:"borders",transform:Wp},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Wp},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:sf},color:{themeKey:"palette",transform:df},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:df},backgroundColor:{themeKey:"palette",transform:df},p:{style:Vp},pt:{style:Vp},pr:{style:Vp},pb:{style:Vp},pl:{style:Vp},px:{style:Vp},py:{style:Vp},padding:{style:Vp},paddingTop:{style:Vp},paddingRight:{style:Vp},paddingBottom:{style:Vp},paddingLeft:{style:Vp},paddingX:{style:Vp},paddingY:{style:Vp},paddingInline:{style:Vp},paddingInlineStart:{style:Vp},paddingInlineEnd:{style:Vp},paddingBlock:{style:Vp},paddingBlockStart:{style:Vp},paddingBlockEnd:{style:Vp},m:{style:$p},mt:{style:$p},mr:{style:$p},mb:{style:$p},ml:{style:$p},mx:{style:$p},my:{style:$p},margin:{style:$p},marginTop:{style:$p},marginRight:{style:$p},marginBottom:{style:$p},marginLeft:{style:$p},marginX:{style:$p},marginY:{style:$p},marginInline:{style:$p},marginInlineStart:{style:$p},marginInlineEnd:{style:$p},marginBlock:{style:$p},marginBlockStart:{style:$p},marginBlockEnd:{style:$p},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:lf},rowGap:{style:cf},columnGap:{style:uf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:pf},maxWidth:{style:mf},minWidth:{transform:pf},height:{transform:pf},maxHeight:{transform:pf},minHeight:{transform:pf},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function xf(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=Ip(r,s)||{};if(u)return u(o);return Ap(o,t,(t=>{let r=qp(c,l,t);return t===r&&"string"==typeof t&&(r=qp(c,l,`${e}${"default"===t?"":Dp(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=null!=(n=i.unstable_sxConfig)?n:yf;function s(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;const r=null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{});return r||{}}(i.breakpoints),s=Object.keys(o);let l=o;return Object.keys(n).forEach((r=>{const o=(s=n[r],u=i,"function"==typeof s?s(u):s);var s,u;if(null!=o)if("object"==typeof o)if(a[r])l=Cp(l,e(r,o,i,a));else{const e=Ap({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?l=Cp(l,e):l[r]=t({sx:o,theme:i})}else l=Cp(l,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(o)?o.map(s):s(o)}}const Sf=xf();function Ef(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}Sf.filterProps=["sx"];const Cf=["breakpoints","palette","spacing","shape"];function wf(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Er(e,Cf),s=Sp(r),l=function(e=8){if(e.mui)return e;const t=jp({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=vp({breakpoints:s,direction:"ltr",components:{},palette:Et({mode:"light"},n),spacing:l,shape:Et({},Ep,i)},a);return u.applyStyles=Ef,u=t.reduce(((e,t)=>vp(e,t)),u),u.unstable_sxConfig=Et({},yf,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Sf({sx:e,theme:this})},u}var Rf=Object.freeze({__proto__:null,default:wf,private_createBreakpoints:Sp,unstable_applyStyles:Ef});function Af(e=null){const t=S.useContext(ep);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Df=wf();function Lf(e=Df){return Af(e)}function If({styles:e,themeId:t,defaultTheme:r={}}){const n=Lf(r),o="function"==typeof e?e(t&&n[t]||n):e;return Ll.jsx(pp,{styles:o})}const qf=["sx"];function Pf(e){const{sx:t}=e,r=Er(e,qf),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:yf;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return gp(r)?Et({},n,r):n}:Et({},n,t),Et({},o,{sx:i})}var Mf=Object.freeze({__proto__:null,default:Sf,extendSxProp:Pf,unstable_createStyleFunctionSx:xf,unstable_defaultSxConfig:yf});const _f=e=>e,kf=(()=>{let e=_f;return{configure(t){e=t},generate:t=>e(t),reset(){e=_f}}})();function Tf(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Tf(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Of(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Tf(e))&&(n&&(n+=" "),n+=t);return n}const Nf=["className","component"];const Ff={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function jf(e,t,r="Mui"){const n=Ff[t];return n?`${r}-${n}`:`${kf.generate(e)}-${t}`}function zf(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=jf(e,t,r)})),n}var Hf={exports:{}},Bf={},$f=Symbol.for("react.transitional.element"),Vf=Symbol.for("react.portal"),Gf=Symbol.for("react.fragment"),Wf=Symbol.for("react.strict_mode"),Uf=Symbol.for("react.profiler"),Yf=Symbol.for("react.consumer"),Kf=Symbol.for("react.context"),Xf=Symbol.for("react.forward_ref"),Jf=Symbol.for("react.suspense"),Zf=Symbol.for("react.suspense_list"),Qf=Symbol.for("react.memo"),em=Symbol.for("react.lazy"),tm=Symbol.for("react.offscreen"),rm=Symbol.for("react.client.reference");function nm(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case $f:switch(e=e.type){case Gf:case Uf:case Wf:case Jf:case Zf:return e;default:switch(e=e&&e.$$typeof){case Kf:case Xf:case em:case Qf:case Yf:return e;default:return t}}case Vf:return t}}}Bf.ContextConsumer=Yf,Bf.ContextProvider=Kf,Bf.Element=$f,Bf.ForwardRef=Xf,Bf.Fragment=Gf,Bf.Lazy=em,Bf.Memo=Qf,Bf.Portal=Vf,Bf.Profiler=Uf,Bf.StrictMode=Wf,Bf.Suspense=Jf,Bf.SuspenseList=Zf,Bf.isContextConsumer=function(e){return nm(e)===Yf},Bf.isContextProvider=function(e){return nm(e)===Kf},Bf.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===$f},Bf.isForwardRef=function(e){return nm(e)===Xf},Bf.isFragment=function(e){return nm(e)===Gf},Bf.isLazy=function(e){return nm(e)===em},Bf.isMemo=function(e){return nm(e)===Qf},Bf.isPortal=function(e){return nm(e)===Vf},Bf.isProfiler=function(e){return nm(e)===Uf},Bf.isStrictMode=function(e){return nm(e)===Wf},Bf.isSuspense=function(e){return nm(e)===Jf},Bf.isSuspenseList=function(e){return nm(e)===Zf},Bf.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Gf||e===Uf||e===Wf||e===Jf||e===Zf||e===tm||"object"==typeof e&&null!==e&&(e.$$typeof===em||e.$$typeof===Qf||e.$$typeof===Kf||e.$$typeof===Yf||e.$$typeof===Xf||e.$$typeof===rm||void 0!==e.getModuleId)},Bf.typeOf=nm,Hf.exports=Bf;var om=Hf.exports;const im=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function am(e){const t=`${e}`.match(im);return t&&t[1]||""}function sm(e,t=""){return e.displayName||e.name||am(e)||t}function lm(e,t,r){const n=sm(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var um=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return sm(e,"Component");if("object"==typeof e)switch(e.$$typeof){case om.ForwardRef:return lm(e,e.render,"ForwardRef");case om.Memo:return lm(e,e.type,"memo");default:return}}},getFunctionName:am});function cm(e,t){const r=Et({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=Et({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},i=t[n];r[n]={},i&&Object.keys(i)?o&&Object.keys(o)?(r[n]=Et({},i),Object.keys(o).forEach((e=>{r[n][e]=cm(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const dm="undefined"!=typeof window?S.useLayoutEffect:S.useEffect;function pm(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var fm=Object.freeze({__proto__:null,default:pm});function mm(e){if(e.type)return e;if("#"===e.charAt(0))return mm(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(xu(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(xu(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function hm(e,t){return e=mm(e),t=function(e,t=0,r=1){return pm(e,t,r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}function gm(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function bm(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function vm(e){return e&&e.ownerDocument||document}function ym(e){return vm(e).defaultView||window}function xm(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Sm=0;const Em=S["useId".toString()];function Cm(e){if(void 0!==Em){return Em()}return function(e){const[t,r]=S.useState(e),n=t;return S.useEffect((()=>{null==t&&(Sm+=1,r(`mui-${Sm}`))}),[t]),n}(e)}function wm({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=S.useRef(void 0!==e),[i,a]=S.useState(t);return[o?e:i,S.useCallback((e=>{o||a(e)}),[])]}function Rm(e){const t=S.useRef(e);return dm((()=>{t.current=e})),S.useRef(((...e)=>(0,t.current)(...e))).current}function Am(...e){return S.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{xm(e,t)}))}),e)}const Dm={};const Lm=[];class Im{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Im}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function qm(){const e=function(e,t){const r=S.useRef(Dm);return r.current===Dm&&(r.current=e(t)),r}(Im.create).current;return function(e){S.useEffect(e,Lm)}(e.disposeEffect),e}let Pm=!0,Mm=!1;const _m=new Im,km={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Tm(e){e.metaKey||e.altKey||e.ctrlKey||(Pm=!0)}function Om(){Pm=!1}function Nm(){"hidden"===this.visibilityState&&Mm&&(Pm=!0)}function Fm(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Pm||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!km[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function jm(){const e=S.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Tm,!0),t.addEventListener("mousedown",Om,!0),t.addEventListener("pointerdown",Om,!0),t.addEventListener("touchstart",Om,!0),t.addEventListener("visibilitychange",Nm,!0))}),[]),t=S.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Fm(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Mm=!0,_m.start(100,(()=>{Mm=!1})),t.current=!1,!0)},ref:e}}function zm(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Hm(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}function Bm(e){return"string"==typeof e}function $m(e,t=[]){if(void 0===e)return{};const r={};return Object.keys(e).filter((r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r))).forEach((t=>{r[t]=e[t]})),r}function Vm(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((r=>{t[r]=e[r]})),t}const Gm=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Wm(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Er(e,Gm),s=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:l,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=Of(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=Et({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=Et({},r,o,n);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=$m(Et({},o,n)),s=Vm(n),l=Vm(o),u=t(a),c=Of(null==u?void 0:u.className,null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),d=Et({},null==u?void 0:u.style,null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),p=Et({},u,r,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Et({},a,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||Bm(e)?t:Et({},t,{ownerState:Et({},t.ownerState,r)})}(r,Et({},l,{ref:Am(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function Um(e){var t;return parseInt(S.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Ym=S.createContext(null);function Km(){return S.useContext(Ym)}var Xm="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Jm(e){const{children:t,theme:r}=e,n=Km(),o=S.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return Et({},e,t)}(n,r);return null!=e&&(e[Xm]=null!==n),e}),[r,n]);return Ll.jsx(Ym.Provider,{value:o,children:t})}const Zm=["value"],Qm=S.createContext();function eh(e){let{value:t}=e,r=Er(e,Zm);return Ll.jsx(Qm.Provider,Et({value:null==t||t},r))}const th=S.createContext(void 0);function rh({value:e,children:t}){return Ll.jsx(th.Provider,{value:e,children:t})}function nh({props:e,name:t}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?cm(o.defaultProps,n):o.styleOverrides||o.variants?n:cm(o,n)}({props:e,name:t,theme:{components:S.useContext(th)}})}const oh={};function ih(e,t,r,n=!1){return S.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?Et({},t,{[e]:i}):i;return n?()=>a:a}return Et({},t,e?{[e]:r}:r)}),[e,t,r,n])}function ah(e){const{children:t,theme:r,themeId:n}=e,o=Af(oh),i=Km()||oh,a=ih(n,o,r),s=ih(n,i,r,!0),l="rtl"===a.direction;return Ll.jsx(Jm,{theme:s,children:Ll.jsx(ep.Provider,{value:a,children:Ll.jsx(eh,{value:l,children:Ll.jsx(rh,{value:null==a?void 0:a.components,children:t})})})})}function sh(e,t){return Cu({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var lh,uh={},ch={exports:{}};(lh=ch).exports=function(e){return e&&e.__esModule?e:{default:e}},lh.exports.__esModule=!0,lh.exports.default=lh.exports;var dh=ch.exports,ph=Dt(Su),fh=Dt(fm),mh=dh;Object.defineProperty(uh,"__esModule",{value:!0});var hh=uh.alpha=Lh;uh.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=Ch(e),a=Ch(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Rh({type:"rgb",values:s})},uh.colorChannel=void 0;var gh=uh.darken=Ih;uh.decomposeColor=Ch,uh.emphasize=Ph;var bh=uh.getContrastRatio=function(e,t){const r=Dh(e),n=Dh(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};uh.getLuminance=Dh,uh.hexToRgb=Eh,uh.hslToRgb=Ah;var vh=uh.lighten=qh;uh.private_safeAlpha=function(e,t,r){try{return Lh(e,t)}catch(t){return e}},uh.private_safeColorChannel=void 0,uh.private_safeDarken=function(e,t,r){try{return Ih(e,t)}catch(t){return e}},uh.private_safeEmphasize=function(e,t,r){try{return Ph(e,t)}catch(t){return e}},uh.private_safeLighten=function(e,t,r){try{return qh(e,t)}catch(t){return e}},uh.recomposeColor=Rh,uh.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Ch(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var yh=mh(ph),xh=mh(fh);function Sh(e,t=0,r=1){return(0,xh.default)(e,t,r)}function Eh(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function Ch(e){if(e.type)return e;if("#"===e.charAt(0))return Ch(Eh(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,yh.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,yh.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const wh=e=>{const t=Ch(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};uh.colorChannel=wh;function Rh(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function Ah(e){e=Ch(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Rh({type:s,values:l})}function Dh(e){let t="hsl"===(e=Ch(e)).type||"hsla"===e.type?Ch(Ah(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Lh(e,t){return e=Ch(e),t=Sh(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Rh(e)}function Ih(e,t){if(e=Ch(e),t=Sh(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Rh(e)}function qh(e,t){if(e=Ch(e),t=Sh(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Rh(e)}function Ph(e,t=.15){return Dh(e)>.5?Ih(e,t):qh(e,t)}uh.private_safeColorChannel=(e,t)=>{try{return wh(e)}catch(t){return e}};const Mh=["mode","contrastThreshold","tonalOffset"],_h={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:zl.white,default:zl.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},kh={text:{primary:zl.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:zl.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Th(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=vh(e.main,o):"dark"===t&&(e.dark=gh(e.main,i)))}function Oh(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=wu(e,Mh),i=e.primary||function(e="light"){return"dark"===e?{main:Ql,light:Zl,dark:eu}:{main:tu,light:eu,dark:ru}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Ul,light:Wl,dark:Kl}:{main:Xl,light:Yl,dark:Jl}}(t),s=e.error||function(e="light"){return"dark"===e?{main:$l,light:Hl,dark:Vl}:{main:Vl,light:Bl,dark:Gl}}(t),l=e.info||function(e="light"){return"dark"===e?{main:ou,light:nu,dark:au}:{main:au,light:iu,dark:su}}(t),u=e.success||function(e="light"){return"dark"===e?{main:uu,light:lu,dark:du}:{main:pu,light:cu,dark:fu}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:hu,light:mu,dark:bu}:{main:"#ed6c02",light:gu,dark:vu}}(t);function d(e){return bh(e,kh.text.primary)>=r?kh.text.primary:_h.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Cu({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(xu(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(xu(12,t?` (${t})`:"",JSON.stringify(e.main)));return Th(e,"light",o,n),Th(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:kh,light:_h};return vp(Cu({common:Cu({},zl),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:yu,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Nh=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Fh={textTransform:"uppercase"},jh='"Roboto", "Helvetica", "Arial", sans-serif';function zh(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=jh,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=wu(r,Nh),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return Cu({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===jh?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(s,14,1.75,.4,Fh),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Fh),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return vp(Cu({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function Hh(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Bh=["none",Hh(0,2,1,-1,0,1,1,0,0,1,3,0),Hh(0,3,1,-2,0,2,2,0,0,1,5,0),Hh(0,3,3,-2,0,3,4,0,0,1,8,0),Hh(0,2,4,-1,0,4,5,0,0,1,10,0),Hh(0,3,5,-1,0,5,8,0,0,1,14,0),Hh(0,3,5,-1,0,6,10,0,0,1,18,0),Hh(0,4,5,-2,0,7,10,1,0,2,16,1),Hh(0,5,5,-3,0,8,10,1,0,3,14,2),Hh(0,5,6,-3,0,9,12,1,0,3,16,2),Hh(0,6,6,-3,0,10,14,1,0,4,18,3),Hh(0,6,7,-4,0,11,15,1,0,4,20,3),Hh(0,7,8,-4,0,12,17,2,0,5,22,4),Hh(0,7,8,-4,0,13,19,2,0,5,24,4),Hh(0,7,9,-4,0,14,21,2,0,5,26,4),Hh(0,8,9,-5,0,15,22,2,0,6,28,5),Hh(0,8,10,-5,0,16,24,2,0,6,30,5),Hh(0,8,11,-5,0,17,26,2,0,6,32,5),Hh(0,9,11,-5,0,18,28,2,0,7,34,6),Hh(0,9,12,-6,0,19,29,2,0,7,36,6),Hh(0,10,13,-6,0,20,31,3,0,8,38,7),Hh(0,10,13,-6,0,21,33,3,0,8,40,7),Hh(0,10,14,-6,0,22,35,3,0,8,42,7),Hh(0,11,14,-7,0,23,36,3,0,9,44,8),Hh(0,11,15,-7,0,24,38,3,0,9,46,8)],$h=["duration","easing","delay"],Vh={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Gh={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Wh(e){return`${Math.round(e)}ms`}function Uh(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Yh(e){const t=Cu({},Vh,e.easing),r=Cu({},Gh,e.duration);return Cu({getAutoHeightDuration:Uh,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return wu(n,$h),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Wh(o)} ${i} ${"string"==typeof a?a:Wh(a)}`)).join(",")}},e,{easing:t,duration:r})}const Kh={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Xh=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Jh(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=wu(e,Xh);if(e.vars&&void 0===e.generateCssVars)throw new Error(xu(18));const s=Oh(n),l=wf(e);let u=vp(l,{mixins:sh(l.breakpoints,r),palette:s,shadows:Bh.slice(),typography:zh(s,i),transitions:Yh(o),zIndex:Cu({},Kh)});return u=vp(u,a),u=t.reduce(((e,t)=>vp(e,t)),u),u.unstable_sxConfig=Cu({},yf,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Sf({sx:e,theme:this})},u}const Zh=Jh();function Qh(){const e=Lf(Zh);return e[Eu]||e}var eg,tg={},rg={exports:{}};function ng(){return eg||(eg=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(rg)),rg.exports}var og,ig={exports:{}};function ag(){return og||(og=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(ig)),ig.exports}var sg=Dt(hp),lg=Dt(yp),ug=Dt(Lp),cg=Dt(um),dg=Dt(Rf),pg=Dt(Mf),fg=dh;Object.defineProperty(tg,"__esModule",{value:!0});var mg=tg.default=function(e={}){const{themeId:t,defaultTheme:r=Ag,rootShouldForwardProp:n=Rg,slotShouldForwardProp:o=Rg}=e,i=e=>(0,xg.default)((0,hg.default)({},e,{theme:Lg((0,hg.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,bg.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Ig(Dg(l))}=a,p=(0,gg.default)(a,Cg),f=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let h=Rg;"Root"===l||"root"===l?h=n:l?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,bg.default)(e,(0,hg.default)({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,vg.isPlainObject)(e)?n=>qg(e,(0,hg.default)({},n,{theme:Lg({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const l=o?o.map(b):[];s&&d&&l.push((e=>{const n=Lg((0,hg.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const o=n.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=qg(r,(0,hg.default)({},e,{theme:n}))})),d(e,i)})),s&&!f&&l.push((e=>{var n;const o=Lg((0,hg.default)({},e,{defaultTheme:r,themeId:t}));return qg({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,hg.default)({},e,{theme:o}))})),m||l.push(i);const u=l.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};tg.shouldForwardProp=Rg,tg.systemDefaultTheme=void 0;var hg=fg(ng()),gg=fg(ag()),bg=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=wg(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(sg),vg=lg;fg(ug),fg(cg);var yg=fg(dg),xg=fg(pg);const Sg=["ownerState"],Eg=["variants"],Cg=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function wg(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(wg=function(e){return e?r:t})(e)}function Rg(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Ag=tg.systemDefaultTheme=(0,yg.default)(),Dg=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Lg({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Ig(e){return e?(t,r)=>r[e]:null}function qg(e,t){let{ownerState:r}=t,n=(0,gg.default)(t,Sg);const o="function"==typeof e?e((0,hg.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>qg(e,(0,hg.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,gg.default)(o,Eg);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,hg.default)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,hg.default)({ownerState:r},n,r)):e.style))})),t}return o}function Pg(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Mg=e=>Pg(e)&&"classes"!==e,_g=mg({themeId:Eu,defaultTheme:Zh,rootShouldForwardProp:Mg}),kg=["theme"];function Tg(e){let{theme:t}=e,r=wu(e,kg);const n=t[Eu];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=Cu({},n,{vars:null}):t&&!t.vars&&(o=Cu({},t,{vars:null}))),Ll.jsx(ah,Cu({},r,{themeId:n?Eu:void 0,theme:o}))}const Og=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Ng(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Ng(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Fg(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Ng(e))&&(n&&(n+=" "),n+=t);return n}function jg(e){return nh(e)}function zg(e){return jf("MuiSvgIcon",e)}zf("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Hg=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Bg=_g("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Dp(r.color)}`],t[`fontSize${Dp(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,s,l,u,c,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),$g=S.forwardRef((function(e,t){const r=jg({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=r,p=wu(r,Hg),f=S.isValidElement(n)&&"svg"===n.type,m=Cu({},r,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),h={};u||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return Hm({root:["root","inherit"!==t&&`color${Dp(t)}`,`fontSize${Dp(r)}`]},zg,n)})(m);return Ll.jsxs(Bg,Cu({as:a,className:Fg(g.root,o),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,f&&n.props,{ownerState:m,children:[f?n.props.children:n,c?Ll.jsx("title",{children:c}):null]}))}));$g.muiName="SvgIcon";var Vg=!1,Gg=x.createContext(null),Wg="unmounted",Ug="exited",Yg="entering",Kg="entered",Xg="exiting",Jg=function(e){function t(t,r){var n;n=e.call(this,t,r)||this;var o,i=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?i?(o=Ug,n.appearStatus=Yg):o=Kg:o=t.unmountOnExit||t.mountOnEnter?Wg:Ug,n.state={status:o},n.nextCallback=null,n}ho(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Wg?{status:Ug}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==Yg&&r!==Kg&&(t=Yg):r!==Yg&&r!==Kg||(t=Xg)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Yg){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:z.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ug&&this.setState({status:Wg})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[z.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||Vg?this.safeSetState({status:Kg},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Yg},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Kg},(function(){t.props.onEntered(i,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:z.findDOMNode(this);t&&!Vg?(this.props.onExit(n),this.safeSetState({status:Xg},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Ug},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Ug},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:z.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Wg)return null;var t=this.props,r=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var n=Er(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(Gg.Provider,{value:null},"function"==typeof r?r(e,n):x.cloneElement(x.Children.only(r),n))},t}(x.Component);function Zg(){}function Qg(e,t){var r=Object.create(null);return e&&I.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&D(e)?t(e):e}(e)})),r}function eb(e,t,r){return null!=r[t]?r[t]:e.props[t]}function tb(e,t,r){var n=Qg(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var u=o[l][n];s[o[l][n]]=r(u)}s[l]=r(l)}for(n=0;n<i.length;n++)s[i[n]]=r(i[n]);return s}(t,n);return Object.keys(o).forEach((function(i){var a=o[i];if(D(a)){var s=i in t,l=i in n,u=t[i],c=D(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&D(u)&&(o[i]=L(a,{onExited:r.bind(null,a),in:u.props.in,exit:eb(a,"exit",e),enter:eb(a,"enter",e)})):o[i]=L(a,{in:!1}):o[i]=L(a,{onExited:r.bind(null,a),in:!0,exit:eb(a,"exit",e),enter:eb(a,"enter",e)})}})),o}Jg.contextType=Gg,Jg.propTypes={},Jg.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Zg,onEntering:Zg,onEntered:Zg,onExit:Zg,onExiting:Zg,onExited:Zg},Jg.UNMOUNTED=Wg,Jg.EXITED=Ug,Jg.ENTERING=Yg,Jg.ENTERED=Kg,Jg.EXITING=Xg;var rb=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},nb=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(go(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}ho(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r,n,o=t.children,i=t.handleExited;return{children:t.firstRender?(r=e,n=i,Qg(r.children,(function(e){return L(e,{onExited:n.bind(null,e),in:!0,appear:eb(e,"appear",r),enter:eb(e,"enter",r),exit:eb(e,"exit",r)})}))):tb(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=Qg(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=Et({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=Er(e,["component","childFactory"]),o=this.state.contextValue,i=rb(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?x.createElement(Gg.Provider,{value:o},i):x.createElement(Gg.Provider,{value:o},x.createElement(t,n,i))},t}(x.Component);nb.propTypes={},nb.defaultProps={component:"div",childFactory:function(e){return e}};const ob=e=>e.scrollTop;function ib(e,t){var r,n;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(r=a.transitionDuration)?r:"number"==typeof o?o:o[t.mode]||0,easing:null!=(n=a.transitionTimingFunction)?n:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function ab(e){return jf("MuiPaper",e)}zf("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const sb=["className","component","elevation","square","variant"],lb=_g("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})((({theme:e,ownerState:t})=>{var r;return Cu({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&Cu({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${hh("#fff",Og(t.elevation))}, ${hh("#fff",Og(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),ub=S.forwardRef((function(e,t){const r=jg({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=wu(r,sb),u=Cu({},r,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return Hm({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},ab,o)})(u);return Ll.jsx(lb,Cu({as:o,ownerState:u,className:Fg(c.root,n),ref:t},l))}));const cb=zf("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),db=["center","classes","className"];let pb,fb,mb,hb,gb=e=>e;const bb=cp(pb||(pb=gb`
27
30
  0% {
28
31
  transform: scale(0);
29
32
  opacity: 0.1;
@@ -33,7 +36,7 @@ function $i(e,t){let r;return r=t?Ni(e).withConfig({displayName:t.label,shouldFo
33
36
  transform: scale(1);
34
37
  opacity: 0.3;
35
38
  }
36
- `)),qc=zi(Lc||(Lc=_c`
39
+ `)),vb=cp(fb||(fb=gb`
37
40
  0% {
38
41
  opacity: 1;
39
42
  }
@@ -41,7 +44,7 @@ function $i(e,t){let r;return r=t?Ni(e).withConfig({displayName:t.label,shouldFo
41
44
  100% {
42
45
  opacity: 0;
43
46
  }
44
- `)),Nc=zi(kc||(kc=_c`
47
+ `)),yb=cp(mb||(mb=gb`
45
48
  0% {
46
49
  transform: scale(1);
47
50
  }
@@ -53,7 +56,7 @@ function $i(e,t){let r;return r=t?Ni(e).withConfig({displayName:t.label,shouldFo
53
56
  100% {
54
57
  transform: scale(1);
55
58
  }
56
- `)),Fc=ku("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),zc=ku((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,d]=S.useState(!1),p=ju(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=ju(r.child,c&&r.childLeaving,n&&r.childPulsate);return s||c||d(!0),S.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}}),[l,s,u]),nr.jsx("span",{className:p,style:f,children:nr.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Tc||(Tc=_c`
59
+ `)),xb=_g("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Sb=_g((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,d]=S.useState(!1),p=Fg(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Fg(r.child,c&&r.childLeaving,n&&r.childPulsate);return s||c||d(!0),S.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}}),[l,s,u]),Ll.jsx("span",{className:p,style:f,children:Ll.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(hb||(hb=gb`
57
60
  opacity: 0;
58
61
  position: absolute;
59
62
 
@@ -96,9 +99,7 @@ function $i(e,t){let r;return r=t?Ni(e).withConfig({displayName:t.label,shouldFo
96
99
  animation-iteration-count: infinite;
97
100
  animation-delay: 200ms;
98
101
  }
99
- `),Ic.rippleVisible,jc,550,(({theme:e})=>e.transitions.easing.easeInOut),Ic.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Ic.child,Ic.childLeaving,qc,550,(({theme:e})=>e.transitions.easing.easeInOut),Ic.childPulsate,Nc,(({theme:e})=>e.transitions.easing.easeInOut)),Hc=S.forwardRef((function(e,t){const r=Du({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Zr(r,Dc),[s,l]=S.useState([]),u=S.useRef(0),c=S.useRef(null);S.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=S.useRef(!1),p=S.useRef(0),f=S.useRef(null),m=S.useRef(null);S.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=S.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l((e=>[...e,nr.jsx(zc,{classes:{ripple:ju(o.ripple,Ic.ripple),rippleVisible:ju(o.rippleVisible,Ic.rippleVisible),ripplePulsate:ju(o.ripplePulsate,Ic.ripplePulsate),child:ju(o.child,Ic.child),childLeaving:ju(o.childLeaving,Ic.childLeaving),childPulsate:ju(o.childPulsate,Ic.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=S.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,h]),b=S.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=S.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{v(e,t)})));f.current=null,l((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return S.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),nr.jsx(Fc,Jr({className:ju(Ic.root,o.root,i),ref:m},a,{children:nr.jsx(bc,{component:null,exit:!0,children:s})}))}));function Bc(e){return au("MuiButtonBase",e)}const $c=su("MuiButtonBase",["root","disabled","focusVisible"]),Vc=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Wc=ku("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${$c.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Gc=S.forwardRef((function(e,t){const r=Du({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:x,onMouseDown:w,onMouseLeave:E,onMouseUp:C,onTouchEnd:R,onTouchMove:O,onTouchStart:P,tabIndex:A=0,TouchRippleProps:I,touchRippleRef:D,type:M}=r,L=Zr(r,Vc),k=S.useRef(null),T=S.useRef(null),_=Wl(T,D),{isFocusVisibleRef:j,onFocus:q,onBlur:N,ref:F}=tu(),[z,H]=S.useState(!1);l&&z&&H(!1),S.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),k.current.focus()}})),[]);const[B,$]=S.useState(!1);S.useEffect((()=>{$(!0)}),[]);const V=B&&!u&&!l;function W(e,t,r=c){return Vl((n=>{t&&t(n);return!r&&T.current&&T.current[e](n),!0}))}S.useEffect((()=>{z&&d&&!u&&B&&T.current.pulsate()}),[u,d,z,B]);const G=W("start",w),U=W("stop",h),Y=W("stop",g),K=W("stop",C),X=W("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),J=W("start",P),Z=W("stop",R),Q=W("stop",O),ee=W("stop",(e=>{N(e),!1===j.current&&H(!1),f&&f(e)}),!1),te=Vl((e=>{k.current||(k.current=e.currentTarget),q(e),!0===j.current&&(H(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=k.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=S.useRef(!1),oe=Vl((e=>{d&&!ne.current&&z&&T.current&&" "===e.key&&(ne.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),m&&m(e))})),ie=Vl((e=>{d&&" "===e.key&&T.current&&z&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=s;"button"===ae&&(L.href||L.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===M?"button":M,se.disabled=l):(L.href||L.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=Wl(t,F,k),ue=Jr({},r,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:A,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Ea({root:["root",t&&"disabled",r&&"focusVisible"]},Bc,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return nr.jsxs(Wc,Jr({as:ae,className:ju(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:G,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:A,type:M},se,L,{children:[i,V?nr.jsx(Hc,Jr({ref:_,center:o},I)):null]}))}));function Uc(e){return au("MuiTypography",e)}su("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Yc=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Kc=ku("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${jl(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Jr({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),Xc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Jc={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Zc=S.forwardRef((function(e,t){const r=Du({props:e,name:"MuiTypography"}),n=(e=>Jc[e]||e)(r.color),o=Ls(Jr({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Xc}=o,f=Zr(o,Yc),m=Jr({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=s||(c?"p":p[d]||Xc[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Ea({root:["root",i,"inherit"!==e.align&&`align${jl(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},Uc,a)})(m);return nr.jsx(Kc,Jr({as:h,ref:t,ownerState:m,className:ju(g.root,a)},f))})),Qc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ed(e){const t=[],r=[];return Array.from(e.querySelectorAll(Qc)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function td(){return!0}function rd(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=ed,isEnabled:a=td,open:s}=e,l=S.useRef(!1),u=S.useRef(null),c=S.useRef(null),d=S.useRef(null),p=S.useRef(null),f=S.useRef(!1),m=S.useRef(null),h=Sa(t.ref,m),g=S.useRef(null);S.useEffect((()=>{s&&m.current&&(f.current=!r)}),[r,s]),S.useEffect((()=>{if(!s||!m.current)return;const e=ga(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),S.useEffect((()=>{if(!s||!m.current)return;const e=ga(m.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(l.current=!0,c.current&&c.current.focus())},r=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(m.current)),r.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,a,s,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return nr.jsxs(S.Fragment,{children:[nr.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),S.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),nr.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const nd=S.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=S.useState(null),s=Sa(S.isValidElement(r)?r.ref:null,t);if(ya((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),ya((()=>{if(i&&!o)return va(t,i),()=>{va(t,null)}}),[t,i,o]),o){if(S.isValidElement(r)){const e={ref:s};return S.cloneElement(r,e)}return nr.jsx(S.Fragment,{children:r})}return nr.jsx(S.Fragment,{children:i?H.createPortal(r,i):i})}));function od(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function id(e){return parseInt(ba(e).getComputedStyle(e).paddingRight,10)||0}function ad(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&od(e,o)}))}function sd(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function ld(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=ga(e);return t.body===e?ba(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(ga(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${id(n)+e}px`;const t=ga(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${id(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=ga(n).body;else{const t=n.parentElement,r=ba(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const ud=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&od(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);ad(t,e.mount,e.modalRef,n,!0);const o=sd(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=sd(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=ld(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=sd(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&od(e.modalRef,t),ad(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&od(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function cd(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=ud,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=S.useRef({}),f=S.useRef(null),m=S.useRef(null),h=Sa(m,d),[g,b]=S.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),w=()=>{o.mount(x(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},E=xa((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||ga(f.current).body;o.add(x(),e),m.current&&w()})),C=S.useCallback((()=>o.isTopModal(x())),[o]),R=xa((e=>{f.current=e,e&&(c&&C()?w():m.current&&od(m.current,y))})),O=S.useCallback((()=>{o.remove(x(),y)}),[y,o]);S.useEffect((()=>()=>{O()}),[O]),S.useEffect((()=>{c?E():v&&i||O()}),[c,O,v,i,E]);const P=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},A=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Rc(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=wt({},r,t);return wt({role:"presentation"},n,{onKeyDown:P(n),ref:h})},getBackdropProps:(e={})=>wt({"aria-hidden":!0},e,{onClick:A(e),open:c}),getTransitionProps:()=>({onEnter:ha((()=>{b(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:ha((()=>{b(!0),s&&s(),i&&O()}),null==l?void 0:l.props.onExited)}),rootRef:h,portalRef:R,isTopModal:C,exited:g,hasTransition:v}}const dd=["onChange","maxRows","minRows","style","value"];function pd(e){return parseInt(e,10)||0}const fd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function md(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const hd=S.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=Mt(e,dd),{current:l}=S.useRef(null!=a),u=S.useRef(null),c=Sa(t,u),d=S.useRef(null),p=S.useRef(0),[f,m]=S.useState({outerHeightStyle:0}),h=S.useCallback((()=>{const t=u.current,r=ba(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0};const i=d.current;i.style.width=r.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=r.boxSizing,s=pd(r.paddingBottom)+pd(r.paddingTop),l=pd(r.borderBottomWidth)+pd(r.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),n&&(f=Math.min(Number(n)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?s+l:0),overflow:Math.abs(f-c)<=1}}),[n,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:r,overflow:n}=t;return p.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(p.current+=1,{overflow:n,outerHeightStyle:r}):e},b=S.useCallback((()=>{const e=h();md(e)||m((t=>g(t,e)))}),[h]);ya((()=>{const e=()=>{p.current=0,(()=>{const e=h();md(e)||H.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}(e),r=u.current,n=ba(r);let o;return n.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(r)),()=>{t.clear(),cancelAnimationFrame(undefined),n.removeEventListener("resize",t),o&&o.disconnect()}}),[h]),ya((()=>{b()})),S.useEffect((()=>{p.current=0}),[a]);return nr.jsxs(S.Fragment,{children:[nr.jsx("textarea",wt({value:a,onChange:e=>{p.current=0,l||b(),r&&r(e)},ref:c,rows:o,style:wt({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},s)),nr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:wt({},fd,i,{paddingTop:0,paddingBottom:0})})]})}));function gd({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}const bd=S.createContext(void 0);function vd(){return S.useContext(bd)}function yd(e){return nr.jsx(Ds,Jr({},e,{defaultTheme:Au,themeId:Xr}))}function xd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Sd(e,t=!1){return e&&(xd(e.value)&&""!==e.value||t&&xd(e.defaultValue)&&""!==e.defaultValue)}function wd(e){return au("MuiInputBase",e)}const Ed=su("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Cd=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Rd=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${jl(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Od=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Pd=ku("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Rd})((({theme:e,ownerState:t})=>Jr({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ed.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Jr({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Ad=ku("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Od})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=Jr({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return Jr({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ed.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Ed.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),Id=nr.jsx(yd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Dd=S.forwardRef((function(e,t){var r;const n=Du({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:y,minRows:x,multiline:w=!1,name:E,onBlur:C,onChange:R,onClick:O,onFocus:P,onKeyDown:A,onKeyUp:I,placeholder:D,readOnly:M,renderSuffix:L,rows:k,slotProps:T={},slots:_={},startAdornment:j,type:q="text",value:N}=n,F=Zr(n,Cd),z=null!=b.value?b.value:N,{current:H}=S.useRef(null!=z),B=S.useRef(),$=S.useCallback((e=>{}),[]),V=Wl(B,v,b.ref,$),[W,G]=S.useState(!1),U=vd(),Y=gd({props:n,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:W,S.useEffect((()=>{!U&&d&&W&&(G(!1),C&&C())}),[U,d,W,C]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=S.useCallback((e=>{Sd(e)?K&&K():X&&X()}),[K,X]);Fl((()=>{H&&J({value:z})}),[z,J,H]);S.useEffect((()=>{J(B.current)}),[]);let Z=g,Q=b;w&&"input"===Z&&(Q=Jr(k?{type:void 0,minRows:k,maxRows:k}:{type:void 0,maxRows:y,minRows:x},Q),Z=hd);S.useEffect((()=>{U&&U.setAdornedStart(Boolean(j))}),[U,j]);const ee=Jr({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:U,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:w,size:Y.size,startAdornment:j,type:q}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return Ea({root:["root",`color${jl(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${jl(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},wd,t)})(ee),re=_.root||l.Root||Pd,ne=T.root||u.root||{},oe=_.input||l.Input||Ad;return Q=Jr({},Q,null!=(r=T.input)?r:u.input),nr.jsxs(S.Fragment,{children:[!p&&Id,nr.jsxs(re,Jr({},ne,!Cc(re)&&{ownerState:Jr({},ee,ne.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),O&&O(e)}},F,{className:ju(te.root,ne.className,s,M&&"MuiInputBase-readOnly"),children:[j,nr.jsx(bd.Provider,{value:null,children:nr.jsx(oe,Jr({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:h,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:E,placeholder:D,readOnly:M,required:Y.required,rows:k,value:z,onKeyDown:A,onKeyUp:I,type:q},Q,!Cc(oe)&&{as:Z,ownerState:Jr({},ee,Q.ownerState)},{ref:V,className:ju(te.input,Q.className,M&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),b.onBlur&&b.onBlur(e),U&&U.onBlur?U.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!H){const t=e.target||B.current;if(null==t)throw new Error(Kr(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(P&&P(e),b.onFocus&&b.onFocus(e),U&&U.onFocus?U.onFocus(e):G(!0))}}))}),f,L?L(Jr({},Y,{startAdornment:j})):null]}))]})}));function Md(e){return au("MuiInput",e)}const Ld=Jr({},Ed,su("MuiInput",["root","underline","input"]));function kd(e){return au("MuiOutlinedInput",e)}const Td=Jr({},Ed,su("MuiOutlinedInput",["root","notchedOutline","input"]));function _d(e){return au("MuiFilledInput",e)}const jd=Jr({},Ed,su("MuiFilledInput",["root","underline","input"]));var qd=function(e,t){function r(r,n){return nr.jsx(zu,Jr({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=zu.muiName,S.memo(S.forwardRef(r))}(nr.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Nd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Fd={entering:{opacity:1},entered:{opacity:1}},zd=S.forwardRef((function(e,t){const r=Iu(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=n,TransitionComponent:b=dc}=e,v=Zr(e,Nd),y=S.useRef(null),x=Wl(y,a.ref,t),w=e=>t=>{if(e){const r=y.current;void 0===t?e(r):e(r,t)}},E=w(d),C=w(((e,t)=>{vc(e);const n=yc({style:h,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),R=w(c),O=w(m),P=w((e=>{const t=yc({style:h,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),A=w(f);return nr.jsx(b,Jr({appear:i,in:l,nodeRef:y,onEnter:C,onEntered:R,onEntering:E,onExit:P,onExited:A,onExiting:O,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>S.cloneElement(a,Jr({style:Jr({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},Fd[e],h,a.props.style),ref:x},t))}))}));function Hd(e){return au("MuiBackdrop",e)}su("MuiBackdrop",["root","invisible"]);const Bd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],$d=ku("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>Jr({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),Vd=S.forwardRef((function(e,t){var r,n,o;const i=Du({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=zd,transitionDuration:g}=i,b=Zr(i,Bd),v=Jr({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Ea({root:["root",r&&"invisible"]},Hd,t)})(v),x=null!=(r=f.root)?r:c.root;return nr.jsx(h,Jr({in:p,timeout:g},b,{children:nr.jsx($d,Jr({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:l,className:ju(y.root,s,null==x?void 0:x.className),ownerState:Jr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),Wd=su("MuiBox",["root"]),Gd=Pu(),Ud=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=$i("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Es);return S.forwardRef((function(e,a){const s=Is(r),l=Ls(e),{className:u,component:c="div"}=l,d=Mt(l,ks);return nr.jsx(i,wt({as:c,ref:a,className:Ra(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:Xr,defaultTheme:Gd,defaultClassName:Wd.root,generateClassName:ou.generate});function Yd(e){return au("MuiButton",e)}const Kd=su("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Xd=S.createContext({}),Jd=S.createContext(void 0),Zd=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Qd=e=>Jr({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),ep=ku(Gc,{shouldForwardProp:e=>Mu(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${jl(r.color)}`],t[`size${jl(r.size)}`],t[`${r.variant}Size${jl(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Jr({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Jr({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ys(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ys(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ys(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Jr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Kd.focusVisible}`]:Jr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Kd.disabled}`]:Jr({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Ys(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Kd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Kd.disabled}`]:{boxShadow:"none"}})),tp=ku("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${jl(r.size)}`]]}})((({ownerState:e})=>Jr({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Qd(e)))),rp=ku("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${jl(r.size)}`]]}})((({ownerState:e})=>Jr({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Qd(e)))),np=S.forwardRef((function(e,t){const r=S.useContext(Xd),n=S.useContext(Jd),o=Du({props:ru(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:b,variant:v="text"}=o,y=Zr(o,Zd),x=Jr({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:b,variant:v}),w=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return Jr({},a,Ea({root:["root",i,`${i}${jl(t)}`,`size${jl(o)}`,`${i}Size${jl(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${jl(o)}`],endIcon:["endIcon",`iconSize${jl(o)}`]},Yd,a))})(x),E=g&&nr.jsx(tp,{className:w.startIcon,ownerState:x,children:g}),C=p&&nr.jsx(rp,{className:w.endIcon,ownerState:x,children:p}),R=n||"";return nr.jsxs(ep,Jr({ownerState:x,className:ju(r.className,w.root,l,R),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:ju(w.focusVisible,f),ref:t,type:b},y,{classes:w,children:[E,i,C]}))}));function op(e){return au("MuiModal",e)}su("MuiModal",["root","hidden","backdrop"]);const ip=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],ap=ku("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Jr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),sp=ku(Vd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),lp=S.forwardRef((function(e,t){var r,n,o,i,a,s;const l=Du({name:"MuiModal",props:e}),{BackdropComponent:u=sp,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:w=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:R=!1,keepMounted:O=!1,onBackdropClick:P,open:A,slotProps:I,slots:D}=l,M=Zr(l,ip),L=Jr({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:w,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:R,keepMounted:O}),{getRootProps:k,getBackdropProps:T,getTransitionProps:_,portalRef:j,isTopModal:q,exited:N,hasTransition:F}=cd(Jr({},L,{rootRef:t})),z=Jr({},L,{exited:N}),H=(e=>{const{open:t,exited:r,classes:n}=e;return Ea({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},op,n)})(z),B={};if(void 0===f.props.tabIndex&&(B.tabIndex="-1"),F){const{onEnter:e,onExited:t}=_();B.onEnter=e,B.onExited=t}const $=null!=(r=null!=(n=null==D?void 0:D.root)?n:g.Root)?r:ap,V=null!=(o=null!=(i=null==D?void 0:D.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==I?void 0:I.root)?a:b.root,G=null!=(s=null==I?void 0:I.backdrop)?s:b.backdrop,U=Ac({elementType:$,externalSlotProps:W,externalForwardedProps:M,getSlotProps:k,additionalProps:{ref:t,as:h},ownerState:z,className:ju(d,null==W?void 0:W.className,null==H?void 0:H.root,!z.open&&z.exited&&(null==H?void 0:H.hidden))}),Y=Ac({elementType:V,externalSlotProps:G,additionalProps:c,getSlotProps:e=>T(Jr({},e,{onClick:t=>{P&&P(t),null!=e&&e.onClick&&e.onClick(t)}})),className:ju(null==G?void 0:G.className,null==c?void 0:c.className,null==H?void 0:H.backdrop),ownerState:z});return O||A||F&&!N?nr.jsx(nd,{ref:j,container:m,disablePortal:w,children:nr.jsxs($,Jr({},U,{children:[!R&&u?nr.jsx(V,Jr({},Y)):null,nr.jsx(rd,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:E,isEnabled:q,open:A,children:S.cloneElement(f,B)})]}))}):null}));function up(e){return au("MuiDivider",e)}const cp=su("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),dp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],pp=ku("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Jr({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Ys(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>Jr({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Jr({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Jr({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Jr({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),fp=ku("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Jr({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),mp=S.forwardRef((function(e,t){const r=Du({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=Zr(r,dp),m=Jr({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Ea({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},up,n)})(m);return nr.jsx(pp,Jr({as:a,className:ju(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?nr.jsx(fp,{className:h.wrapper,ownerState:m,children:o}):null}))}));mp.muiSkipListHighlight=!0;const hp=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],gp=ku(Pd,{shouldForwardProp:e=>Mu(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Rd(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Jr({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${jd.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${jd.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${jd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${jd.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${jd.disabled}, .${jd.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${jd.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Jr({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),bp=ku(Ad,{name:"MuiFilledInput",slot:"Input",overridesResolver:Od})((({theme:e,ownerState:t})=>Jr({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),vp=S.forwardRef((function(e,t){var r,n,o,i;const a=Du({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=Zr(a,hp),g=Jr({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:r}=e;return Jr({},t,Ea({root:["root",!r&&"underline"],input:["input"]},_d,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?_l(v,null!=p?p:l):v,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:gp,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:bp;return nr.jsx(Dd,Jr({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));vp.muiName="Input";const yp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function xp(e){return`scale(${e}, ${e**2})`}const Sp={entering:{opacity:1,transform:xp(1)},entered:{opacity:1,transform:"none"}},wp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ep=S.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=dc}=e,g=Zr(e,yp),b=S.useRef(),v=S.useRef(),y=Iu(),x=S.useRef(null),w=Wl(x,o.ref,t),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=E(u),R=E(((e,t)=>{vc(e);const{duration:r,delay:n,easing:o}=yc({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:n}),y.transitions.create("transform",{duration:wp?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)})),O=E(l),P=E(p),A=E((e=>{const{duration:t,delay:r,easing:n}=yc({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:r}),y.transitions.create("transform",{duration:wp?o:.666*o,delay:wp?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=xp(.75),c&&c(e)})),I=E(d);return S.useEffect((()=>()=>{clearTimeout(b.current)}),[]),nr.jsx(h,Jr({appear:n,in:a,nodeRef:x,onEnter:R,onEntered:O,onEntering:C,onExit:A,onExited:I,onExiting:P,addEndListener:e=>{"auto"===m&&(b.current=setTimeout(e,v.current||0)),r&&r(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>S.cloneElement(o,Jr({style:Jr({opacity:0,transform:xp(.75),visibility:"exited"!==e||a?void 0:"hidden"},Sp[e],f,o.props.style),ref:w},t))}))}));Ep.muiSupportAuto=!0;const Cp=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Rp=ku(Pd,{shouldForwardProp:e=>Mu(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Rd(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Jr({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ld.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ld.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ld.disabled}, .${Ld.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ld.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Op=ku(Ad,{name:"MuiInput",slot:"Input",overridesResolver:Od})({}),Pp=S.forwardRef((function(e,t){var r,n,o,i;const a=Du({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=Zr(a,Cp),b=(e=>{const{classes:t,disableUnderline:r}=e;return Jr({},t,Ea({root:["root",!r&&"underline"],input:["input"]},Md,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?_l(null!=f?f:u,v):v,x=null!=(r=null!=(n=m.root)?n:l.Root)?r:Rp,S=null!=(o=null!=(i=m.input)?i:l.Input)?o:Op;return nr.jsx(Dd,Jr({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));function Ap(e){return au("MuiLink",e)}Pp.muiName="Input";const Ip=su("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Dp={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Mp=({theme:e,ownerState:t})=>{const r=(e=>Dp[e]||e)(t.color),n=ka(e,`palette.${r}`,!1)||t.color,o=ka(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Ys(n,.4)},Lp=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],kp=ku(Zc,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${jl(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>Jr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Jr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Mp({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Ip.focusVisible}`]:{outline:"auto"}}))),Tp=S.forwardRef((function(e,t){const r=Du({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:s,TypographyClasses:l,underline:u="always",variant:c="inherit",sx:d}=r,p=Zr(r,Lp),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=tu(),[b,v]=S.useState(!1),y=Wl(t,g),x=Jr({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),w=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return Ea({root:["root",`underline${jl(o)}`,"button"===r&&"button",n&&"focusVisible"]},Ap,t)})(x);return nr.jsx(kp,Jr({color:o,className:ju(w.root,n),classes:l,component:i,onBlur:e=>{m(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{h(e),!0===f.current&&v(!0),s&&s(e)},ref:y,ownerState:x,variant:c,sx:[...Object.keys(Dp).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))})),_p=S.createContext({});function jp(e){return au("MuiList",e)}su("MuiList",["root","padding","dense","subheader"]);const qp=["children","className","component","dense","disablePadding","subheader"],Np=ku("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>Jr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Fp=S.forwardRef((function(e,t){const r=Du({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,u=Zr(r,qp),c=S.useMemo((()=>({dense:a})),[a]),d=Jr({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Ea({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},jp,t)})(d);return nr.jsx(_p.Provider,{value:c,children:nr.jsxs(Np,Jr({as:i,className:ju(p.root,o),ref:t,ownerState:d},u,{children:[l,n]}))})}));function zp(e){return au("MuiListItemIcon",e)}const Hp=su("MuiListItemIcon",["root","alignItemsFlexStart"]),Bp=["className"],$p=ku("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>Jr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),Vp=S.forwardRef((function(e,t){const r=Du({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Zr(r,Bp),i=Jr({},r,{alignItems:S.useContext(_p).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Ea({root:["root","flex-start"===t&&"alignItemsFlexStart"]},zp,r)})(i);return nr.jsx($p,Jr({className:ju(a.root,n),ownerState:i,ref:t},o))})),Wp=su("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Gp=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Up(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Yp(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Kp(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Xp(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Kp(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const Jp=S.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Zr(e,Gp),p=S.useRef(null),f=S.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Fl((()=>{n&&p.current.focus()}),[n]),S.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(ql(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const m=Wl(p,t);let h=-1;S.Children.forEach(i,((e,t)=>{S.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=S.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),S.cloneElement(e,t)}return e}));return nr.jsx(Fp,Jr({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=ql(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Xp(t,n,l,s,Up);else if("ArrowUp"===r)e.preventDefault(),Xp(t,n,l,s,Yp);else if("Home"===r)e.preventDefault(),Xp(t,null,l,s,Up);else if("End"===r)e.preventDefault(),Xp(t,null,l,s,Yp);else if(1===r.length){const o=f.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=n&&!o.repeating&&Kp(n,o);o.previousKeyMatched&&(l||Xp(t,n,!1,s,Up,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function Zp(e){return au("MuiPopover",e)}su("MuiPopover",["root","paper"]);const Qp=["onEntering"],ef=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],tf=["slotProps"];function rf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function nf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function of(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function af(e){return"function"==typeof e?e():e}const sf=ku(lp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),lf=ku(Ec,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),uf=S.forwardRef((function(e,t){var r,n,o;const i=Du({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:w=Ep,transitionDuration:E="auto",TransitionProps:{onEntering:C}={},disableScrollLock:R=!1}=i,O=Zr(i.TransitionProps,Qp),P=Zr(i,ef),A=null!=(r=null==y?void 0:y.paper)?r:b,I=S.useRef(),D=Wl(I,A.ref),M=Jr({},i,{anchorOrigin:l,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:A,transformOrigin:x,TransitionComponent:w,transitionDuration:E,TransitionProps:O}),L=(e=>{const{classes:t}=e;return Ea({root:["root"],paper:["paper"]},Zp,t)})(M),k=S.useCallback((()=>{if("anchorPosition"===c)return u;const e=af(s),t=(e&&1===e.nodeType?e:ql(I.current).body).getBoundingClientRect();return{top:t.top+rf(t,l.vertical),left:t.left+nf(t,l.horizontal)}}),[s,l.horizontal,l.vertical,u,c]),T=S.useCallback((e=>({vertical:rf(e,x.vertical),horizontal:nf(e,x.horizontal)})),[x.horizontal,x.vertical]),_=S.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=T(t);if("none"===c)return{top:null,left:null,transformOrigin:of(r)};const n=k();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=Nl(af(s)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,r.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:of(r)}}),[s,c,k,T,h]),[j,q]=S.useState(g),N=S.useCallback((()=>{const e=I.current;if(!e)return;const t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,q(!0)}),[_]);S.useEffect((()=>(R&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N))),[s,R,N]);S.useEffect((()=>{g&&N()})),S.useImperativeHandle(a,(()=>g?{updatePosition:()=>{N()}}:null),[g,N]),S.useEffect((()=>{if(!g)return;const e=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}((()=>{N()})),t=Nl(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,N]);let F=E;"auto"!==E||w.muiSupportAuto||(F=void 0);const z=f||(s?ql(af(s)).body:void 0),H=null!=(n=null==v?void 0:v.root)?n:sf,B=null!=(o=null==v?void 0:v.paper)?o:lf,$=Ac({elementType:B,externalSlotProps:Jr({},A,{style:j?A.style:Jr({},A.style,{opacity:0})}),additionalProps:{elevation:m,ref:D},ownerState:M,className:ju(L.paper,null==A?void 0:A.className)}),V=Ac({elementType:H,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:P,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:M,className:ju(L.root,p)}),{slotProps:W}=V,G=Zr(V,tf);return nr.jsx(H,Jr({},G,!Cc(H)&&{slotProps:W,disableScrollLock:R},{children:nr.jsx(w,Jr({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),N()},onExited:()=>{q(!1)},timeout:F},O,{children:nr.jsx(B,Jr({},$,{children:d}))}))}))}));function cf(e){return au("MuiMenu",e)}su("MuiMenu",["root","paper","list"]);const df=["onEntering"],pf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],ff={vertical:"top",horizontal:"right"},mf={vertical:"top",horizontal:"left"},hf=ku(uf,{shouldForwardProp:e=>Mu(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gf=ku(lf,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),bf=ku(Jp,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),vf=S.forwardRef((function(e,t){var r,n;const o=Du({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=Zr(o.TransitionProps,df),x=Zr(o,pf),w=Iu(),E="rtl"===w.direction,C=Jr({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),R=(e=>{const{classes:t}=e;return Ea({root:["root"],paper:["paper"],list:["list"]},cf,t)})(C),O=i&&!l&&d,P=S.useRef(null);let A=-1;S.Children.map(a,((e,t)=>{S.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===A)&&(A=t))}));const I=null!=(r=b.paper)?r:gf,D=null!=(n=v.paper)?n:p,M=Ac({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[R.root,s]}),L=Ac({elementType:I,externalSlotProps:D,ownerState:C,className:R.paper});return nr.jsx(hf,Jr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?ff:mf,slots:{paper:I,root:b.root},slotProps:{root:M,paper:L},open:d,ref:t,transitionDuration:m,TransitionProps:Jr({onEntering:(e,t)=>{P.current&&P.current.adjustStyleForScrollbar(e,w),h&&h(e,t)}},y),ownerState:C},x,{classes:f,children:nr.jsx(bf,Jr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:P,autoFocus:i&&(-1===A||l),autoFocusItem:O,variant:g},u,{className:ju(R.list,u.className),children:a}))}))}));function yf(e){return au("MuiMenuItem",e)}const xf=su("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Sf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],wf=ku(Gc,{shouldForwardProp:e=>Mu(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Jr({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${xf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ys(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${xf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ys(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${xf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ys(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ys(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${xf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${xf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${cp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${cp.inset}`]:{marginLeft:52},[`& .${Wp.root}`]:{marginTop:0,marginBottom:0},[`& .${Wp.inset}`]:{paddingLeft:36},[`& .${Hp.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Jr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Hp.root} svg`]:{fontSize:"1.25rem"}})))),Ef=S.forwardRef((function(e,t){const r=Du({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d}=r,p=Zr(r,Sf),f=S.useContext(_p),m=S.useMemo((()=>({dense:i||f.dense||!1,disableGutters:s})),[f.dense,i,s]),h=S.useRef(null);Fl((()=>{n&&h.current&&h.current.focus()}),[n]);const g=Jr({},r,{dense:m.dense,divider:a,disableGutters:s}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return Jr({},a,Ea({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},yf,a))})(r),v=Wl(h,t);let y;return r.disabled||(y=void 0!==c?c:-1),nr.jsx(_p.Provider,{value:m,children:nr.jsx(wf,Jr({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:ju(b.focusVisible,l),className:ju(b.root,d)},p,{ownerState:g,classes:b}))})}));function Cf(e){return au("MuiNativeSelect",e)}const Rf=su("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Of=["className","disabled","error","IconComponent","inputRef","variant"],Pf=({ownerState:e,theme:t})=>Jr({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Jr({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Rf.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Af=ku("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Mu,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Rf.multiple}`]:t.multiple}]}})(Pf),If=({ownerState:e,theme:t})=>Jr({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Rf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Df=ku("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${jl(r.variant)}`],r.open&&t.iconOpen]}})(If),Mf=S.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Zr(e,Of),u=Jr({},e,{disabled:n,variant:s,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Ea({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${jl(r)}`,i&&"iconOpen",n&&"disabled"]},Cf,t)})(u);return nr.jsxs(S.Fragment,{children:[nr.jsx(Af,Jr({ownerState:u,className:ju(c.select,r),disabled:n,ref:a||t},l)),e.multiple?null:nr.jsx(Df,{as:i,ownerState:u,className:c.icon})]})}));var Lf;const kf=["children","classes","className","label","notched"],Tf=ku("fieldset",{shouldForwardProp:Mu})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),_f=ku("legend",{shouldForwardProp:Mu})((({ownerState:e,theme:t})=>Jr({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&Jr({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));const jf=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],qf=ku(Pd,{shouldForwardProp:e=>Mu(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Rd})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Jr({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Td.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Td.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Td.focused} .${Td.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Td.error} .${Td.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Td.disabled} .${Td.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Jr({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Nf=ku((function(e){const{className:t,label:r,notched:n}=e,o=Zr(e,kf),i=null!=r&&""!==r,a=Jr({},e,{notched:n,withLabel:i});return nr.jsx(Tf,Jr({"aria-hidden":!0,className:t,ownerState:a},o,{children:nr.jsx(_f,{ownerState:a,children:i?nr.jsx("span",{children:r}):Lf||(Lf=nr.jsx("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),Ff=ku(Ad,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Od})((({theme:e,ownerState:t})=>Jr({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),zf=S.forwardRef((function(e,t){var r,n,o,i,a;const s=Du({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=s,g=Zr(s,jf),b=(e=>{const{classes:t}=e;return Jr({},t,Ea({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},kd,t))})(s),v=vd(),y=gd({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=Jr({},s,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:h}),w=null!=(r=null!=(n=m.root)?n:l.Root)?r:qf,E=null!=(o=null!=(i=m.input)?i:l.Input)?o:Ff;return nr.jsx(Dd,Jr({slots:{root:w,input:E},renderSuffix:e=>nr.jsx(Nf,{ownerState:x,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=nr.jsxs(S.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:Jr({},b,{notchedOutline:null})}))}));function Hf(e){return au("MuiSelect",e)}zf.muiName="Input";const Bf=su("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var $f;const Vf=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Wf=ku("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Bf.select}`]:t.select},{[`&.${Bf.select}`]:t[r.variant]},{[`&.${Bf.error}`]:t.error},{[`&.${Bf.multiple}`]:t.multiple}]}})(Pf,{[`&.${Bf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Gf=ku("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${jl(r.variant)}`],r.open&&t.iconOpen]}})(If),Uf=ku("input",{shouldForwardProp:e=>Lu(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Yf(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Kf(e){return null==e||"string"==typeof e&&!e.trim()}const Xf=S.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:x,onChange:w,onClose:E,onFocus:C,onOpen:R,open:O,readOnly:P,renderValue:A,SelectDisplayProps:I={},tabIndex:D,value:M,variant:L="standard"}=e,k=Zr(e,Vf),[T,_]=$l({controlled:M,default:c,name:"Select"}),[j,q]=$l({controlled:O,default:u,name:"Select"}),N=S.useRef(null),F=S.useRef(null),[z,H]=S.useState(null),{current:B}=S.useRef(null!=O),[$,V]=S.useState(),W=Wl(t,h),G=S.useCallback((e=>{F.current=e,e&&H(e)}),[]),U=null==z?void 0:z.parentNode;S.useImperativeHandle(W,(()=>({focus:()=>{F.current.focus()},node:N.current,value:T})),[T]),S.useEffect((()=>{u&&j&&z&&!B&&(V(a?null:U.clientWidth),F.current.focus())}),[z,a]),S.useEffect((()=>{i&&F.current.focus()}),[i]),S.useEffect((()=>{if(!g)return;const e=ql(F.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const Y=(e,t)=>{e?R&&R(t):E&&E(t),B||(V(a?null:U.clientWidth),q(e))},K=S.Children.toArray(s),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(v){r=Array.isArray(T)?T.slice():[];const t=T.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),T!==r&&(_(r),w)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:y}}),w(o,e)}v||Y(!1,t)}},J=null!==z&&j;let Z,Q;delete k["aria-invalid"];const ee=[];let te=!1;(Sd({value:T})||p)&&(A?Z=A(T):te=!0);const re=K.map((e=>{if(!S.isValidElement(e))return null;let t;if(v){if(!Array.isArray(T))throw new Error(Kr(2));t=T.some((t=>Yf(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Yf(T,e.props.value),t&&te&&(Q=e.props.children);return S.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=v?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Q);let ne,oe=$;!a&&B&&z&&(oe=U.clientWidth),ne=void 0!==D?D:d?null:0;const ie=I.id||(y?`mui-component-select-${y}`:void 0),ae=Jr({},e,{variant:L,value:T,open:J,error:f}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Ea({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${jl(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},Hf,t)})(ae),le=Jr({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=Bl();return nr.jsxs(S.Fragment,{children:[nr.jsx(Wf,Jr({ref:G,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!P){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||P?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),Y(!0,e))},onBlur:e=>{!J&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:T,name:y}}),x(e))},onFocus:C},I,{ownerState:ae,className:ju(I.className,se.select,l),id:ie,children:Kf(Z)?$f||($f=nr.jsx("span",{className:"notranslate",children:"​"})):Z})),nr.jsx(Uf,Jr({"aria-invalid":f,value:Array.isArray(T)?T.join(","):T,name:y,ref:N,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(_(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},k)),nr.jsx(Gf,{as:m,className:se.icon,ownerState:ae}),nr.jsx(vf,Jr({id:`menu-${y||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Jr({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:Jr({},b.slotProps,{paper:Jr({},le,{style:Jr({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})})),Jf=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Zf=["root"],Qf={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Mu(e)&&"variant"!==e,slot:"Root"},em=ku(Pp,Qf)(""),tm=ku(zf,Qf)(""),rm=ku(vp,Qf)(""),nm=S.forwardRef((function(e,t){const r=Du({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=qd,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:x,renderValue:w,SelectDisplayProps:E,variant:C="outlined"}=r,R=Zr(r,Jf),O=b?Mf:Xf,P=gd({props:r,muiFormControl:vd(),states:["variant","error"]}),A=P.variant||C,I=Jr({},r,{variant:A,classes:i}),D=(e=>{const{classes:t}=e;return t})(I),M=Zr(D,Zf),L=d||{standard:nr.jsx(em,{ownerState:I}),outlined:nr.jsx(tm,{label:f,ownerState:I}),filled:nr.jsx(rm,{ownerState:I})}[A],k=Wl(t,L.ref);return nr.jsx(S.Fragment,{children:S.cloneElement(L,Jr({inputComponent:O,inputProps:Jr({children:o,error:P.error,IconComponent:u,variant:A,type:void 0,multiple:g},b?{id:c}:{autoWidth:n,defaultOpen:s,displayEmpty:l,labelId:m,MenuProps:h,onClose:v,onOpen:y,open:x,renderValue:w,SelectDisplayProps:Jr({id:c},E)},p,{classes:p?_l(M,p.classes):M},d?d.props.inputProps:{})},g&&b&&"outlined"===A?{notched:!0}:{},{ref:k,className:ju(L.props.className,a,D.root)},!d&&{variant:A},R))})}));function om(e={}){return nr.jsx(ur,{...e,children:nr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:nr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:nr.jsx("rect",{stroke:jt.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}nm.muiName="Select";const im={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:Ht,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var am=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:jt.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:jt.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:nr.jsx(ar,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${jt.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:jt.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${jt.MISC_FOCUS_BORDER}`,borderRadius:Ht,backgroundColor:jt.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${jt.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:jt.WHITE,color:jt.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:Ht},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${jt.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:jt.GREYSCALE_0_15,backgroundColor:jt.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:jt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${jt.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:jt.GREEN_PALE},"&:active":{backgroundColor:jt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:jt.GREEN_PALE,boxShadow:`0 0 0 3px ${Ys(jt.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:jt.BLUE_PALE},"&:active":{backgroundColor:jt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:jt.BLUE_PALE,boxShadow:`0 0 0 3px ${Ys(jt.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:Ht,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:jt.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${jt.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:jt.GREYSCALE_0_15,backgroundColor:jt.GREYSCALE_100_60,"&:active":{backgroundColor:jt.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:jt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${jt.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:jt.PURPLE,"&.Mui-focusVisible":{borderColor:jt.PURPLE,boxShadow:`0 0 0 3px ${Ys(jt.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:jt.GREEN,"&.Mui-focusVisible":{borderColor:jt.GREEN,boxShadow:`0 0 0 3px ${Ys(jt.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:jt.BLUE,"&.Mui-focusVisible":{borderColor:jt.BLUE,boxShadow:`0 0 0 3px ${Ys(jt.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:jt.ORANGE,"&.Mui-focusVisible":{borderColor:jt.ORANGE,boxShadow:`0 0 0 3px ${Ys(jt.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:jt.RED,"&.Mui-focusVisible":{borderColor:jt.RED,boxShadow:`0 0 0 3px ${Ys(jt.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:jt.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:jt.PURPLE_PALE},"&:active":{backgroundColor:jt.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:jt.PURPLE_PALE,boxShadow:`0 0 0 3px ${Ys(jt.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:jt.GREEN_PALE},"&:active":{backgroundColor:jt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:jt.GREEN_PALE,boxShadow:`0 0 0 3px ${Ys(jt.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:jt.BLUE_PALE},"&:active":{backgroundColor:jt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:jt.BLUE_PALE,boxShadow:`0 0 0 3px ${Ys(jt.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:jt.ORANGE_PALE},"&:active":{backgroundColor:jt.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:jt.ORANGE_PALE,boxShadow:`0 0 0 3px ${Ys(jt.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:jt.RED_PALE},"&:active":{backgroundColor:jt.RED_DARK},"&.Mui-focusVisible":{borderColor:jt.RED_PALE,boxShadow:`0 0 0 3px ${Ys(jt.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:jt.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:jt.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Ht,boxShadow:`inset 0 0 0 2px ${jt.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:nr.jsx(lr,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:qt,borderRadius:Ht,color:jt.TEXT_PRIMARY,backgroundColor:jt.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:jt.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${jt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:jt.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:jt.GREYSCALE_0_05,color:jt.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:jt.GREEN,borderColor:jt.GREEN},"&.MuiChip-outlinedInfo":{color:jt.BLUE,borderColor:jt.BLUE},"&.MuiChip-outlinedWarning":{color:jt.ORANGE,borderColor:jt.ORANGE},"&.MuiChip-outlinedError":{color:jt.RED,borderColor:jt.RED}},outlined:{border:`solid 1px ${jt.GREYSCALE_0_15}`,backgroundColor:jt.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Ht,boxShadow:"none",backgroundColor:jt.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:jt.GREEN,borderColor:jt.GREEN},outlinedSecondary:{color:jt.BLUE,borderColor:jt.BLUE},label:{fontFamily:Gt.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:nr.jsx(lr,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:nr.jsx(ar,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:Ht},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Ht,fontSize:Nt,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:jt.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${jt.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:jt.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:jt.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:jt.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Ht,border:`solid 1px ${jt.GREYSCALE_0_15}`,color:jt.GREYSCALE_0_60,marginRight:0,width:zt,height:zt},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${jt.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Ht,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:jt.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Nt}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:qt,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:jt.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:jt.GREYSCALE_25,fontSize:qt,fontFamily:Gt.FONT_FAMILY,fontWeight:Vt,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:jt.TEXT_PRIMARY},"&.Mui-error":{color:jt.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:jt.TEXT_SECONDARY,content:"'(optional)'",fontWeight:$t,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:jt.TEXT_SECONDARY,content:"'(required)'",fontWeight:$t,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Nt,lineHeight:"16px",backgroundColor:jt.WHITE,borderRadius:Ht,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${jt.GREYSCALE_0_05}`,borderColor:jt.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${jt.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${jt.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${jt.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${jt.RED}`,boxShadow:`0px 0px 0px 1px ${jt.RED}, inset 0 2px 0 0 ${jt.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${jt.GREYSCALE_0_10}`,borderColor:jt.GREYSCALE_0_10,backgroundColor:jt.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:jt.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:jt.GREYSCALE_0_15,borderRadius:Ht,boxShadow:`inset 0 2px 0 0 ${jt.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>nr.jsx(ar,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:jt.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:jt.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:jt.GREYSCALE_0_03},"&:active":{backgroundColor:jt.GREYSCALE_0_10},"&:focus":{backgroundColor:jt.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${jt.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${jt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:jt.GREYSCALE_0_30,"&:hover":{backgroundColor:jt.GREYSCALE_0_0,borderColor:jt.GREYSCALE_0_15},"& ~svg":{color:jt.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${jt.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Ht}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:jt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${jt.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:jt.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Nt,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:qt,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:qt,fontWeight:Vt,color:jt.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Vt}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${jt.GREYSCALE_0_15}, 0px 0px 0px 1px ${jt.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:nr.jsx(pr,{}),checkedIcon:nr.jsx(fr,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:jt.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${jt.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:jt.GREEN_PALE,boxShadow:`0 0 0 3px ${Ys(jt.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:jt.BLUE_PALE,boxShadow:`0 0 0 3px ${Ys(jt.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:jt.GREYSCALE_0_20}},"&.Mui-disabled":{fill:jt.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:nr.jsx(om,{}),checkedIcon:nr.jsx(cr,{}),indeterminateIcon:nr.jsx(dr,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Ht,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:jt.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:jt.GREYSCALE_0_55,color:jt.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:jt.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:jt.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:jt.GREYSCALE_0_55,"&:hover":{color:jt.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:jt.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:jt.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Nt,color:jt.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Vt},secondary:{fontSize:qt,color:jt.GREYSCALE_45,fontWeight:$t,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Nt,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Nt,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:jt.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:qt,borderBottom:`solid 1px ${jt.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Nt,color:jt.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:jt.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:jt.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:jt.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:jt.RED}}},"&.Mui-focusVisible":{backgroundColor:jt.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:jt.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:jt.GREEN,height:"24px","&.Mui-disabled":{color:jt.GREYSCALE_0_15}},rail:{backgroundColor:jt.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${jt.GREYSCALE_0_05}`,borderRadius:Ht,boxShadow:`inset 0px 0px 0px 1px ${jt.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${jt.GREYSCALE_0_05}`,borderRadius:Ht},thumb:{height:"16px",width:"16px",borderRadius:Ht,backgroundColor:jt.WHITE,boxShadow:`0px 1px 2px 0px ${jt.GREYSCALE_0_15}, 0px 0px 0px 1px ${jt.GREYSCALE_0_05}`,"&:hover":{borderRadius:Ht,boxShadow:`0 2px 4px 0 ${jt.GREYSCALE_0_30}, 0 0 0 1px ${jt.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${jt.GREYSCALE_0_15}, 0 0 0 1px ${jt.GREYSCALE_0_06}, 0 0 0 2px ${jt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${jt.GREYSCALE_0_15}, 0 0 0 1px ${jt.GREYSCALE_0_06}, 0 0 0 2px ${jt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:jt.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:jt.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:jt.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:jt.GREYSCALE_0_15},markLabel:{color:jt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:jt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:jt.WHITE,color:jt.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:jt.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:jt.GREEN_PALE,boxShadow:`0 0 0 3px ${Ys(jt.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:jt.BLUE_PALE,boxShadow:`0 0 0 3px ${Ys(jt.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:jt.GREYSCALE_0_15,borderRadius:Ht},thumb:{height:"16px",width:"16px",borderRadius:Ht,backgroundColor:jt.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:Nt,fontWeight:Vt,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${jt.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${jt.MISC_FOCUS_BORDER}`,backgroundColor:jt.GREYSCALE_0_03,borderRadius:Ht},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:jt.GREYSCALE_25,"&.Mui-selected":{color:jt.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Nt,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Ht,"&:hover":{backgroundColor:jt.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${jt.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${jt.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Ht,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:jt.GREYSCALE_0_05},"&:hover":{backgroundColor:jt.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${jt.GREYSCALE_85}`,borderRight:`1px solid ${jt.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Vt,backgroundColor:jt.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:jt.GREYSCALE_98,borderBottom:`1px solid ${jt.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${jt.GREYSCALE_85}`,borderTop:`1px solid ${jt.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:jt.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:jt.GREYSCALE_0_05,"&:hover":{backgroundColor:jt.GREYSCALE_0_03}},"&&:hover":{backgroundColor:jt.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>nr.jsx(mr,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${jt.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Nt,borderRadius:Ht,padding:"7px 16px",border:`1px solid ${jt.GREYSCALE_0_15}`,backgroundColor:jt.GREYSCALE_100_60,color:jt.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:jt.GREYSCALE_0_10,border:`1px solid ${jt.GREYSCALE_0_30}`},"&:hover":{backgroundColor:jt.GREYSCALE_0_03,border:`1px solid ${jt.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:jt.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${jt.MISC_FOCUS_BORDER}`,border:`1px solid ${jt.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:jt.GREYSCALE_25,backgroundColor:jt.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:jt.GREYSCALE_0_10,border:`1px solid ${jt.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:qt,height:24,width:24,padding:7},sizeLarge:{fontSize:Ft,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Nt,borderRadius:Ht}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:jt.GREYSCALE_20},tooltip:{backgroundColor:jt.GREYSCALE_20,fontSize:qt,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...im}:{}}))(t);const sm=e=>({mode:"light",primary:{ultraLight:jt.GREEN_ULTRA_LIGHT,light:jt.GREEN_PALE,main:jt.GREEN,dark:jt.GREEN_DARK,extraDark:jt.GREEN_EXTRA_DARK,contrastText:jt.WHITE},secondary:{ultraLight:jt.BLUE_ULTRA_LIGHT,light:jt.BLUE_PALE,main:jt.BLUE,dark:jt.BLUE_DARK,extraDark:jt.BLUE_EXTRA_DARK,contrastText:jt.WHITE},error:{ultraLight:jt.RED_ULTRA_LIGHT,light:jt.RED_PALE,main:jt.RED,dark:jt.RED_DARK,extraDark:jt.RED_EXTRA_DARK,contrastText:jt.WHITE},warning:{ultraLight:jt.ORANGE_ULTRA_LIGHT,light:jt.ORANGE_PALE,main:jt.ORANGE,dark:jt.ORANGE_DARK,extraDark:jt.ORANGE_EXTRA_DARK,contrastText:jt.WHITE},success:{ultraLight:jt.GREEN_ULTRA_LIGHT,light:jt.GREEN_PALE,main:jt.GREEN,dark:jt.GREEN_DARK,extraDark:jt.GREEN_EXTRA_DARK,contrastText:jt.WHITE},info:{ultraLight:jt.BLUE_ULTRA_LIGHT,light:jt.BLUE_PALE,main:jt.BLUE,dark:jt.BLUE_DARK,extraDark:jt.BLUE_EXTRA_DARK,contrastText:jt.WHITE},text:{primary:jt.TEXT_PRIMARY,secondary:jt.TEXT_SECONDARY,disabled:jt.GREYSCALE_0_30},action:{hover:jt.GREYSCALE_0_03,hoverOpacity:.03,selected:jt.GREYSCALE_0_05,selectedOpacity:.05,focus:jt.MISC_FOCUS_BORDER},amethyst:{ultraLight:jt.WHITE,main:jt.PURPLE,light:jt.PURPLE_PALE,dark:jt.PURPLE_DARK,extraDark:jt.GREYSCALE_0_0,contrastText:jt.WHITE},background:{paper:jt.WHITE,default:jt.GREYSCALE_95},divider:jt.GREYSCALE_0_15}),lm={..._t},um=((e="light",t=!1)=>((e,t=!1)=>({components:am(0,t),palette:sm(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:Nt,fontWeightLight:Bt,fontWeightRegular:$t,fontWeightMedium:Vt,fontWeightBold:Wt,htmlFontSize:Nt,fontFamily:Gt.FONT_FAMILY,button:{fontWeight:Vt,fontSize:Nt,textTransform:"none"},body1:{fontSize:Ft,lineHeight:"24px"},body2:{fontSize:Nt,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:zt,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Ft,fontWeight:Vt,lineHeight:"16px"},h6:{fontSize:Nt,fontWeight:Vt,lineHeight:"16px"},caption:{color:jt.TEXT_SECONDARY},subtitle1:{fontSize:Nt,color:jt.TEXT_SECONDARY},subtitle2:{fontSize:qt,color:jt.TEXT_SECONDARY}},shape:{borderRadius:Ht}}))(0,t))().palette,cm={TEXT:um.text.primary,DISABLED:um.text.disabled,HOVER:um.action.hover,WHITE:lm.GREYSCALE_100,BORDER_LIGHT:lm.GREYSCALE_90,BORDER_MEDIUM:lm.GREYSCALE_85,BORDER_HEAVY:lm.GREYSCALE_50,DARK_MODE_TEXT:lm.GREYSCALE_95,DARK_MODE_BORDER:lm.GREYSCALE_95,DARK_MODE_DISABLED:lm.GREYSCALE_70,DARK_MODE_BACKGROUND:lm.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:lm.GREYSCALE_95,SELECTED:um.primary.main},dm=(e,t=cm.TEXT,r=cm.WHITE)=>{const n=oe(e),o=oe(t),i=oe(r);return n.isInvalid()?t:function(e,t,r){return ie(e,t)>ie(e,r)?t:r}(n,i,o).getRGB()},pm=e=>{const t=e.getStyle("","","dataColors.selected")||cm.SELECTED,r=function(e,t){var r=oe("#FFFFFF"),n=oe(e),o=oe(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;var i=ie(r,n),a=ie(o,n),s=i>a||i>4.5;return!s&&a>3?t:s?"#FFFFFF":"#000000"}(t,cm.TEXT);return{background:t,color:r}},fm=(e,t)=>{const r=oe(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},mm=e=>!!e&&0===oe(e).a,hm=(e,t,r)=>{const n=t?e.getColorPickerColor(t):"none";return"none"===n?r:n},gm=e=>{const t=oe(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},bm=(e,t,r)=>{var n,o,i,a;const s=null!==(n=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==n?n:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;s?s.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,r)},vm=e=>{e.stopPropagation(),e.preventDefault()},ym="#grid",xm=(e,t,r,n=cm.WHITE)=>e&&!mm(e)?e:mm(t)?r&&!mm(r)?r:n:t,Sm=(e,t)=>{const r=null==t?void 0:t.closest(e);return r&&window.getComputedStyle(r).backgroundColor},wm=(e,t,r,n,o)=>{const i=Sm(".qv-object .qv-inner-object",r),a=Sm(".qv-panel-sheet",r),s=Sm(ym,r),l=null!=s?s:a,u=(e=>{var t,r,n,o,i,a;const s=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),l=null==s||null===(r=s.bgColor)||void 0===r?void 0:r.colorExpression,u=null==s||null===(n=s.bgColor)||void 0===n||null===(n=n.color)||void 0===n?void 0:n.color;if((null==s||null===(o=s.bgColor)||void 0===o?void 0:o.useColorExpression)&&l)return gm(l);if("none"===u)return"transparent";if(void 0===u)return;const c=oe(u);return c.setAlpha(null!==(i=null==s||null===(a=s.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:c.a),c.getRGBA()})(e),c=null==n?void 0:n(t),d=null==o?void 0:o(t),p=c||i||d,f=mm(p),m=!mm(h=f?l:p)&&dm(h,cm.TEXT,cm.DARK_MODE_TEXT)===Q(cm.DARK_MODE_TEXT);var h;return{color:p,headerColor:xm(u,p,l),isDark:m}},Em=(e,r,n,s)=>{const l=a(),u=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,n]=o([]);return i((()=>{let r;return e&&(r=new MutationObserver((e=>{n(e)})),r.observe(e,t)),()=>{var e;null===(e=r)||void 0===e||e.disconnect()}}),[e,t]),r})(r.closest(ym),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return t((()=>({...l,background:wm(e,l,r,n,s)})),[l.name(),r,n,s,e,u])};function Cm(e,r){const o=t((()=>({isLoading:!0})),r),[i,a]=n((async()=>{try{return await e()}finally{o.isLoading=!1}}),r);return[i,o.isLoading,a]}const Rm=3;function Om(e,t,r){let n=0,o=e.length;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),s=e.slice(0,i-1),l=r(a),u=r(s);if(l>t&&u<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?n=i+1:o=i}return null}function Pm({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=Rm}=null!=o?o:{},{estimateWidth:a,measureText:s,estimateLineCount:l}=C((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=ct(o.measureText.bind(o)),s=e=>+a(e).width.toFixed(2),l=ct((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=Om(o,t,s)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:l}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:s,estimateLineCount:l}}var Am,Im=z;Am=Im.createRoot,Im.hydrateRoot;const Dm="Source Sans Pro, sans-serif",Mm=(e,t,r)=>{const[,n,o]=Cm((async()=>{var t;const n=ce(r.flags),o=e.getStyle("","","fontFamily"),i=e.getStyle("object","label.name","fontFamily"),a=e.getStyle("object","label.value","fontFamily"),s=null!==(t=e.getStyle("","","fontFamilies"))&&void 0!==t?t:[];return Promise.all([...n,...s,o,i,a,Dm].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,r]);return o?(console.warn("Failed to load fonts:",o),!0):!n};function Lm(e,t){const[r,n]=E(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var km={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.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":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen 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":"Geselecteerde waarden 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":"清除選項"}},NebulaTableUtils_MenuItemLabel_Collapse:{id:"NebulaTableUtils.MenuItemLabel.Collapse",locale:{"de-DE":"Reduzieren","en-US":"Collapse","es-ES":"Contraer","fr-FR":"Réduire","it-IT":"Comprimi","ja-JP":"折りたたむ","ko-KR":"축소","nl-NL":"Samenvouwen","pl-PL":"Zwiń","pt-BR":"Recolher","ru-RU":"Свернуть","sv-SE":"Dölj","tr-TR":"Daralt","zh-CN":"折叠","zh-TW":"收合"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.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":"欄選項"}},NebulaTableUtils_MenuItemLabel_Expand:{id:"NebulaTableUtils.MenuItemLabel.Expand",locale:{"de-DE":"Erweitern","en-US":"Expand","es-ES":"Expandir","fr-FR":"Développer","it-IT":"Espandi","ja-JP":"展開","ko-KR":"확장","nl-NL":"Uitvouwen","pl-PL":"Rozwiń","pt-BR":"Expandir","ru-RU":"Развернуть","sv-SE":"Utöka","tr-TR":"Genişlet","zh-CN":"展开","zh-TW":"展開"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.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":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.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":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.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":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.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":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.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":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.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":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier 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":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier 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":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.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":"{0}/{1}","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}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.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":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.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":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.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":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.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":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.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":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.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":"選取頁面"}}};const Tm=({translator:e})=>(C((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(km).forEach((t=>{e.add(km[t])}))}}(e)}),[e]),e),_m=e=>{const t=s();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}},jm="12px",qm="nebula-table-utils-head-menu-button",Nm="nebula-table-utils-head-menu-wrapper",Fm="nebula-table-utils-head-menu",zm="nebula-table-utils-head-menu-list-id",Hm="sn-copy-cell";let Bm=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e}({});const $m="nebula-table-utils-column-adjuster";let Vm=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),Wm=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const Gm={darker:.15,brighter:.3,opacity:.03},Um={darker:.3,brighter:.5,opacity:.05};let Ym=function(e){return e.Single="N",e.DrillDown="H",e.Cyclic="C",e}({});const Km=document.createElement("textarea");function Xm(e){Km.value=e,document.body.appendChild(Km),Km.select(),Km.setSelectionRange(0,Km.value.length),document.execCommand("copy"),document.body.removeChild(Km)}Km.style.position="absolute",Km.style.left="-9999px",Km.setAttribute("readonly","");const Jm=e=>{var t;const r=e.title;r&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(r).catch((()=>{Xm(r)})):Xm(r))};var Zm,Qm;var eh=function(){if(Qm)return Zm;Qm=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=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},s=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return Zm=function e(){var t,r,n,l,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(l=s(t,r))&&(m&&l&&(i(l)||(u=o(l)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(m,c,l)})):void 0!==l&&a(d,{name:r,newValue:l}));return d},Zm}();function th(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function rh(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function nh(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(eh);var oh=1/.7,ih="\\s*([+-]?\\d+)\\s*",ah="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",sh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",lh=/^#([0-9a-f]{3,8})$/,uh=new RegExp(`^rgb\\(${ih},${ih},${ih}\\)$`),ch=new RegExp(`^rgb\\(${sh},${sh},${sh}\\)$`),dh=new RegExp(`^rgba\\(${ih},${ih},${ih},${ah}\\)$`),ph=new RegExp(`^rgba\\(${sh},${sh},${sh},${ah}\\)$`),fh=new RegExp(`^hsl\\(${ah},${sh},${sh}\\)$`),mh=new RegExp(`^hsla\\(${ah},${sh},${sh},${ah}\\)$`),hh={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 gh(){return this.rgb().formatHex()}function bh(){return this.rgb().formatRgb()}function vh(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=lh.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?yh(t):3===r?new Eh(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?xh(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?xh(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=uh.exec(e))?new Eh(t[1],t[2],t[3],1):(t=ch.exec(e))?new Eh(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=dh.exec(e))?xh(t[1],t[2],t[3],t[4]):(t=ph.exec(e))?xh(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=fh.exec(e))?Ih(t[1],t[2]/100,t[3]/100,1):(t=mh.exec(e))?Ih(t[1],t[2]/100,t[3]/100,t[4]):hh.hasOwnProperty(e)?yh(hh[e]):"transparent"===e?new Eh(NaN,NaN,NaN,0):null}function yh(e){return new Eh(e>>16&255,e>>8&255,255&e,1)}function xh(e,t,r,n){return n<=0&&(e=t=r=NaN),new Eh(e,t,r,n)}function Sh(e){return e instanceof nh||(e=vh(e)),e?new Eh((e=e.rgb()).r,e.g,e.b,e.opacity):new Eh}function wh(e,t,r,n){return 1===arguments.length?Sh(e):new Eh(e,t,r,null==n?1:n)}function Eh(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Ch(){return`#${Ah(this.r)}${Ah(this.g)}${Ah(this.b)}`}function Rh(){const e=Oh(this.opacity);return`${1===e?"rgb(":"rgba("}${Ph(this.r)}, ${Ph(this.g)}, ${Ph(this.b)}${1===e?")":`, ${e})`}`}function Oh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ph(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ah(e){return((e=Ph(e))<16?"0":"")+e.toString(16)}function Ih(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Mh(e,t,r,n)}function Dh(e){if(e instanceof Mh)return new Mh(e.h,e.s,e.l,e.opacity);if(e instanceof nh||(e=vh(e)),!e)return new Mh;if(e instanceof Mh)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(r-n)/s+6*(r<n):r===i?(n-t)/s+2:(t-r)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Mh(a,s,l,e.opacity)}function Mh(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Lh(e){return(e=(e||0)%360)<0?e+360:e}function kh(e){return Math.max(0,Math.min(1,e||0))}function Th(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}th(nh,vh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:gh,formatHex:gh,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Dh(this).formatHsl()},formatRgb:bh,toString:bh}),th(Eh,wh,rh(nh,{brighter(e){return e=null==e?oh:Math.pow(oh,e),new Eh(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Eh(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Eh(Ph(this.r),Ph(this.g),Ph(this.b),Oh(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:Ch,formatHex:Ch,formatHex8:function(){return`#${Ah(this.r)}${Ah(this.g)}${Ah(this.b)}${Ah(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Rh,toString:Rh})),th(Mh,(function(e,t,r,n){return 1===arguments.length?Dh(e):new Mh(e,t,r,null==n?1:n)}),rh(nh,{brighter(e){return e=null==e?oh:Math.pow(oh,e),new Mh(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Mh(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,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Eh(Th(e>=240?e-240:e+120,o,n),Th(e,o,n),Th(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Mh(Lh(this.h),kh(this.s),kh(this.l),Oh(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=Oh(this.opacity);return`${1===e?"hsl(":"hsla("}${Lh(this.h)}, ${100*kh(this.s)}%, ${100*kh(this.l)}%${1===e?")":`, ${e})`}`}}));const _h=Math.PI/180,jh=180/Math.PI,qh=4/29,Nh=6/29,Fh=3*Nh*Nh;function zh(e){if(e instanceof Hh)return new Hh(e.l,e.a,e.b,e.opacity);if(e instanceof Gh)return Uh(e);e instanceof Eh||(e=Sh(e));var t,r,n=Wh(e.r),o=Wh(e.g),i=Wh(e.b),a=Bh((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=Bh((.4360747*n+.3850649*o+.1430804*i)/.96422),r=Bh((.0139322*n+.0971045*o+.7141733*i)/.82521)),new Hh(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Hh(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Bh(e){return e>.008856451679035631?Math.pow(e,1/3):e/Fh+qh}function $h(e){return e>Nh?e*e*e:Fh*(e-qh)}function Vh(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Wh(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Gh(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Uh(e){if(isNaN(e.h))return new Hh(e.l,0,0,e.opacity);var t=e.h*_h;return new Hh(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}th(Hh,(function(e,t,r,n){return 1===arguments.length?zh(e):new Hh(e,t,r,null==n?1:n)}),rh(nh,{brighter(e){return new Hh(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Hh(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,r=isNaN(this.b)?e:e-this.b/200;return new Eh(Vh(3.1338561*(t=.96422*$h(t))-1.6168667*(e=1*$h(e))-.4906146*(r=.82521*$h(r))),Vh(-.9787684*t+1.9161415*e+.033454*r),Vh(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),th(Gh,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Gh)return new Gh(e.h,e.c,e.l,e.opacity);if(e instanceof Hh||(e=zh(e)),0===e.a&&0===e.b)return new Gh(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*jh;return new Gh(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Gh(e,t,r,null==n?1:n)}),rh(nh,{brighter(e){return new Gh(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Gh(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Uh(this).rgb()}}));var Yh=e=>()=>e;function Kh(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Yh(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?Kh:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):Yh(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=wh(e)).r,(t=wh(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Kh(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var Xh="center",Jh="bottom";[{key:"NoDataExist",alignment:Xh,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Xh,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:Xh,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Xh},{key:"DataRangeIncludingZero",alignment:Jh},{key:"LimitedData",alignment:Jh},{key:"NegativeOrZeroValues",alignment:Jh}].reduce((function(e,t){return e[t.key]=t,e}),{});var Zh,Qh=["__proto__","constructor"];function eg(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!Qh.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var s=n[a];void 0===i[s]&&(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}}}function tg(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function rg(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=og)):void 0===t&&(t=ng);for(var r,n,o,i,a,s=new sg(e),l=[s];r=l.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)l.push(n=o[i]=new sg(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(ag)}function ng(e){return e.children}function og(e){return Array.isArray(e)?e[1]:null}function ig(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function ag(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function sg(e){this.data=e,this.depth=this.height=0,this.parent=null}sg.prototype=rg.prototype={constructor:sg,count:function(){return this.eachAfter(tg)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var r,n,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),r=o.children)for(n=r.length-1;n>=0;--n)i.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},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(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return rg(this).eachBefore(ig)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},Zh=function(e){
100
- /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
101
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.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(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(i),e[0]=c.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-a;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%l)&&y<p-l&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},Zh({exports:{}});var lg={exports:{}};self,lg.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,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(n in e);return void 0===n||t.call(e,n)},s=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},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,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(n in e);return void 0===n||t.call(e,n)},s=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},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Me});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={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 s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.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 n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var s=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return h(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=m(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(s);if(-1!==r){var n=t.indexOf(l);if(-1!==n)return t.substring(r+s.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=S({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),r=e.indexOf(l);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.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&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function C(e){return C="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},C(e)}var R=t().bind(null,!0),O={},P=Array.isArray;function A(e){return null!=e&&!Array.isArray(e)&&"object"===C(e)}function I(e){return void 0===e}function D(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function M(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=I(e[r||t])?i:e[t],e=e[r||t]}})),e}function L(e,t){var r=!0;if(A(e)&&A(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){L(e[n],t[n])||(r=!1)})),r);if(P(e)&&P(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!L(e[n],t[n]))return!1;return!0}return e===t}O.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);L(i,a)||D(t,o)||(I(a)?n.push({op:"add",path:s,value:i}):A(i)&&A(a)?n=n.concat(O.generate(a,i,s)):P(i)&&P(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&I(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(L(t,o))return n;if(!I(t[0])&&I(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(O.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){I(t[o])&&!D(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},O.apply=function(e,t){t.forEach((function(t){var r,n,o=M(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(P(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(P(a)&&P(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return E(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return E(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?E(e,t):void 0}}(n)||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(A(a)&&A(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!D(r,e)&&delete r[e]})),R(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 c=M(e,t.from);P(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(P(o)?o.splice(+i,1):delete o[i])}))},O.clone=function(e){return R({},e)},O.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},O.updateObject=function(e,t){Object.keys(e).length?O.apply(e,O.generate(e,t)):R(e,t)};const k=O,T=function(e,r,n){if(!e)return Promise.resolve();var o=k.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var _="accumulation";function j(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===_)return r[n]}function q(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===_)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var N={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=w.getNumStepComp(r,l),p=w.getAboveComp(r,l,c,d),f=w.getRangeComp("RangeSum",p);if(w.needDimension({modifier:r,properties:n,layout:o})){var m=w.getDimComp(u,1),h=w.getDimComp(u,0),g=w.getAggrComp(f,m,h);f=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,N)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(q(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(q(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(q(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(q(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=j(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=j(t,e);return r&&!r.fullAccumulation}},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 w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(_))return!1;var i=j(t,e);return i&&!i.disabled}};return r}};var z="movingAverage";function H(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===z)return r[n]}function B(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===z)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var $={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=s;void 0===u&&(u=w.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=w.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=w.getNumStepComp(n,u),m=w.getAboveComp(n,u,p,f);if(n.nullSuppression)t=w.getRangeComp("RangeAvg",m);else{var h=w.getRangeComp("RangeSum",m),g=function(e,t){var r=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(w.needDimension({modifier:n,properties:o,layout:a})){var v=w.getDimComp(c,1),y=w.getDimComp(c,0),x=w.getAggrComp(b,v,y);b=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,$)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(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(B(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(B(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(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=H(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=H(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(z))return!1;var i=H(t,e);return i&&!i.disabled}};return r}};var W="timeSeriesDecomposition";function G(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===W)return r[n]}function U(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===W)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?w.generateTSDExpression(r,t,n):t},extractInputExpression:w.extractInputExpression,initModifier:function(e,t){w.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=w.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(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:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=G(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.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 r=G(t,e);return r&&!r.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(W))return!1;var i=G(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=w.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(w.needDimension({modifier:r,properties:n,layout:o})){var f=w.getDimComp(u,1),m=w.getDimComp(u,0),h=w.getAggrComp(p,f,m);p=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(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(Z(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(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=ae(t),l=se(t,r,n),u=""===s&&""===l?"":s||l,c=le(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=w.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[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]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(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(r){return function(e,t,r){var n=[{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 n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.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(ne(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(ne(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(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(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,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",we="qDef.qLabelExpression",Ee="qDef.base.qLabel",Ce="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Oe="qDef.base.qAggrFunc",Pe={initBase:function(e,t){(t||Pe.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ee,i(e,Se)),r(e,Ce,i(e,we)))},restoreBase:function(e){Pe.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ee)),r(e,we,i(e,Ce)),i(e,Re)&&i(e,Oe)&&r(e,Re,i(e,Oe)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const Ae=Pe;function Ie(e){return Ie="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},Ie(e)}var De={accumulation:F,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Me={modifiers:De,apply:ke,applyModifiers:Te,cleanUpMeasure:_e,destroy:function(e){e&&Le[e.id]&&Le[e.id].masterItemSubscriber&&(Le[e.id].masterItemSubscriber&&Le[e.id].masterItemSubscriber.unsubscribe(),delete Le[e.id])},hasActiveModifiers:je,getActiveModifier:qe,initBase:Ae.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return De[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return De[e]&&De[e].isApplicable({properties:r,layout:n})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=ze(e);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Ne};var Le={};function ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,s=e.masterItem,l=!1;Le[r.id]=Le[r.id]||{isFirstTime:!0};var u=Le[r.id].isFirstTime;if(Le[r.id].isFirstTime=!1,n&&"object"===Ie(n))return Te({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(c,"qHyperCube.qMeasureInfo"),f=Le[r.id].lastReloadTime;if(Le[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),je({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ge({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ue({modifiers:ze(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Be(n);var o=Qe(n);return Ye({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return m&&function(e){var t=e.properties;Fe(t).forEach((function(e){return function(e){var t=e.measure;if(Ge({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===Ie(e)&&!e.disabled){if(r++,"object"!==Ie(De[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=De[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ve(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),Te({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Ie(e.base)}))}(p)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return Fe(n).forEach((function(e){return _e(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(l)}function Te(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=l?t()(!0,{},o):o),Be(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(r||(r=Fe(n)),!r.length)return Promise.resolve();if(!je({measures:r,properties:n}))return r.forEach((function(e){return _e(e)})),Promise.resolve();var l=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:s}).then((function(e){return Ke({libraryIds:l,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ue({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;Ae.isValid(r)||Ae.initBase(r,!0);var l=r.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Ie(e)&&!e.disabled){if(s++,"object"!==Ie(De[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");De[e.type].initModifier(e,r);var l=r.qLibraryId||c&&c.qLibraryId;l?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:De[n.type].generateExpression({expression:s,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:l,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof De[n.type].updateModifier&&De[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:De[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(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")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),$e(r)):_e(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return l?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function _e(e){!function(e){var t=ze(e);return Array.isArray(t)&&t.some((function(e){return"object"===Ie(e)&&!e.disabled&&!De[e.type]}))}(e)?Ae.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,$e(e)}function je(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:ze(e),properties:r,layout:n})}))}function qe(e){var t=ze(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(De[n.type]&&!n.disabled)return n}}function Ne(e){var t=qe(e);return!t||De[t.type].enableTotalsFunction(e)}function Fe(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function ze(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function He(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){Fe(e).forEach((function(e){return function(e){var r=qe(e);r&&(void 0!==r.outputExpression&&He(r)!==e.qDef.qDef?delete e.qDef.base:!Ae.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function $e(e){var t=ze(e);Array.isArray(t)&&t.forEach((function(t){"object"===Ie(t)&&(t.disabled||!De[t.type]&&He(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ve(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function Ge(e){var t=e.measure,r=e.properties,n=e.layout;return!We(t)&&Ue({modifiers:ze(t),properties:r,layout:n})}function Ue(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Ie(e)||e.disabled||!De[e.type])&&(void 0===o[e.type]&&(o[e.type]=De[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),i.forEach((function(e){var t=r.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}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):T(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Ie(e)&&!e.disabled&&De[e.type]&&De[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=Fe(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=ze(t);if(Ue({modifiers:n,properties:e})){var i=We(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Le[t.id].masterItemSubscriber=Le[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=i(e,"qInfo.qType");return r&&s[r]&&s[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&s.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&s.push(c(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return ke({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Le[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](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);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="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},o(e)}r.d(n,{default:()=>Be});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var s=n[a];void 0!==i[s]&&null!==i[s]||(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e)||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.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||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.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(645),f=r.n(p);const m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var s,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,l(n.qMeasures));var a,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=o.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(n=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var s=i.getValue(e,"qLayoutExclude.quarantine");s[r]||(s[r]={}),s[r][t]=a}var S=r(229),w=r.n(S);function E(e,t){var r=w()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function C(e,t){return w()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var O=Math.pow(2,53)-1;function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const I=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},D=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},M=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},L=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},k=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},T=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,s=r.data[0];for(t=0;t<s.dimensions.length;++t){var l=E(s.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(l):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var u=E(s.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},_=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,s=r.data[0];for(t=0;t<s.measures.length;++t){var l=C(s.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(l):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var u=C(s.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},j=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},s=R(a.max,o.dimensions.length,O),l=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,s,O),minDimensions:R(i.min,l,0),maxMeasures:s,minMeasures:l}},q=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},N=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=w()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=w()(!0,{},r,o)).components&&(o.components=[]),o},F=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>r&&r>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},H=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return P(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}}(t)||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.")}();a.qDimensions=[],s.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},B=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return A(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}(t)||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.")}();a.qMeasures=[],s.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},$=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function V(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){i.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const W={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=i.getValue(a,r||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:l}),h({exportFormat:o,qHyperCubeDef:l}),g({exportFormat:o,qHyperCubeDef:l}),delete l.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,s=e.defaultPropertyValues,l=void 0===s?{}:s,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=N({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=j({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,w=y.maxMeasures,E=y.minMeasures,C=l.defaultDimension,R=void 0===C?L():C,O=l.defaultMeasure,P=void 0===O?k():O;v.qDimensions.length=0,v.qMeasures.length=0,F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:E})&&z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:E,newHyperCubeDef:v}),T({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),_({exportFormat:t,maxMeasures:w,minMeasures:E,newHyperCubeDef:v,defaultMeasure:P}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),q({exportFormat:t,newHyperCubeDef:v}),D("qMaxStackedCells",b,v),D("qNoOfLeftDims",b,v),M("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),M("qMode",b,v,"S"),M("qReductionMode",b,v,"N"),M("qSortbyYValue",b,v),M("qIndentMode",b,v),M("qShowTotalsAbove",b,v),I(g,t,n),h.qProperty=g;var A=i.getValue(c||{},"support.modifiers");return $({measures:v.qMeasures,modifierTypes:A}),p&&V(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&V(h.qProperty,"dynamicScript"),h}};var G={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!G[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],s=t.length;if(U(a,t,n,o),Y(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})),t.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}))}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,s=e.label;te(n,o);var l=n[n.length-1];if(l){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,s={};switch(e){case"dimension":r.qLibraryId?(s.type="dimension",s.name=r.qLibraryId,s.id=r.qLibraryId):(s.type="field",t?(s.name=r.label||r.qDef,s.id=r.qDef):(s.name=r.qDef.qFieldDefs[0],s.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(s.type="measure",s.name=o,s.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(s.expression=i)):(s.type="expression",t?(s.name=r.label||r.qExpression,s.id=r.qExpression):(s.name=r.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=t.type,i=e.color,a=i.mode,s=X.getItemLabel(t);switch(re(e,s||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:s,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}i.auto=!1,i.mode=a}function se(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),s=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===s}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const le=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),s=i.getValue(e,"".concat(t,"qMeasures"),[]),l=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,l):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?se(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,s=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==s&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:s,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!s,s||n[0])),!!s}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=W.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),s=i.measures.concat(i.excludedMeasures),l=K.IDMAP,u=l.COLOR_BY_ALTERNATIVE,c=l.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(s,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=W.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:b,properties:d})&&me(d):he(d),b&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?V(r,"unsupportedAutoMinMax")||w()(r.measureAxis,t.measureAxis):V(r,"supportedAutoMinMax")||w()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,s=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);l.length?(i&&(t=l.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=l.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&w()(s,r.properties.measureAxes[t[0].axis])):w()(s,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},we={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),s=a.properties;return i?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ee(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function Ce(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,a);if(void 0!==s){var l=i.getValue(o,"qDef.cId");l||(l=i.generateId(),i.setValue(o,"qDef.cId",l));var u=Ee(r,n,l);i.setValue(t,u,s),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,"qDef.cId");if(s){var l=Ee(r,n,s),u=i.getValue(t,l);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,l,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Oe="qHyperCubeDef.qMeasures",Pe="conditionalColoring",Ae="measures",Ie="qDef.conditionalColoring";const De={quarantine:function(e){Ce({properties:e,arrayPath:Oe,quarantineName:Pe,arrayName:Ae,itemPath:Ie})},unquarantine:function(e){Re({properties:e,arrayPath:Oe,itemPath:Ie,arrayName:Ae,quarantineName:Pe})}};var Me="qHyperCubeDef.qMeasures",Le="measures",ke="qHyperCubeDef.qDimensions",Te="dimensions",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",je="alternativeMeasures",qe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Ne="alternativeDimensions",Fe="qCalcCondition",ze="conditionalShowHide";const He={quarantine:function(e){Ce({properties:e,arrayPath:Me,quarantineName:ze,arrayName:Le,itemPath:Fe}),Ce({properties:e,arrayPath:ke,quarantineName:ze,arrayName:Te,itemPath:Fe})},unquarantine:function(e){Re({properties:e,arrayPath:Me,quarantineName:ze,arrayName:Le,itemPath:Fe}),Re({properties:e,arrayPath:ke,quarantineName:ze,arrayName:Te,itemPath:Fe})},quarantineAlternative:function(e){Ce({properties:e,arrayPath:_e,quarantineName:ze,arrayName:je,itemPath:Fe}),Ce({properties:e,arrayPath:qe,quarantineName:ze,arrayName:Ne,itemPath:Fe})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:_e,quarantineName:ze,arrayName:je,itemPath:Fe}),Re({properties:e,arrayPath:qe,quarantineName:ze,arrayName:Ne,itemPath:Fe})}},Be={hypercube:W,colorChart:be,axisChart:we,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:Ce,unquarantineArrayProp:Re,conditionalColoring:De,conditionalShow:He}})(),n.default})();var ug=Et(lg.exports);const cg="qHyperCubeDef.qMeasures",dg="measures",pg="qHyperCubeDef.qDimensions",fg="dimensions",mg="qDef.representation",hg="tableRepresentation",gg="qDef.conditionalColoring",bg="conditionalColoring",vg="qMiniChartDef",yg="miniChartDef",xg=(e,t,r)=>{const n=e.length+t.length,o=((null==r?void 0:r.length)===n?r:Array.from(Array(n).keys())).map((r=>((e,t,r)=>{var n;const o=t.length,i=e<o?t[e]:r[e-o],{columnWidth:a}=i.qDef;return"pixels"===(null==a?void 0:a.type)?null!==(n=a.pixels)&&void 0!==n?n:Vm.PixelsDefault:-1})(r,e,t)));return o},Sg=({propertyTree:e,hyperCubePath:t})=>{const r=ug.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:n,qDimensions:o,qMeasures:i}}=r.properties,a=xg(o,i,n);return eg(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),ug.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),ug.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),ug.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{ug.quarantineArrayProp({properties:e,arrayPath:pg,itemPath:mg,arrayName:fg,quarantineName:hg}),ug.quarantineArrayProp({properties:e,arrayPath:cg,itemPath:mg,arrayName:dg,quarantineName:hg}),ug.quarantineArrayProp({properties:e,arrayPath:cg,itemPath:gg,arrayName:dg,quarantineName:bg}),ug.quarantineArrayProp({properties:e,arrayPath:cg,itemPath:vg,arrayName:dg,quarantineName:yg})})(r.properties),r};const wg=/^q[A-Z]/,Eg=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],Cg=e=>"object"==typeof e&&null!==e,Rg=(e,t)=>(Object.entries(e).forEach((([r,n])=>{const o=void 0===t?r:`${t}.${r}`;((e,t)=>!wg.test(e)&&!Eg.some((e=>e.test(t))))(r,o)?delete e[r]:Array.isArray(n)?e[r]=n.map(((e,t)=>Cg(e)?Rg(e,`${o}.${t}`):e)):Cg(n)&&(e[r]=Rg(n,o))})),e),Og=(e,t,r,n)=>{let o=t;n&&(o=t-n);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(r)&&r.length>0){const e=r[t];i.qDef.columnWidth="number"==typeof e&&e>0?{type:Wm.Pixels,pixels:e}:{type:Wm.FitToContent}}return i},Pg=({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o,viewDataMode:i,env:a})=>{if(i&&a.flags.isEnabled("CLIENT_QCB_30812_SIMPLE_VIEW_DATA")){try{e=structuredClone(e)}catch(e){console.error("Failed to copy source properties",e)}Rg(e.properties)}const s=ug.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:o,hypercubePath:n,extension:r});if(ug.conditionalShow.unquarantine(s.qProperty),i)eg(s,"qProperty.totals.show",!1),eg(s,"qProperty.usePagination",!0);else{ug.unquarantineProperty(s.qProperty,"straightTableColumnOrder"),(e=>{ug.unquarantineArrayProp({properties:e,arrayPath:pg,itemPath:mg,arrayName:fg,quarantineName:hg}),ug.unquarantineArrayProp({properties:e,arrayPath:cg,itemPath:mg,arrayName:dg,quarantineName:hg}),ug.unquarantineArrayProp({properties:e,arrayPath:cg,itemPath:gg,arrayName:dg,quarantineName:bg}),ug.unquarantineArrayProp({properties:e,arrayPath:cg,itemPath:vg,arrayName:dg,quarantineName:yg})})(s.qProperty);const{qHyperCubeDef:{qDimensions:e,qMeasures:t,qColumnOrder:r,columnWidths:n}}=s.qProperty,{dimensions:o,measures:i}=((e,t,r,n)=>{const o=e.length,i=o+t.length,a=(null==r?void 0:r.length)===i?r:Array.from(Array(i).keys());return{dimensions:a.filter((e=>e<o)).map((t=>Og(e,t,n))),measures:a.filter((e=>e>=o)).map((e=>Og(t,e,n,o)))}})(e,t,r,n);Array.isArray(n)&&n.length>0&&(eg(s,"qProperty.qHyperCubeDef.qDimensions",o),eg(s,"qProperty.qHyperCubeDef.qMeasures",i))}return s};var Ag={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};function Ig(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function Dg(e,t){let r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}function Mg(e){return e>0?0:1}function Lg(e){return e.translator.get("Visualizations.Descriptions.Column")}function kg(e){return{measures:{min:Mg,max:1e3,description:()=>Lg(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;Ig(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties;Dg(o,(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n)}},dimensions:{min:Mg,max:1e3,description:()=>Lg(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return Ig(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(null!=e&&e.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;Dg(o,n)}}}}let Tg=function(e){return e.Text="text",e.Link="link",e.Image="image",e.Indicator="indicator",e.MiniChart="miniChart",e.EditableText="editableText",e.EditableSelector="editableSelector",e}({}),_g=function(e){return e.Attribute="attribute",e.Dimension="dimension",e.Measure="measure",e}({});const jg=e=>{switch(null==e?void 0:e.type){case"url":return Tg.Link;case"image":return Tg.Image;case"indicator":return Tg.Indicator;case"miniChart":return Tg.MiniChart;default:return Tg.Text}},qg=({args:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t,isImagesSupportedInIndentMode:r}={}})=>{var n;return null===(n=e.properties.qHyperCubeDef)||void 0===n||!n.qIndentMode||!(!t&&!r)},Ng=({isImagesEnabled:e,supportedFeaturesInIndentMode:t})=>{const{isLinksSupportedInIndentMode:r,isImagesSupportedInIndentMode:n}=null!=t?t:{};return{uses:"dimensionRepresentationItems.representationType",show:(e,t,o)=>qg({args:o,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:r,isImagesSupportedInIndentMode:n}}),options(t,o,i){const{qIndentMode:a}=i.properties.qHyperCubeDef,s=[{value:"text",translation:"Object.Table.Representation.Text"}];return a&&!r||s.push({value:"url",translation:"Object.Table.Representation.Link"}),(!a&&e||a&&n)&&s.push({value:"image",translation:"Object.Table.Representation.Image"}),s}}},Fg=e=>({representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:(t,r,n)=>jg(t.qDef.representation)===Tg.Link&&qg({args:n,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:e}})},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:(t,r,n)=>{var o;return jg(t.qDef.representation)===Tg.Link&&(null===(o=t.qDef.representation)||void 0===o?void 0:o.urlPosition)===_g.Dimension&&qg({args:n,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:e}})}},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:(t,r,n)=>{var o;return jg(t.qDef.representation)===Tg.Link&&(null===(o=t.qDef.representation)||void 0===o?void 0:o.urlPosition)===_g.Attribute&&qg({args:n,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:e}})}}}),zg=(e,t)=>{if(e||t)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:(e,r,n)=>jg(e.qDef.representation)===Tg.Image&&qg({args:n,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:t}}),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"}]},...t&&{imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,r)=>{var n,o;if(!r.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:i,qNoOfLeftDims:a,qDimensions:s,qIndentMode:l}=r.properties.qHyperCubeDef;let u=!1;null==i||i.indexOf(-1);const c=null!==(n=null==s?void 0:s.indexOf(e))&&void 0!==n?n:1/0;return(null!==(o=null==i?void 0:i.slice(0,a))&&void 0!==o?o:[]).indexOf(c)>-1&&(u=!0),u&&l}}}}}}},Hg=e=>{var t,r;const{anything:n,flags:o}=e,i=o.isEnabled("CLIENT_IM_5975_INDENT_MODE_LINKS"),a=o.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES"),s=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(t=n.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"tableImages"));return{representationType:Ng({isImagesEnabled:s,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:i,isImagesSupportedInIndentMode:a}}),...Fg(i),...zg(s,a)}},Bg=(e,t)=>{var r;const{anything:n}=e,o=null===(r=n.sense)||void 0===r?void 0:r.isUnsupportedFeature,i=!(null!=o&&o("tableImages"))&&t[Tg.Image],a=!(null!=o&&o("qMiniChartDef"))&&t[Tg.MiniChart],s=!(null!=o&&o("tableIndicators"))&&t[Tg.Indicator];return{representationType:{uses:"measureRepresentationItems.representationType",show:(e,t,r)=>qg({args:r}),options:(e,t,r)=>(e=>{var t;const{qIndentMode:r}=null!==(t=e.properties.qHyperCubeDef)&&void 0!==t?t:{},n=[{value:"text",translation:"Object.Table.Representation.Text"}];return!r&&i&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),s&&n.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),a&&n.push({value:"miniChart",translation:"Common.MiniChart"}),n})(r)},representationImage:i?{uses:"measureRepresentationItems.representationImage",show:(e,t,r)=>jg(e.qDef.representation)===Tg.Image&&qg({args:r}),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:s?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:a?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};var $g={};!function(e){(()=>{var t={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,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(n in e);return void 0===n||t.call(e,n)},s=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},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};n.r(o),n.d(o,{default:()=>je});var i=n(909),a=n.n(i);const s=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},l=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},u={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 c="".concat(" ","(").concat(" "),d="".concat(" ",")").concat(" ");function p(e){return c+e+d}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.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 n&&n.qTags.indexOf("$numeric")>-1}function m(e){return!(!e.fullAccumulation&&!e.fullRange)}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"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),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function b(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function v(e,t){var r=e.crossAllDimensions;return 2===t&&r?"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,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=S(f(n[0],o),b(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var c=f(n[0],o),d=f(n[1],o),p=b(0),m=b(1),h=S(c,p),g=S(d,m);return"".concat(a,"({1<").concat(h,",").concat(g,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function E(e){return"".concat(e,"(")}function C(e){var t=e.properties,r=e.layout;return l(t,"qHyperCubeDef.qDimensions",l(r,"qHyperCube.qDimensionInfo",[])).length}const R={isFullRange:m,getNumDimensions:C,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=p(g(t));if(!r.showExcludedValues)return a;var s=w({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var u=b(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var c=b(0),d=b(1);return"If(Count(".concat(c,") * Count(").concat(d,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:h,getNumStepComp:function(e,t){if(!m(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return h(e,t)},getAboveCompPrefix:v,getAboveCompSuffix:y,getAboveComp:function(e,t,r,n){return v(e,t)+r+y(n)},getFunctionPrefix:E,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return E(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:w,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout;return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t)&&2===C({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=b(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:g,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(c);if(-1!==r){var n=t.indexOf(d);if(-1!==n)return t.substring(r+c.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:f,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=C({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:p,canExtract:function(e){var t=e.indexOf(c),r=e.indexOf(d);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:b,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.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&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=u.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?u.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(u.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return u.EXPRESSIONS[r]&&n.includes(u.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function P(e){return P="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},P(e)}var A=a().bind(null,!0),I={},D=Array.isArray;function M(e){return null!=e&&!Array.isArray(e)&&"object"===P(e)}function L(e){return void 0===e}function k(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function T(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=L(e[r||t])?i:e[t],e=e[r||t]}})),e}function _(e,t){var r=!0;if(M(e)&&M(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){_(e[n],t[n])||(r=!1)})),r);if(D(e)&&D(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!_(e[n],t[n]))return!1;return!0}return e===t}I.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?A({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);_(i,a)||k(t,o)||(L(a)?n.push({op:"add",path:s,value:i}):M(i)&&M(a)?n=n.concat(I.generate(a,i,s)):D(i)&&D(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&L(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(_(t,o))return n;if(!L(t[0])&&L(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(I.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){L(t[o])&&!k(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},I.apply=function(e,t){t.forEach((function(t){var r,n,o=T(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,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return O(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return O(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?O(e,t):void 0}}(n)||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))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!k(r,e)&&delete r[e]})),A(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 c=T(e,t.from);D(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(D(o)?o.splice(+i,1):delete o[i])}))},I.clone=function(e){return A({},e)},I.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},I.updateObject=function(e,t){Object.keys(e).length?I.apply(e,I.generate(e,t)):A(e,t)};const j=I,q=function(e,t,r){if(!e)return Promise.resolve();var n=j.generate(t,r);return a()(!0,t,r),n&&n.length?(n=n.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(n,!0)):Promise.resolve()};var N="accumulation";function F(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===N)return r[n]}function z(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===N)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var H={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const B={translationKey:"properties.modifier.accumulation",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return R.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var s=i;void 0===s&&(s=R.getNumDimensions({properties:n,layout:o}));var u=l(n,"qHyperCubeDef.qDimensions",[]),c=R.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=R.getNumStepComp(r,s),p=R.getAboveComp(r,s,c,d),f=R.getRangeComp("RangeSum",p);if(R.needDimension({modifier:r,properties:n,layout:o})){var m=R.getDimComp(u,1),h=R.getDimComp(u,0),g=R.getAggrComp(f,m,h);f=r.showExcludedValues?R.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,valueComp:g}):g}return f},extractInputExpression:R.extractInputExpression,initModifier:function(e){R.initModifier(e,H)},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 r=F(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=F(t,e);return r&&!r.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,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(N))return!1;var i=F(t,e);return i&&!i.disabled}}}};var $="movingAverage";function V(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===$)return r[n]}function W(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===$)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var G={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,r=e.layout;return R.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return r;var u=a;void 0===u&&(u=R.getNumDimensions({properties:o,layout:i}));var c=l(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=R.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=R.getNumStepComp(n,u),m=R.getAboveComp(n,u,p,f);if(n.nullSuppression)t=R.getRangeComp("RangeAvg",m);else{var h=R.getRangeComp("RangeSum",m),g=function(e,t){var r=R.getRowNoComp(e,t);if(!R.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(R.needDimension({modifier:n,properties:o,layout:i})){var v=R.getDimComp(c,1),y=R.getDimComp(c,0),x=R.getAggrComp(b,v,y);b=n.showExcludedValues?R.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:R.extractInputExpression,initModifier:function(e){R.initModifier(e,G)},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(W(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(W(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(W(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(W(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=V(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=V(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(W(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(W(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,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf($))return!1;var i=V(t,e);return i&&!i.disabled}}}};var Y="timeSeriesDecomposition";function K(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===Y)return r[n]}function X(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===Y)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var J={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const Z={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return R.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?R.generateTSDExpression(r,t,n):t},extractInputExpression:R.extractInputExpression,initModifier:function(e,t){R.initModifier(e,J),""===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(X(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:u.OPTIONS},steps:{refFn:function(t){return"".concat(X(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=K(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.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 r=K(t,e);return r&&!r.fullRange}}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(Y))return!1;var i=K(t,e);return i&&!i.disabled}}}};var Q="difference";function ee(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===Q)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var te={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const re={translationKey:"properties.modifier.difference",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return R.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:R.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var s=i;void 0===s&&(s=R.getNumDimensions({properties:n,layout:o}));var u=l(n,"qHyperCubeDef.qDimensions",[]),c=R.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=R.getAboveComp(r,s,c),p="".concat(c," - ").concat(d);if(R.needDimension({modifier:r,properties:n,layout:o})){var f=R.getDimComp(u,1),m=R.getDimComp(u,0),h=R.getAggrComp(p,f,m);p=r.showExcludedValues?R.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(te).forEach((function(t){void 0===e[t]&&(e[t]=te[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(ee(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(ee(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(ee(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,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(Q))return!1;var i=function(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===Q)return r[n]}(t,e);return i&&!i.disabled}}}},ne=0,oe=1,ie=2,ae=0,se=1,le=2;var ue="normalization";function ce(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===ue)return r[n]}function de(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===ue)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function pe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var fe={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:le,selectionScope:ie};function me(e){return 2===e?"{1}":""}function he(e,t,r){return 1===e?"{$<".concat(R.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function ge(e,t){return 0===e&&t>1||2===e?"Total":""}function be(e,t,r){return 0===e&&t>1?"<".concat(R.getDimDefWithWrapper(r),">"):""}const ve={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return R.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:R.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var s=i;void 0===s&&(s=R.getNumDimensions({properties:n,layout:o}));var u=l(n,"qHyperCubeDef.qDimensions",[]),c=R.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=me(t),l=he(t,r,n),u=""===s&&""===l?"":s||l,c=ge(o,i),d=be(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=R.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,s,r.primaryDimension)},initModifier:function(e){Object.keys(fe).forEach((function(t){void 0===e[t]&&(e[t]=fe[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(de(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:ie,options:function(r){return function(e,t,r){var n=[{value:ne,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:oe,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:ie,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=pe(t,0);t.splice(r,1)}return t}(ce(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(de(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return ce(t,e).selectionScope===oe}},value:{refFn:function(t){return"".concat(de(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return ce(t,e).selectionScope===oe}},dimensionalScope:{refFn:function(t){return"".concat(de(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:le,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:ae,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:se,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:le,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=pe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=pe(t,1);t.splice(r,1)}return t}(ce(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(de(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,r){return(ce(t,e).dimensionalScope||0)===ae&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(ue))return!1;var i=ce(t,e);return i&&!i.disabled}}},getDisregardSelectionComp:me,getFieldSelectionComp:he,getTotalComp:ge,getSelectedDimComp:be};var ye="library id deleted",xe="qDef.qDef",Se="qDef.base.qDef",we="qLibraryId",Ee="qDef.base.qLibraryId",Ce="qDef.qLabel",Re="qDef.qLabelExpression",Oe="qDef.base.qLabel",Pe="qDef.base.qLabelExpression",Ae="qDef.qAggrFunc",Ie="qDef.base.qAggrFunc",De="qDef.base";const Me={getExpression:function(e){var t=l(e,Se);return void 0!==t?t:l(e,xe)},getExpressionRef:function(e){return void 0!==l(e,Se)?Se:xe},getLibraryIdRef:function(e){return l(e,Ee)?Ee:we},getLibraryId:function(e){return l(e,Ee)||l(e,we)},getLabelRef:function(e){return l(e,De)?Oe:Ce},getLabelExpressionRef:function(e){return l(e,De)?Pe:Re}};var Le={initBase:function(e,t){(t||Le.isValid(e))&&(s(e,Se,l(e,xe)),s(e,Ee,l(e,we)),s(e,Oe,l(e,Ce)),s(e,Pe,l(e,Re)))},restoreBase:function(e){Le.isValid(e)&&(s(e,xe,l(e,Se)),s(e,we,l(e,Ee)),s(e,Ce,l(e,Oe)),s(e,Re,l(e,Pe)),l(e,Ae)&&l(e,Ie)&&s(e,Ae,l(e,Ie)),delete e.qDef.base)},isValid:function(e){var t=l(e,Se),r=l(e,Ee);return void 0!==t||void 0!==r}};const ke=Le;function Te(e){return Te="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},Te(e)}var _e={accumulation:B,movingAverage:U,difference:re,normalization:ve,timeSeriesDecomposition:Z};const je={modifiers:_e,apply:Ne,applyModifiers:Fe,cleanUpMeasure:ze,destroy:function(e){e&&qe[e.id]&&qe[e.id].masterItemSubscriber&&(qe[e.id].masterItemSubscriber&&qe[e.id].masterItemSubscriber.unsubscribe(),delete qe[e.id])},hasActiveModifiers:He,getActiveModifier:Be,initBase:ke.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return _e[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return _e[e]&&_e[e].isApplicable({properties:r,layout:n})}))},measureBase:Me,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=We(e);Ze({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||nt({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:$e};var qe={};function Ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.model,r=e.properties,n=e.isSnapshot,o=void 0!==n&&n,i=e.masterItem,s=!1;qe[t.id]=qe[t.id]||{isFirstTime:!0};var u=qe[t.id].isFirstTime;if(qe[t.id].isFirstTime=!1,r&&"object"===Te(r))return Fe({model:t,properties:r});var c=t?t.layout:void 0,d=l(c,"qSelectionInfo.qInSelections");if(o||d)return Promise.resolve(s);var p=l(c,"qHyperCube.qMeasureInfo"),f=qe[t.id].lastReloadTime;if(qe[t.id].lastReloadTime=l(t,"app.layout.qLastReloadTime"),He({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return l(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Je({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:t,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ze({modifiers:We(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:i,isFirstTime:u})?t.getEffectiveProperties().then((function(e){var r=a()(!0,{},e);Ue(r);var n=ot(r);return Qe({model:t}).then((function(o){return et({libraryIds:n,model:t}).then((function(n){return m&&function(e){var t=e.properties;Ve(t).forEach((function(e){return function(e){var t=e.measure;if(Je({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===Te(e)&&!e.disabled){if(r++,"object"!==Te(_e[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=_e[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ke(t)&&R.simplifyExpression(t.qDef.base.qDef)!==R.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:r}),Fe({model:t,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:i,libraryItemsProps:n,dimensionAndFieldList:o})}))})).catch((function(){return Promise.resolve(s)}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Te(e.base)}))}(p)?t.getEffectiveProperties().then((function(e){return function(e){var t=e.model,r=e.properties,n=ot(r);return it({model:t,libraryIds:n}).then((function(){var e=a()(!0,{},r);return Ve(r).forEach((function(e){return ze(e)})),rt({oldProperties:e,newProperties:r,model:t})}))}({model:t,properties:e})})):Promise.resolve(s)}function Fe(e){var t=e.model,r=e.oldProperties,n=e.properties,o=e.measures,i=e.runUpdateIfChange,s=void 0!==i&&i,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?a()(!0,{},n):n),Ue(n);var p=ot(n);return it({model:t,libraryIds:p,masterItem:u}).then((function(){return function(e){var t=e.measures,r=e.properties,n=e.model,o=e.libraryItemsProps,i=e.dimensionAndFieldList;if(t||(t=Ve(r)),!t.length)return Promise.resolve();if(!o&&!He({measures:t,properties:r}))return t.forEach((function(e){return ze(e)})),Promise.resolve();var s=o?void 0:ot(r);return Qe({model:n,dimensionAndFieldList:i}).then((function(e){return et({libraryIds:s,model:n,libraryItemsProps:o}).then((function(n){t.forEach((function(t){var o=t.qDef.modifiers;n&&Ze({modifiers:o,properties:r})?(function(e){var t=e.measure,r=e.properties,n=e.libraryItemsProps,o=e.dimensionAndFieldList,i=0;ke.isValid(t)||ke.initBase(t,!0);var s=t.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Te(e)&&!e.disabled){if(i++,"object"!==Te(_e[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)");_e[e.type].initModifier(e,t);var s=t.qLibraryId||c&&c.qLibraryId;s?function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList,i=e.libraryItemsProps[e.libraryId],s=i.qMeasure.qDef,l=""===s?s:_e[r.type].generateExpression({expression:s,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=l,t.qDef.qDef=r.outputExpression,(t.qDef.qLabel||i.qMeasure.qLabel)&&(t.qDef.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=i.qMeasure.qNumFormat,t.qDef.isCustomFormatted=i.qMeasure.isCustomFormatted),delete t.qLibraryId,t.qDef.coloring=i.qMeasure.coloring,r.base=a()(!0,{},t.qDef.base)}({measure:t,modifier:e,libraryId:s,properties:r,libraryItemsProps:n,dimensionAndFieldList:o}):function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList;"function"==typeof _e[r.type].updateModifier&&_e[r.type].updateModifier(r,n.qHyperCubeDef);var i=Me.getExpression(t),s=""===i?i:_e[r.type].generateExpression({expression:i,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=s,t.qDef.qDef=r.outputExpression,t.qDef.base.qLabelExpression?t.qDef.qLabelExpression=t.qDef.base.qLabelExpression:t.qDef.qLabel=t.qDef.base.qLabel||i,r.base=a()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:r,dimensionAndFieldList:o}),function(e){var t=l(e,"qDef.qAggrFunc");"Expr"!==t||$e(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&$e(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:r,libraryItemsProps:n,dimensionAndFieldList:e}),Ye(t)):ze(t)}))}))}))}({measures:o,properties:n,model:t,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?rt({oldProperties:r,newProperties:n,model:t}):Promise.resolve(!1)}))})).catch((function(){return Promise.resolve(!1)}))}function ze(e){!function(e){var t=We(e);return Array.isArray(t)&&t.some((function(e){return"object"===Te(e)&&!e.disabled&&!_e[e.type]}))}(e)?ke.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ye(e)}function He(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ze({modifiers:We(e),properties:r,layout:n})}))}function Be(e){var t=We(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(_e[n.type]&&!n.disabled)return n}}function $e(e){var t=Be(e);return!t||_e[t.type].enableTotalsFunction(e)}function Ve(e){return l(e,"qHyperCubeDef.qMeasures",[]).concat(l(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function We(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function Ge(e){return l(e,"outputExpression.qValueExpression.qExpr")||l(e,"outputExpression")}function Ue(e){Ve(e).forEach((function(e){return function(e){var t=Be(e);t&&(void 0!==t.outputExpression&&Ge(t)!==e.qDef.qDef?delete e.qDef.base:!ke.isValid(e)&&t.base&&(e.qDef.base=a()(!0,{},t.base)))}(e)}))}function Ye(e){var t=We(e);Array.isArray(t)&&t.forEach((function(t){"object"===Te(t)&&(t.disabled||!_e[t.type]&&Ge(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ke(e){return e.base||e.qDef&&e.qDef.base}function Xe(e){var t=Ke(e);return e.qLibraryId||t&&t.qLibraryId}function Je(e){var t=e.measure,r=e.properties,n=e.layout;return!Xe(t)&&Ze({modifiers:We(t),properties:r,layout:n})}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Te(e)||e.disabled||!_e[e.type])&&(void 0===o[e.type]&&(o[e.type]=_e[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Qe(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function et(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),i.forEach((function(e){var t=r.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 tt(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function rt(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(l(t,"qHyperCubeDef.qMeasures"),tt)!==JSON.stringify(l(r,"qHyperCubeDef.qMeasures"),tt)||JSON.stringify(l(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),tt)!==JSON.stringify(l(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),tt);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&l(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):q(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function nt(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Te(e)&&!e.disabled&&_e[e.type]&&_e[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function ot(e){var t=Ve(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=We(t);if(Ze({modifiers:n,properties:e})){var i=Xe(t);i&&r.push(i),o=o||nt({modifiers:n,properties:e})}})),l(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function it(e){var t=e.model,r=e.libraryIds,n=e.masterItem;return!n&&n!==ye&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(qe[t.id].masterItemSubscriber=qe[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},i={},a={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},r=l(e,"qInfo.qType");return r&&a[r]&&a[r].forEach((function(r){t[r]=l(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=s(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(){Object.keys(n).forEach((function(e){o[e]||i[e]||(n[e].listener.dispose(),n[e].unbindCloseListnener(),delete n[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){n[e]={listener:t.layoutSubscribe(u),unbindCloseListnener:d(t,(function(){return e=t.id,r(ye),delete n[e],void c();var e})),enabled:!1,properties:s(t.layout)}})).catch((function(){}))}return{subscribe:function(e){var r=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:r,dimensionLibraryIds:a}),c(),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&s.push(p(e,"getMeasure"))})),Object.keys(i).forEach((function(e){i[e]&&!n[e]&&s.push(p(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose(),n[e].unbindCloseListnener()})),n={}}}}({model:t,callback:function(e){return Ne({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),qe[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}e.default=o.default,Object.defineProperty(e,"__esModule",{value:!0})})()}($g);var Vg=Et($g);const Wg={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},Gg={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}},Ug=e=>{var t,r,n,o;return{type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!Vg.hasActiveModifiers({measures:[e],properties:t.properties})||Vg.ifEnableTotalsFunction(e)?[{value:"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:null!==(t=e.anything.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"totals")?"None":"Expr"}}}},show:!(null!==(n=e.anything.sense)&&void 0!==n&&null!==(o=n.isUnsupportedFeature)&&void 0!==o&&o.call(n,"totals"))}},Yg={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:Wm.Auto,translation:"Common.Auto"},{value:Wm.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:Wm.Pixels,translation:"Object.Table.Column.Pixels"},{value:Wm.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:Wm.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:200,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===Wm.Pixels},change(e){e.qDef.columnWidth&&(e.qDef.columnWidth.pixels=void 0===e.qDef.columnWidth.pixels?e.qDef.columnWidth.pixels:Math.max(1,Math.min(Vm.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:20,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===Wm.Percentage},change(e){e.qDef.columnWidth&&(e.qDef.columnWidth.percentage=void 0===e.qDef.columnWidth.percentage?e.qDef.columnWidth.percentage:Math.max(1,Math.min(Vm.PercentageMax,e.qDef.columnWidth.percentage)))}}},Kg=()=>({...Wg,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}]},...Gg,...Yg}),Xg={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},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}},Jg=e=>{var t,r;const n=null===(t=e.anything.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r?void 0:r.call(t,"modifiers");return{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>{var t;return n?!!e.qLibraryId:!!(e.qLibraryId||null!==(t=e.qDef.base)&&void 0!==t&&t.qLibraryId)}},inlineMeasure:{component:"inline-measure",show:e=>{var t;return n?!e.qLibraryId:!(e.qLibraryId||null!==(t=e.qDef.base)&&void 0!==t&&t.qLibraryId)}},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:Ug(e)}},Zg=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:Xg},presentation:{type:"items",translation:"properties.presentation",items:{...Kg(),...Hg(e)}}}}}),Qg=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:Jg(e)},presentation:{type:"items",translation:"properties.presentation",items:{...Kg(),...Bg(e,{[Tg.Image]:e.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[Tg.Indicator]:e.flags.isEnabled("CLIENT_IM_6696_INDICATORS"),[Tg.MiniChart]:!0})}}}}}),eb=e=>({...Zg(e),...Qg(e)}),tb=e=>({type:"items",translation:"Common.Data",component:"data-assets-panel",items:{...eb(e)}}),rb=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...eb(e)}},filters:{type:"items",component:"filters-assets-panel",ref:"filters",tabName:"SimpleProperties.Filters.Filters",items:{filter:{type:"object",component:"filter-item-react",ref:"filter"}}}}}),nb={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}},ob=e=>e.flags.isEnabled("CLIENT_IM_7170_TABLE_HIDE_HEADER")?{ref:"hideHeader",translation:"properties.hideHeader",type:"boolean",component:"checkbox",defaultValue:!1}:void 0,ib=e=>{if(e.flags.isEnabled("CLIENT_IM_7121_TABLE_NULL_REP"))return{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"}},ab=e=>{var t,r;return{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){var t;return!(null!==(t=e.totals)&&void 0!==t&&t.show)}},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!(null!==(t=e.anything.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"totals"))}},sb=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:null!=n&&n,defaultValue(e,t,o){var i;const a=null!==(i=null==n?void 0:n(e,t,o))&&void 0!==i&&i,s=o.theme.current(),l=r(s,a);return{color:"transparent"===l?"none":l}}}),lb=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},ub=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:"Source Sans Pro, sans-serif",s=null!==(i=t.fontFamilies)&&void 0!==i?i:[],l=Array.from(new Set([e,a,...s])),u=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...l.sort().map((e=>lb(e,!0)))],c=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...ce(n).filter((e=>!l.includes(e))).map((e=>lb(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),cb=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],db=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{var n;const o=t.fontSize,i=null!==(n=t.fontSizes)&&void 0!==n?n:[],a=Array.from(new Set([e,o,...i])),s=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>lb(e,!1)))],l=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...cb.filter((e=>!a.includes(e))).map((e=>lb(e,!1)))];return[...s,...l.length>1?l:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),pb=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:null!=i?i:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:ub({ref:`${e}.fontFamily`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontFamily"))&&void 0!==r?r:t.fontFamily},translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:db({ref:`${e}.fontSize`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontSize"))&&void 0!==r?r:t.fontSize},translator:r}),fontColor:sb(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=o(t,e,"color"))&&void 0!==r?r:t.color}))}},background:sb(`${e}.background`,"properties.background",((t,r)=>{var n;const i=r?cm.WHITE:cm.TRANSPARENT;return null!==(n=o(t,e,"backgroundColor"))&&void 0!==n?n:i}),a)}}}}),fb=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:sb(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=n(t,e,"color"))&&void 0!==r?r:t.color}))}},background:sb(`${e}.background`,"properties.background",(t=>{var o,i;return null!==(o=null!==(i=n(t,e,"backgroundColor"))&&void 0!==i?i:r)&&void 0!==o?o:"transparent"}))}}}}),mb=(e,t,r)=>{var n,o,i,a,s;switch(t){case"header":return null===(n=e.object)||void 0===n||null===(n=n.straightTableV2)||void 0===n||null===(n=n.dimension)||void 0===n||null===(n=n.label)||void 0===n||null===(n=n.name)||void 0===n?void 0:n[r];case"dimensionValues":return null===(o=e.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[r];case"measureValues":return null===(i=e.object)||void 0===i||null===(i=i.straightTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.value)||void 0===i?void 0:i[r];case"totalRow":return null===(a=e.object)||void 0===a||null===(a=a.straightTableV2)||void 0===a||null===(a=a.total)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[r];case"nullValues":return null===(s=e.object)||void 0===s||null===(s=s.straightTableV2)||void 0===s||null===(s=s.null)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s[r];default:return}},hb=e=>{var t;return null===(t=e.grid)||void 0===t||null===(t=t.zebraStripes)||void 0===t?void 0:t.show},gb=e=>e.isEnabled("CLIENT_VNA_10_ZEBRA_STRIPES")?{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:hb,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:hb,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:hb,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:hb,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}:void 0,bb={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,translation:"ThemeStyleEditor.style.rowHeight",change(e){var t,r;null!==(null==e||null===(t=e.content)||void 0===t?void 0:t.rowHeight)&&void 0!==(null==e||null===(r=e.content)||void 0===r?void 0:r.rowHeight)&&""!==e.content.rowHeight?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):void 0!==(null==e?void 0:e.content)&&(e.content.rowHeight=void 0)}},vb=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),...bb},border:sb("grid.border","properties.border",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.straightTableV2)||void 0===r||null===(r=r.grid)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:cm.BORDER_MEDIUM})),divider:sb("grid.divider","properties.pivot.divider",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.straightTableV2)||void 0===r||null===(r=r.grid)||void 0===r||null===(r=r.divider)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:cm.BORDER_HEAVY}))}}}}),yb=e=>{var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},xb={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:yb,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:yb,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},Sb=(e,t,{properties:r})=>"sn-table"===r.visualization&&!0===r.usePagination,wb=({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,defaultValue:[],items:{headerSection:pb({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:mb,disableNoneCallback:Sb}),dimensionValueSection:pb({section:"dimensionValues",translator:t,flags:e,getThemeValue:mb}),measureValueSection:pb({section:"measureValues",translator:t,flags:e,getThemeValue:mb}),totalRowSection:pb({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:mb,disableNoneCallback:Sb}),nullValues:fb({section:"nullValues",fallbackBackground:cm.NULL_VALUE_BACKGROUND,getThemeValue:mb}),grid:vb(e),hoverEffectSection:xb,zebraStripes:gb(e)}}]}),Eb=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[wb(e),ab(e),{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",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}]},ob(e),ib(e)]},...nb}}),Cb={uses:"sorting"},Rb={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},Ob=e=>{var t;const{flags:r}=e;return{type:"items",component:"accordion",items:{data:(null===(t=r.isPreviewToggleEnabled)||void 0===t?void 0:t.call(r,"IM_7101_PREVIEW_SIMPLE_MODE_OFF"))||!1?rb(e):tb(e),sorting:Cb,addOns:Rb,settings:Eb(e)}}};function Pb(e){var t,r;return{definition:Ob(e),exploration:Ag,data:kg(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:null!==(t=e.anything.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"modifiers")?void 0:["accumulation","movingAverage","difference","normalization"]},importProperties(t,r,n,o,i){const a={defaultDimension:n.getDefaultDimensionProperties(),defaultMeasure:n.getDefaultMeasureProperties()};return Pg({exportFormat:t,initialProperties:r,extension:n,hypercubePath:o,defaultPropertyValues:a,viewDataMode:i,env:e})},exportProperties:(e,t)=>Sg({propertyTree:e,hyperCubePath:t})}}const Ab=(e,r)=>t((()=>((e,t)=>(r,{isDim:n,colIdx:o})=>{var i;const a=n?o:o-e.qDimensionInfo.length,s=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${a}/qDef/columnWidth`,l=null===(i=e[n?"qDimensionInfo":"qMeasureInfo"].at(a))||void 0===i?void 0:i.columnWidth,u=l?{qPath:s,qOp:"Replace",qValue:JSON.stringify({...l,...r})}:{qPath:s,qOp:"Add",qValue:JSON.stringify(r)};null==t||t.applyPatches([u],!0)})(e,r)),[e,r]),Ib=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),Db=[];for(let e=0;e<256;++e)Db.push((e+256).toString(16).slice(1));let Mb;const Lb=new Uint8Array(16);function kb(){if(!Mb){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Mb=crypto.getRandomValues.bind(crypto)}return Mb(Lb)}var Tb={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function _b(e,t,r){if(Tb.randomUUID&&!e)return Tb.randomUUID();const n=(e=e||{}).random||(e.rng||kb)();return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return(Db[e[t+0]]+Db[e[t+1]]+Db[e[t+2]]+Db[e[t+3]]+"-"+Db[e[t+4]]+Db[e[t+5]]+"-"+Db[e[t+6]]+Db[e[t+7]]+"-"+Db[e[t+8]]+Db[e[t+9]]+"-"+Db[e[t+10]]+Db[e[t+11]]+Db[e[t+12]]+Db[e[t+13]]+Db[e[t+14]]+Db[e[t+15]]).toLowerCase()}(n)}const jb=()=>{var e,t,r;return null!==(e=null===(t=crypto)||void 0===t||null===(r=t.randomUUID)||void 0===r?void 0:r.call(t))&&void 0!==e?e:_b()},qb=({qLibraryId:e,cId:t})=>{var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:jb()},Nb=e=>"number"==typeof e&&!Number.isNaN(+e),Fb=e=>Nb(e.qNum),zb=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e);function Hb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Bb(e,t,r){return t=Gb(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Yb()?Reflect.construct(t,r||[],Gb(e).constructor):t.apply(e,r))}function $b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Jb(n.key),n)}}function Wb(e,t,r){return t&&Vb(e.prototype,t),r&&Vb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gb(e){return Gb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gb(e)}function Ub(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kb(e,t)}function Yb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Yb=function(){return!!e})()}function Kb(e,t){return Kb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Kb(e,t)}function Xb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Hb(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Hb(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jb(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}function Zb(e){return Zb="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},Zb(e)}var Qb={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var r,n=e.indexOf("="),o="",i=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),i=!0),t.push(function(e,t,r){return{key:ev(e),value:ev(t),useEqualSign:r}}(r,o,i))}})),t}};function ev(e){try{return decodeURIComponent(e)}catch(t){return e}}function tv(e){if(!(this instanceof tv))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return Qb.fromSearchString(t.search)}}})}function rv(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}tv.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},tv.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=rv((t=e[n]).key),t.value?r+="=".concat(rv(t.value)):r+=t.useEqualSign?"=":"";return r};var nv,ov=function(){return Wb((function e(t){$b(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}),[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(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}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}])}(),iv=function(){return Wb((function e(){$b(this,e)}),[{key:"decode",value:function(e){for(var t,r="",n=new ov(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}])}(),av=function(e){return e>=0&&e<=1114111},sv=function(e){return e.match(/[\s]/)},lv=function(e){function t(){return $b(this,t),Bb(this,t,arguments)}return Ub(t,e),Wb(t,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var 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(t=i,r=0;r<5&&(null!=(n=e.next())&&!sv(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return av(a)?String.fromCharCode(a):"�"}}])}(iv),uv=function(){function e(t,r){$b(this,e),this._key=t,this._value=r}return Wb(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}}])}(),cv=function(){function e(){$b(this,e)}return Wb(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,r,n){var o,i;if(t.length===r)return i=this._value,this.setValue(n),i;var a=t.charAt(r);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return uv.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return uv.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||uv.newInstanceIfNeeded(e,t,this._value)}}])}(),dv=function(){return Wb((function e(){$b(this,e),this.clear()}),[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new cv);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}])}(),pv=function(){var e,t,r,n=[],o=[],i=new dv;for(e in n["&quot"]="34",n["&amp"]="38",n["&lt"]="60",n["&gt"]="62",n["&nbsp"]="160",n["&iexcl"]="161",n["&cent"]="162",n["&pound"]="163",n["&curren"]="164",n["&yen"]="165",n["&brvbar"]="166",n["&sect"]="167",n["&uml"]="168",n["&copy"]="169",n["&ordf"]="170",n["&laquo"]="171",n["&not"]="172",n["&shy"]="173",n["&reg"]="174",n["&macr"]="175",n["&deg"]="176",n["&plusmn"]="177",n["&sup2"]="178",n["&sup3"]="179",n["&acute"]="180",n["&micro"]="181",n["&para"]="182",n["&middot"]="183",n["&cedil"]="184",n["&sup1"]="185",n["&ordm"]="186",n["&raquo"]="187",n["&frac14"]="188",n["&frac12"]="189",n["&frac34"]="190",n["&iquest"]="191",n["&Agrave"]="192",n["&Aacute"]="193",n["&Acirc"]="194",n["&Atilde"]="195",n["&Auml"]="196",n["&Aring"]="197",n["&AElig"]="198",n["&Ccedil"]="199",n["&Egrave"]="200",n["&Eacute"]="201",n["&Ecirc"]="202",n["&Euml"]="203",n["&Igrave"]="204",n["&Iacute"]="205",n["&Icirc"]="206",n["&Iuml"]="207",n["&ETH"]="208",n["&Ntilde"]="209",n["&Ograve"]="210",n["&Oacute"]="211",n["&Ocirc"]="212",n["&Otilde"]="213",n["&Ouml"]="214",n["&times"]="215",n["&Oslash"]="216",n["&Ugrave"]="217",n["&Uacute"]="218",n["&Ucirc"]="219",n["&Uuml"]="220",n["&Yacute"]="221",n["&THORN"]="222",n["&szlig"]="223",n["&agrave"]="224",n["&aacute"]="225",n["&acirc"]="226",n["&atilde"]="227",n["&auml"]="228",n["&aring"]="229",n["&aelig"]="230",n["&ccedil"]="231",n["&egrave"]="232",n["&eacute"]="233",n["&ecirc"]="234",n["&euml"]="235",n["&igrave"]="236",n["&iacute"]="237",n["&icirc"]="238",n["&iuml"]="239",n["&eth"]="240",n["&ntilde"]="241",n["&ograve"]="242",n["&oacute"]="243",n["&ocirc"]="244",n["&otilde"]="245",n["&ouml"]="246",n["&divide"]="247",n["&oslash"]="248",n["&ugrave"]="249",n["&uacute"]="250",n["&ucirc"]="251",n["&uuml"]="252",n["&yacute"]="253",n["&thorn"]="254",n["&yuml"]="255",n["&OElig"]="338",n["&oelig"]="339",n["&Scaron"]="352",n["&scaron"]="353",n["&Yuml"]="376",n["&fnof"]="402",n["&circ"]="710",n["&tilde"]="732",n["&Alpha"]="913",n["&Beta"]="914",n["&Gamma"]="915",n["&Delta"]="916",n["&Epsilon"]="917",n["&Zeta"]="918",n["&Eta"]="919",n["&Theta"]="920",n["&Iota"]="921",n["&Kappa"]="922",n["&Lambda"]="923",n["&Mu"]="924",n["&Nu"]="925",n["&Xi"]="926",n["&Omicron"]="927",n["&Pi"]="928",n["&Rho"]="929",n["&Sigma"]="931",n["&Tau"]="932",n["&Upsilon"]="933",n["&Phi"]="934",n["&Chi"]="935",n["&Psi"]="936",n["&Omega"]="937",n["&alpha"]="945",n["&beta"]="946",n["&gamma"]="947",n["&delta"]="948",n["&epsilon"]="949",n["&zeta"]="950",n["&eta"]="951",n["&theta"]="952",n["&iota"]="953",n["&kappa"]="954",n["&lambda"]="955",n["&mu"]="956",n["&nu"]="957",n["&xi"]="958",n["&omicron"]="959",n["&pi"]="960",n["&rho"]="961",n["&sigmaf"]="962",n["&sigma"]="963",n["&tau"]="964",n["&upsilon"]="965",n["&phi"]="966",n["&chi"]="967",n["&psi"]="968",n["&omega"]="969",n["&thetasym"]="977",n["&upsih"]="978",n["&piv"]="982",n["&ensp"]="8194",n["&emsp"]="8195",n["&thinsp"]="8201",n["&zwnj"]="8204",n["&zwj"]="8205",n["&lrm"]="8206",n["&rlm"]="8207",n["&ndash"]="8211",n["&mdash"]="8212",n["&lsquo"]="8216",n["&rsquo"]="8217",n["&sbquo"]="8218",n["&ldquo"]="8220",n["&rdquo"]="8221",n["&bdquo"]="8222",n["&dagger"]="8224",n["&Dagger"]="8225",n["&bull"]="8226",n["&hellip"]="8230",n["&permil"]="8240",n["&prime"]="8242",n["&Prime"]="8243",n["&lsaquo"]="8249",n["&rsaquo"]="8250",n["&oline"]="8254",n["&frasl"]="8260",n["&euro"]="8364",n["&image"]="8365",n["&weierp"]="8472",n["&real"]="8476",n["&trade"]="8482",n["&alefsym"]="8501",n["&larr"]="8592",n["&uarr"]="8593",n["&rarr"]="8594",n["&darr"]="8595",n["&harr"]="8596",n["&crarr"]="8629",n["&lArr"]="8656",n["&uArr"]="8657",n["&rArr"]="8658",n["&dArr"]="8659",n["&hArr"]="8660",n["&forall"]="8704",n["&part"]="8706",n["&exist"]="8707",n["&empty"]="8709",n["&nabla"]="8711",n["&isin"]="8712",n["&notin"]="8713",n["&ni"]="8715",n["&prod"]="8719",n["&sum"]="8721",n["&minus"]="8722",n["&lowast"]="8727",n["&radic"]="8730",n["&prop"]="8733",n["&infin"]="8734",n["&ang"]="8736",n["&and"]="8743",n["&or"]="8744",n["&cap"]="8745",n["&cup"]="8746",n["&int"]="8747",n["&there4"]="8756",n["&sim"]="8764",n["&cong"]="8773",n["&asymp"]="8776",n["&ne"]="8800",n["&equiv"]="8801",n["&le"]="8804",n["&ge"]="8805",n["&sub"]="8834",n["&sup"]="8835",n["&nsub"]="8836",n["&sube"]="8838",n["&supe"]="8839",n["&oplus"]="8853",n["&otimes"]="8855",n["&perp"]="8869",n["&sdot"]="8901",n["&lceil"]="8968",n["&rceil"]="8969",n["&lfloor"]="8970",n["&rfloor"]="8971",n["&lang"]="9001",n["&rang"]="9002",n["&loz"]="9674",n["&spades"]="9824",n["&clubs"]="9827",n["&hearts"]="9829",n["&diams"]="9830",n)"function"!=typeof n[e]&&n.hasOwnProperty(e)&&(o[n[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(r=o[t].toLowerCase().substr(1),i.put(r,String.fromCharCode(t)));return i}(),fv=function(e){function t(){return $b(this,t),Bb(this,t,arguments)}return Ub(t,e),Wb(t,[{key:"decodeCharacter",value:function(e){var t;e.mark();var r=e.next();if(null==r||"&"!==r)return e.reset(),null;var n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(null!=(t=this._getNumericEntity(e)))return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,r,n,o="";for(t=Math.min(e.remainder().length,pv.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=pv.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,16);return!Number.isNaN(+n)&&av(n)?String.fromCharCode(n):null}},{key:"_parseNumber",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,10);return!Number.isNaN(+n)&&av(n)?String.fromCharCode(n):null}}])}(iv),mv=function(e){function t(){return $b(this,t),Bb(this,t,arguments)}return Ub(t,e),Wb(t,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",r=0;r<2;r++)null!=(n=e.nextHex())&&(t+=n);return 2===t.length&&(o=parseInt(t,16),av(o))?String.fromCharCode(o):(e.reset(),null)}}])}(iv),hv=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(nv=document.createElement("div"));var gv=Array.prototype.indexOf,bv=[",",".","_"," "],vv=[",",".","-","_"," "],yv={width:["%"],height:["%"]},xv={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},Sv={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":xv.image,"background-color":xv.color,"border-color":xv.color,"border-image":xv.image,color:xv.color,icon:xv.image,"list-style-image":xv.image,"outline-color":xv.color},wv={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function Ev(e,t,r){var n;if(t){if(gv)return gv.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function Cv(e){if(null==e)return"";var t,r=document.createTextNode(e);return nv.appendChild(r),t=nv.innerHTML,nv.removeChild(r),t}function Rv(e,t,r){var n,o,i,a,s,l,u,c,d;if(e=Pv(e).toLowerCase(),t=Pv(t),Ev(e,wv.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<wv.attr_val;i++)if(t.toLowerCase().match(wv.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=yv[e])||(n=vv),o="",!r){for(a=0;a<e.length;a++){if(!(s=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&Ev(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function Ov(e,t,r){var n,o,i,a,s,l,u,c,d,p;if(e=Pv(e).toLowerCase(),t=Pv(t),Ev(e,wv.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<wv.css_val.length;n++)if(t.toLowerCase().indexOf(wv.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=Sv[e])||(o=xv.default),i="",!r){for(a=0;a<e.length;a++){if(!(s=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&Ev(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function Pv(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var s=[new fv,new mv,new lv];!a;){n=r;for(var l=0;l<s.length;l++)(i=s[l].decode(r))!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}for(var Av=[],Iv=0;Iv<255;Iv++)Av[Iv]=Iv>=48&&Iv<=57||Iv>=65&&Iv<=90||Iv>=97&&Iv<=122?null:Iv.toString(16);var Dv=function(e){return Cv(e.unsafe)},Mv=function(e){var t,r=[],n=[],o={},i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=Ov(t,r[t],!0),i+=Ov(t,r[t],!0),o[t]=n[t]);return e.map?o:i},Lv=function(e){var t=[],r=[],n={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(r[i]=Rv(i,t[i],!0),o+=Rv(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function kv(e,t){throw new Error(t)}var Tv={canonicalize:Pv,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===Zb(arguments[0])?function(){for(var e,t,r,n=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(n===(r=e[t]))continue;void 0!==r&&(n[t]=r)}}(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?Dv(e):"css"===e.context?(null!=e.map&&"object"!==Zb(e.map)&&kv(this,"Invalid parameter type"),Mv(e)):"attr"===e.context?(null!=e.map&&"object"!==Zb(e.map)&&kv(this,"Invalid parameter type"),Lv(e)):void kv(this,"Invalid parameter type")},encodeForAttr:Rv,encodeForAttr2:function(e){return Rv("nonsens",e,!0)},encodeForCSS:Ov,encodeForHref:function(e){Pv(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new tv(e),r=tv.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+tv.encodeSearchParams(n)+t.hash).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){var r,n,o,i,a,s;for(t||(t=bv),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),Ev(o,t)>=0||null==Av[i]?s+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),s+="\\x".concat(a).concat(n.toUpperCase())):(a="0000".substr(n.length),s+="\\u".concat(a).concat(n.toUpperCase())));return s},encodeForHTML:Cv,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=Pv(t).toLowerCase():kv(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':""},isSafeDataURL:function(e,t){var r=null!=t?t:{},n=r.maxByteSizeSvg,o=void 0===n?5e5:n,i=r.maxByteSizeImage,a=void 0===i?5e6:i,s=function(e){var t,r=Xb(null!==(t=hv.exec(e.trim()))&&void 0!==t?t:[],4),n=r[1];return{encoding:r[2],data:r[3],mimeType:null==n?void 0:n.toLocaleLowerCase()}}(e),l=s.mimeType,u=s.encoding,c=s.data;if(!c)return!0;var d=function(e,t,r){var n={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(r)],n).size}catch(e){return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0}(l,u,c);return"image/svg+xml"===l?d<=o:d<=a},validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch(e){return!1}}(e))return!1;var t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;var r=function(e){for(var t=e,r="";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(/^\/\.\.\//,"/");var n=r.lastIndexOf("/");-1!==n&&(r=r.slice(0,n))}else if("/.."===t){t="/";var o=r.lastIndexOf("/");-1!==o&&(r=r.slice(0,o))}else if("."===t||".."===t)t="";else{var i=t.match(/^\/?[^/]*/),a=i?i[0]:"";t=t.slice(a.length),r+=a}return r}(t);return""!==r&&"/"!==r&&r}};const _v=(e,t)=>{var r;return null===(r=t.qAttrExps)||void 0===r||null===(r=r.qValues)||void 0===r?void 0:r[e]},jv=(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"}}},qv=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>n&&t&&!t.toLowerCase().includes("javascript:")&&Tv.isSafeDataURL(t)?{type:Tg.Image,url:t,text:e,imageSize:r,resolvedImagePosition:jv(n,a),labelStructure:o,imageBox:i}:{type:Tg.Text,url:void 0,text:e,labelStructure:o},Nv=(e,t,r,n)=>{if(!e.qMiniChart||null==t||!t.miniChart||!r)return{type:Tg.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{var n,o;const i="global"===(null===(n=t.yAxis)||void 0===n?void 0:n.scale),a="zeroCenter"===(null===(o=t.yAxis)||void 0===o?void 0:o.position),s=i?r.qYMin:e.qMiniChart.qMin,l=i?r.qYMax:e.qMiniChart.qMax;if(a){const e=Math.max(Math.abs(s),Math.abs(l));return{minY:-e,maxY:e}}return(e=>{var t,r;return"zeroBaseline"===(null===(t=e.yAxis)||void 0===t?void 0:t.position)||"bars"===e.type&&"auto"===(null===(r=e.yAxis)||void 0===r?void 0:r.position)})(t)?{minY:Math.min(0,s),maxY:Math.max(0,l)}:{minY:s,maxY:l}})(e,t.miniChart,r),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:Tg.MiniChart,text:n,miniChart:a}},Fv=(e,t,r)=>{var n;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(n=o.qValues)||void 0===n?void 0:n[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==r?void 0:r.urlPosition)===_g.Attribute||null==r?void 0:r.urlLabel},zv=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:Tg.Link,url:Tv.encodeForHref(r),text:t,labelStructure:e}}catch(r){return{type:Tg.Text,url:void 0,text:t,labelStructure:e}}},Hv=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:u})=>{var c,d,p,f,m,h;const g=jg(t),b=s(e);return g!==Tg.Image||!u[Tg.Image]||null!==(c=n.anything.sense)&&void 0!==c&&null!==(d=c.isUnsupportedFeature)&&void 0!==d&&d.call(c,"tableImages")?g===Tg.Link?((e,t,r,n,o)=>{const{urlPosition:i}=null!=t?t:{};if(i===_g.Attribute){var a;const i=Fv(null!==(a=r.url)&&void 0!==a?a:-1,e,t);return zv({labelStructure:n,text:o||i||"",url:i})}if(i===_g.Dimension){var s,l;const i=Fv(null!==(s=r.urlLabel)&&void 0!==s?s:-1,e,t)||o;return n&&(n.maskedValue=i),zv({text:i,labelStructure:n,url:null!==(l=null==n?void 0:n.originalValue)&&void 0!==l?l:o})}return{type:Tg.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,b):g!==Tg.Indicator||!u[Tg.Indicator]||null!==(p=n.anything.sense)&&void 0!==p&&null!==(f=p.isUnsupportedFeature)&&void 0!==f&&f.call(p,"tableIndicators")?g!==Tg.MiniChart||!u[Tg.MiniChart]||null!==(m=n.anything.sense)&&void 0!==m&&null!==(h=m.isUnsupportedFeature)&&void 0!==h&&h.call(m,"qMiniChartDef")?{type:Tg.Text,url:void 0,text:b,labelStructure:a}:Nv(e,t,i,b):((e,t,r)=>{const{indicator:n}=null!=e?e:{};return{type:Tg.Indicator,url:void 0,text:r,indicator:{applySegmentColors:null==n?void 0:n.applySegmentColors,position:null==n?void 0:n.position,showTextValues:null==n?void 0:n.showTextValues},indicatorConditionalColoring:t}})(t,o,b):((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=null!=t?t:{};if("url"===l){var d,p;const t=null===(d=_v(null!==(p=r.imageUrl)&&void 0!==p?p:-1,e))||void 0===d?void 0:d.qText;return i&&(i.maskedValue=null!=t?t:""),qv({text:n,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}if("label"===l){var f,m,h;const t=i?i.originalValue:n;if(-1===r.imageLabel)return qv({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=null!==(f=null===(m=_v(null!==(h=r.imageLabel)&&void 0!==h?h:-1,e))||void 0===m?void 0:m.qText)&&void 0!==f?f:n;return qv({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:Tg.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,b,l,a)},Bv=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,$v=(e,t,r,n)=>{var o,i,a;return null!==(o=null!==(i=!e&&n.flags.isEnabled("CLIENT_IM_7121_TABLE_NULL_REP")?null===(a=r.nullValueRepresentation)||void 0===a?void 0:a.text:void 0)&&void 0!==i?i:t.qText)&&void 0!==o?o:"-"},Vv=1e4;function Wv(e,t){return[...t].reverse().find((t=>t*e<=Vv))||Math.floor(Vv/e)}function Gv(e,t){var r;if(null!==(r=t.viewState)&&void 0!==r&&r.skipTotals)return{atTop:!1,atBottom:!1};const[n,o,i,a,s]=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,e.totals.show,e.totals.position];if(i&&(n&&o||!a&&!n)){if(a||"top"===s)return{atTop:!0,atBottom:!1};if("bottom"===s)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function Uv(e,t,r,n){var o,i,a;return t?0===r&&null!==(a=e.totals.label)&&void 0!==a?a:"":null!==(o=null===(i=e.qHyperCube.qGrandTotalRow.at(n))||void 0===i?void 0:i.qText)&&void 0!==o?o:""}function Yv(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return Nb(null==r?void 0:r.qNum)}function Kv(e,t,r,n,o){return e&&!e.auto?n&&"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}:n||"rtl"!==o?{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:r?"left":"right",bodyTextAlign:"auto"}:{headTextAlign:"N"===t||void 0===t?"left":"right",totalsTextAlign:r?"right":"left",bodyTextAlign:"auto"}}const Xv=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right";const Jv=(e,t,r)=>{const{qHyperCube:{qColumnOrder:n,qDimensionInfo:o,qMeasureInfo:i}}=e,a=o.length+i.length,s=n.length===a?n:Array.from(Array(a).keys()),{visibleColumnsOrder:l,visibleColumnIndexes:u}=((e,t,r)=>{const n=t.length,o=[];let i=0,a=0;return{visibleColumnsOrder:e.filter((e=>{const s=e<n,{qError:l}=s?t[e]:r[e-n],u=7005===(null==l?void 0:l.qErrorCode);return u?s?i++:a++:o[e]=s?e-i:e-n-a,!u})),visibleColumnIndexes:o}})(s,o,i);return l.map(((n,o)=>function(e,t,r,n,o,i){const{qDimensionInfo:a,qMeasureInfo:s,qEffectiveInterColumnSortOrder:l}=e.qHyperCube,u=a.length,c=t<u,d=c?a[t]:s[t-u],p=c&&a[t].qGrouping===Ym.Cyclic,f=t===l[0];let m,h,g="",b=!1,v=-1,y=0,x=[];const{representation:S,conditionalColoring:w}=d;if(c){var E;const e=d;g=e.qGroupFieldDefs[e.qGroupPos],y=e.qGroupPos,x=e.qGroupFallbackTitles,b=null!==(E=e.qLocked)&&void 0!==E&&E,v=n,({qDimensionType:m}=e)}else({qMiniChart:h}=d);const{qFallbackTitle:C,textAlign:R,qAttrExprInfo:O,qSortIndicator:P,qReverseSort:A,qApprMaxGlyphCount:I,columnWidth:D,qLibraryId:M}=d;return{isDim:c,isCyclic:p,isLocked:b,fieldId:g,colIdx:t,qLibraryId:M,pageColIdx:r,qApprMaxGlyphCount:I,qReverseSort:A,columnWidth:null!=D?D:{type:Wm.Auto},selectionColIdx:v,isActivelySorted:f,id:qb(d),label:C,groupDimensionPos:y,groupDimensionLabels:x,qAttrExprInfoIDs:O.map((e=>e.id)),qAttrExprInfoIndex:Ib(d),sortDirection:P&&"N"!==P?P:"A",totalInfo:Uv(e,c,r,n),...!c&&{isTotalNumeric:Yv(e,n)},...Kv(R,m,c,o,i),representation:S,conditionalColoring:c?void 0:w,qMiniChart:h}}(e,n,o,u[n],t,r)))};const Zv=(e,t)=>{var r;return!!(e.snapshotData||null!==(r=t.viewState)&&void 0!==r&&r.visibleHeight)},Qv=(e,t)=>{var r;return void 0!==(null===(r=t.viewState)||void 0===r?void 0:r.usePagination)?t.viewState.usePagination:!1!==e.usePagination||Zv(e,t)};var ey="$$material";const ty=["values","unit","step"];function ry(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Mt(e,ty),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>wt({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-n/100}${r})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-n/100}${r})`}return wt({keys:a,values:i,up:s,down:l,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}const ny={borderRadius:4};function oy(e,t){return t?Js(e,t,{clone:!1}):e}const iy={xs:0,sm:600,md:900,lg:1200,xl:1536},ay={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${iy[e]}px)`};function sy(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||ay;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||ay;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||iy).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function ly(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){const r=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=r)return r}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function uy(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:ly(e,r)||n,t&&(o=t(o,n,e)),o}function cy(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=ly(e.theme,n)||{};return sy(e,i,(e=>{let n=uy(a,o,e);return e===n&&"string"==typeof e&&(n=uy(a,o,`${t}${"default"===e?"":al(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const dy={m:"margin",p:"padding"},py={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},fy={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},my=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!fy[e])return[e];e=fy[e]}const[t,r]=e.split(""),n=dy[t],o=py[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),hy=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],gy=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function by(e,t,r,n){var o;const i=null!=(o=ly(e,t,!1))?o:r;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function vy(e){return by(e,"spacing",8)}function yy(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function xy(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=yy(t,r),e)),{})}(my(r),n);return sy(e,e[r],o)}function Sy(e,t){const r=vy(e.theme);return Object.keys(e).map((n=>xy(e,t,n,r))).reduce(oy,{})}function wy(e){return Sy(e,hy)}function Ey(e){return Sy(e,gy)}function Cy(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((r=>{e[r]=t})),e)),{}),r=e=>Object.keys(e).reduce(((r,n)=>t[n]?oy(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Ry(e){return"number"!=typeof e?e:`${e}px solid`}function Oy(e,t){return cy({prop:e,themeKey:"borders",transform:t})}wy.propTypes={},wy.filterProps=hy,Ey.propTypes={},Ey.filterProps=gy;const Py=Oy("border",Ry),Ay=Oy("borderTop",Ry),Iy=Oy("borderRight",Ry),Dy=Oy("borderBottom",Ry),My=Oy("borderLeft",Ry),Ly=Oy("borderColor"),ky=Oy("borderTopColor"),Ty=Oy("borderRightColor"),_y=Oy("borderBottomColor"),jy=Oy("borderLeftColor"),qy=Oy("outline",Ry),Ny=Oy("outlineColor"),Fy=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=by(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:yy(t,e)});return sy(e,e.borderRadius,r)}return null};Fy.propTypes={},Fy.filterProps=["borderRadius"],Cy(Py,Ay,Iy,Dy,My,Ly,ky,Ty,_y,jy,Fy,qy,Ny);const zy=e=>{if(void 0!==e.gap&&null!==e.gap){const t=by(e.theme,"spacing",8),r=e=>({gap:yy(t,e)});return sy(e,e.gap,r)}return null};zy.propTypes={},zy.filterProps=["gap"];const Hy=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=by(e.theme,"spacing",8),r=e=>({columnGap:yy(t,e)});return sy(e,e.columnGap,r)}return null};Hy.propTypes={},Hy.filterProps=["columnGap"];const By=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=by(e.theme,"spacing",8),r=e=>({rowGap:yy(t,e)});return sy(e,e.rowGap,r)}return null};By.propTypes={},By.filterProps=["rowGap"];function $y(e,t){return"grey"===t?t:e}Cy(zy,Hy,By,cy({prop:"gridColumn"}),cy({prop:"gridRow"}),cy({prop:"gridAutoFlow"}),cy({prop:"gridAutoColumns"}),cy({prop:"gridAutoRows"}),cy({prop:"gridTemplateColumns"}),cy({prop:"gridTemplateRows"}),cy({prop:"gridTemplateAreas"}),cy({prop:"gridArea"}));function Vy(e){return e<=1&&0!==e?100*e+"%":e}Cy(cy({prop:"color",themeKey:"palette",transform:$y}),cy({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:$y}),cy({prop:"backgroundColor",themeKey:"palette",transform:$y}));const Wy=cy({prop:"width",transform:Vy}),Gy=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var r,n;const o=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||iy[t];return o?"px"!==(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Vy(t)}};return sy(e,e.maxWidth,t)}return null};Gy.filterProps=["maxWidth"];const Uy=cy({prop:"minWidth",transform:Vy}),Yy=cy({prop:"height",transform:Vy}),Ky=cy({prop:"maxHeight",transform:Vy}),Xy=cy({prop:"minHeight",transform:Vy});cy({prop:"size",cssProperty:"width",transform:Vy}),cy({prop:"size",cssProperty:"height",transform:Vy});Cy(Wy,Gy,Uy,Yy,Ky,Xy,cy({prop:"boxSizing"}));const Jy={border:{themeKey:"borders",transform:Ry},borderTop:{themeKey:"borders",transform:Ry},borderRight:{themeKey:"borders",transform:Ry},borderBottom:{themeKey:"borders",transform:Ry},borderLeft:{themeKey:"borders",transform:Ry},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ry},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Fy},color:{themeKey:"palette",transform:$y},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:$y},backgroundColor:{themeKey:"palette",transform:$y},p:{style:Ey},pt:{style:Ey},pr:{style:Ey},pb:{style:Ey},pl:{style:Ey},px:{style:Ey},py:{style:Ey},padding:{style:Ey},paddingTop:{style:Ey},paddingRight:{style:Ey},paddingBottom:{style:Ey},paddingLeft:{style:Ey},paddingX:{style:Ey},paddingY:{style:Ey},paddingInline:{style:Ey},paddingInlineStart:{style:Ey},paddingInlineEnd:{style:Ey},paddingBlock:{style:Ey},paddingBlockStart:{style:Ey},paddingBlockEnd:{style:Ey},m:{style:wy},mt:{style:wy},mr:{style:wy},mb:{style:wy},ml:{style:wy},mx:{style:wy},my:{style:wy},margin:{style:wy},marginTop:{style:wy},marginRight:{style:wy},marginBottom:{style:wy},marginLeft:{style:wy},marginX:{style:wy},marginY:{style:wy},marginInline:{style:wy},marginInlineStart:{style:wy},marginInlineEnd:{style:wy},marginBlock:{style:wy},marginBlockStart:{style:wy},marginBlockEnd:{style:wy},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:zy},rowGap:{style:By},columnGap:{style:Hy},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Vy},maxWidth:{style:Gy},minWidth:{transform:Vy},height:{transform:Vy},maxHeight:{transform:Vy},minHeight:{transform:Vy},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Zy(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:u}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const c=ly(r,s)||{};if(u)return u(o);return sy(o,t,(t=>{let r=uy(c,l,t);return t===r&&"string"==typeof t&&(r=uy(c,l,`${e}${"default"===t?"":al(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=null!=(n=i.unstable_sxConfig)?n:Jy;function s(r){let n=r;if("function"==typeof r)n=r(i);else if("object"!=typeof r)return r;if(!n)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),s=Object.keys(o);let l=o;return Object.keys(n).forEach((r=>{const o=(s=n[r],u=i,"function"==typeof s?s(u):s);var s,u;if(null!=o)if("object"==typeof o)if(a[r])l=oy(l,e(r,o,i,a));else{const e=sy({theme:i},o,(e=>({[r]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),r=new Set(t);return e.every((e=>r.size===Object.keys(e).length))}(e,o)?l=oy(l,e):l[r]=t({sx:o,theme:i})}else l=oy(l,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(o)?o.map(s):s(o)}}const Qy=Zy();function ex(e,t){const r=this;if(r.vars&&"function"==typeof r.getColorSchemeSelector){const n=r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[n]:t}}return r.palette.mode===e?t:{}}Qy.filterProps=["sx"];const tx=["breakpoints","palette","spacing","shape"];function rx(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Mt(e,tx),s=ry(r),l=function(e=8){if(e.mui)return e;const t=vy({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=Js({breakpoints:s,direction:"ltr",components:{},palette:wt({mode:"light"},n),spacing:l,shape:wt({},ny,i)},a);return u.applyStyles=ex,u=t.reduce(((e,t)=>Js(e,t)),u),u.unstable_sxConfig=wt({},Jy,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Qy({sx:e,theme:this})},u}var nx=Object.freeze({__proto__:null,default:rx,private_createBreakpoints:ry,unstable_applyStyles:ex});function ox(e=null){const t=S.useContext(Di);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const ix=rx();const ax=["sx"];function sx(e){const{sx:t}=e,r=Mt(e,ax),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:Jy;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return Ks(r)?wt({},n,r):n}:wt({},n,t),wt({},o,{sx:i})}var lx=Object.freeze({__proto__:null,default:Qy,extendSxProp:sx,unstable_createStyleFunctionSx:Zy,unstable_defaultSxConfig:Jy});const ux=["className","component"];function cx(e){if(e.type)return e;if("#"===e.charAt(0))return cx(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error(Qs(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error(Qs(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function dx(e,t){return e=cx(e),t=function(e,t=0,r=1){return Ml(e,t,r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}const px=S.createContext(null);function fx(){return S.useContext(px)}var mx="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function hx(e){const{children:t,theme:r}=e,n=fx(),o=S.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return wt({},e,t)}(n,r);return null!=e&&(e[mx]=null!==n),e}),[r,n]);return nr.jsx(px.Provider,{value:o,children:t})}const gx=["value"],bx=S.createContext();function vx(e){let{value:t}=e,r=Mt(e,gx);return nr.jsx(bx.Provider,wt({value:null==t||t},r))}const yx=S.createContext(void 0);function xx({value:e,children:t}){return nr.jsx(yx.Provider,{value:e,children:t})}function Sx({props:e,name:t}){return function(e){const{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;const o=t.components[r];return o.defaultProps?Cl(o.defaultProps,n):o.styleOverrides||o.variants?n:Cl(o,n)}({props:e,name:t,theme:{components:S.useContext(yx)}})}const wx={};function Ex(e,t,r,n=!1){return S.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?wt({},t,{[e]:i}):i;return n?()=>a:a}return wt({},t,e?{[e]:r}:r)}),[e,t,r,n])}function Cx(e){const{children:t,theme:r,themeId:n}=e,o=ox(wx),i=fx()||wx,a=Ex(n,o,r),s=Ex(n,i,r,!0),l="rtl"===a.direction;return nr.jsx(hx,{theme:s,children:nr.jsx(Di.Provider,{value:a,children:nr.jsx(vx,{value:l,children:nr.jsx(xx,{value:null==a?void 0:a.components,children:t})})})})}var Rx={},Ox={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Ox);var Px=Ox.exports,Ax=Ct(el),Ix=Ct(Ll),Dx=Px;Object.defineProperty(Rx,"__esModule",{value:!0});var Mx=Rx.alpha=Vx;Rx.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=Fx(e),a=Fx(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Hx({type:"rgb",values:s})},Rx.colorChannel=void 0;var Lx=Rx.darken=Wx;Rx.decomposeColor=Fx,Rx.emphasize=Ux;var kx=Rx.getContrastRatio=function(e,t){const r=$x(e),n=$x(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};Rx.getLuminance=$x,Rx.hexToRgb=Nx,Rx.hslToRgb=Bx;var Tx=Rx.lighten=Gx;Rx.private_safeAlpha=function(e,t,r){try{return Vx(e,t)}catch(t){return e}},Rx.private_safeColorChannel=void 0,Rx.private_safeDarken=function(e,t,r){try{return Wx(e,t)}catch(t){return e}},Rx.private_safeEmphasize=function(e,t,r){try{return Ux(e,t)}catch(t){return e}},Rx.private_safeLighten=function(e,t,r){try{return Gx(e,t)}catch(t){return e}},Rx.recomposeColor=Hx,Rx.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Fx(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var _x=Dx(Ax),jx=Dx(Ix);function qx(e,t=0,r=1){return(0,jx.default)(e,t,r)}function Nx(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&1===r[0].length&&(r=r.map((e=>e+e))),r?`rgb${4===r.length?"a":""}(${r.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function Fx(e){if(e.type)return e;if("#"===e.charAt(0))return Fx(Nx(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,_x.default)(9,e));let n,o=e.substring(t+1,e.length-1);if("color"===r){if(o=o.split(" "),n=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n))throw new Error((0,_x.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const zx=e=>{const t=Fx(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};Rx.colorChannel=zx;function Hx(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return-1!==t.indexOf("rgb")?n=n.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function Bx(e){e=Fx(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=(e,t=(e+r/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Hx({type:s,values:l})}function $x(e){let t="hsl"===(e=Fx(e)).type||"hsla"===e.type?Fx(Bx(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Vx(e,t){return e=Fx(e),t=qx(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Hx(e)}function Wx(e,t){if(e=Fx(e),t=qx(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Hx(e)}function Gx(e,t){if(e=Fx(e),t=qx(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Hx(e)}function Ux(e,t=.15){return $x(e)>.5?Wx(e,t):Gx(e,t)}Rx.private_safeColorChannel=(e,t)=>{try{return zx(e)}catch(t){return e}};const Yx={black:"#000",white:"#fff"},Kx={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"},Xx="#f3e5f5",Jx="#ce93d8",Zx="#ba68c8",Qx="#ab47bc",eS="#9c27b0",tS="#7b1fa2",rS="#e57373",nS="#ef5350",oS="#f44336",iS="#d32f2f",aS="#c62828",sS="#ffb74d",lS="#ffa726",uS="#ff9800",cS="#f57c00",dS="#e65100",pS="#e3f2fd",fS="#90caf9",mS="#42a5f5",hS="#1976d2",gS="#1565c0",bS="#4fc3f7",vS="#29b6f6",yS="#03a9f4",xS="#0288d1",SS="#01579b",wS="#81c784",ES="#66bb6a",CS="#4caf50",RS="#388e3c",OS="#2e7d32",PS="#1b5e20",AS=["mode","contrastThreshold","tonalOffset"],IS={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Yx.white,default:Yx.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},DS={text:{primary:Yx.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Yx.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function MS(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=Tx(e.main,o):"dark"===t&&(e.dark=Lx(e.main,i)))}function LS(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Mt(e,AS),i=e.primary||function(e="light"){return"dark"===e?{main:fS,light:pS,dark:mS}:{main:hS,light:mS,dark:gS}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Jx,light:Xx,dark:Qx}:{main:eS,light:Zx,dark:tS}}(t),s=e.error||function(e="light"){return"dark"===e?{main:oS,light:rS,dark:iS}:{main:iS,light:nS,dark:aS}}(t),l=e.info||function(e="light"){return"dark"===e?{main:vS,light:bS,dark:xS}:{main:xS,light:yS,dark:SS}}(t),u=e.success||function(e="light"){return"dark"===e?{main:ES,light:wS,dark:RS}:{main:OS,light:CS,dark:PS}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:lS,light:sS,dark:cS}:{main:"#ed6c02",light:uS,dark:dS}}(t);function d(e){return kx(e,DS.text.primary)>=r?DS.text.primary:IS.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=wt({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Qs(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Qs(12,t?` (${t})`:"",JSON.stringify(e.main)));return MS(e,"light",o,n),MS(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:DS,light:IS};return Js(wt({common:wt({},Yx),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:Kx,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const kS=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const TS={textTransform:"uppercase"},_S='"Roboto", "Helvetica", "Arial", sans-serif';function jS(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=_S,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Mt(r,kS),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return wt({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===_S?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(s,14,1.75,.4,TS),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,TS),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Js(wt({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function qS(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const NS=["none",qS(0,2,1,-1,0,1,1,0,0,1,3,0),qS(0,3,1,-2,0,2,2,0,0,1,5,0),qS(0,3,3,-2,0,3,4,0,0,1,8,0),qS(0,2,4,-1,0,4,5,0,0,1,10,0),qS(0,3,5,-1,0,5,8,0,0,1,14,0),qS(0,3,5,-1,0,6,10,0,0,1,18,0),qS(0,4,5,-2,0,7,10,1,0,2,16,1),qS(0,5,5,-3,0,8,10,1,0,3,14,2),qS(0,5,6,-3,0,9,12,1,0,3,16,2),qS(0,6,6,-3,0,10,14,1,0,4,18,3),qS(0,6,7,-4,0,11,15,1,0,4,20,3),qS(0,7,8,-4,0,12,17,2,0,5,22,4),qS(0,7,8,-4,0,13,19,2,0,5,24,4),qS(0,7,9,-4,0,14,21,2,0,5,26,4),qS(0,8,9,-5,0,15,22,2,0,6,28,5),qS(0,8,10,-5,0,16,24,2,0,6,30,5),qS(0,8,11,-5,0,17,26,2,0,6,32,5),qS(0,9,11,-5,0,18,28,2,0,7,34,6),qS(0,9,12,-6,0,19,29,2,0,7,36,6),qS(0,10,13,-6,0,20,31,3,0,8,38,7),qS(0,10,13,-6,0,21,33,3,0,8,40,7),qS(0,10,14,-6,0,22,35,3,0,8,42,7),qS(0,11,14,-7,0,23,36,3,0,9,44,8),qS(0,11,15,-7,0,24,38,3,0,9,46,8)],FS=["duration","easing","delay"],zS={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},HS={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function BS(e){return`${Math.round(e)}ms`}function $S(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function VS(e){const t=wt({},zS,e.easing),r=wt({},HS,e.duration);return wt({getAutoHeightDuration:$S,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Mt(n,FS),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:BS(o)} ${i} ${"string"==typeof a?a:BS(a)}`)).join(",")}},e,{easing:t,duration:r})}const WS={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},GS=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function US(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Mt(e,GS);if(e.vars&&void 0===e.generateCssVars)throw new Error(Qs(18));const s=LS(n),l=rx(e);let u=Js(l,{mixins:(c=l.breakpoints,d=r,wt({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:NS.slice(),typography:jS(s,i),transitions:VS(o),zIndex:wt({},WS)});var c,d;return u=Js(u,a),u=t.reduce(((e,t)=>Js(e,t)),u),u.unstable_sxConfig=wt({},Jy,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Qy({sx:e,theme:this})},u}const YS=US();var KS,XS={},JS={exports:{}};var ZS,QS={exports:{}};var ew=Ct(Gi),tw=Ct(Zs),rw=Ct(sl),nw=Ct(il),ow=Ct(nx),iw=Ct(lx),aw=Px;Object.defineProperty(XS,"__esModule",{value:!0});var sw=XS.default=function(e={}){const{themeId:t,defaultTheme:r=yw,rootShouldForwardProp:n=vw,slotShouldForwardProp:o=vw}=e,i=e=>(0,fw.default)((0,lw.default)({},e,{theme:Sw((0,lw.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,cw.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=ww(xw(l))}=a,p=(0,uw.default)(a,gw),f=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let h=vw;"Root"===l||"root"===l?h=n:l?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,cw.default)(e,(0,lw.default)({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,dw.isPlainObject)(e)?n=>Ew(e,(0,lw.default)({},n,{theme:Sw({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const l=o?o.map(b):[];s&&d&&l.push((e=>{const n=Sw((0,lw.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[s]||!n.components[s].styleOverrides)return null;const o=n.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=Ew(r,(0,lw.default)({},e,{theme:n}))})),d(e,i)})),s&&!f&&l.push((e=>{var n;const o=Sw((0,lw.default)({},e,{defaultTheme:r,themeId:t}));return Ew({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,lw.default)({},e,{theme:o}))})),m||l.push(i);const u=l.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};XS.shouldForwardProp=vw,XS.systemDefaultTheme=void 0;var lw=aw((KS||(KS=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(JS)),JS.exports)),uw=aw((ZS||(ZS=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(QS)),QS.exports)),cw=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=bw(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}(ew),dw=tw;aw(rw),aw(nw);var pw=aw(ow),fw=aw(iw);const mw=["ownerState"],hw=["variants"],gw=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function bw(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(bw=function(e){return e?r:t})(e)}function vw(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const yw=XS.systemDefaultTheme=(0,pw.default)(),xw=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Sw({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function ww(e){return e?(t,r)=>r[e]:null}function Ew(e,t){let{ownerState:r}=t,n=(0,uw.default)(t,mw);const o="function"==typeof e?e((0,lw.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>Ew(e,(0,lw.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,uw.default)(o,hw);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,lw.default)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,lw.default)({ownerState:r},n,r)):e.style))})),t}return o}const Cw=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,Rw=sw({themeId:ey,defaultTheme:YS,rootShouldForwardProp:Cw}),Ow=["theme"];function Pw(e){let{theme:t}=e,r=Mt(e,Ow);const n=t[ey];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=wt({},n,{vars:null}):t&&!t.vars&&(o=wt({},t,{vars:null}))),nr.jsx(Cx,wt({},r,{themeId:n?ey:void 0,theme:o}))}var Aw={exports:{}};
102
+ `),cb.rippleVisible,bb,550,(({theme:e})=>e.transitions.easing.easeInOut),cb.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),cb.child,cb.childLeaving,vb,550,(({theme:e})=>e.transitions.easing.easeInOut),cb.childPulsate,yb,(({theme:e})=>e.transitions.easing.easeInOut)),Eb=S.forwardRef((function(e,t){const r=jg({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=wu(r,db),[s,l]=S.useState([]),u=S.useRef(0),c=S.useRef(null);S.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=S.useRef(!1),p=qm(),f=S.useRef(null),m=S.useRef(null),h=S.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l((e=>[...e,Ll.jsx(Sb,{classes:{ripple:Fg(o.ripple,cb.ripple),rippleVisible:Fg(o.rippleVisible,cb.rippleVisible),ripplePulsate:Fg(o.ripplePulsate,cb.ripplePulsate),child:Fg(o.child,cb.child),childLeaving:Fg(o.childLeaving,cb.childLeaving),childPulsate:Fg(o.childPulsate,cb.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=S.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,h,p]),b=S.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=S.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{v(e,t)}));f.current=null,l((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return S.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Ll.jsx(xb,Cu({className:Fg(cb.root,o.root,i),ref:m},a,{children:Ll.jsx(nb,{component:null,exit:!0,children:s})}))}));function Cb(e){return jf("MuiButtonBase",e)}const wb=zf("MuiButtonBase",["root","disabled","focusVisible"]),Rb=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Ab=_g("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${wb.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Db=S.forwardRef((function(e,t){const r=jg({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:x,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:A,onTouchStart:D,tabIndex:L=0,TouchRippleProps:I,touchRippleRef:q,type:P}=r,M=wu(r,Rb),_=S.useRef(null),k=S.useRef(null),T=Am(k,q),{isFocusVisibleRef:O,onFocus:N,onBlur:F,ref:j}=jm(),[z,H]=S.useState(!1);l&&z&&H(!1),S.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),_.current.focus()}})),[]);const[B,$]=S.useState(!1);S.useEffect((()=>{$(!0)}),[]);const V=B&&!u&&!l;function G(e,t,r=c){return Rm((n=>{t&&t(n);return!r&&k.current&&k.current[e](n),!0}))}S.useEffect((()=>{z&&d&&!u&&B&&k.current.pulsate()}),[u,d,z,B]);const W=G("start",E),U=G("stop",h),Y=G("stop",g),K=G("stop",w),X=G("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),J=G("start",D),Z=G("stop",R),Q=G("stop",A),ee=G("stop",(e=>{F(e),!1===O.current&&H(!1),f&&f(e)}),!1),te=Rm((e=>{_.current||(_.current=e.currentTarget),N(e),!0===O.current&&(H(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=_.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=S.useRef(!1),oe=Rm((e=>{d&&!ne.current&&z&&k.current&&" "===e.key&&(ne.current=!0,k.current.stop(e,(()=>{k.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),m&&m(e))})),ie=Rm((e=>{d&&" "===e.key&&k.current&&z&&!e.defaultPrevented&&(ne.current=!1,k.current.stop(e,(()=>{k.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=s;"button"===ae&&(M.href||M.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===P?"button":P,se.disabled=l):(M.href||M.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=Am(t,j,_),ue=Cu({},r,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:L,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Hm({root:["root",t&&"disabled",r&&"focusVisible"]},Cb,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Ll.jsxs(Ab,Cu({as:ae,className:Fg(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:W,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:L,type:P},se,M,{children:[i,V?Ll.jsx(Eb,Cu({ref:T,center:o},I)):null]}))}));function Lb(e){return jf("MuiTypography",e)}zf("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Ib=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],qb=_g("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${Dp(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Cu({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),Pb={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Mb={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},_b=S.forwardRef((function(e,t){const r=jg({props:e,name:"MuiTypography"}),n=(e=>Mb[e]||e)(r.color),o=Pf(Cu({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Pb}=o,f=wu(o,Ib),m=Cu({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=s||(c?"p":p[d]||Pb[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Hm({root:["root",i,"inherit"!==e.align&&`align${Dp(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},Lb,a)})(m);return Ll.jsx(qb,Cu({as:h,ref:t,ownerState:m,className:Fg(g.root,a)},f))}));const kb=S.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=S.useState(null),s=Am(S.isValidElement(r)?Um(r):null,t);if(dm((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),dm((()=>{if(i&&!o)return xm(t,i),()=>{xm(t,null)}}),[t,i,o]),o){if(S.isValidElement(r)){const e={ref:s};return S.cloneElement(r,e)}return Ll.jsx(S.Fragment,{children:r})}return Ll.jsx(S.Fragment,{children:i?H.createPortal(r,i):i})})),Tb=["onChange","maxRows","minRows","style","value"];function Ob(e){return parseInt(e,10)||0}const Nb={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Fb(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const jb=S.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=wu(e,Tb),{current:l}=S.useRef(null!=a),u=S.useRef(null),c=Am(t,u),d=S.useRef(null),p=S.useRef(null),f=S.useCallback((()=>{const t=u.current,r=p.current;if(!t||!r)return;const i=ym(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};r.style.width=i.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const a=i.boxSizing,s=Ob(i.paddingBottom)+Ob(i.paddingTop),l=Ob(i.borderBottomWidth)+Ob(i.borderTopWidth),c=r.scrollHeight;r.value="x";const d=r.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*d,f)),n&&(f=Math.min(Number(n)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?s+l:0),overflowing:Math.abs(f-c)<=1}}),[n,o,e.placeholder]),m=Rm((()=>{const e=u.current,t=f();if(!e||!t||Fb(t))return!1;const r=t.outerHeightStyle;return null!=d.current&&d.current!==r})),h=S.useCallback((()=>{const e=u.current,t=f();if(!e||!t||Fb(t))return;const r=t.outerHeightStyle;d.current!==r&&(d.current=r,e.style.height=`${r}px`),e.style.overflow=t.overflowing?"hidden":""}),[f]),g=S.useRef(-1);dm((()=>{const e=bm(h),t=null==u?void 0:u.current;if(!t)return;const r=ym(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver((()=>{m()&&(n.unobserve(t),cancelAnimationFrame(g.current),h(),g.current=requestAnimationFrame((()=>{n.observe(t)})))})),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),r.removeEventListener("resize",e),n&&n.disconnect()}}),[f,h,m]),dm((()=>{h()}));return Ll.jsxs(S.Fragment,{children:[Ll.jsx("textarea",Cu({value:a,onChange:e=>{l||h(),r&&r(e)},ref:c,rows:o,style:i},s)),Ll.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:Cu({},Nb,i,{paddingTop:0,paddingBottom:0})})]})}));function zb({props:e,states:t,muiFormControl:r}){return t.reduce(((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t)),{})}const Hb=S.createContext(void 0);function Bb(){return S.useContext(Hb)}function $b(e){return Ll.jsx(If,Cu({},e,{defaultTheme:Zh,themeId:Eu}))}function Vb(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Gb(e,t=!1){return e&&(Vb(e.value)&&""!==e.value||t&&Vb(e.defaultValue)&&""!==e.defaultValue)}function Wb(e){return jf("MuiInputBase",e)}const Ub=zf("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Yb=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Kb=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${Dp(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Xb=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},Jb=_g("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Kb})((({theme:e,ownerState:t})=>Cu({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Ub.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Cu({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Zb=_g("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Xb})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=Cu({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return Cu({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ub.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Ub.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),Qb=Ll.jsx($b,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),ev=S.forwardRef((function(e,t){var r;const n=jg({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:y,minRows:x,multiline:E=!1,name:C,onBlur:w,onChange:R,onClick:A,onFocus:D,onKeyDown:L,onKeyUp:I,placeholder:q,readOnly:P,renderSuffix:M,rows:_,slotProps:k={},slots:T={},startAdornment:O,type:N="text",value:F}=n,j=wu(n,Yb),z=null!=b.value?b.value:F,{current:H}=S.useRef(null!=z),B=S.useRef(),$=S.useCallback((e=>{}),[]),V=Am(B,v,b.ref,$),[G,W]=S.useState(!1),U=Bb(),Y=zb({props:n,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:G,S.useEffect((()=>{!U&&d&&G&&(W(!1),w&&w())}),[U,d,G,w]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=S.useCallback((e=>{Gb(e)?K&&K():X&&X()}),[K,X]);dm((()=>{H&&J({value:z})}),[z,J,H]);S.useEffect((()=>{J(B.current)}),[]);let Z=g,Q=b;E&&"input"===Z&&(Q=Cu(_?{type:void 0,minRows:_,maxRows:_}:{type:void 0,maxRows:y,minRows:x},Q),Z=jb);S.useEffect((()=>{U&&U.setAdornedStart(Boolean(O))}),[U,O]);const ee=Cu({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:U,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:E,size:Y.size,startAdornment:O,type:N}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return Hm({root:["root",`color${Dp(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${Dp(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Wb,t)})(ee),re=T.root||l.Root||Jb,ne=k.root||u.root||{},oe=T.input||l.Input||Zb;return Q=Cu({},Q,null!=(r=k.input)?r:u.input),Ll.jsxs(S.Fragment,{children:[!p&&Qb,Ll.jsxs(re,Cu({},ne,!Bm(re)&&{ownerState:Cu({},ee,ne.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),A&&A(e)}},j,{className:Fg(te.root,ne.className,s,P&&"MuiInputBase-readOnly"),children:[O,Ll.jsx(Hb.Provider,{value:null,children:Ll.jsx(oe,Cu({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:h,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:C,placeholder:q,readOnly:P,required:Y.required,rows:_,value:z,onKeyDown:L,onKeyUp:I,type:N},Q,!Bm(oe)&&{as:Z,ownerState:Cu({},ee,Q.ownerState)},{ref:V,className:Fg(te.input,Q.className,P&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),U&&U.onBlur?U.onBlur(e):W(!1)},onChange:(e,...t)=>{if(!H){const t=e.target||B.current;if(null==t)throw new Error(xu(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(D&&D(e),b.onFocus&&b.onFocus(e),U&&U.onFocus?U.onFocus(e):W(!0))}}))}),f,M?M(Cu({},Y,{startAdornment:O})):null]}))]})}));function tv(e){return jf("MuiInput",e)}const rv=Cu({},Ub,zf("MuiInput",["root","underline","input"]));function nv(e){return jf("MuiOutlinedInput",e)}const ov=Cu({},Ub,zf("MuiOutlinedInput",["root","notchedOutline","input"]));function iv(e){return jf("MuiFilledInput",e)}const av=Cu({},Ub,zf("MuiFilledInput",["root","underline","input"]));var sv=function(e,t){function r(r,n){return Ll.jsx($g,Cu({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=$g.muiName,S.memo(S.forwardRef(r))}(Ll.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const lv=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],uv={entering:{opacity:1},entered:{opacity:1}},cv=S.forwardRef((function(e,t){const r=Qh(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=n,TransitionComponent:b=Jg}=e,v=wu(e,lv),y=S.useRef(null),x=Am(y,Um(a),t),E=e=>t=>{if(e){const r=y.current;void 0===t?e(r):e(r,t)}},C=E(d),w=E(((e,t)=>{ob(e);const n=ib({style:h,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),R=E(c),A=E(m),D=E((e=>{const t=ib({style:h,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),L=E(f);return Ll.jsx(b,Cu({appear:i,in:l,nodeRef:y,onEnter:w,onEntered:R,onEntering:C,onExit:D,onExited:L,onExiting:A,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>S.cloneElement(a,Cu({style:Cu({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},uv[e],h,a.props.style),ref:x},t))}))}));function dv(e){return jf("MuiBackdrop",e)}zf("MuiBackdrop",["root","invisible"]);const pv=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],fv=_g("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>Cu({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),mv=S.forwardRef((function(e,t){var r,n,o;const i=jg({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=cv,transitionDuration:g}=i,b=wu(i,pv),v=Cu({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Hm({root:["root",r&&"invisible"]},dv,t)})(v),x=null!=(r=f.root)?r:c.root;return Ll.jsx(h,Cu({in:p,timeout:g},b,{children:Ll.jsx(fv,Cu({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:l,className:Fg(y.root,s,null==x?void 0:x.className),ownerState:Cu({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),hv=zf("MuiBox",["root"]),gv=Jh(),bv=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=fp("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Sf);return S.forwardRef((function(e,a){const s=Lf(r),l=Pf(e),{className:u,component:c="div"}=l,d=Er(l,Nf);return Ll.jsx(i,Et({as:c,ref:a,className:Of(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:Eu,defaultTheme:gv,defaultClassName:hv.root,generateClassName:kf.generate});function vv(e){return jf("MuiButton",e)}const yv=zf("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),xv=S.createContext({}),Sv=S.createContext(void 0),Ev=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Cv=e=>Cu({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),wv=_g(Db,{shouldForwardProp:e=>Mg(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Dp(r.color)}`],t[`size${Dp(r.size)}`],t[`${r.variant}Size${Dp(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var r,n;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Cu({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Cu({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:hh(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:hh(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:hh(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Cu({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${yv.focusVisible}`]:Cu({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${yv.disabled}`]:Cu({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${hh(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${yv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${yv.disabled}`]:{boxShadow:"none"}})),Rv=_g("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Dp(r.size)}`]]}})((({ownerState:e})=>Cu({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Cv(e)))),Av=_g("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Dp(r.size)}`]]}})((({ownerState:e})=>Cu({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Cv(e)))),Dv=S.forwardRef((function(e,t){const r=S.useContext(xv),n=S.useContext(Sv),o=jg({props:cm(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:b,variant:v="text"}=o,y=wu(o,Ev),x=Cu({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:b,variant:v}),E=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return Cu({},a,Hm({root:["root",i,`${i}${Dp(t)}`,`size${Dp(o)}`,`${i}Size${Dp(o)}`,`color${Dp(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Dp(o)}`],endIcon:["icon","endIcon",`iconSize${Dp(o)}`]},vv,a))})(x),C=g&&Ll.jsx(Rv,{className:E.startIcon,ownerState:x,children:g}),w=p&&Ll.jsx(Av,{className:E.endIcon,ownerState:x,children:p}),R=n||"";return Ll.jsxs(wv,Cu({ownerState:x,className:Fg(r.className,E.root,l,R),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:Fg(E.focusVisible,f),ref:t,type:b},y,{classes:E,children:[C,i,w]}))}));function Lv(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Iv(e){return parseInt(ym(e).getComputedStyle(e).paddingRight,10)||0}function qv(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&Lv(e,o)}))}function Pv(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function Mv(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=vm(e);return t.body===e?ym(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=zm(vm(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Iv(n)+e}px`;const t=vm(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Iv(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=vm(n).body;else{const t=n.parentElement,r=ym(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach((({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)}))}}const _v=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function kv(e){const t=[],r=[];return Array.from(e.querySelectorAll(_v)).forEach(((e,n)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))})),r.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Tv(){return!0}function Ov(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=kv,isEnabled:a=Tv,open:s}=e,l=S.useRef(!1),u=S.useRef(null),c=S.useRef(null),d=S.useRef(null),p=S.useRef(null),f=S.useRef(!1),m=S.useRef(null),h=Am(Um(t),m),g=S.useRef(null);S.useEffect((()=>{s&&m.current&&(f.current=!r)}),[r,s]),S.useEffect((()=>{if(!s||!m.current)return;const e=vm(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),S.useEffect((()=>{if(!s||!m.current)return;const e=vm(m.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(l.current=!0,c.current&&c.current.focus())},r=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(m.current)),r.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}}),[r,n,o,a,s,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Ll.jsxs(S.Fragment,{children:[Ll.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),S.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),Ll.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const Nv=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&Lv(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);qv(t,e.mount,e.modalRef,n,!0);const o=Pv(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=Pv(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=Mv(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Pv(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Lv(e.modalRef,t),qv(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Lv(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Fv(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Nv,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=S.useRef({}),f=S.useRef(null),m=S.useRef(null),h=Am(m,d),[g,b]=S.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),E=()=>{o.mount(x(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},C=Rm((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||vm(f.current).body;o.add(x(),e),m.current&&E()})),w=S.useCallback((()=>o.isTopModal(x())),[o]),R=Rm((e=>{f.current=e,e&&(c&&w()?E():m.current&&Lv(m.current,y))})),A=S.useCallback((()=>{o.remove(x(),y)}),[y,o]);S.useEffect((()=>()=>{A()}),[A]),S.useEffect((()=>{c?C():v&&i||A()}),[c,A,v,i,C]);const D=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},L=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=$m(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=Cu({},r,t);return Cu({role:"presentation"},n,{onKeyDown:D(n),ref:h})},getBackdropProps:(e={})=>Cu({"aria-hidden":!0},e,{onClick:L(e),open:c}),getTransitionProps:()=>({onEnter:gm((()=>{b(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:gm((()=>{b(!0),s&&s(),i&&A()}),null==l?void 0:l.props.onExited)}),rootRef:h,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}function jv(e){return jf("MuiModal",e)}zf("MuiModal",["root","hidden","backdrop"]);const zv=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Hv=_g("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Cu({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Bv=_g(mv,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),$v=S.forwardRef((function(e,t){var r,n,o,i,a,s;const l=jg({name:"MuiModal",props:e}),{BackdropComponent:u=Bv,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:D,open:L,slotProps:I,slots:q}=l,P=wu(l,zv),M=Cu({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:A}),{getRootProps:_,getBackdropProps:k,getTransitionProps:T,portalRef:O,isTopModal:N,exited:F,hasTransition:j}=Fv(Cu({},M,{rootRef:t})),z=Cu({},M,{exited:F}),H=(e=>{const{open:t,exited:r,classes:n}=e;return Hm({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},jv,n)})(z),B={};if(void 0===f.props.tabIndex&&(B.tabIndex="-1"),j){const{onEnter:e,onExited:t}=T();B.onEnter=e,B.onExited=t}const $=null!=(r=null!=(n=null==q?void 0:q.root)?n:g.Root)?r:Hv,V=null!=(o=null!=(i=null==q?void 0:q.backdrop)?i:g.Backdrop)?o:u,G=null!=(a=null==I?void 0:I.root)?a:b.root,W=null!=(s=null==I?void 0:I.backdrop)?s:b.backdrop,U=Wm({elementType:$,externalSlotProps:G,externalForwardedProps:P,getSlotProps:_,additionalProps:{ref:t,as:h},ownerState:z,className:Fg(d,null==G?void 0:G.className,null==H?void 0:H.root,!z.open&&z.exited&&(null==H?void 0:H.hidden))}),Y=Wm({elementType:V,externalSlotProps:W,additionalProps:c,getSlotProps:e=>k(Cu({},e,{onClick:t=>{D&&D(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Fg(null==W?void 0:W.className,null==c?void 0:c.className,null==H?void 0:H.backdrop),ownerState:z});return A||L||j&&!F?Ll.jsx(kb,{ref:O,container:m,disablePortal:E,children:Ll.jsxs($,Cu({},U,{children:[!R&&u?Ll.jsx(V,Cu({},Y)):null,Ll.jsx(Ov,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:L,children:S.cloneElement(f,B)})]}))}):null}));function Vv(e){return jf("MuiDivider",e)}const Gv=zf("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Wv=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Uv=_g("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Cu({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:hh(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>Cu({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Cu({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>Cu({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>Cu({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Yv=_g("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Cu({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Kv=S.forwardRef((function(e,t){const r=jg({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=wu(r,Wv),m=Cu({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Hm({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Vv,n)})(m);return Ll.jsx(Uv,Cu({as:a,className:Fg(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Ll.jsx(Yv,{className:h.wrapper,ownerState:m,children:o}):null}))}));Kv.muiSkipListHighlight=!0;const Xv=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Jv=_g(Jb,{shouldForwardProp:e=>Mg(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Kb(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Cu({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${av.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${av.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${av.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${av.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${av.disabled}, .${av.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${av.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Cu({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),Zv=_g(Zb,{name:"MuiFilledInput",slot:"Input",overridesResolver:Xb})((({theme:e,ownerState:t})=>Cu({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),Qv=S.forwardRef((function(e,t){var r,n,o,i;const a=jg({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=wu(a,Xv),g=Cu({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:r}=e;return Cu({},t,Hm({root:["root",!r&&"underline"],input:["input"]},iv,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?vp(v,null!=p?p:l):v,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:Jv,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:Zv;return Ll.jsx(ev,Cu({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));Qv.muiName="Input";const ey=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ty(e){return`scale(${e}, ${e**2})`}const ry={entering:{opacity:1,transform:ty(1)},entered:{opacity:1,transform:"none"}},ny="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),oy=S.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=Jg}=e,g=wu(e,ey),b=qm(),v=S.useRef(),y=Qh(),x=S.useRef(null),E=Am(x,Um(o),t),C=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},w=C(u),R=C(((e,t)=>{ob(e);const{duration:r,delay:n,easing:o}=ib({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:n}),y.transitions.create("transform",{duration:ny?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)})),A=C(l),D=C(p),L=C((e=>{const{duration:t,delay:r,easing:n}=ib({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:r}),y.transitions.create("transform",{duration:ny?o:.666*o,delay:ny?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=ty(.75),c&&c(e)})),I=C(d);return Ll.jsx(h,Cu({appear:n,in:a,nodeRef:x,onEnter:R,onEntered:A,onEntering:w,onExit:L,onExited:I,onExiting:D,addEndListener:e=>{"auto"===m&&b.start(v.current||0,e),r&&r(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>S.cloneElement(o,Cu({style:Cu({opacity:0,transform:ty(.75),visibility:"exited"!==e||a?void 0:"hidden"},ry[e],f,o.props.style),ref:E},t))}))}));oy.muiSupportAuto=!0;const iy=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],ay=_g(Jb,{shouldForwardProp:e=>Mg(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Kb(e,t),!r.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Cu({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${rv.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${rv.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${rv.disabled}, .${rv.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${rv.disabled}:before`]:{borderBottomStyle:"dotted"}})})),sy=_g(Zb,{name:"MuiInput",slot:"Input",overridesResolver:Xb})({}),ly=S.forwardRef((function(e,t){var r,n,o,i;const a=jg({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=wu(a,iy),b=(e=>{const{classes:t,disableUnderline:r}=e;return Cu({},t,Hm({root:["root",!r&&"underline"],input:["input"]},tv,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?vp(null!=f?f:u,v):v,x=null!=(r=null!=(n=m.root)?n:l.Root)?r:ay,S=null!=(o=null!=(i=m.input)?i:l.Input)?o:sy;return Ll.jsx(ev,Cu({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));function uy(e){return jf("MuiLink",e)}ly.muiName="Input";const cy=zf("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),dy={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},py=({theme:e,ownerState:t})=>{const r=(e=>dy[e]||e)(t.color),n=Ip(e,`palette.${r}`,!1)||t.color,o=Ip(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:hh(n,.4)},fy=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],my=_g(_b,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Dp(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>Cu({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Cu({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:py({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${cy.focusVisible}`]:{outline:"auto"}}))),hy=S.forwardRef((function(e,t){const r=jg({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:s,TypographyClasses:l,underline:u="always",variant:c="inherit",sx:d}=r,p=wu(r,fy),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=jm(),[b,v]=S.useState(!1),y=Am(t,g),x=Cu({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return Hm({root:["root",`underline${Dp(o)}`,"button"===r&&"button",n&&"focusVisible"]},uy,t)})(x);return Ll.jsx(my,Cu({color:o,className:Fg(E.root,n),classes:l,component:i,onBlur:e=>{m(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{h(e),!0===f.current&&v(!0),s&&s(e)},ref:y,ownerState:x,variant:c,sx:[...Object.keys(dy).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))})),gy=S.createContext({});function by(e){return jf("MuiList",e)}zf("MuiList",["root","padding","dense","subheader"]);const vy=["children","className","component","dense","disablePadding","subheader"],yy=_g("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})((({ownerState:e})=>Cu({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),xy=S.forwardRef((function(e,t){const r=jg({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,u=wu(r,vy),c=S.useMemo((()=>({dense:a})),[a]),d=Cu({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Hm({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},by,t)})(d);return Ll.jsx(gy.Provider,{value:c,children:Ll.jsxs(yy,Cu({as:i,className:Fg(p.root,o),ref:t,ownerState:d},u,{children:[l,n]}))})}));function Sy(e){return jf("MuiListItemIcon",e)}const Ey=zf("MuiListItemIcon",["root","alignItemsFlexStart"]),Cy=["className"],wy=_g("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>Cu({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),Ry=S.forwardRef((function(e,t){const r=jg({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=wu(r,Cy),i=Cu({},r,{alignItems:S.useContext(gy).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Hm({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Sy,r)})(i);return Ll.jsx(wy,Cu({className:Fg(a.root,n),ownerState:i,ref:t},o))})),Ay=zf("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Dy=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Ly(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Iy(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function qy(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Py(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&qy(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const My=S.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=wu(e,Dy),p=S.useRef(null),f=S.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});dm((()=>{n&&p.current.focus()}),[n]),S.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${zm(vm(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const m=Am(p,t);let h=-1;S.Children.forEach(i,((e,t)=>{S.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=S.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),S.cloneElement(e,t)}return e}));return Ll.jsx(xy,Cu({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=vm(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Py(t,n,l,s,Ly);else if("ArrowUp"===r)e.preventDefault(),Py(t,n,l,s,Iy);else if("Home"===r)e.preventDefault(),Py(t,null,l,s,Ly);else if("End"===r)e.preventDefault(),Py(t,null,l,s,Iy);else if(1===r.length){const o=f.current,i=r.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const l=n&&!o.repeating&&qy(n,o);o.previousKeyMatched&&(l||Py(t,n,!1,s,Ly,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function _y(e){return jf("MuiPopover",e)}zf("MuiPopover",["root","paper"]);const ky=["onEntering"],Ty=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Oy=["slotProps"];function Ny(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Fy(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function jy(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function zy(e){return"function"==typeof e?e():e}const Hy=_g($v,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),By=_g(ub,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),$y=S.forwardRef((function(e,t){var r,n,o;const i=jg({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:E=oy,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,A=wu(i.TransitionProps,ky),D=wu(i,Ty),L=null!=(r=null==y?void 0:y.paper)?r:b,I=S.useRef(),q=Am(I,L.ref),P=Cu({},i,{anchorOrigin:l,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:L,transformOrigin:x,TransitionComponent:E,transitionDuration:C,TransitionProps:A}),M=(e=>{const{classes:t}=e;return Hm({root:["root"],paper:["paper"]},_y,t)})(P),_=S.useCallback((()=>{if("anchorPosition"===c)return u;const e=zy(s),t=(e&&1===e.nodeType?e:vm(I.current).body).getBoundingClientRect();return{top:t.top+Ny(t,l.vertical),left:t.left+Fy(t,l.horizontal)}}),[s,l.horizontal,l.vertical,u,c]),k=S.useCallback((e=>({vertical:Ny(e,x.vertical),horizontal:Fy(e,x.horizontal)})),[x.horizontal,x.vertical]),T=S.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=k(t);if("none"===c)return{top:null,left:null,transformOrigin:jy(r)};const n=_();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=ym(zy(s)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,r.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:jy(r)}}),[s,c,_,k,h]),[O,N]=S.useState(g),F=S.useCallback((()=>{const e=I.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);S.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[s,R,F]);S.useEffect((()=>{g&&F()})),S.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),S.useEffect((()=>{if(!g)return;const e=bm((()=>{F()})),t=ym(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,F]);let j=C;"auto"!==C||E.muiSupportAuto||(j=void 0);const z=f||(s?vm(zy(s)).body:void 0),H=null!=(n=null==v?void 0:v.root)?n:Hy,B=null!=(o=null==v?void 0:v.paper)?o:By,$=Wm({elementType:B,externalSlotProps:Cu({},L,{style:O?L.style:Cu({},L.style,{opacity:0})}),additionalProps:{elevation:m,ref:q},ownerState:P,className:Fg(M.paper,null==L?void 0:L.className)}),V=Wm({elementType:H,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:D,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:P,className:Fg(M.root,p)}),{slotProps:G}=V,W=wu(V,Oy);return Ll.jsx(H,Cu({},W,!Bm(H)&&{slotProps:G,disableScrollLock:R},{children:Ll.jsx(E,Cu({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:j},A,{children:Ll.jsx(B,Cu({},$,{children:d}))}))}))}));function Vy(e){return jf("MuiMenu",e)}zf("MuiMenu",["root","paper","list"]);const Gy=["onEntering"],Wy=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Uy={vertical:"top",horizontal:"right"},Yy={vertical:"top",horizontal:"left"},Ky=_g($y,{shouldForwardProp:e=>Mg(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Xy=_g(By,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Jy=_g(My,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Zy=S.forwardRef((function(e,t){var r,n;const o=jg({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=wu(o.TransitionProps,Gy),x=wu(o,Wy),E=(()=>{const e=S.useContext(Qm);return null!=e&&e})(),C=Cu({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),w=(e=>{const{classes:t}=e;return Hm({root:["root"],paper:["paper"],list:["list"]},Vy,t)})(C),R=i&&!l&&d,A=S.useRef(null);let D=-1;S.Children.map(a,((e,t)=>{S.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===D)&&(D=t))}));const L=null!=(r=b.paper)?r:Xy,I=null!=(n=v.paper)?n:p,q=Wm({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[w.root,s]}),P=Wm({elementType:L,externalSlotProps:I,ownerState:C,className:w.paper});return Ll.jsx(Ky,Cu({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?Uy:Yy,slots:{paper:L,root:b.root},slotProps:{root:q,paper:P},open:d,ref:t,transitionDuration:m,TransitionProps:Cu({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,{direction:E?"rtl":"ltr"}),h&&h(e,t)}},y),ownerState:C},x,{classes:f,children:Ll.jsx(Jy,Cu({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===D||l),autoFocusItem:R,variant:g},u,{className:Fg(w.list,u.className),children:a}))}))}));function Qy(e){return jf("MuiMenuItem",e)}const ex=zf("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),tx=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],rx=_g(Db,{shouldForwardProp:e=>Mg(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Cu({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ex.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:hh(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ex.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:hh(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ex.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:hh(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:hh(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ex.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ex.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Gv.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Gv.inset}`]:{marginLeft:52},[`& .${Ay.root}`]:{marginTop:0,marginBottom:0},[`& .${Ay.inset}`]:{paddingLeft:36},[`& .${Ey.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Cu({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Ey.root} svg`]:{fontSize:"1.25rem"}})))),nx=S.forwardRef((function(e,t){const r=jg({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d}=r,p=wu(r,tx),f=S.useContext(gy),m=S.useMemo((()=>({dense:i||f.dense||!1,disableGutters:s})),[f.dense,i,s]),h=S.useRef(null);dm((()=>{n&&h.current&&h.current.focus()}),[n]);const g=Cu({},r,{dense:m.dense,divider:a,disableGutters:s}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return Cu({},a,Hm({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Qy,a))})(r),v=Am(h,t);let y;return r.disabled||(y=void 0!==c?c:-1),Ll.jsx(gy.Provider,{value:m,children:Ll.jsx(rx,Cu({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:Fg(b.focusVisible,l),className:Fg(b.root,d)},p,{ownerState:g,classes:b}))})}));function ox(e){return jf("MuiNativeSelect",e)}const ix=zf("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ax=["className","disabled","error","IconComponent","inputRef","variant"],sx=({ownerState:e,theme:t})=>Cu({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Cu({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${ix.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),lx=_g("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Mg,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${ix.multiple}`]:t.multiple}]}})(sx),ux=({ownerState:e,theme:t})=>Cu({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${ix.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),cx=_g("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Dp(r.variant)}`],r.open&&t.iconOpen]}})(ux),dx=S.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=wu(e,ax),u=Cu({},e,{disabled:n,variant:s,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Hm({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Dp(r)}`,i&&"iconOpen",n&&"disabled"]},ox,t)})(u);return Ll.jsxs(S.Fragment,{children:[Ll.jsx(lx,Cu({ownerState:u,className:Fg(c.select,r),disabled:n,ref:a||t},l)),e.multiple?null:Ll.jsx(cx,{as:i,ownerState:u,className:c.icon})]})}));var px;const fx=["children","classes","className","label","notched"],mx=_g("fieldset",{shouldForwardProp:Mg})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),hx=_g("legend",{shouldForwardProp:Mg})((({ownerState:e,theme:t})=>Cu({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&Cu({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));const gx=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],bx=_g(Jb,{shouldForwardProp:e=>Mg(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Kb})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Cu({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${ov.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ov.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${ov.focused} .${ov.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${ov.error} .${ov.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ov.disabled} .${ov.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Cu({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),vx=_g((function(e){const{className:t,label:r,notched:n}=e,o=wu(e,fx),i=null!=r&&""!==r,a=Cu({},e,{notched:n,withLabel:i});return Ll.jsx(mx,Cu({"aria-hidden":!0,className:t,ownerState:a},o,{children:Ll.jsx(hx,{ownerState:a,children:i?Ll.jsx("span",{children:r}):px||(px=Ll.jsx("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),yx=_g(Zb,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Xb})((({theme:e,ownerState:t})=>Cu({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),xx=S.forwardRef((function(e,t){var r,n,o,i,a;const s=jg({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=s,g=wu(s,gx),b=(e=>{const{classes:t}=e;return Cu({},t,Hm({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},nv,t))})(s),v=Bb(),y=zb({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=Cu({},s,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:h}),E=null!=(r=null!=(n=m.root)?n:l.Root)?r:bx,C=null!=(o=null!=(i=m.input)?i:l.Input)?o:yx;return Ll.jsx(ev,Cu({slots:{root:E,input:C},renderSuffix:e=>Ll.jsx(vx,{ownerState:x,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=Ll.jsxs(S.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:Cu({},b,{notchedOutline:null})}))}));function Sx(e){return jf("MuiSelect",e)}xx.muiName="Input";const Ex=zf("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Cx;const wx=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Rx=_g("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Ex.select}`]:t.select},{[`&.${Ex.select}`]:t[r.variant]},{[`&.${Ex.error}`]:t.error},{[`&.${Ex.multiple}`]:t.multiple}]}})(sx,{[`&.${Ex.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Ax=_g("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Dp(r.variant)}`],r.open&&t.iconOpen]}})(ux),Dx=_g("input",{shouldForwardProp:e=>Pg(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Lx(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Ix(e){return null==e||"string"==typeof e&&!e.trim()}const qx=S.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:x,onChange:E,onClose:C,onFocus:w,onOpen:R,open:A,readOnly:D,renderValue:L,SelectDisplayProps:I={},tabIndex:q,value:P,variant:M="standard"}=e,_=wu(e,wx),[k,T]=wm({controlled:P,default:c,name:"Select"}),[O,N]=wm({controlled:A,default:u,name:"Select"}),F=S.useRef(null),j=S.useRef(null),[z,H]=S.useState(null),{current:B}=S.useRef(null!=A),[$,V]=S.useState(),G=Am(t,h),W=S.useCallback((e=>{j.current=e,e&&H(e)}),[]),U=null==z?void 0:z.parentNode;S.useImperativeHandle(G,(()=>({focus:()=>{j.current.focus()},node:F.current,value:k})),[k]),S.useEffect((()=>{u&&O&&z&&!B&&(V(a?null:U.clientWidth),j.current.focus())}),[z,a]),S.useEffect((()=>{i&&j.current.focus()}),[i]),S.useEffect((()=>{if(!g)return;const e=vm(j.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&j.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const Y=(e,t)=>{e?R&&R(t):C&&C(t),B||(V(a?null:U.clientWidth),N(e))},K=S.Children.toArray(s),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(v){r=Array.isArray(k)?k.slice():[];const t=k.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),k!==r&&(T(r),E)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:y}}),E(o,e)}v||Y(!1,t)}},J=null!==z&&O;let Z,Q;delete _["aria-invalid"];const ee=[];let te=!1;(Gb({value:k})||p)&&(L?Z=L(k):te=!0);const re=K.map((e=>{if(!S.isValidElement(e))return null;let t;if(v){if(!Array.isArray(k))throw new Error(xu(2));t=k.some((t=>Lx(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Lx(k,e.props.value),t&&te&&(Q=e.props.children);return S.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=v?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Q);let ne,oe=$;!a&&B&&z&&(oe=U.clientWidth),ne=void 0!==q?q:d?null:0;const ie=I.id||(y?`mui-component-select-${y}`:void 0),ae=Cu({},e,{variant:M,value:k,open:J,error:f}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Hm({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Dp(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},Sx,t)})(ae),le=Cu({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=Cm();return Ll.jsxs(S.Fragment,{children:[Ll.jsx(Rx,Cu({ref:W,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!D){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||D?null:e=>{0===e.button&&(e.preventDefault(),j.current.focus(),Y(!0,e))},onBlur:e=>{!J&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:k,name:y}}),x(e))},onFocus:w},I,{ownerState:ae,className:Fg(I.className,se.select,l),id:ie,children:Ix(Z)?Cx||(Cx=Ll.jsx("span",{className:"notranslate",children:"​"})):Z})),Ll.jsx(Dx,Cu({"aria-invalid":f,value:Array.isArray(k)?k.join(","):k,name:y,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(T(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},_)),Ll.jsx(Ax,{as:m,className:se.icon,ownerState:ae}),Ll.jsx(Zy,Cu({id:`menu-${y||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Cu({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:Cu({},b.slotProps,{paper:Cu({},le,{style:Cu({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})})),Px=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Mx=["root"],_x={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Mg(e)&&"variant"!==e,slot:"Root"},kx=_g(ly,_x)(""),Tx=_g(xx,_x)(""),Ox=_g(Qv,_x)(""),Nx=S.forwardRef((function(e,t){const r=jg({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=sv,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:x,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=r,R=wu(r,Px),A=b?dx:qx,D=zb({props:r,muiFormControl:Bb(),states:["variant","error"]}),L=D.variant||w,I=Cu({},r,{variant:L,classes:i}),q=(e=>{const{classes:t}=e;return t})(I),P=wu(q,Mx),M=d||{standard:Ll.jsx(kx,{ownerState:I}),outlined:Ll.jsx(Tx,{label:f,ownerState:I}),filled:Ll.jsx(Ox,{ownerState:I})}[L],_=Am(t,Um(M));return Ll.jsx(S.Fragment,{children:S.cloneElement(M,Cu({inputComponent:A,inputProps:Cu({children:o,error:D.error,IconComponent:u,variant:L,type:void 0,multiple:g},b?{id:c}:{autoWidth:n,defaultOpen:s,displayEmpty:l,labelId:m,MenuProps:h,onClose:v,onOpen:y,open:x,renderValue:E,SelectDisplayProps:Cu({id:c},C)},p,{classes:p?vp(P,p.classes):P},d?d.props.inputProps:{})},(g&&b||l)&&"outlined"===L?{notched:!0}:{},{ref:_,className:Fg(M.props.className,a,q.root)},!d&&{variant:L},R))})}));Nx.muiName="Select";const Fx=S.createContext();function jx(e){return jf("MuiTable",e)}zf("MuiTable",["root","stickyHeader"]);const zx=["className","component","padding","size","stickyHeader"],Hx=_g("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Cu({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Cu({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),Bx="table",$x=S.forwardRef((function(e,t){const r=jg({props:e,name:"MuiTable"}),{className:n,component:o=Bx,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=wu(r,zx),u=Cu({},r,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:r}=e;return Hm({root:["root",r&&"stickyHeader"]},jx,t)})(u),d=S.useMemo((()=>({padding:i,size:a,stickyHeader:s})),[i,a,s]);return Ll.jsx(Fx.Provider,{value:d,children:Ll.jsx(Hx,Cu({as:o,role:o===Bx?null:"table",ref:t,className:Fg(c.root,n),ownerState:u},l))})})),Vx=S.createContext();function Gx(e){return jf("MuiTableBody",e)}zf("MuiTableBody",["root"]);const Wx=["className","component"],Ux=_g("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Yx={variant:"body"},Kx="tbody",Xx=S.forwardRef((function(e,t){const r=jg({props:e,name:"MuiTableBody"}),{className:n,component:o=Kx}=r,i=wu(r,Wx),a=Cu({},r,{component:o}),s=(e=>{const{classes:t}=e;return Hm({root:["root"]},Gx,t)})(a);return Ll.jsx(Vx.Provider,{value:Yx,children:Ll.jsx(Ux,Cu({className:Fg(s.root,n),as:o,ref:t,role:o===Kx?null:"rowgroup",ownerState:a},i))})}));function Jx(e){return jf("MuiTableCell",e)}const Zx=zf("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Qx=["align","className","component","padding","scope","size","sortDirection","variant"],eS=_g("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Dp(r.size)}`],"normal"!==r.padding&&t[`padding${Dp(r.padding)}`],"inherit"!==r.align&&t[`align${Dp(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Cu({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?vh(hh(e.palette.divider,1),.88):gh(hh(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${Zx.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}))),tS=S.forwardRef((function(e,t){const r=jg({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c}=r,d=wu(r,Qx),p=S.useContext(Fx),f=S.useContext(Vx),m=f&&"head"===f.variant;let h;h=i||(m?"th":"td");let g=s;"td"===h?g=void 0:!g&&m&&(g="col");const b=c||f&&f.variant,v=Cu({},r,{align:n,component:h,padding:a||(p&&p.padding?p.padding:"normal"),size:l||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),y=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return Hm({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${Dp(n)}`,"normal"!==o&&`padding${Dp(o)}`,`size${Dp(i)}`]},Jx,t)})(v);let x=null;return u&&(x="asc"===u?"ascending":"descending"),Ll.jsx(eS,Cu({as:h,ref:t,className:Fg(y.root,o),"aria-sort":x,scope:g,ownerState:v},d))}));function rS(e){return jf("MuiTableContainer",e)}zf("MuiTableContainer",["root"]);const nS=["className","component"],oS=_g("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),iS=S.forwardRef((function(e,t){const r=jg({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=wu(r,nS),a=Cu({},r,{component:o}),s=(e=>{const{classes:t}=e;return Hm({root:["root"]},rS,t)})(a);return Ll.jsx(oS,Cu({ref:t,as:o,className:Fg(s.root,n),ownerState:a},i))}));function aS(e){return jf("MuiTableHead",e)}zf("MuiTableHead",["root"]);const sS=["className","component"],lS=_g("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),uS={variant:"head"},cS="thead",dS=S.forwardRef((function(e,t){const r=jg({props:e,name:"MuiTableHead"}),{className:n,component:o=cS}=r,i=wu(r,sS),a=Cu({},r,{component:o}),s=(e=>{const{classes:t}=e;return Hm({root:["root"]},aS,t)})(a);return Ll.jsx(Vx.Provider,{value:uS,children:Ll.jsx(lS,Cu({as:o,className:Fg(s.root,n),ref:t,role:o===cS?null:"rowgroup",ownerState:a},i))})}));function pS(e){return jf("MuiTableRow",e)}const fS=zf("MuiTableRow",["root","selected","hover","head","footer"]),mS=["className","component","hover","selected"],hS=_g("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${fS.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${fS.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:hh(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:hh(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),gS="tr",bS=S.forwardRef((function(e,t){const r=jg({props:e,name:"MuiTableRow"}),{className:n,component:o=gS,hover:i=!1,selected:a=!1}=r,s=wu(r,mS),l=S.useContext(Vx),u=Cu({},r,{component:o,hover:i,selected:a,head:l&&"head"===l.variant,footer:l&&"footer"===l.variant}),c=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:i}=e;return Hm({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},pS,t)})(u);return Ll.jsx(hS,Cu({as:o,ref:t,className:Fg(c.root,n),role:o===gS?null:"row",ownerState:u},s))}));function vS(e={}){return Ll.jsx(kl,{...e,children:Ll.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Ll.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Ll.jsx("rect",{stroke:sl.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const yS={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:pl,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var xS=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:sl.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:sl.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Ll.jsx(Pl,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${sl.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:sl.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${sl.MISC_FOCUS_BORDER}`,borderRadius:pl,backgroundColor:sl.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${sl.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:sl.WHITE,color:sl.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:pl},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${sl.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:sl.GREYSCALE_0_15,backgroundColor:sl.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:sl.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${sl.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:sl.GREEN_PALE},"&:active":{backgroundColor:sl.GREEN_DARK},"&.Mui-focusVisible":{borderColor:sl.GREEN_PALE,boxShadow:`0 0 0 3px ${hm(sl.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:sl.BLUE_PALE},"&:active":{backgroundColor:sl.BLUE_DARK},"&.Mui-focusVisible":{borderColor:sl.BLUE_PALE,boxShadow:`0 0 0 3px ${hm(sl.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:pl,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:sl.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${sl.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:sl.GREYSCALE_0_15,backgroundColor:sl.GREYSCALE_100_60,"&:active":{backgroundColor:sl.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:sl.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${sl.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:sl.PURPLE,"&.Mui-focusVisible":{borderColor:sl.PURPLE,boxShadow:`0 0 0 3px ${hm(sl.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:sl.GREEN,"&.Mui-focusVisible":{borderColor:sl.GREEN,boxShadow:`0 0 0 3px ${hm(sl.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:sl.BLUE,"&.Mui-focusVisible":{borderColor:sl.BLUE,boxShadow:`0 0 0 3px ${hm(sl.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:sl.ORANGE,"&.Mui-focusVisible":{borderColor:sl.ORANGE,boxShadow:`0 0 0 3px ${hm(sl.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:sl.RED,"&.Mui-focusVisible":{borderColor:sl.RED,boxShadow:`0 0 0 3px ${hm(sl.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:sl.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:sl.PURPLE_PALE},"&:active":{backgroundColor:sl.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:sl.PURPLE_PALE,boxShadow:`0 0 0 3px ${hm(sl.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:sl.GREEN_PALE},"&:active":{backgroundColor:sl.GREEN_DARK},"&.Mui-focusVisible":{borderColor:sl.GREEN_PALE,boxShadow:`0 0 0 3px ${hm(sl.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:sl.BLUE_PALE},"&:active":{backgroundColor:sl.BLUE_DARK},"&.Mui-focusVisible":{borderColor:sl.BLUE_PALE,boxShadow:`0 0 0 3px ${hm(sl.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:sl.ORANGE_PALE},"&:active":{backgroundColor:sl.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:sl.ORANGE_PALE,boxShadow:`0 0 0 3px ${hm(sl.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:sl.RED_PALE},"&:active":{backgroundColor:sl.RED_DARK},"&.Mui-focusVisible":{borderColor:sl.RED_PALE,boxShadow:`0 0 0 3px ${hm(sl.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:sl.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:sl.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:pl,boxShadow:`inset 0 0 0 2px ${sl.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Ll.jsx(_l,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:ll,borderRadius:pl,color:sl.TEXT_PRIMARY,backgroundColor:sl.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:sl.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${sl.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:sl.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:sl.GREYSCALE_0_05,color:sl.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:sl.GREEN,borderColor:sl.GREEN},"&.MuiChip-outlinedInfo":{color:sl.BLUE,borderColor:sl.BLUE},"&.MuiChip-outlinedWarning":{color:sl.ORANGE,borderColor:sl.ORANGE},"&.MuiChip-outlinedError":{color:sl.RED,borderColor:sl.RED}},outlined:{border:`solid 1px ${sl.GREYSCALE_0_15}`,backgroundColor:sl.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:pl,boxShadow:"none",backgroundColor:sl.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:sl.GREEN,borderColor:sl.GREEN},outlinedSecondary:{color:sl.BLUE,borderColor:sl.BLUE},label:{fontFamily:bl.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Ll.jsx(_l,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Ll.jsx(Pl,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:pl},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:pl,fontSize:ul,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:sl.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${sl.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:sl.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:sl.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:sl.GREYSCALE_0_05}}},popupIndicator:{borderRadius:pl,border:`solid 1px ${sl.GREYSCALE_0_15}`,color:sl.GREYSCALE_0_60,marginRight:0,width:dl,height:dl},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${sl.GREYSCALE_0_15}`},clearIndicator:{borderRadius:pl,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:sl.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:ul}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:ll,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:sl.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:sl.GREYSCALE_25,fontSize:ll,fontFamily:bl.FONT_FAMILY,fontWeight:hl,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:sl.TEXT_PRIMARY},"&.Mui-error":{color:sl.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:sl.TEXT_SECONDARY,content:"'(optional)'",fontWeight:ml,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:sl.TEXT_SECONDARY,content:"'(required)'",fontWeight:ml,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:ul,lineHeight:"16px",backgroundColor:sl.WHITE,borderRadius:pl,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${sl.GREYSCALE_0_05}`,borderColor:sl.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${sl.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${sl.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${sl.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${sl.RED}`,boxShadow:`0px 0px 0px 1px ${sl.RED}, inset 0 2px 0 0 ${sl.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${sl.GREYSCALE_0_10}`,borderColor:sl.GREYSCALE_0_10,backgroundColor:sl.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:sl.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:sl.GREYSCALE_0_15,borderRadius:pl,boxShadow:`inset 0 2px 0 0 ${sl.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Ll.jsx(Pl,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:sl.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:sl.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:sl.GREYSCALE_0_03},"&:active":{backgroundColor:sl.GREYSCALE_0_10},"&:focus":{backgroundColor:sl.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${sl.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${sl.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:sl.GREYSCALE_0_30,"&:hover":{backgroundColor:sl.GREYSCALE_0_0,borderColor:sl.GREYSCALE_0_15},"& ~svg":{color:sl.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${sl.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:pl}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:sl.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${sl.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:sl.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:ul,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:ll,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:ll,fontWeight:hl,color:sl.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:hl}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${sl.GREYSCALE_0_15}, 0px 0px 0px 1px ${sl.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Ll.jsx(Nl,{}),checkedIcon:Ll.jsx(Fl,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:sl.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${sl.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:sl.GREEN_PALE,boxShadow:`0 0 0 3px ${hm(sl.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:sl.BLUE_PALE,boxShadow:`0 0 0 3px ${hm(sl.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:sl.GREYSCALE_0_20}},"&.Mui-disabled":{fill:sl.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Ll.jsx(vS,{}),checkedIcon:Ll.jsx(Tl,{}),indeterminateIcon:Ll.jsx(Ol,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:pl,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:sl.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:sl.GREYSCALE_0_55,color:sl.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:sl.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:sl.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:sl.GREYSCALE_0_55,"&:hover":{color:sl.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:sl.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:sl.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:ul,color:sl.TEXT_PRIMARY,lineHeight:"16px",fontWeight:hl},secondary:{fontSize:ll,color:sl.GREYSCALE_45,fontWeight:ml,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:ul,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:ul,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:sl.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:ll,borderBottom:`solid 1px ${sl.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:ul,color:sl.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:sl.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:sl.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:sl.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:sl.RED}}},"&.Mui-focusVisible":{backgroundColor:sl.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:sl.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:sl.GREEN,height:"24px","&.Mui-disabled":{color:sl.GREYSCALE_0_15}},rail:{backgroundColor:sl.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${sl.GREYSCALE_0_05}`,borderRadius:pl,boxShadow:`inset 0px 0px 0px 1px ${sl.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${sl.GREYSCALE_0_05}`,borderRadius:pl},thumb:{height:"16px",width:"16px",borderRadius:pl,backgroundColor:sl.WHITE,boxShadow:`0px 1px 2px 0px ${sl.GREYSCALE_0_15}, 0px 0px 0px 1px ${sl.GREYSCALE_0_05}`,"&:hover":{borderRadius:pl,boxShadow:`0 2px 4px 0 ${sl.GREYSCALE_0_30}, 0 0 0 1px ${sl.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${sl.GREYSCALE_0_15}, 0 0 0 1px ${sl.GREYSCALE_0_06}, 0 0 0 2px ${sl.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${sl.GREYSCALE_0_15}, 0 0 0 1px ${sl.GREYSCALE_0_06}, 0 0 0 2px ${sl.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:sl.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:sl.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:sl.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:sl.GREYSCALE_0_15},markLabel:{color:sl.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:sl.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:sl.WHITE,color:sl.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:sl.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:sl.GREEN_PALE,boxShadow:`0 0 0 3px ${hm(sl.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:sl.BLUE_PALE,boxShadow:`0 0 0 3px ${hm(sl.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:sl.GREYSCALE_0_15,borderRadius:pl},thumb:{height:"16px",width:"16px",borderRadius:pl,backgroundColor:sl.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:ul,fontWeight:hl,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${sl.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${sl.MISC_FOCUS_BORDER}`,backgroundColor:sl.GREYSCALE_0_03,borderRadius:pl},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:sl.GREYSCALE_25,"&.Mui-selected":{color:sl.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:ul,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:pl,"&:hover":{backgroundColor:sl.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${sl.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${sl.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:pl,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:sl.GREYSCALE_0_05},"&:hover":{backgroundColor:sl.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${sl.GREYSCALE_85}`,borderRight:`1px solid ${sl.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:hl,backgroundColor:sl.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:sl.GREYSCALE_98,borderBottom:`1px solid ${sl.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${sl.GREYSCALE_85}`,borderTop:`1px solid ${sl.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:sl.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:sl.GREYSCALE_0_05,"&:hover":{backgroundColor:sl.GREYSCALE_0_03}},"&&:hover":{backgroundColor:sl.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Ll.jsx(jl,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${sl.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:ul,borderRadius:pl,padding:"7px 16px",border:`1px solid ${sl.GREYSCALE_0_15}`,backgroundColor:sl.GREYSCALE_100_60,color:sl.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:sl.GREYSCALE_0_10,border:`1px solid ${sl.GREYSCALE_0_30}`},"&:hover":{backgroundColor:sl.GREYSCALE_0_03,border:`1px solid ${sl.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:sl.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${sl.MISC_FOCUS_BORDER}`,border:`1px solid ${sl.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:sl.GREYSCALE_25,backgroundColor:sl.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:sl.GREYSCALE_0_10,border:`1px solid ${sl.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:ll,height:24,width:24,padding:7},sizeLarge:{fontSize:cl,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:ul,borderRadius:pl}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:sl.GREYSCALE_20},tooltip:{backgroundColor:sl.GREYSCALE_20,fontSize:ll,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...yS}:{}}))(t);const SS=e=>({mode:"light",primary:{ultraLight:sl.GREEN_ULTRA_LIGHT,light:sl.GREEN_PALE,main:sl.GREEN,dark:sl.GREEN_DARK,extraDark:sl.GREEN_EXTRA_DARK,contrastText:sl.WHITE},secondary:{ultraLight:sl.BLUE_ULTRA_LIGHT,light:sl.BLUE_PALE,main:sl.BLUE,dark:sl.BLUE_DARK,extraDark:sl.BLUE_EXTRA_DARK,contrastText:sl.WHITE},error:{ultraLight:sl.RED_ULTRA_LIGHT,light:sl.RED_PALE,main:sl.RED,dark:sl.RED_DARK,extraDark:sl.RED_EXTRA_DARK,contrastText:sl.WHITE},warning:{ultraLight:sl.ORANGE_ULTRA_LIGHT,light:sl.ORANGE_PALE,main:sl.ORANGE,dark:sl.ORANGE_DARK,extraDark:sl.ORANGE_EXTRA_DARK,contrastText:sl.WHITE},success:{ultraLight:sl.GREEN_ULTRA_LIGHT,light:sl.GREEN_PALE,main:sl.GREEN,dark:sl.GREEN_DARK,extraDark:sl.GREEN_EXTRA_DARK,contrastText:sl.WHITE},info:{ultraLight:sl.BLUE_ULTRA_LIGHT,light:sl.BLUE_PALE,main:sl.BLUE,dark:sl.BLUE_DARK,extraDark:sl.BLUE_EXTRA_DARK,contrastText:sl.WHITE},text:{primary:sl.TEXT_PRIMARY,secondary:sl.TEXT_SECONDARY,disabled:sl.GREYSCALE_0_30},action:{hover:sl.GREYSCALE_0_03,hoverOpacity:.03,selected:sl.GREYSCALE_0_05,selectedOpacity:.05,focus:sl.MISC_FOCUS_BORDER},amethyst:{ultraLight:sl.WHITE,main:sl.PURPLE,light:sl.PURPLE_PALE,dark:sl.PURPLE_DARK,extraDark:sl.GREYSCALE_0_0,contrastText:sl.WHITE},background:{paper:sl.WHITE,default:sl.GREYSCALE_95},divider:sl.GREYSCALE_0_15}),ES={...al},CS=((e="light",t=!1)=>((e,t=!1)=>({components:xS(0,t),palette:SS(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:ul,fontWeightLight:fl,fontWeightRegular:ml,fontWeightMedium:hl,fontWeightBold:gl,htmlFontSize:ul,fontFamily:bl.FONT_FAMILY,button:{fontWeight:hl,fontSize:ul,textTransform:"none"},body1:{fontSize:cl,lineHeight:"24px"},body2:{fontSize:ul,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:dl,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:cl,fontWeight:hl,lineHeight:"16px"},h6:{fontSize:ul,fontWeight:hl,lineHeight:"16px"},caption:{color:sl.TEXT_SECONDARY},subtitle1:{fontSize:ul,color:sl.TEXT_SECONDARY},subtitle2:{fontSize:ll,color:sl.TEXT_SECONDARY}},shape:{borderRadius:pl}}))(0,t))().palette,wS={TEXT:CS.text.primary,DISABLED:CS.text.disabled,HOVER:CS.action.hover,WHITE:ES.GREYSCALE_100,BORDER_LIGHT:ES.GREYSCALE_90,BORDER_MEDIUM:ES.GREYSCALE_85,BORDER_HEAVY:ES.GREYSCALE_50,DARK_MODE_TEXT:ES.GREYSCALE_95,DARK_MODE_BORDER:ES.GREYSCALE_95,DARK_MODE_DISABLED:ES.GREYSCALE_70,DARK_MODE_BACKGROUND:ES.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:ES.GREYSCALE_95,SELECTED:CS.primary.main},RS=(e,t=wS.TEXT,r=wS.WHITE)=>{const n=te(e),o=te(t),i=te(r);return n.isInvalid()?t:function(e,t,r){const n=re(e,t),o=re(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},AS=e=>{const t=e.getStyle("","","dataColors.selected")||wS.SELECTED,r=function(e,t){const r=te("#FFFFFF"),n=te(e),o=te(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=re(r,n),a=re(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}(t,wS.TEXT);return{background:t,color:r}},DS=(e,t)=>{const r=te(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},LS=e=>!!e&&0===te(e).a,IS=(e,t,r)=>{const n=t?e.getColorPickerColor(t):"none";return"none"===n?r:n},qS=e=>{const t=te(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},PS=(e,t,r)=>{var n,o,i,a;const s=null!==(n=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==n?n:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;s?s.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,r)},MS=e=>{e.stopPropagation(),e.preventDefault()},_S="#grid",kS=(e,t,r,n=wS.WHITE)=>e&&!LS(e)?e:LS(t)?r&&!LS(r)?r:n:t,TS=(e,t)=>{const r=null==t?void 0:t.closest(e);return r&&window.getComputedStyle(r).backgroundColor},OS=(e,t,r,n,o)=>{const i=TS(".qv-object .qv-inner-object",r),a=TS(".qv-panel-sheet",r),s=TS(_S,r),l=null!=s?s:a,u=(e=>{var t,r,n,o,i,a;const s=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),l=null==s||null===(r=s.bgColor)||void 0===r?void 0:r.colorExpression,u=null==s||null===(n=s.bgColor)||void 0===n||null===(n=n.color)||void 0===n?void 0:n.color;if((null==s||null===(o=s.bgColor)||void 0===o?void 0:o.useColorExpression)&&l)return qS(l);if("none"===u)return"transparent";if(void 0===u)return;const c=te(u);return c.setAlpha(null!==(i=null==s||null===(a=s.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:c.a),c.getRGBA()})(e),c=null==n?void 0:n(t),d=null==o?void 0:o(t),p=c||i||d,f=LS(p),m=!LS(h=f?l:p)&&RS(h,wS.TEXT,wS.DARK_MODE_TEXT)===X(wS.DARK_MODE_TEXT);var h;return{color:p,headerColor:kS(u,p,l),isDark:m}},NS=(e,r,n,s)=>{const l=a(),u=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,n]=o([]);return i((()=>{let r;return e&&(r=new MutationObserver((e=>{n(e)})),r.observe(e,t)),()=>{var e;null===(e=r)||void 0===e||e.disconnect()}}),[e,t]),r})(r.closest(_S),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return t((()=>({...l,background:OS(e,l,r,n,s)})),[l.name(),r,n,s,e,u])};function FS(e,r){const o=t((()=>({isLoading:!0})),r),[i,a]=n((async()=>{try{return await e()}finally{o.isLoading=!1}}),r);return[i,o.isLoading,a]}const jS=3;function zS(e,t,r){let n=0,o=e.length;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),s=e.slice(0,i-1),l=r(a),u=r(s);if(l>t&&u<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?n=i+1:o=i}return null}function HS({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=jS}=null!=o?o:{},{estimateWidth:a,measureText:s,estimateLineCount:l}=w((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=ut(o.measureText.bind(o)),s=e=>+a(e).width.toFixed(2),l=ut((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=zS(o,t,s)}while(null!==o&&n<i);return n}),(({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a("N").width*e,estimateLineCount:l}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:s,estimateLineCount:l}}var BS,$S=z;BS=$S.createRoot,$S.hydrateRoot;const VS="Source Sans Pro, sans-serif",GS=(e,t,r)=>{const[,n,o]=FS((async()=>{var t;const n=se(r.flags),o=e.getStyle("","","fontFamily"),i=e.getStyle("object","label.name","fontFamily"),a=e.getStyle("object","label.value","fontFamily"),s=null!==(t=e.getStyle("","","fontFamilies"))&&void 0!==t?t:[];return Promise.all([...n,...s,o,i,a,VS].filter((e=>void 0!==e)).map((async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)})))}),[t,e,r]);return o?(console.warn("Failed to load fonts:",o),!0):!n};function WS(e,t){const[r,n]=C(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var US={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.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":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen 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":"Geselecteerde waarden 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":"清除選項"}},NebulaTableUtils_MenuItemLabel_Collapse:{id:"NebulaTableUtils.MenuItemLabel.Collapse",locale:{"de-DE":"Reduzieren","en-US":"Collapse","es-ES":"Contraer","fr-FR":"Réduire","it-IT":"Comprimi","ja-JP":"折りたたむ","ko-KR":"축소","nl-NL":"Samenvouwen","pl-PL":"Zwiń","pt-BR":"Recolher","ru-RU":"Свернуть","sv-SE":"Dölj","tr-TR":"Daralt","zh-CN":"折叠","zh-TW":"收合"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.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":"欄選項"}},NebulaTableUtils_MenuItemLabel_Expand:{id:"NebulaTableUtils.MenuItemLabel.Expand",locale:{"de-DE":"Erweitern","en-US":"Expand","es-ES":"Expandir","fr-FR":"Développer","it-IT":"Espandi","ja-JP":"展開","ko-KR":"확장","nl-NL":"Uitvouwen","pl-PL":"Rozwiń","pt-BR":"Expandir","ru-RU":"Развернуть","sv-SE":"Utöka","tr-TR":"Genişlet","zh-CN":"展开","zh-TW":"展開"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.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":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.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":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.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":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.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":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.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":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.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":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier 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":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier 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":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.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":"{0}/{1}","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}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.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":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.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":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.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":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.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":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.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":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.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":"選取頁面"}}};const YS=({translator:e})=>(w((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(US).forEach((t=>{e.add(US[t])}))}}(e)}),[e]),e),KS=e=>{const t=s();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}},XS="12px",JS="nebula-table-utils-head-menu-button",ZS="nebula-table-utils-head-menu-wrapper",QS="nebula-table-utils-head-menu",eE="nebula-table-utils-head-menu-list-id",tE="sn-copy-cell";let rE=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e}({});const nE="nebula-table-utils-column-adjuster";let oE=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),iE=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const aE={darker:.15,brighter:.3,opacity:.03},sE={darker:.3,brighter:.5,opacity:.05};let lE=function(e){return e.Single="N",e.DrillDown="H",e.Cyclic="C",e}({});const uE=document.createElement("textarea");function cE(e){uE.value=e,document.body.appendChild(uE),uE.select(),uE.setSelectionRange(0,uE.value.length),document.execCommand("copy"),document.body.removeChild(uE)}uE.style.position="absolute",uE.style.left="-9999px",uE.setAttribute("readonly","");const dE=e=>{var t;const r=e.title;r&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(r).catch((()=>{cE(r)})):cE(r))};var pE={exports:{}};!function(e){self,e.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,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(n in e);return void 0===n||t.call(e,n)},s=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},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,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(n in e);return void 0===n||t.call(e,n)},s=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},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Pe});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={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 s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.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 n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var s=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return h(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=m(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(s);if(-1!==r){var n=t.indexOf(l);if(-1!==n)return t.substring(r+s.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=S({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),r=e.indexOf(l);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.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&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e){return w="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},w(e)}var R=t().bind(null,!0),A={},D=Array.isArray;function L(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function I(e){return void 0===e}function q(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function P(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=I(e[r||t])?i:e[t],e=e[r||t]}})),e}function M(e,t){var r=!0;if(L(e)&&L(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){M(e[n],t[n])||(r=!1)})),r);if(D(e)&&D(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!M(e[n],t[n]))return!1;return!0}return e===t}A.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);M(i,a)||q(t,o)||(I(a)?n.push({op:"add",path:s,value:i}):L(i)&&L(a)?n=n.concat(A.generate(a,i,s)):D(i)&&D(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&I(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(M(t,o))return n;if(!I(t[0])&&I(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(A.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){I(t[o])&&!q(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},A.apply=function(e,t){t.forEach((function(t){var r,n,o=P(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,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return C(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||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(L(a)&&L(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!q(r,e)&&delete r[e]})),R(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 c=P(e,t.from);D(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(D(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const _=A,k=function(e,r,n){if(!e)return Promise.resolve();var o=_.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var T="accumulation";function O(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===T)return r[n]}function N(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===T)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const j={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=E.getNumStepComp(r,l),p=E.getAboveComp(r,l,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(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(N(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(N(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(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=O(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=O(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(T))return!1;var i=O(t,e);return i&&!i.disabled}};return r}};var z="movingAverage";function H(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===z)return r[n]}function B(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===z)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var $={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=s;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),m=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,$)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(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(B(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(B(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(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=H(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=H(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(z))return!1;var i=H(t,e);return i&&!i.disabled}};return r}};var G="timeSeriesDecomposition";function W(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===G)return r[n]}function U(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===G)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(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:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=W(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.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 r=W(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(G))return!1;var i=W(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=E.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(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(Z(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(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=ae(t),l=se(t,r,n),u=""===s&&""===l?"":s||l,c=le(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[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]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(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(r){return function(e,t,r){var n=[{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 n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.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(ne(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(ne(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(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(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,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",De={initBase:function(e,t){(t||De.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,we,i(e,Ee)))},restoreBase:function(e){De.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,Ee,i(e,we)),i(e,Re)&&i(e,Ae)&&r(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const Le=De;function Ie(e){return Ie="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},Ie(e)}var qe={accumulation:j,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Pe={modifiers:qe,apply:_e,applyModifiers:ke,cleanUpMeasure:Te,destroy:function(e){e&&Me[e.id]&&Me[e.id].masterItemSubscriber&&(Me[e.id].masterItemSubscriber&&Me[e.id].masterItemSubscriber.unsubscribe(),delete Me[e.id])},hasActiveModifiers:Oe,getActiveModifier:Ne,initBase:Le.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return qe[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return qe[e]&&qe[e].isApplicable({properties:r,layout:n})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=ze(e);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var Me={};function _e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,s=e.masterItem,l=!1;Me[r.id]=Me[r.id]||{isFirstTime:!0};var u=Me[r.id].isFirstTime;if(Me[r.id].isFirstTime=!1,n&&"object"===Ie(n))return ke({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(c,"qHyperCube.qMeasureInfo"),f=Me[r.id].lastReloadTime;if(Me[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),Oe({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return We({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ue({modifiers:ze(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Be(n);var o=Qe(n);return Ye({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return m&&function(e){var t=e.properties;je(t).forEach((function(e){return function(e){var t=e.measure;if(We({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===Ie(e)&&!e.disabled){if(r++,"object"!==Ie(qe[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=qe[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ve(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),ke({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Ie(e.base)}))}(p)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return je(n).forEach((function(e){return Te(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(l)}function ke(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=l?t()(!0,{},o):o),Be(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(r||(r=je(n)),!r.length)return Promise.resolve();if(!Oe({measures:r,properties:n}))return r.forEach((function(e){return Te(e)})),Promise.resolve();var l=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:s}).then((function(e){return Ke({libraryIds:l,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ue({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;Le.isValid(r)||Le.initBase(r,!0);var l=r.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Ie(e)&&!e.disabled){if(s++,"object"!==Ie(qe[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");qe[e.type].initModifier(e,r);var l=r.qLibraryId||c&&c.qLibraryId;l?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:qe[n.type].generateExpression({expression:s,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:l,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof qe[n.type].updateModifier&&qe[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:qe[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),$e(r)):Te(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return l?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function Te(e){!function(e){var t=ze(e);return Array.isArray(t)&&t.some((function(e){return"object"===Ie(e)&&!e.disabled&&!qe[e.type]}))}(e)?Le.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,$e(e)}function Oe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:ze(e),properties:r,layout:n})}))}function Ne(e){var t=ze(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(qe[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||qe[t.type].enableTotalsFunction(e)}function je(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function ze(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function He(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){je(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&He(r)!==e.qDef.qDef?delete e.qDef.base:!Le.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function $e(e){var t=ze(e);Array.isArray(t)&&t.forEach((function(t){"object"===Ie(t)&&(t.disabled||!qe[t.type]&&He(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ve(e){return e.base||e.qDef&&e.qDef.base}function Ge(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function We(e){var t=e.measure,r=e.properties,n=e.layout;return!Ge(t)&&Ue({modifiers:ze(t),properties:r,layout:n})}function Ue(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Ie(e)||e.disabled||!qe[e.type])&&(void 0===o[e.type]&&(o[e.type]=qe[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),i.forEach((function(e){var t=r.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}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):k(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Ie(e)&&!e.disabled&&qe[e.type]&&qe[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=je(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=ze(t);if(Ue({modifiers:n,properties:e})){var i=Ge(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Me[t.id].masterItemSubscriber=Me[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=i(e,"qInfo.qType");return r&&s[r]&&s[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&s.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&s.push(c(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return _e({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Me[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](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);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="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},o(e)}r.d(n,{default:()=>Be});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var s=n[a];void 0!==i[s]&&null!==i[s]||(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e)||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.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||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.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(8),f=r.n(p);const m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var s,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,l(n.qMeasures));var a,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=o.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=i.getValue(e,t);if(!i.isAtomicValue(s))try{if((o=(o=(n=JSON.stringify(s)).match(/:\{/g))?o.length:0)>2&&!a)return;s=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=s}var S=r(909),E=r.n(S);function C(e,t){var r=E()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function w(e,t){return E()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var A=Math.pow(2,53)-1;function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const I=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},q=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},P=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},M=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},_=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},k=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,s=r.data[0];for(t=0;t<s.dimensions.length;++t){var l=C(s.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(l):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var u=C(s.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},T=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,s=r.data[0];for(t=0;t<s.measures.length;++t){var l=w(s.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(l):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var u=w(s.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},O=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},s=R(a.max,o.dimensions.length,A),l=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,s,A),minDimensions:R(i.min,l,0),maxMeasures:s,minMeasures:l}},N=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},r,o)).components&&(o.components=[]),o},j=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>r&&r>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},H=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return D(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?D(e,t):void 0}}(t)||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.")}();a.qDimensions=[],s.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},B=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return L(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return L(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?L(e,t):void 0}}(t)||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.")}();a.qMeasures=[],s.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},$=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function V(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){i.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const G={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=i.getValue(a,r||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:l}),h({exportFormat:o,qHyperCubeDef:l}),g({exportFormat:o,qHyperCubeDef:l}),delete l.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters",!0),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,s=e.defaultPropertyValues,l=void 0===s?{}:s,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=O({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=l.defaultDimension,R=void 0===w?M():w,A=l.defaultMeasure,D=void 0===A?_():A;v.qDimensions.length=0,v.qMeasures.length=0,j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),k({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),T({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:D}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),q("qMaxStackedCells",b,v),q("qNoOfLeftDims",b,v),P("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),P("qMode",b,v,"S"),P("qReductionMode",b,v,"N"),P("qSortbyYValue",b,v),P("qIndentMode",b,v),P("qShowTotalsAbove",b,v),I(g,t,n),h.qProperty=g;var L=i.getValue(c||{},"support.modifiers");return $({measures:v.qMeasures,modifierTypes:L}),p&&V(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&V(h.qProperty,"dynamicScript"),h}};var W={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!W[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],s=t.length;if(U(a,t,n,o),Y(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})),t.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}))}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,s=e.label;te(n,o);var l=n[n.length-1];if(l){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,s={};switch(e){case"dimension":r.qLibraryId?(s.type="dimension",s.name=r.qLibraryId,s.id=r.qLibraryId):(s.type="field",t?(s.name=r.label||r.qDef,s.id=r.qDef):(s.name=r.qDef.qFieldDefs[0],s.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(s.type="measure",s.name=o,s.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(s.expression=i)):(s.type="expression",t?(s.name=r.label||r.qExpression,s.id=r.qExpression):(s.name=r.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=t.type,i=e.color,a=i.mode,s=X.getItemLabel(t);switch(re(e,s||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:s,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}i.auto=!1,i.mode=a}function se(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),s=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===s}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const le=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),s=i.getValue(e,"".concat(t,"qMeasures"),[]),l=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,l):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?se(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,s=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==s&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:s,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!s,s||n[0])),!!s}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=G.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),s=i.measures.concat(i.excludedMeasures),l=K.IDMAP,u=l.COLOR_BY_ALTERNATIVE,c=l.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(s,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=G.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:b,properties:d})&&me(d):he(d),b&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?V(r,"unsupportedAutoMinMax")||E()(r.measureAxis,t.measureAxis):V(r,"supportedAutoMinMax")||E()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,s=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);l.length?(i&&(t=l.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=l.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(s,r.properties.measureAxes[t[0].axis])):E()(s,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},Ee={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),s=a.properties;return i?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function we(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,a);if(void 0!==s){var l=i.getValue(o,"qDef.cId");l||(l=i.generateId(),i.setValue(o,"qDef.cId",l));var u=Ce(r,n,l);i.setValue(t,u,s),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,"qDef.cId");if(s){var l=Ce(r,n,s),u=i.getValue(t,l);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,l,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Ae="qHyperCubeDef.qMeasures",De="conditionalColoring",Le="measures",Ie="qDef.conditionalColoring";const qe={quarantine:function(e){we({properties:e,arrayPath:Ae,quarantineName:De,arrayName:Le,itemPath:Ie})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Ie,arrayName:Le,quarantineName:De})}};var Pe="qHyperCubeDef.qMeasures",Me="measures",_e="qHyperCubeDef.qDimensions",ke="dimensions",Te="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Oe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",je="qCalcCondition",ze="conditionalShowHide";const He={quarantine:function(e){we({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:Me,itemPath:je}),we({properties:e,arrayPath:_e,quarantineName:ze,arrayName:ke,itemPath:je})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:Me,itemPath:je}),Re({properties:e,arrayPath:_e,quarantineName:ze,arrayName:ke,itemPath:je})},quarantineAlternative:function(e){we({properties:e,arrayPath:Te,quarantineName:ze,arrayName:Oe,itemPath:je}),we({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Te,quarantineName:ze,arrayName:Oe,itemPath:je}),Re({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})}},Be={hypercube:G,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:qe,conditionalShow:He}})(),n.default})()}(pE);var fE=At(pE.exports),mE={exports:{}};!function(e){self,e.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,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(n in e);return void 0===n||t.call(e,n)},s=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},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,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(n in e);return void 0===n||t.call(e,n)},s=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},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Pe});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={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 s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function u(e){return s+e+l}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.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 n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var s=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return h(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=m(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(s);if(-1!==r){var n=t.indexOf(l);if(-1!==n)return t.substring(r+s.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:c,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=S({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(s),r=e.indexOf(l);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.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&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e){return w="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},w(e)}var R=t().bind(null,!0),A={},D=Array.isArray;function L(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function I(e){return void 0===e}function q(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function P(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=I(e[r||t])?i:e[t],e=e[r||t]}})),e}function M(e,t){var r=!0;if(L(e)&&L(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){M(e[n],t[n])||(r=!1)})),r);if(D(e)&&D(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!M(e[n],t[n]))return!1;return!0}return e===t}A.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);M(i,a)||q(t,o)||(I(a)?n.push({op:"add",path:s,value:i}):L(i)&&L(a)?n=n.concat(A.generate(a,i,s)):D(i)&&D(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&I(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(M(t,o))return n;if(!I(t[0])&&I(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(A.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){I(t[o])&&!q(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},A.apply=function(e,t){t.forEach((function(t){var r,n,o=P(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,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return C(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||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(L(a)&&L(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!q(r,e)&&delete r[e]})),R(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 c=P(e,t.from);D(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(D(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const _=A,k=function(e,r,n){if(!e)return Promise.resolve();var o=_.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var T="accumulation";function O(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===T)return r[n]}function N(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===T)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const j={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=E.getNumStepComp(r,l),p=E.getAboveComp(r,l,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(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(N(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(N(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(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=O(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=O(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(T))return!1;var i=O(t,e);return i&&!i.disabled}};return r}};var z="movingAverage";function H(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===z)return r[n]}function B(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===z)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var $={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=s;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),m=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,$)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(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(B(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(B(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(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=H(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=H(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(z))return!1;var i=H(t,e);return i&&!i.disabled}};return r}};var G="timeSeriesDecomposition";function W(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===G)return r[n]}function U(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===G)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(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:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=W(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.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 r=W(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(G))return!1;var i=W(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=E.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(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(Z(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(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=ae(t),l=se(t,r,n),u=""===s&&""===l?"":s||l,c=le(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[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]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(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(r){return function(e,t,r){var n=[{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 n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.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(ne(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(ne(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(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(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,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",De={initBase:function(e,t){(t||De.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,we,i(e,Ee)))},restoreBase:function(e){De.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,Ee,i(e,we)),i(e,Re)&&i(e,Ae)&&r(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const Le=De;function Ie(e){return Ie="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},Ie(e)}var qe={accumulation:j,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Pe={modifiers:qe,apply:_e,applyModifiers:ke,cleanUpMeasure:Te,destroy:function(e){e&&Me[e.id]&&Me[e.id].masterItemSubscriber&&(Me[e.id].masterItemSubscriber&&Me[e.id].masterItemSubscriber.unsubscribe(),delete Me[e.id])},hasActiveModifiers:Oe,getActiveModifier:Ne,initBase:Le.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return qe[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return qe[e]&&qe[e].isApplicable({properties:r,layout:n})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=ze(e);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var Me={};function _e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,s=e.masterItem,l=!1;Me[r.id]=Me[r.id]||{isFirstTime:!0};var u=Me[r.id].isFirstTime;if(Me[r.id].isFirstTime=!1,n&&"object"===Ie(n))return ke({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(c,"qHyperCube.qMeasureInfo"),f=Me[r.id].lastReloadTime;if(Me[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),Oe({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return We({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ue({modifiers:ze(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:s,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Be(n);var o=Qe(n);return Ye({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return m&&function(e){var t=e.properties;je(t).forEach((function(e){return function(e){var t=e.measure;if(We({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===Ie(e)&&!e.disabled){if(r++,"object"!==Ie(qe[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=qe[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ve(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),ke({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Ie(e.base)}))}(p)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return je(n).forEach((function(e){return Te(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(l)}function ke(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=l?t()(!0,{},o):o),Be(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(r||(r=je(n)),!r.length)return Promise.resolve();if(!Oe({measures:r,properties:n}))return r.forEach((function(e){return Te(e)})),Promise.resolve();var l=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:s}).then((function(e){return Ke({libraryIds:l,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ue({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;Le.isValid(r)||Le.initBase(r,!0);var l=r.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Ie(e)&&!e.disabled){if(s++,"object"!==Ie(qe[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");qe[e.type].initModifier(e,r);var l=r.qLibraryId||c&&c.qLibraryId;l?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:qe[n.type].generateExpression({expression:s,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:l,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof qe[n.type].updateModifier&&qe[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:qe[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),$e(r)):Te(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return l?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function Te(e){!function(e){var t=ze(e);return Array.isArray(t)&&t.some((function(e){return"object"===Ie(e)&&!e.disabled&&!qe[e.type]}))}(e)?Le.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,$e(e)}function Oe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:ze(e),properties:r,layout:n})}))}function Ne(e){var t=ze(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(qe[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||qe[t.type].enableTotalsFunction(e)}function je(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function ze(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function He(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){je(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&He(r)!==e.qDef.qDef?delete e.qDef.base:!Le.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function $e(e){var t=ze(e);Array.isArray(t)&&t.forEach((function(t){"object"===Ie(t)&&(t.disabled||!qe[t.type]&&He(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ve(e){return e.base||e.qDef&&e.qDef.base}function Ge(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function We(e){var t=e.measure,r=e.properties,n=e.layout;return!Ge(t)&&Ue({modifiers:ze(t),properties:r,layout:n})}function Ue(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Ie(e)||e.disabled||!qe[e.type])&&(void 0===o[e.type]&&(o[e.type]=qe[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ye(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function Ke(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),i.forEach((function(e){var t=r.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}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):k(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Ie(e)&&!e.disabled&&qe[e.type]&&qe[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=je(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=ze(t);if(Ue({modifiers:n,properties:e})){var i=Ge(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Me[t.id].masterItemSubscriber=Me[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=i(e,"qInfo.qType");return r&&s[r]&&s[r].forEach((function(r){t[r]=i(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(e,r){return t.app[r](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),enabled:!1,properties:l(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach((function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&s.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&s.push(c(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return _e({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Me[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](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);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="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},o(e)}r.d(n,{default:()=>Be});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var s=n[a];void 0!==i[s]&&null!==i[s]||(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e)||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.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||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.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(645),f=r.n(p);const m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var s,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,l(n.qMeasures));var a,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=o.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(n=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var s=i.getValue(e,"qLayoutExclude.quarantine");s[r]||(s[r]={}),s[r][t]=a}var S=r(229),E=r.n(S);function C(e,t){var r=E()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function w(e,t){return E()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var A=Math.pow(2,53)-1;function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const I=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},q=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},P=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},M=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},_=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},k=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,s=r.data[0];for(t=0;t<s.dimensions.length;++t){var l=C(s.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(l):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var u=C(s.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},T=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,s=r.data[0];for(t=0;t<s.measures.length;++t){var l=w(s.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(l):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var u=w(s.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},O=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},s=R(a.max,o.dimensions.length,A),l=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,s,A),minDimensions:R(i.min,l,0),maxMeasures:s,minMeasures:l}},N=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},r,o)).components&&(o.components=[]),o},j=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>r&&r>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},H=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return D(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return D(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?D(e,t):void 0}}(t)||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.")}();a.qDimensions=[],s.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},B=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return L(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return L(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?L(e,t):void 0}}(t)||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.")}();a.qMeasures=[],s.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},$=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function V(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){i.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const G={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=i.getValue(a,r||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:l}),h({exportFormat:o,qHyperCubeDef:l}),g({exportFormat:o,qHyperCubeDef:l}),delete l.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,s=e.defaultPropertyValues,l=void 0===s?{}:s,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=O({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=l.defaultDimension,R=void 0===w?M():w,A=l.defaultMeasure,D=void 0===A?_():A;v.qDimensions.length=0,v.qMeasures.length=0,j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),k({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),T({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:D}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),q("qMaxStackedCells",b,v),q("qNoOfLeftDims",b,v),P("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),P("qMode",b,v,"S"),P("qReductionMode",b,v,"N"),P("qSortbyYValue",b,v),P("qIndentMode",b,v),P("qShowTotalsAbove",b,v),I(g,t,n),h.qProperty=g;var L=i.getValue(c||{},"support.modifiers");return $({measures:v.qMeasures,modifierTypes:L}),p&&V(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&V(h.qProperty,"dynamicScript"),h}};var W={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!W[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],s=t.length;if(U(a,t,n,o),Y(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=K.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})),t.forEach((function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}))}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,s=e.label;te(n,o);var l=n[n.length-1];if(l){var u=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(u){var f=K.create(K.IDMAP.COLOR_BY_ALTERNATIVE);switch(u.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:u,isDimension:r,qNumFormat:c,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,s={};switch(e){case"dimension":r.qLibraryId?(s.type="dimension",s.name=r.qLibraryId,s.id=r.qLibraryId):(s.type="field",t?(s.name=r.label||r.qDef,s.id=r.qDef):(s.name=r.qDef.qFieldDefs[0],s.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(s.type="measure",s.name=o,s.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(s.expression=i)):(s.type="expression",t?(s.name=r.label||r.qExpression,s.id=r.qExpression):(s.name=r.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=t.type,i=e.color,a=i.mode,s=X.getItemLabel(t);switch(re(e,s||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:s,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}i.auto=!1,i.mode=a}function se(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),s=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===s}(r,e,t)?0:r.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const le=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ue=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ce=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),s=i.getValue(e,"".concat(t,"qMeasures"),[]),l=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,l):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?se(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,s=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==s&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:s,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!s,s||n[0])),!!s}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=G.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),s=i.measures.concat(i.excludedMeasures),l=K.IDMAP,u=l.COLOR_BY_ALTERNATIVE,c=l.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(s,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=G.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:b,properties:d})&&me(d):he(d),b&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?V(r,"unsupportedAutoMinMax")||E()(r.measureAxis,t.measureAxis):V(r,"supportedAutoMinMax")||E()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,s=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);l.length?(i&&(t=l.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=l.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(s,r.properties.measureAxes[t[0].axis])):E()(s,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},Ee={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),s=a.properties;return i?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function we(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,a);if(void 0!==s){var l=i.getValue(o,"qDef.cId");l||(l=i.generateId(),i.setValue(o,"qDef.cId",l));var u=Ce(r,n,l);i.setValue(t,u,s),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,"qDef.cId");if(s){var l=Ce(r,n,s),u=i.getValue(t,l);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,l,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Ae="qHyperCubeDef.qMeasures",De="conditionalColoring",Le="measures",Ie="qDef.conditionalColoring";const qe={quarantine:function(e){we({properties:e,arrayPath:Ae,quarantineName:De,arrayName:Le,itemPath:Ie})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Ie,arrayName:Le,quarantineName:De})}};var Pe="qHyperCubeDef.qMeasures",Me="measures",_e="qHyperCubeDef.qDimensions",ke="dimensions",Te="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Oe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",je="qCalcCondition",ze="conditionalShowHide";const He={quarantine:function(e){we({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:Me,itemPath:je}),we({properties:e,arrayPath:_e,quarantineName:ze,arrayName:ke,itemPath:je})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,quarantineName:ze,arrayName:Me,itemPath:je}),Re({properties:e,arrayPath:_e,quarantineName:ze,arrayName:ke,itemPath:je})},quarantineAlternative:function(e){we({properties:e,arrayPath:Te,quarantineName:ze,arrayName:Oe,itemPath:je}),we({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Te,quarantineName:ze,arrayName:Oe,itemPath:je}),Re({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})}},Be={hypercube:G,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:qe,conditionalShow:He}})(),n.default})()}(mE);var hE=At(mE.exports);const gE="qHyperCubeDef.qMeasures",bE="measures",vE="qHyperCubeDef.qDimensions",yE="dimensions",xE="qDef.representation",SE="tableRepresentation",EE="qDef.conditionalColoring",CE="conditionalColoring",wE="qMiniChartDef",RE="miniChartDef",AE=(e,t,r)=>{const n=e.length+t.length,o=((null==r?void 0:r.length)===n?r:Array.from(Array(n).keys())).map((r=>((e,t,r)=>{var n;const o=t.length,i=e<o?t[e]:r[e-o],{columnWidth:a}=i.qDef;return"pixels"===(null==a?void 0:a.type)?null!==(n=a.pixels)&&void 0!==n?n:oE.PixelsDefault:-1})(r,e,t)));return o},DE=({propertyTree:e,hyperCubePath:t})=>{const r=fE.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:n,qDimensions:o,qMeasures:i}}=r.properties,a=AE(o,i,n);return lt(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),fE.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),fE.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),fE.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{hE.quarantineArrayProp({properties:e,arrayPath:vE,itemPath:xE,arrayName:yE,quarantineName:SE}),hE.quarantineArrayProp({properties:e,arrayPath:gE,itemPath:xE,arrayName:bE,quarantineName:SE}),hE.quarantineArrayProp({properties:e,arrayPath:gE,itemPath:EE,arrayName:bE,quarantineName:CE}),hE.quarantineArrayProp({properties:e,arrayPath:gE,itemPath:wE,arrayName:bE,quarantineName:RE})})(r.properties),r};const LE=/^q[A-Z]/,IE=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],qE=e=>"object"==typeof e&&null!==e,PE=(e,t)=>(Object.entries(e).forEach((([r,n])=>{const o=void 0===t?r:`${t}.${r}`;((e,t)=>!LE.test(e)&&!IE.some((e=>e.test(t))))(r,o)?delete e[r]:Array.isArray(n)?e[r]=n.map(((e,t)=>qE(e)?PE(e,`${o}.${t}`):e)):qE(n)&&(e[r]=PE(n,o))})),e),ME=(e,t,r,n)=>{let o=t;n&&(o=t-n);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(r)&&r.length>0){const e=r[t];i.qDef.columnWidth="number"==typeof e&&e>0?{type:iE.Pixels,pixels:e}:{type:iE.FitToContent}}return i},_E=({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o,viewDataMode:i})=>{if(i){try{e=structuredClone(e)}catch(e){console.error("Failed to copy source properties",e)}PE(e.properties)}const a=fE.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:o,hypercubePath:n,extension:r});if(fE.conditionalShow.unquarantine(a.qProperty),i)lt(a,"qProperty.totals.show",!1),lt(a,"qProperty.usePagination",!0);else{fE.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{hE.unquarantineArrayProp({properties:e,arrayPath:vE,itemPath:xE,arrayName:yE,quarantineName:SE}),hE.unquarantineArrayProp({properties:e,arrayPath:gE,itemPath:xE,arrayName:bE,quarantineName:SE}),hE.unquarantineArrayProp({properties:e,arrayPath:gE,itemPath:EE,arrayName:bE,quarantineName:CE}),hE.unquarantineArrayProp({properties:e,arrayPath:gE,itemPath:wE,arrayName:bE,quarantineName:RE})})(a.qProperty);const{qHyperCubeDef:{qDimensions:e,qMeasures:t,qColumnOrder:r,columnWidths:n}}=a.qProperty,{dimensions:o,measures:i}=((e,t,r,n)=>{const o=e.length,i=o+t.length,a=(null==r?void 0:r.length)===i?r:Array.from(Array(i).keys());return{dimensions:a.filter((e=>e<o)).map((t=>ME(e,t,n))),measures:a.filter((e=>e>=o)).map((e=>ME(t,e,n,o)))}})(e,t,r,n);Array.isArray(n)&&n.length>0&&(lt(a,"qProperty.qHyperCubeDef.qDimensions",o),lt(a,"qProperty.qHyperCubeDef.qMeasures",i))}return a};var kE={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};function TE(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function OE(e,t){let r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}function NE(e){return e>0?0:1}function FE(e){return e.translator.get("Visualizations.Descriptions.Column")}function jE(e){return{measures:{min:NE,max:1e3,description:()=>FE(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;TE(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties;OE(o,(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n)}},dimensions:{min:NE,max:1e3,description:()=>FE(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return TE(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(null!=e&&e.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;OE(o,n)}}}}let zE=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}({}),HE=function(e){return e.Attribute="attribute",e.Dimension="dimension",e.Measure="measure",e}({});const BE=e=>{switch(null==e?void 0:e.type){case"url":return zE.Link;case"image":return zE.Image;case"indicator":return zE.Indicator;case"miniChart":return zE.MiniChart;default:return zE.Text}},$E=({isImagesEnabled:e,supportedFeaturesInIndentMode:t})=>{const{isImagesSupportedInIndentMode:r}=null!=t?t:{};return{uses:"dimensionRepresentationItems.representationType",options(t,n,o){const{qIndentMode:i}=o.properties.qHyperCubeDef,a=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!i&&e||i&&r)&&a.push({value:"image",translation:"Object.Table.Representation.Image"}),a}}},VE=(e,t)=>{if(e||t)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>BE(e.qDef.representation)===zE.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"}]},...t&&{imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,r)=>{var n,o;if(!r.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:i,qNoOfLeftDims:a,qDimensions:s,qIndentMode:l}=r.properties.qHyperCubeDef;let u=!1;null==i||i.indexOf(-1);const c=null!==(n=null==s?void 0:s.indexOf(e))&&void 0!==n?n:1/0;return(null!==(o=null==i?void 0:i.slice(0,a))&&void 0!==o?o:[]).indexOf(c)>-1&&(u=!0),u&&l}}}}}}},GE=e=>{var t,r;const{anything:n,flags:o}=e,i=o.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES"),a=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!==(t=n.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"tableImages"));return{representationType:$E({isImagesEnabled:a,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:i}}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>BE(e.qDef.representation)===zE.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>{var t;return BE(e.qDef.representation)===zE.Link&&(null===(t=e.qDef.representation)||void 0===t?void 0:t.urlPosition)===HE.Dimension}},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>{var t;return BE(e.qDef.representation)===zE.Link&&(null===(t=e.qDef.representation)||void 0===t?void 0:t.urlPosition)===HE.Attribute}},...VE(a,i)}},WE=(e,t)=>{var r;const{anything:n}=e,o=null===(r=n.sense)||void 0===r?void 0:r.isUnsupportedFeature,i=!(null!=o&&o("tableImages"))&&t[zE.Image],a=!(null!=o&&o("qMiniChartDef"))&&t[zE.MiniChart],s=!(null!=o&&o("tableIndicators"))&&t[zE.Indicator],l=i&&t[zE.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,r)=>(e=>{var t;const{qIndentMode:r}=null!==(t=e.properties.qHyperCubeDef)&&void 0!==t?t:{},n=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!r&&i||r&&l)&&n.push({value:"image",translation:"Object.Table.Representation.Image"}),s&&n.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),a&&n.push({value:"miniChart",translation:"Common.MiniChart"}),n})(r)},representationImage:i?{uses:"measureRepresentationItems.representationImage",show:e=>BE(e.qDef.representation)===zE.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:s?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:a?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};var UE={};!function(e){(()=>{var t={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,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(n in e);return void 0===n||t.call(e,n)},s=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},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},s(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};n.r(o),n.d(o,{default:()=>Oe});var i=n(909),a=n.n(i);const s=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},l=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},u={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 c="".concat(" ","(").concat(" "),d="".concat(" ",")").concat(" ");function p(e){return c+e+d}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.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 n&&n.qTags.indexOf("$numeric")>-1}function m(e){return!(!e.fullAccumulation&&!e.fullRange)}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"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),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function b(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function v(e,t){var r=e.crossAllDimensions;return 2===t&&r?"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 E(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=S(f(n[0],o),b(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var c=f(n[0],o),d=f(n[1],o),p=b(0),m=b(1),h=S(c,p),g=S(d,m);return"".concat(a,"({1<").concat(h,",").concat(g,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function C(e){return"".concat(e,"(")}function w(e){var t=e.properties,r=e.layout;return l(t,"qHyperCubeDef.qDimensions",l(r,"qHyperCube.qDimensionInfo",[])).length}const R={isFullRange:m,getNumDimensions:w,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=p(g(t));if(!r.showExcludedValues)return a;var s=E({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var u=b(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var c=b(0),d=b(1);return"If(Count(".concat(c,") * Count(").concat(d,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:h,getNumStepComp:function(e,t){if(!m(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return h(e,t)},getAboveCompPrefix:v,getAboveCompSuffix:y,getAboveComp:function(e,t,r,n){return v(e,t)+r+y(n)},getFunctionPrefix:C,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return C(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:E,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout;return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t)&&2===w({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=b(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:g,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(c);if(-1!==r){var n=t.indexOf(d);if(-1!==n)return t.substring(r+c.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:f,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=w({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:p,canExtract:function(e){var t=e.indexOf(c),r=e.indexOf(d);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:b,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.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&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=u.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?u.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(u.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return u.EXPRESSIONS[r]&&n.includes(u.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function D(e){return D="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},D(e)}var L=a().bind(null,!0),I={},q=Array.isArray;function P(e){return null!=e&&!Array.isArray(e)&&"object"===D(e)}function M(e){return void 0===e}function _(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function k(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=M(e[r||t])?i:e[t],e=e[r||t]}})),e}function T(e,t){var r=!0;if(P(e)&&P(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){T(e[n],t[n])||(r=!1)})),r);if(q(e)&&q(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!T(e[n],t[n]))return!1;return!0}return e===t}I.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?L({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);T(i,a)||_(t,o)||(M(a)?n.push({op:"add",path:s,value:i}):P(i)&&P(a)?n=n.concat(I.generate(a,i,s)):q(i)&&q(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&M(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(T(t,o))return n;if(!M(t[0])&&M(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(I.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,u=t.length;l<u;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){M(t[o])&&!_(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},I.apply=function(e,t){t.forEach((function(t){var r,n,o=k(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(q(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(q(a)&&q(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return A(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}(n)||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(P(a)&&P(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!_(r,e)&&delete r[e]})),L(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 c=k(e,t.from);q(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(q(o)?o.splice(+i,1):delete o[i])}))},I.clone=function(e){return L({},e)},I.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},I.updateObject=function(e,t){Object.keys(e).length?I.apply(e,I.generate(e,t)):L(e,t)};const O=I,N=function(e,t,r){if(!e)return Promise.resolve();var n=O.generate(t,r);return a()(!0,t,r),n&&n.length?(n=n.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(n,!0)):Promise.resolve()};var F="accumulation";function j(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===F)return r[n]}function z(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===F)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var H={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const B={translationKey:"properties.modifier.accumulation",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return R.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var s=i;void 0===s&&(s=R.getNumDimensions({properties:n,layout:o}));var u=l(n,"qHyperCubeDef.qDimensions",[]),c=R.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=R.getNumStepComp(r,s),p=R.getAboveComp(r,s,c,d),f=R.getRangeComp("RangeSum",p);if(R.needDimension({modifier:r,properties:n,layout:o})){var m=R.getDimComp(u,1),h=R.getDimComp(u,0),g=R.getAggrComp(f,m,h);f=r.showExcludedValues?R.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,valueComp:g}):g}return f},extractInputExpression:R.extractInputExpression,initModifier:function(e){R.initModifier(e,H)},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 r=j(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=j(t,e);return r&&!r.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,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(F))return!1;var i=j(t,e);return i&&!i.disabled}}}};var $="movingAverage";function V(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===$)return r[n]}function G(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===$)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):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,r=e.layout;return R.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return r;var u=a;void 0===u&&(u=R.getNumDimensions({properties:o,layout:i}));var c=l(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=R.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=R.getNumStepComp(n,u),m=R.getAboveComp(n,u,p,f);if(n.nullSuppression)t=R.getRangeComp("RangeAvg",m);else{var h=R.getRangeComp("RangeSum",m),g=function(e,t){var r=R.getRowNoComp(e,t);if(!R.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(R.needDimension({modifier:n,properties:o,layout:i})){var v=R.getDimComp(c,1),y=R.getDimComp(c,0),x=R.getAggrComp(b,v,y);b=n.showExcludedValues?R.getExcludedComp({modifier:n,dimensions:c,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(G(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(G(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(G(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(G(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=V(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=V(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(G(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(G(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,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf($))return!1;var i=V(t,e);return i&&!i.disabled}}}};var Y="timeSeriesDecomposition";function K(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===Y)return r[n]}function X(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===Y)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var J={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const Z={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return R.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?R.generateTSDExpression(r,t,n):t},extractInputExpression:R.extractInputExpression,initModifier:function(e,t){R.initModifier(e,J),""===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(X(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:u.OPTIONS},steps:{refFn:function(t){return"".concat(X(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=K(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.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 r=K(t,e);return r&&!r.fullRange}}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(Y))return!1;var i=K(t,e);return i&&!i.disabled}}}};var Q="difference";function ee(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===Q)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var te={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const re={translationKey:"properties.modifier.difference",needDimension:R.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return R.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:R.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var s=i;void 0===s&&(s=R.getNumDimensions({properties:n,layout:o}));var u=l(n,"qHyperCubeDef.qDimensions",[]),c=R.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=R.getAboveComp(r,s,c),p="".concat(c," - ").concat(d);if(R.needDimension({modifier:r,properties:n,layout:o})){var f=R.getDimComp(u,1),m=R.getDimComp(u,0),h=R.getAggrComp(p,f,m);p=r.showExcludedValues?R.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(te).forEach((function(t){void 0===e[t]&&(e[t]=te[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(ee(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(ee(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(ee(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,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(Q))return!1;var i=function(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===Q)return r[n]}(t,e);return i&&!i.disabled}}}},ne=0,oe=1,ie=2,ae=0,se=1,le=2;var ue="normalization";function ce(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===ue)return r[n]}function de(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===ue)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function pe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var fe={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:le,selectionScope:ie};function me(e){return 2===e?"{1}":""}function he(e,t,r){return 1===e?"{$<".concat(R.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function ge(e,t){return 0===e&&t>1||2===e?"Total":""}function be(e,t,r){return 0===e&&t>1?"<".concat(R.getDimDefWithWrapper(r),">"):""}const ve={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return R.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:R.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var s=i;void 0===s&&(s=R.getNumDimensions({properties:n,layout:o}));var u=l(n,"qHyperCubeDef.qDimensions",[]),c=R.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=me(t),l=he(t,r,n),u=""===s&&""===l?"":s||l,c=ge(o,i),d=be(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=R.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,s,r.primaryDimension)},initModifier:function(e){Object.keys(fe).forEach((function(t){void 0===e[t]&&(e[t]=fe[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(de(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:ie,options:function(r){return function(e,t,r){var n=[{value:ne,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:oe,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:ie,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=pe(t,0);t.splice(r,1)}return t}(ce(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(de(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return ce(t,e).selectionScope===oe}},value:{refFn:function(t){return"".concat(de(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return ce(t,e).selectionScope===oe}},dimensionalScope:{refFn:function(t){return"".concat(de(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:le,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:ae,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:se,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:le,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=pe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=pe(t,1);t.splice(r,1)}return t}(ce(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(de(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,r){return(ce(t,e).dimensionalScope||0)===ae&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(ue))return!1;var i=ce(t,e);return i&&!i.disabled}}},getDisregardSelectionComp:me,getFieldSelectionComp:he,getTotalComp:ge,getSelectedDimComp:be};var ye="library id deleted",xe="qDef.qDef",Se="qDef.base.qDef",Ee="qLibraryId",Ce="qDef.base.qLibraryId",we="qDef.qLabel",Re="qDef.qLabelExpression",Ae="qDef.base.qLabel",De="qDef.base.qLabelExpression",Le="qDef.qAggrFunc",Ie="qDef.base.qAggrFunc",qe="qDef.base";const Pe={getExpression:function(e){var t=l(e,Se);return void 0!==t?t:l(e,xe)},getExpressionRef:function(e){return void 0!==l(e,Se)?Se:xe},getLibraryIdRef:function(e){return l(e,Ce)?Ce:Ee},getLibraryId:function(e){return l(e,Ce)||l(e,Ee)},getLabelRef:function(e){return l(e,qe)?Ae:we},getLabelExpressionRef:function(e){return l(e,qe)?De:Re}};var Me={initBase:function(e,t){(t||Me.isValid(e))&&(s(e,Se,l(e,xe)),s(e,Ce,l(e,Ee)),s(e,Ae,l(e,we)),s(e,De,l(e,Re)))},restoreBase:function(e){Me.isValid(e)&&(s(e,xe,l(e,Se)),s(e,Ee,l(e,Ce)),s(e,we,l(e,Ae)),s(e,Re,l(e,De)),l(e,Le)&&l(e,Ie)&&s(e,Le,l(e,Ie)),delete e.qDef.base)},isValid:function(e){var t=l(e,Se),r=l(e,Ce);return void 0!==t||void 0!==r}};const _e=Me;function ke(e){return ke="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},ke(e)}var Te={accumulation:B,movingAverage:U,difference:re,normalization:ve,timeSeriesDecomposition:Z};const Oe={modifiers:Te,apply:Fe,applyModifiers:je,cleanUpMeasure:ze,destroy:function(e){e&&Ne[e.id]&&Ne[e.id].masterItemSubscriber&&(Ne[e.id].masterItemSubscriber&&Ne[e.id].masterItemSubscriber.unsubscribe(),delete Ne[e.id])},hasActiveModifiers:He,getActiveModifier:Be,initBase:_e.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Te[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Te[e]&&Te[e].isApplicable({properties:r,layout:n})}))},measureBase:Pe,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=Ge(e);Ze({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||nt({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:$e};var Ne={};function Fe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.model,r=e.properties,n=e.isSnapshot,o=void 0!==n&&n,i=e.masterItem,s=!1;Ne[t.id]=Ne[t.id]||{isFirstTime:!0};var u=Ne[t.id].isFirstTime;if(Ne[t.id].isFirstTime=!1,r&&"object"===ke(r))return je({model:t,properties:r});var c=t?t.layout:void 0,d=l(c,"qSelectionInfo.qInSelections");if(o||d)return Promise.resolve(s);var p=l(c,"qHyperCube.qMeasureInfo"),f=Ne[t.id].lastReloadTime;if(Ne[t.id].lastReloadTime=l(t,"app.layout.qLastReloadTime"),He({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return l(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Je({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:t,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ze({modifiers:Ge(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:i,isFirstTime:u})?t.getEffectiveProperties().then((function(e){var r=a()(!0,{},e);Ue(r);var n=ot(r);return Qe({model:t}).then((function(o){return et({libraryIds:n,model:t}).then((function(n){return m&&function(e){var t=e.properties;Ve(t).forEach((function(e){return function(e){var t=e.measure;if(Je({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===ke(e)&&!e.disabled){if(r++,"object"!==ke(Te[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Te[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ke(t)&&R.simplifyExpression(t.qDef.base.qDef)!==R.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:r}),je({model:t,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:i,libraryItemsProps:n,dimensionAndFieldList:o})}))})).catch((function(){return Promise.resolve(s)}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===ke(e.base)}))}(p)?t.getEffectiveProperties().then((function(e){return function(e){var t=e.model,r=e.properties,n=ot(r);return it({model:t,libraryIds:n}).then((function(){var e=a()(!0,{},r);return Ve(r).forEach((function(e){return ze(e)})),rt({oldProperties:e,newProperties:r,model:t})}))}({model:t,properties:e})})):Promise.resolve(s)}function je(e){var t=e.model,r=e.oldProperties,n=e.properties,o=e.measures,i=e.runUpdateIfChange,s=void 0!==i&&i,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?a()(!0,{},n):n),Ue(n);var p=ot(n);return it({model:t,libraryIds:p,masterItem:u}).then((function(){return function(e){var t=e.measures,r=e.properties,n=e.model,o=e.libraryItemsProps,i=e.dimensionAndFieldList;if(t||(t=Ve(r)),!t.length)return Promise.resolve();if(!o&&!He({measures:t,properties:r}))return t.forEach((function(e){return ze(e)})),Promise.resolve();var s=o?void 0:ot(r);return Qe({model:n,dimensionAndFieldList:i}).then((function(e){return et({libraryIds:s,model:n,libraryItemsProps:o}).then((function(n){t.forEach((function(t){var o=t.qDef.modifiers;n&&Ze({modifiers:o,properties:r})?(function(e){var t=e.measure,r=e.properties,n=e.libraryItemsProps,o=e.dimensionAndFieldList,i=0;_e.isValid(t)||_e.initBase(t,!0);var s=t.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===ke(e)&&!e.disabled){if(i++,"object"!==ke(Te[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)");Te[e.type].initModifier(e,t);var s=t.qLibraryId||c&&c.qLibraryId;s?function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList,i=e.libraryItemsProps[e.libraryId],s=i.qMeasure.qDef,l=""===s?s:Te[r.type].generateExpression({expression:s,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=l,t.qDef.qDef=r.outputExpression,(t.qDef.qLabel||i.qMeasure.qLabel)&&(t.qDef.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=i.qMeasure.qNumFormat,t.qDef.isCustomFormatted=i.qMeasure.isCustomFormatted),delete t.qLibraryId,t.qDef.coloring=i.qMeasure.coloring,r.base=a()(!0,{},t.qDef.base)}({measure:t,modifier:e,libraryId:s,properties:r,libraryItemsProps:n,dimensionAndFieldList:o}):function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList;"function"==typeof Te[r.type].updateModifier&&Te[r.type].updateModifier(r,n.qHyperCubeDef);var i=Pe.getExpression(t),s=""===i?i:Te[r.type].generateExpression({expression:i,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=s,t.qDef.qDef=r.outputExpression,t.qDef.base.qLabelExpression?t.qDef.qLabelExpression=t.qDef.base.qLabelExpression:t.qDef.qLabel=t.qDef.base.qLabel||i,r.base=a()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:r,dimensionAndFieldList:o}),function(e){var t=l(e,"qDef.qAggrFunc");"Expr"!==t||$e(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&$e(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:r,libraryItemsProps:n,dimensionAndFieldList:e}),Ye(t)):ze(t)}))}))}))}({measures:o,properties:n,model:t,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?rt({oldProperties:r,newProperties:n,model:t}):Promise.resolve(!1)}))})).catch((function(){return Promise.resolve(!1)}))}function ze(e){!function(e){var t=Ge(e);return Array.isArray(t)&&t.some((function(e){return"object"===ke(e)&&!e.disabled&&!Te[e.type]}))}(e)?_e.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ye(e)}function He(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ze({modifiers:Ge(e),properties:r,layout:n})}))}function Be(e){var t=Ge(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Te[n.type]&&!n.disabled)return n}}function $e(e){var t=Be(e);return!t||Te[t.type].enableTotalsFunction(e)}function Ve(e){return l(e,"qHyperCubeDef.qMeasures",[]).concat(l(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Ge(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function We(e){return l(e,"outputExpression.qValueExpression.qExpr")||l(e,"outputExpression")}function Ue(e){Ve(e).forEach((function(e){return function(e){var t=Be(e);t&&(void 0!==t.outputExpression&&We(t)!==e.qDef.qDef?delete e.qDef.base:!_e.isValid(e)&&t.base&&(e.qDef.base=a()(!0,{},t.base)))}(e)}))}function Ye(e){var t=Ge(e);Array.isArray(t)&&t.forEach((function(t){"object"===ke(t)&&(t.disabled||!Te[t.type]&&We(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ke(e){return e.base||e.qDef&&e.qDef.base}function Xe(e){var t=Ke(e);return e.qLibraryId||t&&t.qLibraryId}function Je(e){var t=e.measure,r=e.properties,n=e.layout;return!Xe(t)&&Ze({modifiers:Ge(t),properties:r,layout:n})}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==ke(e)||e.disabled||!Te[e.type])&&(void 0===o[e.type]&&(o[e.type]=Te[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Qe(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));n.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return n.push(a),Promise.all(n).then((function(){return o}))}function et(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));s.push(t)})),i.forEach((function(e){var t=r.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 tt(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function rt(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(l(t,"qHyperCubeDef.qMeasures"),tt)!==JSON.stringify(l(r,"qHyperCubeDef.qMeasures"),tt)||JSON.stringify(l(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),tt)!==JSON.stringify(l(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),tt);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&l(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):N(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function nt(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===ke(e)&&!e.disabled&&Te[e.type]&&Te[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function ot(e){var t=Ve(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=Ge(t);if(Ze({modifiers:n,properties:e})){var i=Xe(t);i&&r.push(i),o=o||nt({modifiers:n,properties:e})}})),l(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function it(e){var t=e.model,r=e.libraryIds,n=e.masterItem;return!n&&n!==ye&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Ne[t.id].masterItemSubscriber=Ne[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},i={},a={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},r=l(e,"qInfo.qType");return r&&a[r]&&a[r].forEach((function(r){t[r]=l(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=s(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(){Object.keys(n).forEach((function(e){o[e]||i[e]||(n[e].listener.dispose(),n[e].unbindCloseListnener(),delete n[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){n[e]={listener:t.layoutSubscribe(u),unbindCloseListnener:d(t,(function(){return e=t.id,r(ye),delete n[e],void c();var e})),enabled:!1,properties:s(t.layout)}})).catch((function(){}))}return{subscribe:function(e){var r=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:r,dimensionLibraryIds:a}),c(),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&s.push(p(e,"getMeasure"))})),Object.keys(i).forEach((function(e){i[e]&&!n[e]&&s.push(p(e,"getDimension"))}))),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose(),n[e].unbindCloseListnener()})),n={}}}}({model:t,callback:function(e){return Fe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Ne[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}e.default=o.default,Object.defineProperty(e,"__esModule",{value:!0})})()}(UE);var YE=At(UE);const KE={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},XE={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}},JE=e=>{var t,r,n,o;return{type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!YE.hasActiveModifiers({measures:[e],properties:t.properties})||YE.ifEnableTotalsFunction(e)?[{value:"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:null!==(t=e.anything.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"totals")?"None":"Expr"}}}},show:!(null!==(n=e.anything.sense)&&void 0!==n&&null!==(o=n.isUnsupportedFeature)&&void 0!==o&&o.call(n,"totals"))}},ZE={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:iE.Auto,translation:"Common.Auto"},{value:iE.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:iE.Pixels,translation:"Object.Table.Column.Pixels"},{value:iE.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:iE.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:200,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===iE.Pixels},change(e){e.qDef.columnWidth&&(e.qDef.columnWidth.pixels=void 0===e.qDef.columnWidth.pixels?e.qDef.columnWidth.pixels:Math.max(1,Math.min(oE.PixelsMax,e.qDef.columnWidth.pixels)))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:20,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===iE.Percentage},change(e){e.qDef.columnWidth&&(e.qDef.columnWidth.percentage=void 0===e.qDef.columnWidth.percentage?e.qDef.columnWidth.percentage:Math.max(1,Math.min(oE.PercentageMax,e.qDef.columnWidth.percentage)))}}},QE=()=>({...KE,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}]},...XE,...ZE}),eC={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},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}},tC=e=>{var t,r;const n=null===(t=e.anything.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r?void 0:r.call(t,"modifiers");return{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>{var t;return n?!!e.qLibraryId:!!(e.qLibraryId||null!==(t=e.qDef.base)&&void 0!==t&&t.qLibraryId)}},inlineMeasure:{component:"inline-measure",show:e=>{var t;return n?!e.qLibraryId:!(e.qLibraryId||null!==(t=e.qDef.base)&&void 0!==t&&t.qLibraryId)}},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:JE(e)}},rC=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:eC},presentation:{type:"items",translation:"properties.presentation",items:{...QE(),...GE(e)}}}}}),nC=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:tC(e)},presentation:{type:"items",translation:"properties.presentation",items:{...QE(),...WE(e,{[zE.Image]:e.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[zE.Indicator]:!0,[zE.MiniChart]:!0})}}}}}),oC=e=>({...rC(e),...nC(e)}),iC=e=>({type:"items",translation:"Common.Data",component:"data-assets-panel",items:{...oC(e)}}),aC=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...oC(e)}},filters:{type:"items",component:"filters-assets-panel",ref:"filters",tabName:"SimpleProperties.Filters.Filters",items:{filter:{type:"object",component:"filter-item-react",ref:"filter"}}}}}),sC={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}},lC=e=>{var t,r;return{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){var t;return!(null!==(t=e.totals)&&void 0!==t&&t.show)}},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!(null!==(t=e.anything.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"totals"))}},uC=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:null!=n&&n,defaultValue(e,t,o){var i;const a=null!==(i=null==n?void 0:n(e,t,o))&&void 0!==i&&i,s=o.theme.current(),l=r(s,a);return{color:"transparent"===l?"none":l}}}),cC=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},dC=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:"Source Sans Pro, sans-serif",s=null!==(i=t.fontFamilies)&&void 0!==i?i:[],l=Array.from(new Set([e,a,...s])),u=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...l.sort().map((e=>cC(e,!0)))],c=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...se(n).filter((e=>!l.includes(e))).map((e=>cC(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),pC=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],fC=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{var n;const o=t.fontSize,i=null!==(n=t.fontSizes)&&void 0!==n?n:[],a=Array.from(new Set([e,o,...i])),s=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>cC(e,!1)))],l=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...pC.filter((e=>!a.includes(e))).map((e=>cC(e,!1)))];return[...s,...l.length>1?l:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),mC=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:null!=i?i:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:dC({ref:`${e}.fontFamily`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontFamily"))&&void 0!==r?r:t.fontFamily},translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:fC({ref:`${e}.fontSize`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontSize"))&&void 0!==r?r:t.fontSize},translator:r}),fontColor:uC(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=o(t,e,"color"))&&void 0!==r?r:t.color}))}},background:uC(`${e}.background`,"properties.background",((t,r)=>{var n;const i=r?wS.WHITE:wS.TRANSPARENT;return null!==(n=o(t,e,"backgroundColor"))&&void 0!==n?n:i}),a)}}}}),hC=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:uC(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=n(t,e,"color"))&&void 0!==r?r:t.color}))}},background:uC(`${e}.background`,"properties.background",(t=>{var o,i;return null!==(o=null!==(i=n(t,e,"backgroundColor"))&&void 0!==i?i:r)&&void 0!==o?o:"transparent"}))}}}}),gC=(e,t,r)=>{var n,o,i,a,s;switch(t){case"header":return null===(n=e.object)||void 0===n||null===(n=n.straightTableV2)||void 0===n||null===(n=n.dimension)||void 0===n||null===(n=n.label)||void 0===n||null===(n=n.name)||void 0===n?void 0:n[r];case"dimensionValues":return null===(o=e.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[r];case"measureValues":return null===(i=e.object)||void 0===i||null===(i=i.straightTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.value)||void 0===i?void 0:i[r];case"totalValues":return null===(a=e.object)||void 0===a||null===(a=a.straightTableV2)||void 0===a||null===(a=a.total)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[r];case"nullValues":return null===(s=e.object)||void 0===s||null===(s=s.straightTableV2)||void 0===s||null===(s=s.null)||void 0===s||null===(s=s.label)||void 0===s||null===(s=s.value)||void 0===s?void 0:s[r];default:return}},bC=e=>{var t;return null===(t=e.grid)||void 0===t||null===(t=t.zebraStripes)||void 0===t?void 0:t.show},vC={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,translation:"ThemeStyleEditor.style.rowHeight",change(e){var t,r;null!==(null==e||null===(t=e.content)||void 0===t?void 0:t.rowHeight)&&void 0!==(null==e||null===(r=e.content)||void 0===r?void 0:r.rowHeight)&&""!==e.content.rowHeight?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):void 0!==(null==e?void 0:e.content)&&(e.content.rowHeight=void 0)}},yC=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),...vC},border:uC("grid.border","properties.border",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.straightTableV2)||void 0===r||null===(r=r.grid)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:wS.BORDER_MEDIUM})),divider:uC("grid.divider","properties.pivot.divider",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.straightTableV2)||void 0===r||null===(r=r.grid)||void 0===r||null===(r=r.divider)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:wS.BORDER_HEAVY}))}}}}),xC=e=>{var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},SC={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:xC,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:xC,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},EC=(e,t,{properties:r})=>"sn-table"===r.visualization&&!0===r.usePagination,CC=({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,defaultValue:[],items:{headerSection:mC({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:gC,disableNoneCallback:EC}),dimensionValueSection:mC({section:"dimensionValues",translator:t,flags:e,getThemeValue:gC}),measureValueSection:mC({section:"measureValues",translator:t,flags:e,getThemeValue:gC}),totalRowSection:mC({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:gC,disableNoneCallback:EC}),nullValues:hC({section:"nullValues",fallbackBackground:wS.NULL_VALUE_BACKGROUND,getThemeValue:gC}),grid:yC(e),hoverEffectSection:SC,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:bC,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:bC,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:bC,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:bC,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),wC=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[CC(e),lC(e),{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",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},{ref:"nullValueRepresentation.text",type:"string",translation:"properties.pivot.nullValueText",defaultValue:"-"}]},...sC}}),RC={uses:"sorting"},AC={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},DC=e=>{var t;const{flags:r}=e;return{type:"items",component:"accordion",items:{data:(null===(t=r.isPreviewToggleEnabled)||void 0===t?void 0:t.call(r,"IM_7101_PREVIEW_SIMPLE_MODE_OFF"))||!1?aC(e):iC(e),sorting:RC,addOns:AC,settings:wC(e)}}};function LC(e){var t,r;return{definition:DC(e),exploration:kE,data:jE(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:null!==(t=e.anything.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"modifiers")?void 0:["accumulation","movingAverage","difference","normalization"]},importProperties(e,t,r,n,o){const i={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()};return _E({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:i,viewDataMode:o})},exportProperties:(e,t)=>DE({propertyTree:e,hyperCubePath:t})}}const IC=(e,r)=>t((()=>((e,t)=>(r,{isDim:n,colIdx:o})=>{var i;const a=n?o:o-e.qDimensionInfo.length,s=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${a}/qDef/columnWidth`,l=null===(i=e[n?"qDimensionInfo":"qMeasureInfo"].at(a))||void 0===i?void 0:i.columnWidth,u=l?{qPath:s,qOp:"Replace",qValue:JSON.stringify({...l,...r})}:{qPath:s,qOp:"Add",qValue:JSON.stringify(r)};null==t||t.applyPatches([u],!0)})(e,r)),[e,r]),qC=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),PC=[];for(let e=0;e<256;++e)PC.push((e+256).toString(16).slice(1));let MC;const _C=new Uint8Array(16);var kC={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function TC(e,t,r){var n,o,i,a;if(kC.randomUUID&&!e)return kC.randomUUID();const s=null!==(n=null!==(o=(e=e||{}).random)&&void 0!==o?o:null===(i=(a=e).rng)||void 0===i?void 0:i.call(a))&&void 0!==n?n:function(){if(!MC){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");MC=crypto.getRandomValues.bind(crypto)}return MC(_C)}();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=15&s[6]|64,s[8]=63&s[8]|128,function(e,t=0){return(PC[e[t+0]]+PC[e[t+1]]+PC[e[t+2]]+PC[e[t+3]]+"-"+PC[e[t+4]]+PC[e[t+5]]+"-"+PC[e[t+6]]+PC[e[t+7]]+"-"+PC[e[t+8]]+PC[e[t+9]]+"-"+PC[e[t+10]]+PC[e[t+11]]+PC[e[t+12]]+PC[e[t+13]]+PC[e[t+14]]+PC[e[t+15]]).toLowerCase()}(s)}const OC=()=>{var e,t,r;return null!==(e=null===(t=crypto)||void 0===t||null===(r=t.randomUUID)||void 0===r?void 0:r.call(t))&&void 0!==e?e:TC()},NC=({qLibraryId:e,cId:t})=>{var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:OC()},FC=e=>"number"==typeof e&&!Number.isNaN(+e),jC=e=>FC(e.qNum),zC=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e);function HC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function BC(e,t,r){return t=WC(t),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,YC()?Reflect.construct(t,r||[],WC(e).constructor):t.apply(e,r))}function $C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,JC(n.key),n)}}function GC(e,t,r){return t&&VC(e.prototype,t),r&&VC(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function WC(e){return WC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},WC(e)}function UC(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&KC(e,t)}function YC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(YC=function(){return!!e})()}function KC(e,t){return KC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},KC(e,t)}function XC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return HC(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?HC(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function JC(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}function ZC(e){return ZC="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},ZC(e)}var QC={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var r,n=e.indexOf("="),o="",i=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),i=!0),t.push(function(e,t,r){return{key:ew(e),value:ew(t),useEqualSign:r}}(r,o,i))}})),t}};function ew(e){try{return decodeURIComponent(e)}catch(t){return e}}function tw(e){if(!(this instanceof tw))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return QC.fromSearchString(t.search)}}})}function rw(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}tw.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},tw.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=rw((t=e[n]).key),t.value?r+="=".concat(rw(t.value)):r+=t.useEqualSign?"=":"";return r};var nw,ow=function(){return GC((function e(t){$C(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}),[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(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}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}])}(),iw=function(){return GC((function e(){$C(this,e)}),[{key:"decode",value:function(e){for(var t,r="",n=new ow(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}])}(),aw=function(e){return e>=0&&e<=1114111},sw=function(e){return e.match(/[\s]/)},lw=function(e){function t(){return $C(this,t),BC(this,t,arguments)}return UC(t,e),GC(t,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var 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(t=i,r=0;r<5&&(null!=(n=e.next())&&!sw(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return aw(a)?String.fromCharCode(a):"�"}}])}(iw),uw=function(){function e(t,r){$C(this,e),this._key=t,this._value=r}return GC(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}}])}(),cw=function(){function e(){$C(this,e)}return GC(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,r,n){var o,i;if(t.length===r)return i=this._value,this.setValue(n),i;var a=t.charAt(r);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return uw.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return uw.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||uw.newInstanceIfNeeded(e,t,this._value)}}])}(),dw=function(){return GC((function e(){$C(this,e),this.clear()}),[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new cw);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}])}(),pw=function(){var e,t,r,n=[],o=[],i=new dw;for(e in n["&quot"]="34",n["&amp"]="38",n["&lt"]="60",n["&gt"]="62",n["&nbsp"]="160",n["&iexcl"]="161",n["&cent"]="162",n["&pound"]="163",n["&curren"]="164",n["&yen"]="165",n["&brvbar"]="166",n["&sect"]="167",n["&uml"]="168",n["&copy"]="169",n["&ordf"]="170",n["&laquo"]="171",n["&not"]="172",n["&shy"]="173",n["&reg"]="174",n["&macr"]="175",n["&deg"]="176",n["&plusmn"]="177",n["&sup2"]="178",n["&sup3"]="179",n["&acute"]="180",n["&micro"]="181",n["&para"]="182",n["&middot"]="183",n["&cedil"]="184",n["&sup1"]="185",n["&ordm"]="186",n["&raquo"]="187",n["&frac14"]="188",n["&frac12"]="189",n["&frac34"]="190",n["&iquest"]="191",n["&Agrave"]="192",n["&Aacute"]="193",n["&Acirc"]="194",n["&Atilde"]="195",n["&Auml"]="196",n["&Aring"]="197",n["&AElig"]="198",n["&Ccedil"]="199",n["&Egrave"]="200",n["&Eacute"]="201",n["&Ecirc"]="202",n["&Euml"]="203",n["&Igrave"]="204",n["&Iacute"]="205",n["&Icirc"]="206",n["&Iuml"]="207",n["&ETH"]="208",n["&Ntilde"]="209",n["&Ograve"]="210",n["&Oacute"]="211",n["&Ocirc"]="212",n["&Otilde"]="213",n["&Ouml"]="214",n["&times"]="215",n["&Oslash"]="216",n["&Ugrave"]="217",n["&Uacute"]="218",n["&Ucirc"]="219",n["&Uuml"]="220",n["&Yacute"]="221",n["&THORN"]="222",n["&szlig"]="223",n["&agrave"]="224",n["&aacute"]="225",n["&acirc"]="226",n["&atilde"]="227",n["&auml"]="228",n["&aring"]="229",n["&aelig"]="230",n["&ccedil"]="231",n["&egrave"]="232",n["&eacute"]="233",n["&ecirc"]="234",n["&euml"]="235",n["&igrave"]="236",n["&iacute"]="237",n["&icirc"]="238",n["&iuml"]="239",n["&eth"]="240",n["&ntilde"]="241",n["&ograve"]="242",n["&oacute"]="243",n["&ocirc"]="244",n["&otilde"]="245",n["&ouml"]="246",n["&divide"]="247",n["&oslash"]="248",n["&ugrave"]="249",n["&uacute"]="250",n["&ucirc"]="251",n["&uuml"]="252",n["&yacute"]="253",n["&thorn"]="254",n["&yuml"]="255",n["&OElig"]="338",n["&oelig"]="339",n["&Scaron"]="352",n["&scaron"]="353",n["&Yuml"]="376",n["&fnof"]="402",n["&circ"]="710",n["&tilde"]="732",n["&Alpha"]="913",n["&Beta"]="914",n["&Gamma"]="915",n["&Delta"]="916",n["&Epsilon"]="917",n["&Zeta"]="918",n["&Eta"]="919",n["&Theta"]="920",n["&Iota"]="921",n["&Kappa"]="922",n["&Lambda"]="923",n["&Mu"]="924",n["&Nu"]="925",n["&Xi"]="926",n["&Omicron"]="927",n["&Pi"]="928",n["&Rho"]="929",n["&Sigma"]="931",n["&Tau"]="932",n["&Upsilon"]="933",n["&Phi"]="934",n["&Chi"]="935",n["&Psi"]="936",n["&Omega"]="937",n["&alpha"]="945",n["&beta"]="946",n["&gamma"]="947",n["&delta"]="948",n["&epsilon"]="949",n["&zeta"]="950",n["&eta"]="951",n["&theta"]="952",n["&iota"]="953",n["&kappa"]="954",n["&lambda"]="955",n["&mu"]="956",n["&nu"]="957",n["&xi"]="958",n["&omicron"]="959",n["&pi"]="960",n["&rho"]="961",n["&sigmaf"]="962",n["&sigma"]="963",n["&tau"]="964",n["&upsilon"]="965",n["&phi"]="966",n["&chi"]="967",n["&psi"]="968",n["&omega"]="969",n["&thetasym"]="977",n["&upsih"]="978",n["&piv"]="982",n["&ensp"]="8194",n["&emsp"]="8195",n["&thinsp"]="8201",n["&zwnj"]="8204",n["&zwj"]="8205",n["&lrm"]="8206",n["&rlm"]="8207",n["&ndash"]="8211",n["&mdash"]="8212",n["&lsquo"]="8216",n["&rsquo"]="8217",n["&sbquo"]="8218",n["&ldquo"]="8220",n["&rdquo"]="8221",n["&bdquo"]="8222",n["&dagger"]="8224",n["&Dagger"]="8225",n["&bull"]="8226",n["&hellip"]="8230",n["&permil"]="8240",n["&prime"]="8242",n["&Prime"]="8243",n["&lsaquo"]="8249",n["&rsaquo"]="8250",n["&oline"]="8254",n["&frasl"]="8260",n["&euro"]="8364",n["&image"]="8365",n["&weierp"]="8472",n["&real"]="8476",n["&trade"]="8482",n["&alefsym"]="8501",n["&larr"]="8592",n["&uarr"]="8593",n["&rarr"]="8594",n["&darr"]="8595",n["&harr"]="8596",n["&crarr"]="8629",n["&lArr"]="8656",n["&uArr"]="8657",n["&rArr"]="8658",n["&dArr"]="8659",n["&hArr"]="8660",n["&forall"]="8704",n["&part"]="8706",n["&exist"]="8707",n["&empty"]="8709",n["&nabla"]="8711",n["&isin"]="8712",n["&notin"]="8713",n["&ni"]="8715",n["&prod"]="8719",n["&sum"]="8721",n["&minus"]="8722",n["&lowast"]="8727",n["&radic"]="8730",n["&prop"]="8733",n["&infin"]="8734",n["&ang"]="8736",n["&and"]="8743",n["&or"]="8744",n["&cap"]="8745",n["&cup"]="8746",n["&int"]="8747",n["&there4"]="8756",n["&sim"]="8764",n["&cong"]="8773",n["&asymp"]="8776",n["&ne"]="8800",n["&equiv"]="8801",n["&le"]="8804",n["&ge"]="8805",n["&sub"]="8834",n["&sup"]="8835",n["&nsub"]="8836",n["&sube"]="8838",n["&supe"]="8839",n["&oplus"]="8853",n["&otimes"]="8855",n["&perp"]="8869",n["&sdot"]="8901",n["&lceil"]="8968",n["&rceil"]="8969",n["&lfloor"]="8970",n["&rfloor"]="8971",n["&lang"]="9001",n["&rang"]="9002",n["&loz"]="9674",n["&spades"]="9824",n["&clubs"]="9827",n["&hearts"]="9829",n["&diams"]="9830",n)"function"!=typeof n[e]&&n.hasOwnProperty(e)&&(o[n[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(r=o[t].toLowerCase().substr(1),i.put(r,String.fromCharCode(t)));return i}(),fw=function(e){function t(){return $C(this,t),BC(this,t,arguments)}return UC(t,e),GC(t,[{key:"decodeCharacter",value:function(e){var t;e.mark();var r=e.next();if(null==r||"&"!==r)return e.reset(),null;var n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(null!=(t=this._getNumericEntity(e)))return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,r,n,o="";for(t=Math.min(e.remainder().length,pw.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=pw.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,16);return!Number.isNaN(+n)&&aw(n)?String.fromCharCode(n):null}},{key:"_parseNumber",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,10);return!Number.isNaN(+n)&&aw(n)?String.fromCharCode(n):null}}])}(iw),mw=function(e){function t(){return $C(this,t),BC(this,t,arguments)}return UC(t,e),GC(t,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",r=0;r<2;r++)null!=(n=e.nextHex())&&(t+=n);return 2===t.length&&(o=parseInt(t,16),aw(o))?String.fromCharCode(o):(e.reset(),null)}}])}(iw),hw=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(nw=document.createElement("div"));var gw=Array.prototype.indexOf,bw=[",",".","_"," "],vw=[",",".","-","_"," "],yw={width:["%"],height:["%"]},xw={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},Sw={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":xw.image,"background-color":xw.color,"border-color":xw.color,"border-image":xw.image,color:xw.color,icon:xw.image,"list-style-image":xw.image,"outline-color":xw.color},Ew={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function Cw(e,t,r){var n;if(t){if(gw)return gw.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function ww(e){if(null==e)return"";var t,r=document.createTextNode(e);return nw.appendChild(r),t=nw.innerHTML,nw.removeChild(r),t}function Rw(e,t,r){var n,o,i,a,s,l,u,c,d;for(e=Dw(e).toLowerCase(),t=Dw(t),i=0;i<Ew.attr_name.length;i++)if(e.match(Ew.attr_name[i]))throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<Ew.attr_val.length;i++)if(t.toLowerCase().match(Ew.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=yw[e])||(n=vw),o="",!r){for(a=0;a<e.length;a++){if(!(s=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&Cw(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function Aw(e,t,r){var n,o,i,a,s,l,u,c,d,p;if(e=Dw(e).toLowerCase(),t=Dw(t),Cw(e,Ew.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<Ew.css_val.length;n++)if(t.toLowerCase().indexOf(Ew.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=Sw[e])||(o=xw.default),i="",!r){for(a=0;a<e.length;a++){if(!(s=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&Cw(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function Dw(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var s=[new fw,new mw,new lw];!a;){n=r;for(var l=0;l<s.length;l++)(i=s[l].decode(r))!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}for(var Lw=[],Iw=0;Iw<255;Iw++)Lw[Iw]=Iw>=48&&Iw<=57||Iw>=65&&Iw<=90||Iw>=97&&Iw<=122?null:Iw.toString(16);var qw=function(e){return ww(e.unsafe)},Pw=function(e){var t,r=[],n=[],o={},i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=Aw(t,r[t],!0),i+=Aw(t,r[t],!0),o[t]=n[t]);return e.map?o:i},Mw=function(e){var t=[],r=[],n={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(r[i]=Rw(i,t[i],!0),o+=Rw(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function _w(e,t){throw new Error(t)}var kw={canonicalize:Dw,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===ZC(arguments[0])?function(){for(var e,t,r,n=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(n===(r=e[t]))continue;void 0!==r&&(n[t]=r)}}(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?qw(e):"css"===e.context?(null!=e.map&&"object"!==ZC(e.map)&&_w(this,"Invalid parameter type"),Pw(e)):"attr"===e.context?(null!=e.map&&"object"!==ZC(e.map)&&_w(this,"Invalid parameter type"),Mw(e)):void _w(this,"Invalid parameter type")},encodeForAttr:Rw,encodeForAttr2:function(e){return Rw("nonsens",e,!0)},encodeForCSS:Aw,encodeForHref:function(e){Dw(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new tw(e),r=tw.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+tw.encodeSearchParams(n)+t.hash).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){var r,n,o,i,a,s;for(t||(t=bw),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),Cw(o,t)>=0||null==Lw[i]?s+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),s+="\\x".concat(a).concat(n.toUpperCase())):(a="0000".substr(n.length),s+="\\u".concat(a).concat(n.toUpperCase())));return s},encodeForHTML:ww,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=Dw(t).toLowerCase():_w(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':""},isSafeDataURL:function(e,t){var r=null!=t?t:{},n=r.maxByteSizeSvg,o=void 0===n?5e5:n,i=r.maxByteSizeImage,a=void 0===i?5e6:i,s=function(e){var t,r=XC(null!==(t=hw.exec(e.trim()))&&void 0!==t?t:[],4),n=r[1];return{encoding:r[2],data:r[3],mimeType:null==n?void 0:n.toLocaleLowerCase()}}(e),l=s.mimeType,u=s.encoding,c=s.data;if(!c)return!0;var d=function(e,t,r){var n={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(r)],n).size}catch(e){return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0}(l,u,c);return"image/svg+xml"===l?d<=o:d<=a},validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch(e){return!1}}(e))return!1;var t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;var r=function(e){for(var t=e,r="";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(/^\/\.\.\//,"/");var n=r.lastIndexOf("/");-1!==n&&(r=r.slice(0,n))}else if("/.."===t){t="/";var o=r.lastIndexOf("/");-1!==o&&(r=r.slice(0,o))}else if("."===t||".."===t)t="";else{var i=t.match(/^\/?[^/]*/),a=i?i[0]:"";t=t.slice(a.length),r+=a}return r}(t);return""!==r&&"/"!==r&&r}};const Tw=(e,t)=>{var r;return null===(r=t.qAttrExps)||void 0===r||null===(r=r.qValues)||void 0===r?void 0:r[e]},Ow=(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"}}},Nw=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>n&&t&&!t.toLowerCase().includes("javascript:")&&kw.isSafeDataURL(t)?{type:zE.Image,url:t,text:e,imageSize:r,resolvedImagePosition:Ow(n,a),labelStructure:o,imageBox:i}:{type:zE.Text,url:void 0,text:e,labelStructure:o},Fw=(e,t,r,n)=>{if(!e.qMiniChart||null==t||!t.miniChart||!r)return{type:zE.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{var n,o;const i="global"===(null===(n=t.yAxis)||void 0===n?void 0:n.scale),a="zeroCenter"===(null===(o=t.yAxis)||void 0===o?void 0:o.position),s=i?r.qYMin:e.qMiniChart.qMin,l=i?r.qYMax:e.qMiniChart.qMax;if(a){const e=Math.max(Math.abs(s),Math.abs(l));return{minY:-e,maxY:e}}return(e=>{var t,r;return"zeroBaseline"===(null===(t=e.yAxis)||void 0===t?void 0:t.position)||"bars"===e.type&&"auto"===(null===(r=e.yAxis)||void 0===r?void 0:r.position)})(t)?{minY:Math.min(0,s),maxY:Math.max(0,l)}:{minY:s,maxY:l}})(e,t.miniChart,r),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:zE.MiniChart,text:n,miniChart:a}},jw=(e,t,r)=>{var n;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(n=o.qValues)||void 0===n?void 0:n[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==r?void 0:r.urlPosition)===HE.Attribute||null==r?void 0:r.urlLabel},zw=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:zE.Link,url:kw.encodeForHref(r),text:t,labelStructure:e}}catch(r){return{type:zE.Text,url:void 0,text:t,labelStructure:e}}},Hw=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:u})=>{var c,d,p,f,m,h;const g=BE(t),b=s(e);return g!==zE.Image||!u[zE.Image]||null!==(c=n.anything.sense)&&void 0!==c&&null!==(d=c.isUnsupportedFeature)&&void 0!==d&&d.call(c,"tableImages")?g===zE.Link?((e,t,r,n,o)=>{const{urlPosition:i}=null!=t?t:{};if(i===HE.Attribute){var a;const i=jw(null!==(a=r.url)&&void 0!==a?a:-1,e,t);return zw({labelStructure:n,text:o||i||"",url:i})}if(i===HE.Dimension){var s,l;const i=jw(null!==(s=r.urlLabel)&&void 0!==s?s:-1,e,t)||o;return n&&(n.maskedValue=i),zw({text:i,labelStructure:n,url:null!==(l=null==n?void 0:n.originalValue)&&void 0!==l?l:o})}return{type:zE.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,b):g!==zE.Indicator||!u[zE.Indicator]||null!==(p=n.anything.sense)&&void 0!==p&&null!==(f=p.isUnsupportedFeature)&&void 0!==f&&f.call(p,"tableIndicators")?g!==zE.MiniChart||!u[zE.MiniChart]||null!==(m=n.anything.sense)&&void 0!==m&&null!==(h=m.isUnsupportedFeature)&&void 0!==h&&h.call(m,"qMiniChartDef")?{type:zE.Text,url:void 0,text:b,labelStructure:a}:Fw(e,t,i,b):((e,t,r)=>{const{indicator:n}=null!=e?e:{};return{type:zE.Indicator,url:void 0,text:r,indicator:{applySegmentColors:null==n?void 0:n.applySegmentColors,position:null==n?void 0:n.position,showTextValues:null==n?void 0:n.showTextValues},indicatorConditionalColoring:t}})(t,o,b):((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=null!=t?t:{};if("url"===l){var d,p;const t=null===(d=Tw(null!==(p=r.imageUrl)&&void 0!==p?p:-1,e))||void 0===d?void 0:d.qText;return i&&(i.maskedValue=null!=t?t:""),Nw({text:n,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}if("label"===l){var f,m,h;const t=i?i.originalValue:n;if(-1===r.imageLabel)return Nw({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=null!==(f=null===(m=Tw(null!==(h=r.imageLabel)&&void 0!==h?h:-1,e))||void 0===m?void 0:m.qText)&&void 0!==f?f:n;return Nw({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:zE.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,b,l,a)},Bw=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,$w=(e,t,r)=>{var n,o,i;return null!==(n=null!==(o=e||null===(i=r.nullValueRepresentation)||void 0===i?void 0:i.text)&&void 0!==o?o:t.qText)&&void 0!==n?n:"-"},Vw=1e4;function Gw(e,t){return[...t].reverse().find((t=>t*e<=Vw))||Math.floor(Vw/e)}function Ww(e,t){var r;if(null!==(r=t.viewState)&&void 0!==r&&r.skipTotals)return{atTop:!1,atBottom:!1};const[n,o,i,a,s]=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,e.totals.show,e.totals.position];if(i&&(n&&o||!a&&!n)){if(a||"top"===s)return{atTop:!0,atBottom:!1};if("bottom"===s)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function Uw(e,t,r,n){var o,i,a;return t?0===r&&null!==(a=e.totals.label)&&void 0!==a?a:"":null!==(o=null===(i=e.qHyperCube.qGrandTotalRow.at(n))||void 0===i?void 0:i.qText)&&void 0!==o?o:""}function Yw(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return FC(null==r?void 0:r.qNum)}function Kw(e,t,r,n,o){return e&&!e.auto?n&&"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}:n||"rtl"!==o?{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:r?"left":"right",bodyTextAlign:"auto"}:{headTextAlign:"N"===t||void 0===t?"left":"right",totalsTextAlign:r?"right":"left",bodyTextAlign:"auto"}}const Xw=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right";const Jw=(e,t,r)=>{const{qHyperCube:{qColumnOrder:n,qDimensionInfo:o,qMeasureInfo:i}}=e,a=o.length+i.length,s=n.length===a?n:Array.from(Array(a).keys()),{visibleColumnsOrder:l,visibleColumnIndexes:u}=((e,t,r)=>{const n=t.length,o=[];let i=0,a=0;return{visibleColumnsOrder:e.filter((e=>{const s=e<n,{qError:l}=s?t[e]:r[e-n],u=7005===(null==l?void 0:l.qErrorCode);return u?s?i++:a++:o[e]=s?e-i:e-n-a,!u})),visibleColumnIndexes:o}})(s,o,i);return l.map(((n,o)=>function(e,t,r,n,o,i){const{qDimensionInfo:a,qMeasureInfo:s,qEffectiveInterColumnSortOrder:l}=e.qHyperCube,u=a.length,c=t<u,d=c?a[t]:s[t-u],p=c&&a[t].qGrouping===lE.Cyclic,f=t===l[0];let m,h,g="",b=!1,v=-1,y=0,x=[];const{representation:S,conditionalColoring:E}=d;if(c){var C;const e=d;g=e.qGroupFieldDefs[e.qGroupPos],y=e.qGroupPos,x=e.qGroupFallbackTitles,b=null!==(C=e.qLocked)&&void 0!==C&&C,v=n,({qDimensionType:m}=e)}else({qMiniChart:h}=d);const{qFallbackTitle:w,textAlign:R,qAttrExprInfo:A,qSortIndicator:D,qReverseSort:L,qApprMaxGlyphCount:I,columnWidth:q,qLibraryId:P}=d;return{isDim:c,isCyclic:p,isLocked:b,fieldId:g,colIdx:t,qLibraryId:P,pageColIdx:r,qApprMaxGlyphCount:I,qReverseSort:L,columnWidth:null!=q?q:{type:iE.Auto},selectionColIdx:v,isActivelySorted:f,id:NC(d),label:w,groupDimensionPos:y,groupDimensionLabels:x,qAttrExprInfoIDs:A.map((e=>e.id)),qAttrExprInfoIndex:qC(d),sortDirection:D&&"N"!==D?D:"A",totalInfo:Uw(e,c,r,n),...!c&&{isTotalNumeric:Yw(e,n)},...Kw(R,m,c,o,i),representation:S,conditionalColoring:c?void 0:E,qMiniChart:h}}(e,n,o,u[n],t,r)))};const Zw=(e,t)=>{var r;return!!(e.snapshotData||null!==(r=t.viewState)&&void 0!==r&&r.visibleHeight)},Qw=(e,t)=>{var r;return void 0!==(null===(r=t.viewState)||void 0===r?void 0:r.usePagination)?t.viewState.usePagination:!1!==e.usePagination||Zw(e,t)};var eR={exports:{}};
102
103
  /*!
103
104
  * CSSJanus. https://github.com/cssjanus/cssjanus
104
105
  *
@@ -117,77 +118,4 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.le
117
118
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
118
119
  * See the License for the specific language governing permissions and
119
120
  * limitations under the License.
120
- */!function(e,t){var r;function n(e,t){var r=[],n=0;function o(e){return r.push(e),t}function i(){return r[n++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="direction\\s*:\\s*",a="['\"]?\\s*",s="(^|[^a-zA-Z])",l="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",c="(?:[_a-z0-9-]|"+r+"|"+u+")",d=o+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+r+"|"+u+")")+c+"*")+")?",p="((?:-?"+d+")|(?:inherit|auto))",f="(#?"+c+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",m="(?:[!#$%&*-~]|"+r+"|"+u+")*?",h="(?![a-zA-Z])",g="(?!("+c+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",b="(?!"+m+a+"\\))",v="(?="+m+a+"\\))",y="(\\s*(?:!important\\s*)?[;}])",x=/`TMP`/g,S=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),w=new RegExp("("+l+g+"[^;}]+;?)","gi"),E=new RegExp("("+l+"[^\\}]*?})","gi"),C=new RegExp("("+i+")ltr","gi"),R=new RegExp("("+i+")rtl","gi"),O=new RegExp(s+"(left)"+h+b+g,"gi"),P=new RegExp(s+"(right)"+h+b+g,"gi"),A=new RegExp(s+"(left)"+v,"gi"),I=new RegExp(s+"(right)"+v,"gi"),D=new RegExp(s+"(ltr)"+v,"gi"),M=new RegExp(s+"(rtl)"+v,"gi"),L=new RegExp(s+"([ns]?)e-resize","gi"),k=new RegExp(s+"([ns]?)w-resize","gi"),T=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+y,"gi"),_=new RegExp("((?:-color|border-style)\\s*:\\s*)"+f+"(\\s+)"+f+"(\\s+)"+f+"(\\s+)"+f+y,"gi"),j=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+d+")","gi"),q=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),N=new RegExp("(border-radius\\s*:\\s*)"+p+"(?:(?:\\s+"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?)?(?:(?:(?:\\s*\\/\\s*)"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?(?:\\s+"+p+")?)?"+y,"gi"),F=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+p,"gi"),z=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+f,"gi"),H=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+p,"gi"),B=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),$=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),V=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+p+"((?:\\s*,\\s*"+p+"){0,2}\\s*\\))","gi");function W(e,t,r){var n,o;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r}function G(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 U(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter((function(e){return e})),o=r.slice(6,10).filter((function(e){return e})),i=r[10]||"";return t+(o.length?G(n)+" / "+G(o):G(n))+i}function Y(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function K(e,t,r){return t+Y(r)}function X(e,t,r,n,o){return t+r+Y(n)+o}function J(e,t,r,n,o){return t+r+n+Y(o)}return{transform:function(r,o){var i=new n(w,"`NOFLIP_SINGLE`"),a=new n(E,"`NOFLIP_CLASS`"),s=new n(S,t);return r=s.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(D,"$1"+e).replace(M,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(r=r.replace(A,"$1"+e).replace(I,"$1left").replace(x,"right")),r=r.replace(C,"$1"+e).replace(R,"$1ltr").replace(x,"rtl").replace(O,"$1"+e).replace(P,"$1left").replace(x,"right").replace(L,"$1$2"+e).replace(k,"$1$2e-resize").replace(x,"w-resize").replace(N,U).replace(F,K).replace(z,J).replace(H,J).replace(B,K).replace($,X).replace(V,X).replace(T,"$1$2$3$8$5$6$7$4$9").replace(_,"$1$2$3$8$5$6$7$4$9").replace(j,W).replace(q,W),r=i.detokenize(a.detokenize(s.detokenize(r)))}}},e.exports?t.transform=function(e,t,n){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof n&&(o.transformEdgeInUrl=n)),r.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=r)}(Aw,Aw.exports);var Iw=Et(Aw.exports),Dw="comm",Mw="rule",Lw="decl",kw=Math.abs,Tw=String.fromCharCode;function _w(e){return e.trim()}function jw(e,t,r){return e.replace(t,r)}function qw(e,t,r){return e.indexOf(t,r)}function Nw(e,t){return 0|e.charCodeAt(t)}function Fw(e,t,r){return e.slice(t,r)}function zw(e){return e.length}function Hw(e,t){return t.push(e),e}var Bw,$w,Vw,Ww,Gw=1,Uw=1,Yw=0,Kw=0,Xw=0,Jw="";function Zw(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Gw,column:Uw,length:a,return:"",siblings:s}}function Qw(){return Xw=Kw>0?Nw(Jw,--Kw):0,Uw--,10===Xw&&(Uw=1,Gw--),Xw}function eE(){return Xw=Kw<Yw?Nw(Jw,Kw++):0,Uw++,10===Xw&&(Uw=1,Gw++),Xw}function tE(){return Nw(Jw,Kw)}function rE(){return Kw}function nE(e,t){return Fw(Jw,e,t)}function oE(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 iE(e){return _w(nE(Kw-1,lE(91===e?e+2:40===e?e+1:e)))}function aE(e){for(;(Xw=tE())&&Xw<33;)eE();return oE(e)>2||oE(Xw)>3?"":" "}function sE(e,t){for(;--t&&eE()&&!(Xw<48||Xw>102||Xw>57&&Xw<65||Xw>70&&Xw<97););return nE(e,rE()+(t<6&&32==tE()&&32==eE()))}function lE(e){for(;eE();)switch(Xw){case e:return Kw;case 34:case 39:34!==e&&39!==e&&lE(Xw);break;case 40:41===e&&lE(e);break;case 92:eE()}return Kw}function uE(e,t){for(;eE()&&e+Xw!==57&&(e+Xw!==84||47!==tE()););return"/*"+nE(t,Kw-1)+"*"+Tw(47===e?e:eE())}function cE(e){for(;!oE(tE());)eE();return nE(e,Kw)}function dE(e){return function(e){return Jw="",e}(pE("",null,null,null,[""],e=function(e){return Gw=Uw=1,Yw=zw(Jw=e),Kw=0,[]}(e),0,[0],e))}function pE(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,w=n,E=y;g;)switch(m=v,v=eE()){case 40:if(108!=m&&58==Nw(E,d-1)){-1!=qw(E+=jw(iE(v),"&","&\f"),"&\f",kw(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:E+=iE(v);break;case 9:case 10:case 13:case 32:E+=aE(m);break;case 92:E+=sE(rE()-1,7);continue;case 47:switch(tE()){case 42:case 47:Hw(mE(uE(eE(),rE()),t,r,l),l),5!=oE(m||1)&&5!=oE(tE()||1)||!zw(E)||" "===Fw(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*h:s[u++]=zw(E)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(E=jw(E,/\f/g,"")),f>0&&(zw(E)-d||0===h&&47===m)&&Hw(f>32?hE(E+";",n,r,d-1,l):hE(jw(E," ","")+";",n,r,d-2,l),l);break;case 59:E+=";";default:if(Hw(w=fE(E,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)pE(E,t,w,w,x,i,d,s,S);else{switch(p){case 99:if(110===Nw(E,3))break;case 108:if(97===Nw(E,2))break;default:c=0;case 100:case 109:case 115:}c?pE(e,w,w,n&&Hw(fE(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S):pE(E,w,w,w,[""],S,0,s,S)}}u=c=f=0,h=b=1,y=E="",d=a;break;case 58:d=1+zw(E),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==Qw())continue;switch(E+=Tw(v),v*h){case 38:b=c>0?1:(E+="\f",-1);break;case 44:s[u++]=(zw(E)-1)*b,b=1;break;case 64:45===tE()&&(E+=iE(eE())),p=tE(),c=d=zw(y=E+=cE(rE())),v++;break;case 45:45===m&&2==zw(E)&&(h=0)}}return i}function fE(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],m=function(e){return e.length}(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=Fw(e,p+1,p=kw(g=a[h])),x=e;v<m;++v)(x=_w(g>0?f[v]+" "+y:jw(y,/&\f/g,f[v])))&&(l[b++]=x);return Zw(e,t,r,0===o?Mw:s,l,u,c,d)}function mE(e,t,r,n){return Zw(e,t,r,Dw,Tw(Xw),Fw(e,2,-2),0,n)}function hE(e,t,r,n,o){return Zw(e,t,r,Lw,Fw(e,0,n),Fw(e,n+1,-1),n,o)}function gE(e,t,r){switch(e.type){case"@import":case Lw:case Dw:return e.return=e.return||e.value;case Mw:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===Dw&&(e.children=e.value)}))}var n=function(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}(Array.prototype.concat(e.children),gE);return zw(n)?e.return=e.value+"{"+n+"}":""}function bE(e,t,r,n){if("@keyframes"===e.type||"@supports"===e.type||e.type===Mw&&(!e.parent||"@media"===e.parent.type||e.parent.type===Mw)){var o=Iw.transform(gE(e));e.children=o?dE(o)[0].children:[],e.return=""}}Object.defineProperty(bE,"name",{value:"stylisRTLPlugin"}),function(e){e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive"}(Bw||(Bw={})),function(e){e.Select="Select",e.SelectMouseDown="SelectMouseDown",e.SelectMouseUp="SelectMouseUp",e.SelectMultiAdd="SelectMultiAdd",e.SelectMultiEnd="SelectMultiEnd",e.Reset="Reset",e.Clear="Clear",e.UpdatePageRows="UpdatePageRows"}($w||($w={})),function(e){e.A="ascending",e.D="descending"}(Vw||(Vw={})),function(e){e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2"}(Ww||(Ww={}));const vE=[0,0],yE={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"},xE={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",...yE,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)"},SE=12,wE=14,EE=16,CE=24,RE=3,OE=300,PE=400,AE=600,IE=700,DE={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Dt(xE.GREYSCALE_0,.05),Dt(xE.GREEN_PALE,.5),Dt(xE.BLUE_PALE,.5),Dt(xE.GREEN_PALE,.5),Dt(xE.BLUE_PALE,.5),Dt(xE.GREEN_PALE,.5),Dt(xE.BLUE_PALE,.5);var ME;function LE(){return LE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},LE.apply(null,arguments)}Dt(xE.GREEN_PALE,.5),Dt(xE.BLUE_PALE,.5),Dt(xE.GREEN_PALE,.5),Dt(xE.BLUE_PALE,.5);var kE,TE=function(e){return S.createElement("svg",LE({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),ME||(ME=S.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function _E(){return _E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_E.apply(null,arguments)}var jE=function(e){return S.createElement("svg",_E({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),kE||(kE=S.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function qE({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return nr.jsx("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})}function NE(e={}){return nr.jsx(qE,{...e,children:nr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[nr.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),nr.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function FE(e={}){return nr.jsx(qE,{...e,children:nr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:nr.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[nr.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),nr.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function zE(e={}){return nr.jsx(qE,{fontSize:"medium",...e,children:nr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:nr.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:nr.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function HE(e={}){return nr.jsx(qE,{fontSize:"medium",...e,children:nr.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[nr.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),nr.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function BE({className:e}){return nr.jsx(qE,{fontSize:"small",className:e,children:nr.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:nr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:nr.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:nr.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[nr.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),nr.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function $E(e){return Sx(e)}nr.jsx(jE,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),nr.jsx(TE,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),nr.jsx(zE,{}),nr.jsx(HE,{}),nr.jsx((function(e={}){return nr.jsx(qE,{...e,children:nr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:nr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:nr.jsx("rect",{stroke:"#000000",fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}),{}),nr.jsx(NE,{}),nr.jsx(FE,{}),nr.jsx(TE,{style:{color:xE.TEXT_PRIMARY},"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16});const VE=Dl("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),WE=["center","classes","className"];let GE,UE,YE,KE,XE=e=>e;const JE=zi(GE||(GE=XE`
121
- 0% {
122
- transform: scale(0);
123
- opacity: 0.1;
124
- }
125
-
126
- 100% {
127
- transform: scale(1);
128
- opacity: 0.3;
129
- }
130
- `)),ZE=zi(UE||(UE=XE`
131
- 0% {
132
- opacity: 1;
133
- }
134
-
135
- 100% {
136
- opacity: 0;
137
- }
138
- `)),QE=zi(YE||(YE=XE`
139
- 0% {
140
- transform: scale(1);
141
- }
142
-
143
- 50% {
144
- transform: scale(0.92);
145
- }
146
-
147
- 100% {
148
- transform: scale(1);
149
- }
150
- `)),eC=Rw("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),tC=Rw((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,d]=S.useState(!1),p=Ra(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Ra(r.child,c&&r.childLeaving,n&&r.childPulsate);return s||c||d(!0),S.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}}),[l,s,u]),nr.jsx("span",{className:p,style:f,children:nr.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(KE||(KE=XE`
151
- opacity: 0;
152
- position: absolute;
153
-
154
- &.${0} {
155
- opacity: 0.3;
156
- transform: scale(1);
157
- animation-name: ${0};
158
- animation-duration: ${0}ms;
159
- animation-timing-function: ${0};
160
- }
161
-
162
- &.${0} {
163
- animation-duration: ${0}ms;
164
- }
165
-
166
- & .${0} {
167
- opacity: 1;
168
- display: block;
169
- width: 100%;
170
- height: 100%;
171
- border-radius: 50%;
172
- background-color: currentColor;
173
- }
174
-
175
- & .${0} {
176
- opacity: 0;
177
- animation-name: ${0};
178
- animation-duration: ${0}ms;
179
- animation-timing-function: ${0};
180
- }
181
-
182
- & .${0} {
183
- position: absolute;
184
- /* @noflip */
185
- left: 0px;
186
- top: 0;
187
- animation-name: ${0};
188
- animation-duration: 2500ms;
189
- animation-timing-function: ${0};
190
- animation-iteration-count: infinite;
191
- animation-delay: 200ms;
192
- }
193
- `),VE.rippleVisible,JE,550,(({theme:e})=>e.transitions.easing.easeInOut),VE.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),VE.child,VE.childLeaving,ZE,550,(({theme:e})=>e.transitions.easing.easeInOut),VE.childPulsate,QE,(({theme:e})=>e.transitions.easing.easeInOut)),rC=S.forwardRef((function(e,t){const r=$E({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Mt(r,WE),[s,l]=S.useState([]),u=S.useRef(0),c=S.useRef(null);S.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=S.useRef(!1),p=ml(),f=S.useRef(null),m=S.useRef(null),h=S.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l((e=>[...e,nr.jsx(tC,{classes:{ripple:Ra(o.ripple,VE.ripple),rippleVisible:Ra(o.rippleVisible,VE.rippleVisible),ripplePulsate:Ra(o.ripplePulsate,VE.ripplePulsate),child:Ra(o.child,VE.child),childLeaving:Ra(o.childLeaving,VE.childLeaving),childPulsate:Ra(o.childPulsate,VE.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=S.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(l.width/2),c=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-l.left),c=Math.round(r-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,h,p]),b=S.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=S.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{v(e,t)}));f.current=null,l((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return S.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),nr.jsx(eC,wt({className:Ra(VE.root,o.root,i),ref:m},a,{children:nr.jsx(bc,{component:null,exit:!0,children:s})}))}));function nC(e){return Il("MuiButtonBase",e)}const oC=Dl("MuiButtonBase",["root","disabled","focusVisible"]),iC=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],aC=Rw("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${oC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),sC=S.forwardRef((function(e,t){const r=$E({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:x,onMouseDown:w,onMouseLeave:E,onMouseUp:C,onTouchEnd:R,onTouchMove:O,onTouchStart:P,tabIndex:A=0,TouchRippleProps:I,touchRippleRef:D,type:M}=r,L=Mt(r,iC),k=S.useRef(null),T=S.useRef(null),_=cl(T,D),{isFocusVisibleRef:j,onFocus:q,onBlur:N,ref:F}=El(),[z,H]=S.useState(!1);l&&z&&H(!1),S.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),k.current.focus()}})),[]);const[B,$]=S.useState(!1);S.useEffect((()=>{$(!0)}),[]);const V=B&&!u&&!l;function W(e,t,r=c){return ul((n=>{t&&t(n);return!r&&T.current&&T.current[e](n),!0}))}S.useEffect((()=>{z&&d&&!u&&B&&T.current.pulsate()}),[u,d,z,B]);const G=W("start",w),U=W("stop",h),Y=W("stop",g),K=W("stop",C),X=W("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),J=W("start",P),Z=W("stop",R),Q=W("stop",O),ee=W("stop",(e=>{N(e),!1===j.current&&H(!1),f&&f(e)}),!1),te=ul((e=>{k.current||(k.current=e.currentTarget),q(e),!0===j.current&&(H(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=k.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=S.useRef(!1),oe=ul((e=>{d&&!ne.current&&z&&T.current&&" "===e.key&&(ne.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),m&&m(e))})),ie=ul((e=>{d&&" "===e.key&&T.current&&z&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=s;"button"===ae&&(L.href||L.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===M?"button":M,se.disabled=l):(L.href||L.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=cl(t,F,k),ue=wt({},r,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:A,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Rl({root:["root",t&&"disabled",r&&"focusVisible"]},nC,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return nr.jsxs(aC,wt({as:ae,className:Ra(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:G,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:A,type:M},se,L,{children:[i,V?nr.jsx(rC,wt({ref:_,center:o},I)):null]}))})),lC=Dl("MuiBox",["root"]),uC=US(),cC=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=$i("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Qy),a=S.forwardRef((function(e,a){const s=function(e=ix){return ox(e)}(r),l=sx(e),{className:u,component:c="div"}=l,d=Mt(l,ux);return nr.jsx(i,wt({as:c,ref:a,className:Ra(u,o?o(n):n),theme:t&&s[t]||s},d))}));return a}({themeId:ey,defaultTheme:uC,defaultClassName:lC.root,generateClassName:Pl.generate}),dC=Dl("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),pC=S.createContext({});function fC(e){return Il("MuiListItemIcon",e)}const mC=Dl("MuiListItemIcon",["root","alignItemsFlexStart"]),hC=["className"],gC=Rw("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>wt({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),bC=S.forwardRef((function(e,t){const r=$E({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Mt(r,hC),i=wt({},r,{alignItems:S.useContext(pC).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Rl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},fC,r)})(i);return nr.jsx(gC,wt({className:Ra(a.root,n),ownerState:i,ref:t},o))})),vC=Dl("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function yC(e){return Il("MuiMenuItem",e)}const xC=Dl("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),SC=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],wC=Rw(sC,{shouldForwardProp:e=>Cw(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>wt({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${xC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Mx(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${xC.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Mx(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${xC.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Mx(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Mx(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${xC.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${xC.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${dC.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${dC.inset}`]:{marginLeft:52},[`& .${vC.root}`]:{marginTop:0,marginBottom:0},[`& .${vC.inset}`]:{paddingLeft:36},[`& .${mC.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&wt({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${mC.root} svg`]:{fontSize:"1.25rem"}})))),EC=S.forwardRef((function(e,t){const r=$E({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d}=r,p=Mt(r,SC),f=S.useContext(pC),m=S.useMemo((()=>({dense:i||f.dense||!1,disableGutters:s})),[f.dense,i,s]),h=S.useRef(null);ll((()=>{n&&h.current&&h.current.focus()}),[n]);const g=wt({},r,{dense:m.dense,divider:a,disableGutters:s}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return wt({},a,Rl({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},yC,a))})(r),v=cl(h,t);let y;return r.disabled||(y=void 0!==c?c:-1),nr.jsx(pC.Provider,{value:m,children:nr.jsx(wC,wt({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:Ra(b.focusVisible,l),className:Ra(b.root,d)},p,{ownerState:g,classes:b}))})})),CC=S.createContext();function RC(e){return Il("MuiTable",e)}Dl("MuiTable",["root","stickyHeader"]);const OC=["className","component","padding","size","stickyHeader"],PC=Rw("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>wt({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":wt({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),AC="table",IC=S.forwardRef((function(e,t){const r=$E({props:e,name:"MuiTable"}),{className:n,component:o=AC,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=Mt(r,OC),u=wt({},r,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:r}=e;return Rl({root:["root",r&&"stickyHeader"]},RC,t)})(u),d=S.useMemo((()=>({padding:i,size:a,stickyHeader:s})),[i,a,s]);return nr.jsx(CC.Provider,{value:d,children:nr.jsx(PC,wt({as:o,role:o===AC?null:"table",ref:t,className:Ra(c.root,n),ownerState:u},l))})})),DC=S.createContext();function MC(e){return Il("MuiTableBody",e)}Dl("MuiTableBody",["root"]);const LC=["className","component"],kC=Rw("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),TC={variant:"body"},_C="tbody",jC=S.forwardRef((function(e,t){const r=$E({props:e,name:"MuiTableBody"}),{className:n,component:o=_C}=r,i=Mt(r,LC),a=wt({},r,{component:o}),s=(e=>{const{classes:t}=e;return Rl({root:["root"]},MC,t)})(a);return nr.jsx(DC.Provider,{value:TC,children:nr.jsx(kC,wt({className:Ra(s.root,n),as:o,ref:t,role:o===_C?null:"rowgroup",ownerState:a},i))})}));function qC(e){return Il("MuiTableCell",e)}const NC=Dl("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),FC=["align","className","component","padding","scope","size","sortDirection","variant"],zC=Rw("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${al(r.size)}`],"normal"!==r.padding&&t[`padding${al(r.padding)}`],"inherit"!==r.align&&t[`align${al(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>wt({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?Tx(Mx(e.palette.divider,1),.88):Lx(Mx(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${NC.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}))),HC=S.forwardRef((function(e,t){const r=$E({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c}=r,d=Mt(r,FC),p=S.useContext(CC),f=S.useContext(DC),m=f&&"head"===f.variant;let h;h=i||(m?"th":"td");let g=s;"td"===h?g=void 0:!g&&m&&(g="col");const b=c||f&&f.variant,v=wt({},r,{align:n,component:h,padding:a||(p&&p.padding?p.padding:"normal"),size:l||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),y=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return Rl({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${al(n)}`,"normal"!==o&&`padding${al(o)}`,`size${al(i)}`]},qC,t)})(v);let x=null;return u&&(x="asc"===u?"ascending":"descending"),nr.jsx(zC,wt({as:h,ref:t,className:Ra(y.root,o),"aria-sort":x,scope:g,ownerState:v},d))}));function BC(e){return Il("MuiTableContainer",e)}Dl("MuiTableContainer",["root"]);const $C=["className","component"],VC=Rw("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),WC=S.forwardRef((function(e,t){const r=$E({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=Mt(r,$C),a=wt({},r,{component:o}),s=(e=>{const{classes:t}=e;return Rl({root:["root"]},BC,t)})(a);return nr.jsx(VC,wt({ref:t,as:o,className:Ra(s.root,n),ownerState:a},i))}));function GC(e){return Il("MuiTableHead",e)}Dl("MuiTableHead",["root"]);const UC=["className","component"],YC=Rw("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),KC={variant:"head"},XC="thead",JC=S.forwardRef((function(e,t){const r=$E({props:e,name:"MuiTableHead"}),{className:n,component:o=XC}=r,i=Mt(r,UC),a=wt({},r,{component:o}),s=(e=>{const{classes:t}=e;return Rl({root:["root"]},GC,t)})(a);return nr.jsx(DC.Provider,{value:KC,children:nr.jsx(YC,wt({as:o,className:Ra(s.root,n),ref:t,role:o===XC?null:"rowgroup",ownerState:a},i))})}));function ZC(e){return Il("MuiTableRow",e)}const QC=Dl("MuiTableRow",["root","selected","hover","head","footer"]),eR=["className","component","hover","selected"],tR=Rw("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${QC.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${QC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Mx(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Mx(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),rR="tr",nR=S.forwardRef((function(e,t){const r=$E({props:e,name:"MuiTableRow"}),{className:n,component:o=rR,hover:i=!1,selected:a=!1}=r,s=Mt(r,eR),l=S.useContext(DC),u=wt({},r,{component:o,hover:i,selected:a,head:l&&"head"===l.variant,footer:l&&"footer"===l.variant}),c=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:i}=e;return Rl({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},ZC,t)})(u);return nr.jsx(tR,wt({as:o,ref:t,className:Ra(c.root,n),role:o===rR?null:"row",ownerState:u},s))}));function oR(e={}){return nr.jsx(qE,{...e,children:nr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:nr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:nr.jsx("rect",{stroke:xE.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const iR={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:RE,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var aR=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:xE.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:xE.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:nr.jsx(TE,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${xE.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:xE.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${xE.MISC_FOCUS_BORDER}`,borderRadius:RE,backgroundColor:xE.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${xE.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:xE.WHITE,color:xE.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:RE},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${xE.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:xE.GREYSCALE_0_15,backgroundColor:xE.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:xE.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${xE.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:xE.GREEN_PALE},"&:active":{backgroundColor:xE.GREEN_DARK},"&.Mui-focusVisible":{borderColor:xE.GREEN_PALE,boxShadow:`0 0 0 3px ${dx(xE.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:xE.BLUE_PALE},"&:active":{backgroundColor:xE.BLUE_DARK},"&.Mui-focusVisible":{borderColor:xE.BLUE_PALE,boxShadow:`0 0 0 3px ${dx(xE.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:RE,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:xE.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${xE.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:xE.GREYSCALE_0_15,backgroundColor:xE.GREYSCALE_100_60,"&:active":{backgroundColor:xE.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:xE.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${xE.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:xE.PURPLE,"&.Mui-focusVisible":{borderColor:xE.PURPLE,boxShadow:`0 0 0 3px ${dx(xE.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:xE.GREEN,"&.Mui-focusVisible":{borderColor:xE.GREEN,boxShadow:`0 0 0 3px ${dx(xE.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:xE.BLUE,"&.Mui-focusVisible":{borderColor:xE.BLUE,boxShadow:`0 0 0 3px ${dx(xE.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:xE.ORANGE,"&.Mui-focusVisible":{borderColor:xE.ORANGE,boxShadow:`0 0 0 3px ${dx(xE.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:xE.RED,"&.Mui-focusVisible":{borderColor:xE.RED,boxShadow:`0 0 0 3px ${dx(xE.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:xE.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:xE.PURPLE_PALE},"&:active":{backgroundColor:xE.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:xE.PURPLE_PALE,boxShadow:`0 0 0 3px ${dx(xE.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:xE.GREEN_PALE},"&:active":{backgroundColor:xE.GREEN_DARK},"&.Mui-focusVisible":{borderColor:xE.GREEN_PALE,boxShadow:`0 0 0 3px ${dx(xE.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:xE.BLUE_PALE},"&:active":{backgroundColor:xE.BLUE_DARK},"&.Mui-focusVisible":{borderColor:xE.BLUE_PALE,boxShadow:`0 0 0 3px ${dx(xE.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:xE.ORANGE_PALE},"&:active":{backgroundColor:xE.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:xE.ORANGE_PALE,boxShadow:`0 0 0 3px ${dx(xE.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:xE.RED_PALE},"&:active":{backgroundColor:xE.RED_DARK},"&.Mui-focusVisible":{borderColor:xE.RED_PALE,boxShadow:`0 0 0 3px ${dx(xE.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:xE.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:xE.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:RE,boxShadow:`inset 0 0 0 2px ${xE.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:nr.jsx(jE,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:SE,borderRadius:RE,color:xE.TEXT_PRIMARY,backgroundColor:xE.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:xE.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${xE.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:xE.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:xE.GREYSCALE_0_05,color:xE.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:xE.GREEN,borderColor:xE.GREEN},"&.MuiChip-outlinedInfo":{color:xE.BLUE,borderColor:xE.BLUE},"&.MuiChip-outlinedWarning":{color:xE.ORANGE,borderColor:xE.ORANGE},"&.MuiChip-outlinedError":{color:xE.RED,borderColor:xE.RED}},outlined:{border:`solid 1px ${xE.GREYSCALE_0_15}`,backgroundColor:xE.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:RE,boxShadow:"none",backgroundColor:xE.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:xE.GREEN,borderColor:xE.GREEN},outlinedSecondary:{color:xE.BLUE,borderColor:xE.BLUE},label:{fontFamily:DE.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:nr.jsx(jE,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:nr.jsx(TE,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:RE},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:RE,fontSize:wE,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:xE.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${xE.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:xE.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:xE.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:xE.GREYSCALE_0_05}}},popupIndicator:{borderRadius:RE,border:`solid 1px ${xE.GREYSCALE_0_15}`,color:xE.GREYSCALE_0_60,marginRight:0,width:CE,height:CE},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${xE.GREYSCALE_0_15}`},clearIndicator:{borderRadius:RE,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:xE.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:wE}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:SE,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:xE.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:xE.GREYSCALE_25,fontSize:SE,fontFamily:DE.FONT_FAMILY,fontWeight:AE,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:xE.TEXT_PRIMARY},"&.Mui-error":{color:xE.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:xE.TEXT_SECONDARY,content:"'(optional)'",fontWeight:PE,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:xE.TEXT_SECONDARY,content:"'(required)'",fontWeight:PE,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:wE,lineHeight:"16px",backgroundColor:xE.WHITE,borderRadius:RE,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${xE.GREYSCALE_0_05}`,borderColor:xE.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${xE.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${xE.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${xE.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${xE.RED}`,boxShadow:`0px 0px 0px 1px ${xE.RED}, inset 0 2px 0 0 ${xE.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${xE.GREYSCALE_0_10}`,borderColor:xE.GREYSCALE_0_10,backgroundColor:xE.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:xE.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:xE.GREYSCALE_0_15,borderRadius:RE,boxShadow:`inset 0 2px 0 0 ${xE.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>nr.jsx(TE,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:xE.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:xE.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:xE.GREYSCALE_0_03},"&:active":{backgroundColor:xE.GREYSCALE_0_10},"&:focus":{backgroundColor:xE.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${xE.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${xE.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:xE.GREYSCALE_0_30,"&:hover":{backgroundColor:xE.GREYSCALE_0_0,borderColor:xE.GREYSCALE_0_15},"& ~svg":{color:xE.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${xE.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:RE}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:xE.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${xE.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:xE.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:wE,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:SE,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:SE,fontWeight:AE,color:xE.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:AE}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${xE.GREYSCALE_0_15}, 0px 0px 0px 1px ${xE.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:nr.jsx(zE,{}),checkedIcon:nr.jsx(HE,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:xE.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${xE.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:xE.GREEN_PALE,boxShadow:`0 0 0 3px ${dx(xE.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:xE.BLUE_PALE,boxShadow:`0 0 0 3px ${dx(xE.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:xE.GREYSCALE_0_20}},"&.Mui-disabled":{fill:xE.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:nr.jsx(oR,{}),checkedIcon:nr.jsx(NE,{}),indeterminateIcon:nr.jsx(FE,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:RE,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:xE.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:xE.GREYSCALE_0_55,color:xE.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:xE.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:xE.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:xE.GREYSCALE_0_55,"&:hover":{color:xE.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:xE.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:xE.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:wE,color:xE.TEXT_PRIMARY,lineHeight:"16px",fontWeight:AE},secondary:{fontSize:SE,color:xE.GREYSCALE_45,fontWeight:PE,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:wE,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:wE,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:xE.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:SE,borderBottom:`solid 1px ${xE.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:wE,color:xE.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:xE.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:xE.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:xE.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:xE.RED}}},"&.Mui-focusVisible":{backgroundColor:xE.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:xE.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:xE.GREEN,height:"24px","&.Mui-disabled":{color:xE.GREYSCALE_0_15}},rail:{backgroundColor:xE.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${xE.GREYSCALE_0_05}`,borderRadius:RE,boxShadow:`inset 0px 0px 0px 1px ${xE.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${xE.GREYSCALE_0_05}`,borderRadius:RE},thumb:{height:"16px",width:"16px",borderRadius:RE,backgroundColor:xE.WHITE,boxShadow:`0px 1px 2px 0px ${xE.GREYSCALE_0_15}, 0px 0px 0px 1px ${xE.GREYSCALE_0_05}`,"&:hover":{borderRadius:RE,boxShadow:`0 2px 4px 0 ${xE.GREYSCALE_0_30}, 0 0 0 1px ${xE.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${xE.GREYSCALE_0_15}, 0 0 0 1px ${xE.GREYSCALE_0_06}, 0 0 0 2px ${xE.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${xE.GREYSCALE_0_15}, 0 0 0 1px ${xE.GREYSCALE_0_06}, 0 0 0 2px ${xE.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:xE.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:xE.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:xE.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:xE.GREYSCALE_0_15},markLabel:{color:xE.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:xE.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:xE.WHITE,color:xE.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:xE.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:xE.GREEN_PALE,boxShadow:`0 0 0 3px ${dx(xE.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:xE.BLUE_PALE,boxShadow:`0 0 0 3px ${dx(xE.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:xE.GREYSCALE_0_15,borderRadius:RE},thumb:{height:"16px",width:"16px",borderRadius:RE,backgroundColor:xE.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:wE,fontWeight:AE,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${xE.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${xE.MISC_FOCUS_BORDER}`,backgroundColor:xE.GREYSCALE_0_03,borderRadius:RE},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:xE.GREYSCALE_25,"&.Mui-selected":{color:xE.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:wE,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:RE,"&:hover":{backgroundColor:xE.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${xE.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${xE.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:RE,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:xE.GREYSCALE_0_05},"&:hover":{backgroundColor:xE.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${xE.GREYSCALE_85}`,borderRight:`1px solid ${xE.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:AE,backgroundColor:xE.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:xE.GREYSCALE_98,borderBottom:`1px solid ${xE.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${xE.GREYSCALE_85}`,borderTop:`1px solid ${xE.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:xE.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:xE.GREYSCALE_0_05,"&:hover":{backgroundColor:xE.GREYSCALE_0_03}},"&&:hover":{backgroundColor:xE.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>nr.jsx(BE,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${xE.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:wE,borderRadius:RE,padding:"7px 16px",border:`1px solid ${xE.GREYSCALE_0_15}`,backgroundColor:xE.GREYSCALE_100_60,color:xE.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:xE.GREYSCALE_0_10,border:`1px solid ${xE.GREYSCALE_0_30}`},"&:hover":{backgroundColor:xE.GREYSCALE_0_03,border:`1px solid ${xE.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:xE.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${xE.MISC_FOCUS_BORDER}`,border:`1px solid ${xE.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:xE.GREYSCALE_25,backgroundColor:xE.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:xE.GREYSCALE_0_10,border:`1px solid ${xE.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:SE,height:24,width:24,padding:7},sizeLarge:{fontSize:EE,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:wE,borderRadius:RE}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:xE.GREYSCALE_20},tooltip:{backgroundColor:xE.GREYSCALE_20,fontSize:SE,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...iR}:{}}))(t);const sR=e=>({mode:"light",primary:{ultraLight:xE.GREEN_ULTRA_LIGHT,light:xE.GREEN_PALE,main:xE.GREEN,dark:xE.GREEN_DARK,extraDark:xE.GREEN_EXTRA_DARK,contrastText:xE.WHITE},secondary:{ultraLight:xE.BLUE_ULTRA_LIGHT,light:xE.BLUE_PALE,main:xE.BLUE,dark:xE.BLUE_DARK,extraDark:xE.BLUE_EXTRA_DARK,contrastText:xE.WHITE},error:{ultraLight:xE.RED_ULTRA_LIGHT,light:xE.RED_PALE,main:xE.RED,dark:xE.RED_DARK,extraDark:xE.RED_EXTRA_DARK,contrastText:xE.WHITE},warning:{ultraLight:xE.ORANGE_ULTRA_LIGHT,light:xE.ORANGE_PALE,main:xE.ORANGE,dark:xE.ORANGE_DARK,extraDark:xE.ORANGE_EXTRA_DARK,contrastText:xE.WHITE},success:{ultraLight:xE.GREEN_ULTRA_LIGHT,light:xE.GREEN_PALE,main:xE.GREEN,dark:xE.GREEN_DARK,extraDark:xE.GREEN_EXTRA_DARK,contrastText:xE.WHITE},info:{ultraLight:xE.BLUE_ULTRA_LIGHT,light:xE.BLUE_PALE,main:xE.BLUE,dark:xE.BLUE_DARK,extraDark:xE.BLUE_EXTRA_DARK,contrastText:xE.WHITE},text:{primary:xE.TEXT_PRIMARY,secondary:xE.TEXT_SECONDARY,disabled:xE.GREYSCALE_0_30},action:{hover:xE.GREYSCALE_0_03,hoverOpacity:.03,selected:xE.GREYSCALE_0_05,selectedOpacity:.05,focus:xE.MISC_FOCUS_BORDER},amethyst:{ultraLight:xE.WHITE,main:xE.PURPLE,light:xE.PURPLE_PALE,dark:xE.PURPLE_DARK,extraDark:xE.GREYSCALE_0_0,contrastText:xE.WHITE},background:{paper:xE.WHITE,default:xE.GREYSCALE_95},divider:xE.GREYSCALE_0_15}),lR={...yE},uR=(e="light",t=!1)=>((e,t=!1)=>({components:aR(0,t),palette:sR(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:wE,fontWeightLight:OE,fontWeightRegular:PE,fontWeightMedium:AE,fontWeightBold:IE,htmlFontSize:wE,fontFamily:DE.FONT_FAMILY,button:{fontWeight:AE,fontSize:wE,textTransform:"none"},body1:{fontSize:EE,lineHeight:"24px"},body2:{fontSize:wE,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:CE,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:EE,fontWeight:AE,lineHeight:"16px"},h6:{fontSize:wE,fontWeight:AE,lineHeight:"16px"},caption:{color:xE.TEXT_SECONDARY},subtitle1:{fontSize:wE,color:xE.TEXT_SECONDARY},subtitle2:{fontSize:SE,color:xE.TEXT_SECONDARY}},shape:{borderRadius:RE}}))(0,t),cR=uR().palette,dR=(cR.primary.light,Bw.Selected,"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"),pR=4/3,fR="12px",mR="600",hR="Source Sans Pro, sans-serif",gR={height:"auto",fontSize:fR,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"}},bR={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:mR},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},vR=25e4,yR=(e,t,r)=>{if(!e.length)return[];const n=[],o=[];let i=t;if(e.forEach(((e,a)=>{var s;const{columnWidth:{type:l,pixels:u,percentage:c},label:d,qApprMaxGlyphCount:p,totalInfo:f}=e;let m=0;const h=()=>{n[a]=Math.min(Vm.PixelsMax,Math.max(Vm.PixelsMin,m)),i-=n[a]};switch(l){case Wm.Pixels:m=u||Vm.PixelsDefault,h();break;case Wm.Percentage:m=(c||Vm.PercentageDefault)/100*t,h();break;case Wm.FitToContent:(null===(s=e.representation)||void 0===s?void 0:s.type)===Tg.Image?o.push(a):(m=r(d,f,p,e.isLocked,e.isActivelySorted,e.isDim),h());break;case Wm.Auto:o.push(a);break;default:throw new Error(`${l} is not a valid column width type`)}})),o.length){const e=i/o.length;o.forEach((t=>{n[t]=Math.max(Vm.AutoMinTable,e)}))}return n},xR=(e,t,r)=>{const n=r.size,o=n>=t.size;if(n){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===n?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",n.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},SR=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},wR=e=>e.ctrlKey||e.metaKey,ER=e=>e.shiftKey&&wR(e),CR=e=>[Bm.Left,Bm.Right,Bm.Up,Bm.Down].includes(e),RR=e=>e.shiftKey&&CR(e.key),OR=e=>{return t=e.key,(CR(t)||[Bm.Home,Bm.End,Bm.PageUp,Bm.PageDown].includes(t))&&!ER(e);var t},PR=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l=new Map;if(-1===o)null==r||r.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l=new Map(n)}return l=((e,t,r)=>{const{qElemNumber:n,rowIdx:o}=t;return r.ctrlKey||r.metaKey?(new Map).set(n,o):(e.has(n)?e.delete(n):e.set(n,o),new Map(e))})(l,i,s),xR(a,n,l),l.size?(null==r||r.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(l.values()),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(null==r||r.cancel(),{...e,rows:l,colIdx:-1})},AR=(e,t)=>{var r;const{api:n,rows:o,colIdx:i,pageRows:a,firstCell:s}=e,{cell:l,announce:u,evt:c}=t;if(!(s||"key"in c&&RR(c)))return e;-1===i&&(null==n||n.begin(["/qHyperCubeDef"]));const d=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&RR(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===Bm.Down?1:-1,o=e[r.pageRowIdx+t][r.pageColIdx];return i.set(o.qElemNumber,r.rowIdx+t),i}if(!o)return t;const a=Math.min(o.pageRowIdx,r.pageRowIdx),s=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=s;t++){const r=e[t][o.pageColIdx];i.set(r.qElemNumber,r.rowIdx)}return i})(a,o,l,c,s);return xR(u,o,d),{...e,rows:d,colIdx:null!==(r=null==s?void 0:s.selectionColIdx)&&void 0!==r?r:l.selectionColIdx,isSelectMultiValues:!0}},IR=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&(null==t||t.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(r.values()),[n]]})),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},DR=(e,t)=>{var r;switch(t.type){case $w.Select:return PR(e,t.payload);case $w.SelectMouseDown:return((e,{cell:t,mouseupOutsideCallback:r})=>!r||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",r),{...e,firstCell:t,mouseupOutsideCallback:r}))(e,t.payload);case $w.SelectMouseUp:return((e,t)=>IR(e.isSelectMultiValues||e.firstCell!==t.cell?e:PR(e,t)))(e,t.payload);case $w.SelectMultiAdd:return AR(e,t.payload);case $w.SelectMultiEnd:return IR(e);case $w.Reset:return null!==(r=e.api)&&void 0!==r&&r.isModal()?e:{...e,rows:new Map,colIdx:-1};case $w.Clear:return e.rows.size?{...e,rows:new Map}:e;case $w.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},MR=4/3,LR=e=>!(null==e||!e.color)||"number"==typeof(null==e?void 0:e.index)&&e.index>-1;function kR(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const TR=(e,t)=>e?{borderBottomColor:cm.DARK_MODE_BORDER,borderRightColor:cm.DARK_MODE_BORDER,borderLeftColor:cm.DARK_MODE_BORDER,borderTopColor:cm.DARK_MODE_BORDER}:{borderLeftColor:cm.BORDER_MEDIUM,borderRightColor:cm.BORDER_MEDIUM,borderTopColor:cm.BORDER_HEAVY,borderBottomColor:t?cm.BORDER_HEAVY:cm.BORDER_LIGHT},_R=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*MR+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},jR=e=>{var t;return null===(t=e.components)||void 0===t?void 0:t.find((e=>"theme"===e.key))},qR=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),s={fontFamily:o,color:LR(null==r?void 0:r.fontColor)?kR(cm.TEXT,t,null==r?void 0:r.fontColor):i||cm.TEXT,fontSize:(null==r?void 0:r.fontSize)&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...TR(t.background.isDark,n)};return Object.keys(s).forEach((e=>{const t=e;null==s[t]&&delete s[t]})),s};function NR(e,t,r){var n,o,i;const a=null===(n=jR(e))||void 0===n?void 0:n.header,s=qR("header",t,a,r);return s.background=(e=>{if(void 0===e)return;const t=oe(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),s.hoverBackground=fm(null!==(o=s.background)&&void 0!==o?o:cm.WHITE,Gm),s.activeBackground=fm(null!==(i=s.background)&&void 0!==i?i:cm.WHITE,Um),s}const FR=(e,t)=>{var r;const n=null!==(r=e.toLowerCase().match(/<[^>]+>/g))&&void 0!==r?r:[];return n.forEach((e=>e in bR&&Object.assign(t,bR[e]))),t};function zR(e,t,r){var n;const o={};let i={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return null==t||null===(n=t.qValues)||void 0===n||n.forEach(((e,t)=>{const n=e.qText,a=n&&gm(n);a&&"none"!==a&&(o[r[t]]=a),i=n?FR(n,i):i})),o.cellBackgroundColor&&!o.cellForegroundColor&&(o.cellForegroundColor=dm(o.cellBackgroundColor)),{...e,...o,color:o.cellForegroundColor||e.color,background:o.cellBackgroundColor||e.background,fontStyle:i.fontStyle,fontWeight:i.fontWeight,textDecoration:i.textDecoration}}const HR=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},BR=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=HR(e,null==t?void 0:t.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},$R=(e,t,r,n=cm.WHITE)=>{var o;const{backgroundColor:i,backgroundFromStyling:a,sheetColorFromCSS:s}=BR(e,t,r);return null!==(o=xm(a,i,s,n))&&void 0!==o?o:n},VR=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return fR}},WR=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",GR=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?mR:"normal",UR=e=>!1===e?1:3,YR=e=>parseInt(null!=e?e:gR.fontSize,10)*pR,KR=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",XR=(e,t,r,n,o)=>{var i,a,s,l,u,c,d,p,f,m,h,g,b,v,y,x,S,w,E,C,R,O,P,A,I,D,M,L,k,T,_,j,q,N,F,z,H,B,$,V,W,G,U,Y,K,X,J,Z,Q,ee,te,re,ne,oe,ie,ae,se,le,ue,ce,de,pe,fe,me,he,ge,be,ve,ye;const{header:xe,dimensionValues:Se,measureValues:we,totalValues:Ee,nullValues:Ce,grid:Re,content:Oe}=null!==(i=jR(t))&&void 0!==i?i:{},Pe=!0===t.usePagination?cm.WHITE:cm.TRANSPARENT,Ae=$R(n,xe,"object.straightTableV2.dimension.label.name.backgroundColor",Pe),Ie=null!==(a=null!==(s=null===(l=o.viewState)||void 0===l?void 0:l.maxLineCount)&&void 0!==s?s:null==Oe?void 0:Oe.rowHeight)&&void 0!==a?a:n.getStyle("object.straightTableV2","grid","lineClamp"),De={header:{fontFamily:null!==(u=null!==(c=null!==(d=null==xe?void 0:xe.fontFamily)&&void 0!==d?d:n.getStyle("object.straightTableV2.dimension","label.name","fontFamily"))&&void 0!==c?c:r.head.fontFamily)&&void 0!==u?u:hR,fontSize:VR(null!==(p=null!==(f=null==xe?void 0:xe.fontSize)&&void 0!==f?f:n.getStyle("object.straightTableV2.dimension","label.name","fontSize"))&&void 0!==p?p:r.head.fontSize),fontStyle:WR(null==xe?void 0:xe.fontStyle),fontWeight:GR(null==xe?void 0:xe.fontStyle,mR),textDecoration:KR(null==xe?void 0:xe.fontStyle),color:null!==(m=null!==(h=null!==(g=HR(n,null==xe?void 0:xe.fontColor))&&void 0!==g?g:n.getStyle("object.straightTableV2.dimension","label.name","color"))&&void 0!==h?h:r.head.color)&&void 0!==m?m:cm.TEXT,background:Ae},headerMenuHoverBackground:fm(Ae,Gm),headerMenuActiveBackground:fm(Ae,Um),dimension:{values:{fontFamily:null!==(b=null!==(v=null!==(y=null==Se?void 0:Se.fontFamily)&&void 0!==y?y:n.getStyle("object.straightTableV2.dimension","label.value","fontFamily"))&&void 0!==v?v:r.body.fontFamily)&&void 0!==b?b:hR,fontSize:VR(null!==(x=null!==(S=null!==(w=null==Se?void 0:Se.fontSize)&&void 0!==w?w:null==Oe?void 0:Oe.fontSize)&&void 0!==S?S:n.getStyle("object.straightTableV2.dimension","label.value","fontSize"))&&void 0!==x?x:r.body.fontSize),fontStyle:WR(null==Se?void 0:Se.fontStyle),fontWeight:GR(null==Se?void 0:Se.fontStyle,"normal"),textDecoration:KR(null==Se?void 0:Se.fontStyle),color:null!==(E=null!==(C=null!==(R=null!==(O=HR(n,null==Se?void 0:Se.fontColor))&&void 0!==O?O:HR(n,null==Oe?void 0:Oe.fontColor))&&void 0!==R?R:n.getStyle("object.straightTableV2.dimension","label.value","color"))&&void 0!==C?C:r.body.color)&&void 0!==E?E:cm.TEXT,background:null!==(P=null!==(A=BR(n,Se,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor)&&void 0!==A?A:r.body.background)&&void 0!==P?P:cm.TRANSPARENT}},measure:{values:{fontFamily:null!==(I=null!==(D=null!==(M=null==we?void 0:we.fontFamily)&&void 0!==M?M:n.getStyle("object.straightTableV2.measure","label.value","fontFamily"))&&void 0!==D?D:r.body.fontFamily)&&void 0!==I?I:hR,fontSize:VR(null!==(L=null!==(k=null!==(T=null==we?void 0:we.fontSize)&&void 0!==T?T:null==Oe?void 0:Oe.fontSize)&&void 0!==k?k:n.getStyle("object.straightTableV2.measure","label.value","fontSize"))&&void 0!==L?L:r.body.fontSize),fontStyle:WR(null==we?void 0:we.fontStyle),fontWeight:GR(null==we?void 0:we.fontStyle,"normal"),textDecoration:KR(null==we?void 0:we.fontStyle),color:null!==(_=null!==(j=null!==(q=null!==(N=HR(n,null==we?void 0:we.fontColor))&&void 0!==N?N:HR(n,null==Oe?void 0:Oe.fontColor))&&void 0!==q?q:n.getStyle("object.straightTableV2.measure","label.value","color"))&&void 0!==j?j:r.body.color)&&void 0!==_?_:cm.TEXT,background:null!==(F=null!==(z=BR(n,we,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor)&&void 0!==z?z:r.body.background)&&void 0!==F?F:cm.TRANSPARENT}},totalRow:{fontFamily:null!==(H=null!==(B=null!==($=null==Ee?void 0:Ee.fontFamily)&&void 0!==$?$:n.getStyle("object.straightTableV2.total","label.value","fontFamily"))&&void 0!==B?B:r.totals.fontFamily)&&void 0!==H?H:hR,fontSize:VR(null!==(V=null!==(W=null!==(G=null==Ee?void 0:Ee.fontSize)&&void 0!==G?G:null==Oe?void 0:Oe.fontSize)&&void 0!==W?W:n.getStyle("object.straightTableV2.total","label.value","fontSize"))&&void 0!==V?V:r.totals.fontSize),fontStyle:WR(null==Ee?void 0:Ee.fontStyle),fontWeight:GR(null==Ee?void 0:Ee.fontStyle,mR),textDecoration:KR(null==Ee?void 0:Ee.fontStyle),color:null!==(U=null!==(Y=null!==(K=null!==(X=HR(n,null==Ee?void 0:Ee.fontColor))&&void 0!==X?X:HR(n,null==Oe?void 0:Oe.fontColor))&&void 0!==K?K:n.getStyle("object.straightTableV2.total","label.value","color"))&&void 0!==Y?Y:r.totals.color)&&void 0!==U?U:cm.TEXT,background:$R(n,Ee,"object.straightTableV2.total.label.value.backgroundColor",Pe)},nullValues:{fontStyle:WR(null==Ce?void 0:Ce.fontStyle),fontWeight:GR(null==Ce?void 0:Ce.fontStyle,"normal"),textDecoration:KR(null==Ce?void 0:Ce.fontStyle),color:null!==(J=null!==(Z=null!==(Q=null!==(ee=HR(n,null==Ce?void 0:Ce.fontColor))&&void 0!==ee?ee:HR(n,null==Oe?void 0:Oe.fontColor))&&void 0!==Q?Q:n.getStyle("object.straightTableV2.null","label.value","color"))&&void 0!==Z?Z:r.body.color)&&void 0!==J?J:cm.TEXT,background:null!==(te=null!==(re=HR(n,null==Ce?void 0:Ce.background))&&void 0!==re?re:n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor"))&&void 0!==te?te:cm.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:null!=Ie?Ie:UR(null===(ne=t.multiline)||void 0===ne?void 0:ne.wrapTextInCells),headerLineClamp:UR(null===(oe=t.multiline)||void 0===oe?void 0:oe.wrapTextInHeaders),border:null!==(ie=null!==(ae=HR(n,null==Re?void 0:Re.border))&&void 0!==ae?ae:n.getStyle("object.straightTableV2","grid","borderColor"))&&void 0!==ie?ie:n.background.isDark?cm.DARK_MODE_BORDER:cm.BORDER_MEDIUM,divider:null!==(se=null!==(le=HR(n,null==Re?void 0:Re.divider))&&void 0!==le?le:n.getStyle("object.straightTableV2.grid","","divider.borderColor"))&&void 0!==se?se:cm.BORDER_HEAVY,hoverColors:{color:null!==(ue=null!==(ce=HR(n,null==Oe?void 0:Oe.hoverFontColor))&&void 0!==ce?ce:n.getStyle("object.straightTableV2","","grid.hover.color"))&&void 0!==ue?ue:null===(de=r.body.hoverColors)||void 0===de?void 0:de.color,background:null!==(pe=null!==(fe=HR(n,null==Oe?void 0:Oe.hoverColor))&&void 0!==fe?fe:n.getStyle("object.straightTableV2","","grid.hover.backgroundColor"))&&void 0!==pe?pe:null===(me=r.body.hoverColors)||void 0===me?void 0:me.background},zebraStripes:{show:!!e.flags.isEnabled("CLIENT_VNA_10_ZEBRA_STRIPES")&&!(null==Re||null===(he=Re.zebraStripes)||void 0===he||!he.show),odd:{color:HR(n,null==Re||null===(ge=Re.zebraStripes)||void 0===ge||null===(ge=ge.color)||void 0===ge?void 0:ge.odd),background:HR(n,null==Re||null===(be=Re.zebraStripes)||void 0===be||null===(be=be.background)||void 0===be?void 0:be.odd)},even:{color:HR(n,null==Re||null===(ve=Re.zebraStripes)||void 0===ve||null===(ve=ve.color)||void 0===ve?void 0:ve.even),background:HR(n,null==Re||null===(ye=Re.zebraStripes)||void 0===ye||null===(ye=ye.background)||void 0===ye?void 0:ye.even)},overrideNullValueBackground:void 0===HR(n,null==Ce?void 0:Ce.background),overrideNullValueColor:void 0===HR(n,null==Ce?void 0:Ce.fontColor)},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:pm(n),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:Ie},{headerMinRowHeight:Me,totalRowLineHeight:Le,totalRowMinHeight:ke,contentLineHeight:Te,contentMinRowHeight:_e}=(e=>{const t=Math.max(YR(e.header.fontSize)+8,32),r=YR(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(YR(e.dimension.values.fontSize),YR(e.measure.values.fontSize)),i=(e.contentStaticLineCount||1)*o;return{headerMinRowHeight:t,totalRowLineHeight:r,totalRowMinHeight:n,contentLineHeight:o,contentMinRowHeight:Math.max(i+8+1,24)}})(De);return De.headerMinRowHeight=Me,De.totalRowLineHeight=Le,De.totalRowMinHeight=ke,De.contentLineHeight=Te,De.contentMinRowHeight=_e,De},JR=(e,t,r,n)=>{const o=C((()=>{const o=r.totalsPosition.atTop,i=function(e,t,r,n){var o;const i=null===(o=jR(e))||void 0===o?void 0:o.content,a=qR("content",t,i);a.background=t.background.color;const s=_R(a.fontSize,r,n),l=null==i?void 0:i.hoverColor,u=null==i?void 0:i.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),d=t.getStyle("object","","straightTableV2.content.hover.color"),p=LR(u)||!!d,f=LR(l)||!!c,m=p||f;let h;h=LR(l)?kR(cm.HOVER,t,l):c||(p?"":cm.HOVER);const g=m?kR(dm(h),t,u):"";return{...a,lastRowBottomBorder:s,hoverColors:{background:h,color:g}}}(e,t,r.rows.length,n),a=NR(e,t,!o),s=function(e,t,r){var n;const o=null===(n=jR(e))||void 0===n?void 0:n.content,i=qR("content",t,o),{borderBottomColor:a,borderTopColor:s,background:l}=NR(e,t,r);return{...i,borderBottomColor:a,background:l,borderTopColor:s}}(e,t,o);return{body:i,head:a,totals:s}}),[e,t,r,n]);return o},ZR=new Map;const QR=M({}),eO=function(e){const t=M([()=>{},new Set]);return ZR.set(e,t),({children:r,value:n})=>{const o=L(n),i=L(new Set);R((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=k((()=>o.current),[o]),s=C((()=>[a,i.current]),[a]);return nr.jsx(e.Provider,{value:n,children:nr.jsx(t.Provider,{value:s,children:r})})}}(QR),tO={rows:[],columns:[],totalsPosition:{}},rO=({app:e,children:t,tableData:r=tO,selectionsAPI:n,cellCoordMock:o,layout:i,model:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,setPage:h,pageInfo:g,initialDataPages:b,rect:v,viewService:y,downloadService:x,env:S,direction:w})=>{const[R,O]=E(0),[P,A]=E(o||vE),[I,M]=((e,t)=>{const[r,n]=D(DR,{pageRows:e,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(r.rows,n),[L,k]=E(-1),T=JR(i,u,r,d),_=((e,t,r,n,o)=>C((()=>XR(e,t,r,n,o)),[t,r,e,n,o]))(S,i,T,u,y),[j,q,N,F]=((e,t,r,n)=>{const o=t.atBottom||t.atTop,i=Pm({...n.header,fontWeight:mR},{maxNbrLinesOfText:3}).measureText,a=Pm({...n.totalRow,fontWeight:mR},{maxNbrLinesOfText:3}).measureText,{estimateWidth:s}=Pm(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:l}=Pm(n.measure.values,{maxNbrLinesOfText:3}),u=C((()=>(e,t,r,n,u,c)=>{let d=25;d+=28,n&&(d+=24),u&&(d+=20);const p=c?s:l;return Math.max(i(e)+d,o?a(t)+24+1:0,p(r))}),[s,l,i,a,o]),[c,d]=E(0),[p,f]=E((()=>yR(e,r,u)));Lm((()=>{f(yR(e,r-c,u))}),[e,r,c,u]);const m=C((()=>((e,t,r)=>e.length>0&&e.reduce(((e,t)=>e+t))+t<r)(p,c,r)),[p,c,r]);return[p,f,d,m]})(r.columns,r.totalsPosition,v.width,_),z=C((()=>({app:e,selectionsAPI:n,layout:i,model:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,rect:v,viewService:y,styleService:_,direction:w,downloadService:x})),[e,n,i,a,s,l,u,c.active,d,p,f,m,v,y,_,w,x]);return nr.jsx(eO,{value:{headRowHeight:R,setHeadRowHeight:O,focusedCellCoord:P,setFocusedCellCoord:A,selectionState:I,selectionDispatch:M,hoverIndex:L,setHoverIndex:k,columnWidths:j,setColumnWidths:q,baseProps:z,tableData:r,setYScrollbarWidth:N,setPage:h,pageInfo:g,initialDataPages:b,showRightBorder:F,env:S},children:t})};function nO(e,t){const r=function(e){return ZR.get(e)}(e),[n,o]=w(r),[,i]=D((e=>e+1),0),a=L(t),s=L(),l=n();if(void 0===l)throw new Error("You must call useContextSelector inside a valid context.");const u=C((()=>t(l)),[l,t]);return R((()=>{a.current=t,s.current=u}),[l,u,t]),R((()=>{const e=e=>{a.current(e)!==s.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function oO(e){var t;const r=uR();return null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),US({...r,direction:e})}const iO={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},aO={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},sO=ku("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t,dir:r})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===r?"-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":{...iO},"&::-moz-range-track":{...iO},"&::-ms-track":{...iO},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...aO},"&::-moz-range-thumb":{...aO},"&::-ms-thumb":{...aO},"&: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"}}))),lO=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:u,accessibilityRelatedArgs:c,direction:d="ltr"})=>{const p=Tm({translator:c.translator}),f=L({initWidth:e,columnWidth:e,initX:0}),m=r?0:1,h=n&&!u,g=()=>h?f.current.columnWidth-m:"100%",b={left:"rtl"!==d?g():void 0,right:"rtl"===d?g():void 0},v=t=>{f.current={initWidth:e,columnWidth:e,initX:null!=t?t:f.current.initX}};Lm((()=>{h&&v()}),[e]);const y=e=>{const t=Math.max(e,Vm.PixelsMin);f.current.columnWidth=t,i(t)},S=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:Wm.Pixels,pixels:f.current.columnWidth};a(e)}else null==l||l(!1)},w=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},E=e=>{vm(e),document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",E),S()},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)},R=e=>{vm(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",R),S()},O=!n&&s?e=>{if(e.key===Bm.Left||e.key===Bm.Right){vm(e);const t=5,r=e.key===Bm.Left?t:-5,n="rtl"===d?r:-r;y(f.current.columnWidth+n)}else e.key===Bm.Space||e.key===Bm.Enter?(vm(e),s(e),S()):e.key===Bm.Esc&&(vm(e),s(e),y(f.current.initWidth))}:void 0,P=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return x.createElement(sO,{style:b,key:t,hoverColor:o,isLastColumn:r,className:$m,"data-testid":$m,onMouseDown:e=>{vm(e),document.addEventListener("mousemove",w),document.addEventListener("mouseup",E),null==l||l(!0),v(e.clientX)},onDoubleClick:()=>{a({type:Wm.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(vm(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",R),null==l||l(!0),v(e.touches[0].clientX))},onKeyDown:O,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,max:Vm.PixelsMax,"aria-label":P,"aria-valuemin":Vm.PixelsMin,"aria-valuemax":Vm.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d})};function uO(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cO(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const dO=(e,t)=>nr.jsx("svg",cO(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){uO(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),pO=T(dO);function fO(){return fO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fO.apply(null,arguments)}const mO=ku(Ud,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),hO=ku(pO,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),gO=ku(vf)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),bO=ku(mp)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),vO=ku(Ef)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),yO=ku(Ef,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:r?"rgba(0, 0, 0, 0.05)":"transparent"}))),xO=ku("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),SO=ku("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),wO=ku(Zc)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),EO=ku(Vp,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({width:16,minWidth:"unset !important",marginRight:r||"rtl"!==t?e.spacing(1.5):0,marginLeft:r||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})));function CO(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RO(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const OO=(e,t)=>nr.jsx("svg",RO(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){CO(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),PO=T(OO),AO=e=>{const t=e.nextElementSibling;var r;return t?"HR"===t.tagName?AO(t):t:null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[0]},IO=e=>{const t=e.previousElementSibling;if(!t){var r,n;const t=null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r.length;return null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[t-1]}return"HR"===t.tagName?IO(t):t},DO=e=>{var t;const{key:r,currentTarget:n}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:n;if(r===Bm.Down||r===Bm.Up){const t=e=>r===Bm.Down?AO(e):IO(e);e.preventDefault(),e.stopPropagation();let n=t(o);for(;n;){if("true"!==n.ariaDisabled){n.focus();break}n=t(n)}}};let MO={};const LO=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:u,isPagination:c})=>{const[d,p]=E(!1),f=L(null),m=k((e=>{e.stopPropagation(),p(!1)}),[p]);return x.createElement(x.Fragment,null,x.createElement(yO,{ref:a?f:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),MO={}),null!=a&&a.length&&(p(!0),MO[n]=p))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:DO},l?x.createElement(xO,{direction:u,isPagination:c}):null,x.createElement(SO,null,x.createElement(EO,{direction:u,isPagination:c},x.createElement(o,null)),x.createElement(wO,{variant:"body2"},n)),null!=a&&a.length?x.createElement(PO,null):null),null!=a&&a.length?x.createElement(_O,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:m,menuGroups:(h=a,g=MO,h.map((e=>e.map((e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(g).forEach((([,e])=>{e(!1)})),await e(t)}}:{}})))})))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null);var h,g},kO=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&x.createElement(vO,{key:e.groupHeading,disabled:!0,style:{opacity:1}},e.groupHeading),e.items.map((e=>x.createElement(LO,fO({key:e.id},e,{isSubMenu:t,direction:r,isPagination:n}))))].filter(Boolean)])),TO={appear:0,enter:0,exit:0},_O=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?x.createElement(gO,fO({className:Fm,open:t,anchorEl:e,onClose:r,transitionDuration:TO,MenuListProps:{id:zm}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{},{dir:s}),(({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[kO({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?x.createElement(bO,{"data-testid":"group-divider",variant:"middle"}):void 0])))({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})):null,jO=(e,t)=>e.some((e=>t[e]>0)),qO={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},NO=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=E(null),[a,s]=E(qO);return Lm((()=>{e||(s(qO),i(null))}),[e]),R((()=>{if(null==n||!n.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{var e,u,c;const d=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(t,r),p=await n.createSessionObject(d),f=await p.getLayout(),{qStateCounts:m}=null!==(e=null===(u=f.qListObject)||void 0===u?void 0:u.qDimensionInfo)&&void 0!==e?e:{};o=null===(c=f.qInfo)||void 0===c?void 0:c.qId,a?l():(i(p),m&&s((e=>({canSelectAll:jO(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:jO(["qSelected"],e),canSelectPossible:jO(["qOption"],e),canSelectAlternative:jO(["qAlternative"],e),canSelectExcluded:jO(["qAlternative","qExcluded"],e)}))(m)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}};function FO(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zO(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const HO=(e,t)=>nr.jsx("svg",zO(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){FO(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.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"})})),BO=T(HO);function $O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VO(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const WO=(e,t)=>nr.jsx("svg",VO(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){$O(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.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 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"})})),GO=T(WO);function UO(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YO(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const KO=(e,t)=>nr.jsx("svg",YO(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){UO(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.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"})})),XO=T(KO);function JO(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZO(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const QO=(e,t)=>nr.jsx("svg",ZO(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){JO(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.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"})})),eP=T(QO);function tP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rP(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const nP=(e,t)=>nr.jsx("svg",rP(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){tP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.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.454.858v6.484a1 1 0 0 1-.576.906L8.5 14.663V7.17z"})})),oP=T(nP);function iP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aP(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const sP=(e,t)=>nr.jsx("svg",aP(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){iP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.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"})})),lP=T(sP);function uP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cP(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const dP=(e,t)=>nr.jsx("svg",cP(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){uP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.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"})})),pP=T(dP);function fP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mP(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const hP=(e,t)=>nr.jsx("svg",mP(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){fP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.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"})})),gP=T(hP);function bP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vP(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const yP=(e,t)=>nr.jsx("svg",vP(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){bP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.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"})})),xP=T(yP);function SP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wP(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const EP=(e,t)=>nr.jsx("svg",wP(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){SP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.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"})})),CP=T(EP);function RP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OP(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const PP=(e,t)=>nr.jsx("svg",OP(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){RP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.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"})})),AP=T(PP);function IP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DP(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const MP=(e,t)=>nr.jsx("svg",DP(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){IP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.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"})})),LP=T(MP);function kP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TP(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const _P=(e,t)=>nr.jsx("svg",TP(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){kP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.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"})})),jP=T(_P);function qP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NP(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const FP=(e,t)=>nr.jsx("svg",NP(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){qP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.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"})})),zP=T(FP);let HP=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const BP="/qListObjectDef",$P=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[HP.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"A")),n(!1)},icon:BO,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"D")),n(!1)},icon:eP,enabled:s,isActive:!!r&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:gP,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:oP,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&null!=i&&i.select){const e=[];r[HP.Searching]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:xP,enabled:!0}]}]),r[HP.Selections]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:zP,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectListObjectAll(BP))},icon:CP,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectListObjectPossible(BP))},icon:jP,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectListObjectAlternative(BP))},icon:AP,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectListObjectExcluded(BP))},icon:LP,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.clearSelections(BP))},icon:GO,enabled:l.canClearSelections}]}]]}]}]),p&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:pP,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:lP,enabled:!0}]}]),e.length>0&&f.push(...e)}return r[HP.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),null==c||c(u)},icon:XO,enabled:!0}]}]),f},VP=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:u,selectionRelatedArgs:c,adjustHeaderSizeRelatedArgs:d,expandOrCollapseArgs:p,model:f,direction:m="ltr",isPagination:h})=>{var g;const b=Tm({translator:o}),{qLibraryId:v,fieldId:y,headTextAlign:S}=n,w=null==c?void 0:c.app,{fieldInstance:E,selectionActionsEnabledStatus:C}=NO({open:e,headerData:n,app:w,qStateName:null==c?void 0:c.qStateName});let R=null;if(f&&"setActiveField"in f&&void 0!==n.dimensionInfoIndex){const e=n.dimensionInfoIndex;R=async t=>{try{await f.setActiveField("/qHyperCubeDef",e,t)}catch(e){console.error(e)}}}const O=k((()=>{const e=v?{qLibraryId:v,type:"dimension"}:y;if(null!=u&&u.embed){const{embed:t,listboxRef:r}=u;t.__DO_NOT_USE__.popover(r.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===m?"right":"left"},sortCriteria:u.sortCriteria,stateName:null==c?void 0:c.qStateName,direction:m})}}),[v,y,u,null==c?void 0:c.qStateName,m]),P=k((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?x.createElement(mO,{rightAligned:"right"===S,shouldShowMenuIcon:s,className:Nm},s?x.createElement(hO,{height:jm,className:qm,"data-testid":qm,isInteractionsActive:null!==(g=i.active)&&void 0!==g&&g},x.createElement(pO,null)):null,x.createElement(_O,{open:e,anchorEl:r.current,onClose:P,menuGroups:$P({headerData:n,translator:b,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:O,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:C,anchorRef:r,focusColumnAdjuster:null==d?void 0:d.focusColumnAdjuster,setActiveFieldCallback:R,expandOrCollapseArgs:p}),direction:m,isPagination:h})):null},WP=e=>e.isDark?{background:e.color,borderColor:cm.DARK_MODE_BORDER,color:cm.DARK_MODE_TEXT,disabledColor:cm.DARK_MODE_DISABLED,iconColor:cm.DARK_MODE_TEXT}:{background:e.color,borderColor:cm.BORDER_MEDIUM,color:cm.TEXT,disabledColor:cm.DISABLED},GP=ku(Ud,{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}`}))),UP=ku(nm,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),YP=ku(np,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)}))),KP=ku(Zc)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),XP=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=C((()=>WP(n.background)),[n]);if(!r.active)return null;const a=o?x.createElement(GP,{footerStyle:i},e):null;return t?z.createPortal(e,t):a},JP=M({}),ZP=()=>w(JP),QP=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=C((()=>WP(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=Tm({translator:d}),S=C((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:m,layout:h,footerStyle:b,tabIndex:g,width:v})),[t,r,n,o,i,a,s,l,u,c,y,p,f,m,h,b,g,v]);return x.createElement(JP.Provider,{value:S},e)};let eA=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),tA=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});function rA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nA(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const oA=(e,t)=>nr.jsx("svg",nA(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){rA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),iA=T(oA);function aA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sA(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const lA=(e,t)=>nr.jsx("svg",sA(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){aA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),uA=T(lA);function cA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dA(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const pA=(e,t)=>nr.jsx("svg",dA(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){cA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),fA=T(pA),mA={FirstPage:uA,PreviousPage:iA,NextPage:PO,LastPage:fA,FirstPageRTL:fA,PreviousPageRTL:PO,NextPageRTL:iA,LastPageRTL:uA},hA=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=ZP(),u=r.concat("rtl"===n?"RTL":""),c=mA[u];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:s.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:l,onClick:e?void 0:()=>{i(t)}},IconComponent:c}},gA=()=>{const{pageInfo:e,width:t}=ZP(),r=0===e.page,{IconComponent:n,styledProps:o}=hA({type:eA.FirstPage,disabledCondition:r,pageNumber:0});return t<=tA.FirstPage?null:x.createElement(YP,o,x.createElement(n,{height:jm}))},bA=(e,t,r=!1)=>{r&&e.key===Bm.Tab&&!e.shiftKey&&(vm(e),bm(e.target,t,!1))},vA=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=ZP(),i=e.page>=r-1,{IconComponent:a,styledProps:s}=hA({type:eA.LastPage,disabledCondition:i,pageNumber:r-1}),l=t.enabled?e=>{bA(e,t,n)}:void 0;return o<=tA.LastPage?null:x.createElement(YP,fO({},s,{onKeyDown:l}),x.createElement(a,{height:jm}))},yA=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=ZP(),i=e.page>=r-1,{IconComponent:a,styledProps:s}=hA({type:eA.NextPage,disabledCondition:i,pageNumber:e.page+1}),l=!(o>tA.FirstPage&&o>tA.LastPage)&&t.enabled?e=>{bA(e,t,n)}:void 0;return x.createElement(YP,fO({},s,{onKeyDown:l}),x.createElement(a,{height:jm}))},xA=()=>{const{pageInfo:e}=ZP(),t=0===e.page,{IconComponent:r,styledProps:n}=hA({type:eA.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return x.createElement(YP,n,x.createElement(r,{height:jm}))},SA=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=ZP(),{page:o,rowsPerPage:i}=r;if(t<=tA.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return x.createElement(KP,{variant:"caption",dir:"ltr"},a)},wA=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s}=ZP(),l=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${l}`,p={tabIndex:s,id:`${c}-${l}`,"data-testid":c,"aria-labelledby":d};return x.createElement(x.Fragment,null,x.createElement(KP,{variant:"caption",id:d},u,":"),x.createElement(UP,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:p},r))},EA=()=>{var e;const{pageInfo:t,isSelectionMode:r,totalColumnCount:n,width:o,handleChangeRowsPerPage:i}=ZP();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!r&&o>tA.RowsPerPage&&n<=100)||void 0===t.rowsPerPageOptions)return null;const a=x.createElement(x.Fragment,null,t.rowsPerPageOptions.map((e=>x.createElement("option",{key:e,value:e},e))));return x.createElement(wA,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},CA=1e3,RA="…",OA=({totalPages:e,page:t})=>{const r=Math.min(e,CA),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-CA):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return x.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(x.createElement("option",{key:"startMoreOptions",value:RA,disabled:!0},RA)),o<e-1&&a.push(x.createElement("option",{key:"endMoreOptions",value:RA,disabled:!0},RA)),x.createElement(x.Fragment,null,a)},PA=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=ZP(),{page:o}=e;if(t<=tA.SelectPage)return null;const i=x.createElement(OA,{totalPages:r,page:o});return x.createElement(wA,{name:"SelectPage",value:o,options:i,handleChange:e=>{n(+e.target.value)}})};var AA=_((e=>x.createElement(QP,e,x.createElement(EA,null),x.createElement(PA,null),x.createElement(SA,null),x.createElement(gA,null),x.createElement(xA,null),x.createElement(yA,null),x.createElement(vA,null))));const IA=e=>x.createElement(XP,e,x.createElement(AA,e)),DA={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},MA=Rw(cC,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.color}))),LA=Rw("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e})((({lineClamp:e,isHeadCell:t=!1,isPagination:r=!1,isNumeric:n=!1})=>n||1===e&&!t?{...DA,whiteSpace:"nowrap",display:r?"block":void 0}:{...DA,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}));function kA(e,t){const r=L(!1);R((()=>{r.current?e():r.current=!0}),t)}const TA=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),_A=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),jA=e=>e.atTop?2:1,qA=(e,t)=>{var r;return null===(r=e.getElementsByClassName("sn-table-row")[t[0]])||void 0===r?void 0:r.getElementsByClassName("sn-table-cell")[t[1]]},NA=e=>null==e?void 0:e.setAttribute("tabIndex","0"),FA=e=>null==e?void 0:e.setAttribute("tabIndex","-1"),zA=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(FA)},HA=e=>{null==e||e.focus(),NA(e)},BA=e=>{setTimeout((()=>{var t;const r=null===(t=e.current)||void 0===t||null===(t=t.closest(".sn-table-cell"))||void 0===t?void 0:t.querySelector(`.${$m}`);HA(r)}),0)},$A=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{zA(t);const a=((e,t,r,n,o={top:0,bottom:0})=>{const i=o.top>0,a=o.top,s=t.getElementsByClassName("sn-table-row").length-1-o.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[u,c]=r;switch(e.key){case Bm.Down:u<s&&u++;break;case Bm.Up:u>a&&u--;break;case Bm.Right:if(i)break;[u,c]="rtl"===n?TA({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):_A({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case Bm.Left:if(i)break;[u,c]="rtl"===n?_A({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):TA({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case Bm.Home:(wR(e)||i)&&(u=a),i||(c=0);break;case Bm.End:(wR(e)||i)&&(u=s),i||(c=l);break;case Bm.PageDown:u=Math.min(s,u+10);break;case Bm.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=qA(t,a);return HA(s),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(null==r||!r.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{const e=t.getElementsByClassName("sn-table-head-cell")[0],i=t.getElementsByClassName("sn-table-row")[n].getElementsByClassName("sn-table-cell")[o];if(!i||!e)return;if(i.offsetTop-e.offsetHeight<r.scrollTop){const t=r.scrollTop-i.offsetHeight-e.offsetHeight;r.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(a,t),n(a),{nextCell:s,nextCellCoord:a}},VA=(e,t,r,n)=>{var o;(zA(t),r(e),n.enabled&&!n.active)?null===(o=n.focus)||void 0===o||o.call(n):HA(qA(t,e))},WA=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!(null==n||!n.contains(o)),a=null==o?void 0:o.closest(`.${Fm}`);var s;!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${Ww.First}`),r=e.querySelector(`.${Ww.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),null===(s=r.blur)||void 0===s||s.call(r,!1))},GA=()=>{const{downloadService:e}=nO(QR,(e=>e.baseProps));R((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))},UA=(e,t,r)=>{const{rootElement:n,keyboard:o}=nO(QR,(e=>e.baseProps)),{totalColumnCount:i,totalRowCount:a,rows:s,totalsPosition:l}=nO(QR,(e=>e.tableData)),u=nO(QR,(e=>e.focusedCellCoord)),c=nO(QR,(e=>e.setFocusedCellCoord)),d=nO(QR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()}));kA((()=>{const r=((e,t,r=!1)=>{const n=[jA(t),e[1]];return r?n:vE})(u,l,d);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(zA(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=qA(t,e);var l;r.current?(HA(s),r.current=!1):NA(s),n&&(a({keys:[null!==(l=null==s?void 0:s.textContent)&&void 0!==l?l:""]}),SR(a,s,n))})({resetCellCoord:r,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:d,keyboard:o,announce:t})}),[s.length,a,i,r])},YA=(e,t,r)=>{R((()=>{const n=e.current;if(!n)return;const o=e=>{((e,t,r)=>{if(0===e.deltaX)return;e.stopPropagation();const n=r.scrollWidth-r.offsetWidth;let{scrollLeft:o}=r,i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(n,i)):Math.max(0,Math.min(n,i)))})(e,"rtl"===t,n)},i=e=>{var t;r.scrollLeft=(null===(t=e.currentTarget)||void 0===t?void 0:t.scrollLeft)||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}}),[e,t,r])},KA=e=>{vm(e),wR(e)&&Jm(e.currentTarget)},XA=e=>{OR(e.evt)&&(vm(e.evt),$A(e))},JA=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!OR(t))return;vm(t);const i=((e,t)=>[e.pageRowIdx+jA(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?jA(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=$A({...e,cellCoord:i,allowedRows:a});l[0]!==i[0]&&(({evt:e,isSelectionsEnabled:t,cell:r,selectionDispatch:n,announce:o,isSelectionMode:i,nextCell:a})=>{e.shiftKey&&t&&r.isSelectable?n({type:$w.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):SR(o,a,i)})({...e,nextCell:s})},ZA=e=>{const{evt:t}=e;ER(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{vm(e);const a=Math.ceil(t/r)-1;e.key===Bm.Right&&n<a?(o(),i(n+1)):e.key===Bm.Left&&n>0&&(o(),i(n-1))})(e):t.key===Bm.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{var n;t.enabled&&!r&&(vm(e),null===(n=t.blur)||void 0===n||n.call(t,!0))})(e):CR(t.key)&&vm(t)},QA=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(Bw.Disabled))return void vm(t);const n={...e,isSelectionMode:!(null==r||!r.isModal())};switch(t.key){case Bm.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{vm(e),t.isSelectable&&r&&n({type:$w.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case Bm.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{vm(r),e&&(null==t||t.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case Bm.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(vm(r),null==t||t.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case Bm.C:KA(t);break;case Bm.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(vm(e),bm(e.currentTarget,t,e.shiftKey))})(n);break;default:JA(n)}},eI=e=>{const{layout:t,rect:r,theme:n}=nO(QR,(e=>e.baseProps)),[o,i]=E(0),[a,s]=E(0);return j((()=>{if(e.current){const{offsetWidth:t=0,offsetHeight:r=0,clientWidth:n=0,clientHeight:o=0}=e.current,a=r-o;s(t-n),i(a)}}),[e,t,r,n]),{xScrollbarWidth:o,yScrollbarWidth:a}},tI=Rw("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),rI=Rw(WC,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"}))),nI=Rw(IC,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),oI=()=>nr.jsxs(nr.Fragment,{children:[nr.jsx(tI,{className:Ww.First,"data-testid":Ww.First,"aria-live":"polite","aria-atomic":"true"}),nr.jsx(tI,{className:Ww.Second,"data-testid":Ww.Second,"aria-live":"polite","aria-atomic":"true"})]}),iI=e=>{const t=L(new Map),r=L(null);R((()=>{r.current=e(t.current),t.current.forEach(((e,t)=>{var n;null===(n=r.current)||void 0===n||n.observe(t)}));const n=t.current,o=r.current;return()=>{o.disconnect(),n.clear()}}),[e,r,t]);const n=k(((e,n)=>{var o;t.current.set(e,n),null===(o=r.current)||void 0===o||o.observe(e)}),[t,r]),o=k((e=>{var n;t.current.delete(e),null===(n=r.current)||void 0===n||n.unobserve(e)}),[r,t]);return C((()=>({addTask:n,removeTask:o})),[n,o])},aI=e=>new ResizeObserver((t=>{t.forEach((t=>{const r=e.get(t.target);null==r||r(t)}))})),sI=()=>iI(aI),lI=({selectionsAPI:e,selectionDispatch:t,updateShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{R((()=>{const i=()=>{t({type:$w.Reset})},a=()=>{t({type:$w.Clear})},s=()=>{var e;if(null!==(e=o.current)&&void 0!==e&&e.contains(document.activeElement))r();else if(n.enabled){var t;null===(t=n.blur)||void 0===t||t.call(n,!0)}i()};return null==e||e.on("deactivated",i),null==e||e.on("canceled",i),null==e||e.on("confirmed",s),null==e||e.on("cleared",a),()=>{null==e||e.removeListener("deactivated",i),null==e||e.removeListener("canceled",i),null==e||e.removeListener("confirmed",s),null==e||e.removeListener("cleared",a)}}),[e,n,t,r,o])},uI=e=>{e.stopPropagation()},cI=({href:e,text:t,interactions:r,color:n})=>x.createElement(Tp,(({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:uI,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}}))({href:e,text:t,interactions:r,color:n}),t);var dI,pI;const fI=null!==(dI=window.requestIdleCallback)&&void 0!==dI?dI:e=>setTimeout((()=>{e({})}),0),mI=null!==(pI=window.cancelIdleCallback)&&void 0!==pI?pI:e=>{clearTimeout(e)},hI="qDimensionInfo/0",gI="qMeasureInfo/0",bI="x",vI="y",yI=e=>({key:"bars",type:"box",data:{extract:{field:hI,props:{start:0,end:{field:gI}}}},settings:{major:{scale:bI},minor:{scale:vI},box:{maxWidthPx:8,fill:{fn:e}}}}),xI=e=>({key:"p",type:"point",data:{extract:{field:hI,props:{y:{field:gI}}}},settings:{x:{scale:bI},y:{scale:vI},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),SI=({qNum:e})=>void 0===e?0:Math.sign(e),wI=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=hm(e,null==t?void 0:t.negative,r),a=hm(e,null==t?void 0:t.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:hI,props:{start:0,end:{field:gI,value:SI}}}},settings:{major:{scale:bI},minor:{scale:vI},box:{maxWidthPx:8,fill:{fn:e=>-2===e.datum.value?n:-3===e.datum.value?o:0===e.datum.end.value?"#DDDDDD":Math.sign(e.datum.end.value)<0?i:a}}}}},EI=(e,{type:t,showDots:r,colors:n,colorMin:o,colorMax:i})=>{const a=((e,t,r,n)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),s=hm(e,null==t?void 0:t.main,o),l=hm(e,null==t?void 0:t.max,s),u=hm(e,null==t?void 0:t.min,s),c=hm(e,null==t?void 0:t.first,s),d=hm(e,null==t?void 0:t.last,s);return e=>{const t=vI in e.datum?vI:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=n?l:e.datum[t].value<=r?u:e.data.items.at(0)===e.datum?c:e.data.items.at(-1)===e.datum?d:s}})(e,n,o,i);switch(t){case"bars":return[yI(a)];case"dots":return[xI(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:hI,props:{v:{field:gI}}}},settings:{coordinates:{major:{scale:bI},minor:{scale:vI,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(hm(e,null==n?void 0:n.main,e.getDataColorSpecials().primary));return r?[t,xI(a)]:[t]}case"posNeg":return[wI(e,n)];default:return[]}},CI=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"}),RI=(e,t,r,n)=>({y:{data:{field:gI},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:hI}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),OI=$();OI.use(B),OI.renderer.prio(["canvas"]);const PI={resolve:()=>{},promise:{}},AI=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=L(e.isDownloadedAsPDForImage?vt():PI);return{addChartPromiseToQueue:k((()=>{e.waitForPromise(t.current.promise)}),[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:k((()=>{if(null===t.current||null!==e.current)return;u();r.current=fI((()=>{t.current&&(e.current=(({element:e,theme:t,isSnapshot:r,miniChartData:n,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:s,minY:l,maxY:u}=n;return OI.chart({element:e,data:{type:"q",key:"qHyperCube",data:CI(s)},settings:{scales:RI(a,l,u,i),components:EI(t,n),strategy:r?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:n,isSnapshot:o,miniChartData:a,direction:i,onChartRendered:l}))}),{timeout:2e3})}),[t,e,u,r,n,o,a,i,l]),safeCancelIdleCallback:k((()=>{null!==r.current&&mI(r.current),r.current=null,l()}),[r,l])}},II=e=>{const t=L(null),r=L(!1);return k((n=>{var o,i;const a=null!==(o=null===(i=n.contentBoxSize.at(0))||void 0===i?void 0:i.inlineSize)&&void 0!==o?o:0;(e=>{e.current&&(mI(e.current),e.current=null)})(t),r.current?0!==a?null!==e.current&&(t.current=fI((()=>{var t;null===(t=e.current)||void 0===t||t.update()}),{timeout:2e3})):r.current=!1:r.current=!0}),[e])},DI=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=L(null),l=L(null),u=L(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=AI({element:s,chart:l,requestId:u,theme:r,isSnapshot:n,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:r,renderChartWithRequestIdleCallback:n,chart:o})=>{const i=k((e=>{e.isIntersecting?n():r()}),[n,r]);R((()=>{if(!e.current||!t)return()=>{};const n=e.current;return t.addTask(n,i),()=>{var e;t.removeTask(n),r(),null===(e=o.current)||void 0===e||e.destroy(),o.current=null}}),[o,e,t,r,i])})({element:s,intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:r,intersectionObserverTaskScheduler:n})=>{R((()=>n?()=>{}:(e(),()=>{var e;t(),null===(e=r.current)||void 0===e||e.destroy(),r.current=null})),[n,t,e,r])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:r})=>{const n=II(t);R((()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}}),[e,n,r])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},MI=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=DI({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return x.createElement("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},LI="cell-text",kI=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const{styleService:a}=nO(QR,(e=>e.baseProps));return o?nr.jsx(LA,{"data-testid":LI,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,children:e}):nr.jsx(LA,{"data-testid":LI,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:null!=i?i:a.grid.contentLineClamp,isPagination:n,children:e})},TI=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),_I=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},jI=(e,t)=>{const r=(e=>e.map((e=>{var t;return null!==(t=e.value)&&void 0!==t?t:e})).sort(((e,t)=>e-t)))(e),n=r.some((e=>!Nb(e)));return 0===r.length||n?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===r.length?((e,t)=>{const r=e[0]-t;if(0===r||!Nb(r)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return r>0?{min:t-.5*Math.abs(t),max:e[0]+2*r}:{min:e[0]+2*r,max:t+.5*Math.abs(t)}})(r,t):((e,t)=>{let r=e[e.length-1]-e[0];return r=r>0?r:1,{min:Math.min(t,e[0])-r/2,max:Math.max(t,e[e.length-1])+r/2}})(r,t)},qI=(e,t,r)=>{const n={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 r=e.limits&&e.limits.concat().sort(((e,t)=>e.value-t.value));return{lowerLimit:r&&t>0?r[t-1]:{value:0,gradient:!1},upperLimit:r&&r[t]?r[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,r,n,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,u=n===i.value?1:(n-a.value)/(i.value-a.value);return a.gradient&&i.gradient?n-a.value<i.value-n?{color:s.color,t:.5-u}:{color:l.color,t:u-.5}:a.gradient?{color:s.color,t:1-(.5+u/2)}:i.gradient?{color:l.color,t:u/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return s&&oe(e.localPaletteColors[t].color).blend(oe(s.color),s.t)},NI=(e,t,r)=>{const n=((e,t)=>{const{limits:r}=e;return r&&(e.limits=r.sort(((e,t)=>e.value-t.value)),e.limits=r.map((e=>({...e,value:TI(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:_I(n,t,r)})))),n},FI=(e,t,r,n)=>{const o=NI(e,r,n),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let r="",n=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>=n&&t<i){r=qI(e,a,t);break}n=i}return r})(o,t);return a},zI=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=jI(e,t),o=Math.abs(t);return{min:null!=r?r:t-o,max:null!=n?n:t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!Nb(t))return 0;let a=r&&Nb(r)?Math.min(r,t):0;const s=n.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,n.min);return{limitRange:n,limitPaletteColorIndex:o}},HI=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=zI(o,t),a=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(null==i||!i.length||!((e,t)=>{var r,n,o;return!(!e||0===e.length||!(null!==(r=null===(n=e[t])||void 0===n?void 0:n.gradient)&&void 0!==r?r:null===(o=e[t-1])||void 0===o?void 0:o.gradient))})(i,r.limitPaletteColorIndex))return _I(o,r.limitPaletteColorIndex,n);const a=TI(r.limitRange,t);return FI(o,a,r.limitRange,n)})(o,t,i,n),s=o.segments.paletteColors[(null==i?void 0:i.limitPaletteColorIndex)||0].icon,{indicator:l}=e;let u=(null==l?void 0:l.position)||"right";return"rtl"===r&&(u="right"===u?"left":"right"),{color:a,iconKey:s,position:u}},BI=(e,t)=>{var r,n,o,i;return"rtl"===e&&"center"!==(null===(r=t.resolvedImagePosition)||void 0===r?void 0:r.horizontal)?(null===(o=t.resolvedImagePosition)||void 0===o?void 0:o.horizontal)&&(e=>"flex-start"===e?"flex-end":"flex-start")(null===(i=t.resolvedImagePosition)||void 0===i?void 0:i.horizontal):null===(n=t.resolvedImagePosition)||void 0===n?void 0:n.horizontal},$I=(e,t)=>e.representation.type===Tg.Image&&"fitHeight"===e.representation.imageSize?BI(t,e.representation):e.align,VI=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",WI=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},GI=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,UI=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",YI=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",KI=e=>{let t="center",r="center";return"flex-start"===(null==e?void 0:e.vertical)?t="top":"flex-end"===(null==e?void 0:e.vertical)&&(t="bottom"),"flex-start"===(null==e?void 0:e.horizontal)?r="left":"flex-end"===(null==e?void 0:e.horizontal)&&(r="right"),`${r} ${t}`},XI=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},JI=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{direction:o}=nO(QR,(e=>e.baseProps)),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=nr.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:XI(s),objectPosition:KI(l),overflow:"hidden"}});return n?nr.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?BI(o,e):void 0},children:c}):c};function ZI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QI(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const eD=(e,t)=>nr.jsx("svg",QI(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ZI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.jsx("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})})),tD=T(eD);function rD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nD(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const oD=(e,t)=>nr.jsx("svg",nD(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){rD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.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"})})),iD=T(oD);function aD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sD(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const lD=(e,t)=>nr.jsxs("svg",sD(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){aD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:[nr.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"}),nr.jsx("use",{fillRule:"evenodd"})]})),uD=T(lD);function cD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dD(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const pD=(e,t)=>nr.jsx("svg",dD(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){cD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.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"})})),fD=T(pD);function mD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hD(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const gD=(e,t)=>nr.jsx("svg",hD(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){mD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.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"})})),bD=T(gD);function vD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yD(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const xD=(e,t)=>nr.jsx("svg",yD(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){vD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.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"})})),SD=T(xD);function wD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ED(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const CD=(e,t)=>nr.jsx("svg",ED(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){wD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.jsx("path",{d:"M2 7h12v2H2z"})})),RD=T(CD);function OD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PD(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const AD=(e,t)=>nr.jsx("svg",PD(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){OD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.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"})})),ID=T(AD);function DD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MD(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const LD=(e,t)=>nr.jsx("svg",MD(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){DD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.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"})})),kD=T(LD);function TD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _D(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const jD=(e,t)=>nr.jsx("svg",_D(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){TD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.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"})})),qD=T(jD);function ND(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FD(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const zD=(e,t)=>nr.jsx("svg",FD(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ND(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.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"})})),HD=T(zD);function BD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $D(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const VD=(e,t)=>nr.jsx("svg",$D(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){BD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),WD=T(VD);function GD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UD(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const YD=(e,t)=>nr.jsx("svg",UD(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){GD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.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"})})),KD=T(YD);function XD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JD(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const ZD=(e,t)=>nr.jsx("svg",JD(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){XD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.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"})})),QD=T(ZD);function eM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tM(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const rM=(e,t)=>nr.jsx("svg",tM(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){eM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.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"})})),nM=T(rM);function oM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iM(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const aM=(e,t)=>nr.jsx("svg",iM(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){oM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.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"})}));function sM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lM(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})),e}const uM=(e,t)=>nr.jsx("svg",lM(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){sM(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),{children:nr.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"})})),cM={m:WD,"ï":qD,R:T(aM),S:KD,T:QD,U:nM,P:kD,Q:SD,"è":T(uM),"¢":fD,"©":uD,"23F4":bD,2013:HD,"&":ID,add:tD,"minus-2":RD,dot:iD},dM=({size:e,iconKey:t,color:r,style:n})=>{var o;const i=null!==(o=t&&cM[t])&&void 0!==o?o:void 0;return i&&x.createElement("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,display:n?n.display:void 0}},x.createElement(i,{style:{height:e}}))},pM=({representation:e,cellValue:t,paginationCellAlign:r})=>{const{styleService:n,theme:o,direction:i}=nO(QR,(e=>e.baseProps)),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=null!=s?s:{},c=HI(e,t,i,o),d=(p=n.measure.values.fontSize,parseInt(p||fR,10));var p;const{color:f,iconKey:m,position:h}=c||{};return l?nr.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:null!=r?r:"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:u?f:void 0},children:["left"===h&&dM({size:d,iconKey:m,color:f}),nr.jsx(kI,{isNumeric:!0,children:a}),"right"===h&&dM({size:d,iconKey:m,color:f})]}):dM({size:d,iconKey:m,color:f})},fM=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(null!=t?t:e.grid.contentLineClamp):e.contentLineHeight,mM=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const{interactions:l,styleService:u,theme:c,layout:d,downloadService:p,direction:f}=nO(QR,(e=>e.baseProps)),m=nO(QR,(e=>{var t;return null===(t=e.selectionState.api)||void 0===t?void 0:t.isActive()})),h=nO(QR,(e=>e.env));let g=t.representation.text;if(t.representation.type!==Tg.Link||m||(g=nr.jsx(cI,{href:t.representation.url,text:t.representation.text,interactions:l,color:r.cellForegroundColor})),t.representation.type===Tg.Image)return nr.jsx(JI,{representation:t.representation,textStyle:r,maxImageHeight:fM(u,o),wrapInContainer:!n});const b="string"==typeof(v=h.flags.isEnabled("CLIENT_IM_7121_TABLE_NULL_REP")&&t.qIsNull?t.representation.text:t.qNum)&&v.length>0||"number"==typeof v?+v:NaN;var v;return t.representation.type!==Tg.Indicator||Number.isNaN(b)?t.representation.type===Tg.MiniChart&&t.representation.miniChart&&!t.isNull?nr.jsx(MI,{height:fM(u,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:c,isSnapshot:!!d.snapshotData,direction:f,downloadService:p}):nr.jsx(kI,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:g}):nr.jsx(pM,{representation:t.representation,cellValue:b,paginationCellAlign:n?void 0:s})},hM=(e,t,r,n)=>({handleMouseDown:n=>{null==e||e(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:$w.SelectMultiEnd})};r({type:$w.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:$w.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:$w.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),gM=(e,t)=>{const{paginationNeeded:r,totalsPosition:n}=nO(QR,(e=>e.tableData)),{selectionsAPI:o,rootElement:i,keyboard:a,interactions:s,direction:l}=nO(QR,(e=>e.baseProps)),u=nO(QR,(e=>e.setFocusedCellCoord)),c=nO(QR,(e=>e.selectionDispatch)),d=!!s.active&&!!s.select,p=s=>{QA({evt:s,rootElement:i,selectionsAPI:o,cell:e,selectionDispatch:c,isSelectionsEnabled:d,setFocusedCellCoord:u,announce:t,keyboard:a,paginationNeeded:r,totalsPosition:n,direction:l})},f=e=>{((e,t)=>{e.key===Bm.Shift&&t({type:$w.SelectMultiEnd})})(e,c)},m=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;VA([s,a],t,r,n)})(e,i,u,a,n)};if(!d)return{onKeyDown:p,onKeyUp:f,onMouseDown:m};const{handleMouseDown:h,handleMouseOver:g,handleMouseUp:b}=hM(m,e,c,t);return{onKeyDown:p,onKeyUp:f,onMouseDown:h,onMouseUp:b,onMouseOver:g}},bM=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=Bw.Inactive;return null!=o&&o.isModal()&&(i=r!==e.selectionColIdx?Bw.Disabled:n.has(e.qElemNumber)?Bw.Selected:Bw.Possible),i},vM=(e,t,r)=>{if(!r.isNull)return e;const n={...e,...t.nullValues};return t.grid.zebraStripes.show?(t.grid.zebraStripes.overrideNullValueColor&&(n.color=e.color),t.grid.zebraStripes.overrideNullValueBackground&&(n.background=e.background),n):n},yM=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},xM=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return yM(t,e,n?"even":"odd")}return e},SM=(e,t)=>{const{styleService:r}=nO(QR,(e=>e.baseProps)),n=nO(QR,(t=>bM(e,t.selectionState)));let o=t.isDim?r.dimension.values:r.measure.values;o=xM(o,r,e),o=vM(o,r,e);const i=zR(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===Bw.Selected?{...e,...r}:t===Bw.Disabled?{...e,background:`${dR}, ${e.background}`}:e}(C((()=>e.isNull?o:zR(o,e.qAttrExps,t.qAttrExprInfoIDs)),[o,e.qAttrExps,e.isNull,t.qAttrExprInfoIDs]),n,r.selectedColors);return{cellStyle:a,representationStyle:i,cellSelectionState:n}},wM=Rw(jC,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),EM=Rw(nR,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})((({hover:e,hoverColors:t,height:r})=>({height:r,"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}}))),CM=Rw(HC,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...gR,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}))),RM=Rw(HC,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...gR,...e,fontWeight:mR,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?r:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",zIndex:t?1:void 0}))),OM=({cell:e,announce:t,column:r,columnIndex:n,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i})=>{const{interactions:a,direction:s}=nO(QR,(e=>e.baseProps)),{onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p}=gM(e,t),{cellStyle:f,representationStyle:m,cellSelectionState:h}=SM(e,r);return nr.jsx(CM,{cellStyle:f,scope:0===n?"row":void 0,component:0===n?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${h} ${Hm}`,title:a.passive?e.representation.text:void 0,onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p,children:nr.jsx(mM,{cell:e,style:m,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i,paginationCellAlign:GI(s,e.align)})})},PM=(e,{atTop:t,atBottom:r},n)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!n&&r?e.grid.divider:e.grid.border,borderBottomColor:n&&!t||!n&&t?e.grid.divider:e.grid.border}),AM=()=>{const{columns:e,totalsPosition:t,rows:r}=nO(QR,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,styleService:a,interactions:s,direction:l}=nO(QR,(e=>e.baseProps)),u=nO(QR,(e=>e.headRowHeight)),c=nO(QR,(e=>e.setFocusedCellCoord)),d=!(null==o||!o.isModal()),p=!!s.active;return nr.jsx(nR,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,o)=>{const f=[t.atTop?1:r.length+1,o];return nr.jsx(RM,{totalsStyle:{...a.totalRow,...PM(a,t,!1)},headRowHeight:u,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${Hm}`,tabIndex:-1,title:s.passive?e.totalInfo:void 0,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case Bm.C:KA(r);break;case Bm.Space:r.preventDefault();break;default:XA(e)}else vm(r)})({evt:e,rootElement:n,cellCoord:f,setFocusedCellCoord:c,isSelectionMode:d,isInteractionEnabled:p,direction:l})},onMouseDown:()=>{VA(f,n,c,i)},children:nr.jsx(kI,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)}))})};var IM=_(AM);const DM=({updateShouldRefocus:e,tableWrapperRef:t,announce:r})=>{var n;const{rows:o,columns:i,totalsPosition:a}=nO(QR,(e=>e.tableData)),{selectionsAPI:s,keyboard:l,layout:u,styleService:c}=nO(QR,(e=>e.baseProps)),d=nO(QR,(e=>e.selectionDispatch)),p=!(null===(n=jR(u))||void 0===n||null===(n=n.content)||void 0===n||!n.hoverEffect);lI({keyboard:l,selectionDispatch:d,selectionsAPI:s,updateShouldRefocus:e,tableWrapperRef:t});const f=(e=>{const t=k((t=>new IntersectionObserver((e=>{e.forEach((e=>{const r=t.get(e.target);null==r||r(e)}))}),{root:e.current})),[e]);return iI(t)})(t),m=sI();return nr.jsxs(wM,{lastRowBottomBorder:c.grid.lastRowBottomBorder,children:[a.atTop?nr.jsx(IM,{}):void 0,o.map(((e,t)=>nr.jsx(EM,{hoverColors:c.grid.hoverColors,hover:p,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:c.contentMinRowHeight,children:i.map(((t,n)=>{const{id:o}=t,i=e[n];return nr.jsx(OM,{columnIndex:n,cell:i,column:t,announce:r,intersectionObserverTaskScheduler:f,resizeObserverTaskScheduler:m},o)}))},`row-${t}`))),a.atBottom?nr.jsx(IM,{}):void 0]})};var MM=_(DM);const LM=(e,t,r)=>{var n;return!(null===(n=e.viewState)||void 0===n||!n.skipHeader)||!!r.flags.isEnabled("CLIENT_IM_7170_TABLE_HIDE_HEADER")&&!!t.hideHeader},kM=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:s,translator:l,direction:u}=nO(QR,(e=>e.baseProps)),c=nO(QR,(e=>e.columnWidths)),d=nO(QR,(e=>e.setColumnWidths));if(!s.active)return null;return nr.jsx(lO,{columnWidth:c[o],isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{null==r||r();const t=[...c];t[o]=e,d(t)},confirmWidthCallback:t=>{a(t,e)},handleBlur:e=>{(e=>{FA(e);const t=e.closest(".sn-table-cell");HA(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:l,columnLabel:i},direction:u})},TM=T(((e,t)=>nr.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:nr.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"})}))),_M=T(((e,t)=>nr.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:nr.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"})}))),jM=T(((e,t)=>nr.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:[nr.jsx("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),nr.jsx("use",{fillRule:"evenodd"})]}))),qM=Rw("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0}))),NM=Rw(cC,{shouldForwardProp:e=>!["textAlign","direction","isPagination"].includes(e)})((({textAlign:e,theme:t,direction:r,isPagination:n})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center",flexDirection:"rtl"===r?VI(e,n):void 0})));Rw("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1});const FM=Rw(cC,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})((({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:r})=>{const n=e?"24px":"";let o;switch(r){case"left":o={gridTemplateColumns:t?`20px 2fr ${n}`:`1fr ${n}`};break;case"center":{const r=e||t;o={gridTemplateColumns:r?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:r?2:1},[`& .${Nm}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${n} 2fr 20px`:`${n} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:e?2:"span 2"},[`& .${Nm}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),zM=Rw(cC,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})));Rw(cC,{shouldForwardProp:e=>"isVisible"!==e&&"rightAligned"!==e})((({rightAligned:e})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:"24px",display:"flex"}))),Rw(EC)((({theme:e})=>({borderRadius:"4px",margin:e.spacing(0,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"}}))),Rw("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),Rw(bC)((({theme:e})=>({marginRight:e.spacing(1.5),lineHeight:0}))),Rw("div")((({theme:e})=>({height:"350px",boxSizing:"border-box",background:e.palette.common.white})));const HM=Rw(HC,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...gR,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom","&&:focus-visible, &&:hover":{background:t.active?r:n}})));Rw("div")({display:"flex",alignItems:"center"});const BM=Rw("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})((({align:e,dir:t})=>({minWidth:fR,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),$M=({column:e,isInteractionEnabled:t,open:r,setOpen:n,allColumnsIconVisibilityStatusRef:o,isPagination:i,forwardRef:a})=>{const{translator:s,changeSortOrder:l,interactions:u,embed:c,app:d,styleService:p,layout:f,direction:m}=nO(QR,(e=>e.baseProps)),h=nO(QR,(t=>t.columnWidths[e.pageColIdx])),g=nO(QR,(e=>e.baseProps.model)),b=L(null),v=L(null),y=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=Pm({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:mR});return k((()=>{let e=!1,o=!1,i=!1;const a=t.isLocked,s=t.isActivelySorted,l=r-25,u=a?20:0,c=s?20:0;let d=n(t.label);return a&&d+u<=l&&(i=!0,d+=u,s&&d+c<=l&&(o=!0,d+=c)),!a&&s&&d+c<=l&&(o=!0,d+=c),d+24<=l&&(e=!0,d+=24),{shouldShowMenuIcon:e,shouldShowSortIcon:o,shouldShowLockIcon:i}}),[t.isLocked,t.label,t.isActivelySorted,r,n])})({styleService:p,column:e,columnWidth:h}),x=y(),{StartIcon:S,EndIcon:w,LockIcon:E}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?nr.jsx(TM,{height:fR,"data-testid":"head-cell-sort-ascending-icon"}):nr.jsx(_M,{height:fR,"data-testid":"head-cell-sort-descending-icon"}),a=r?nr.jsx(BM,{align:t,dir:o,children:i}):void 0,s=n?nr.jsx(zM,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:nr.jsx(jM,{height:fR,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(e,x,m);o&&(o.current[e.pageColIdx]=x);return nr.jsxs(FM,{shouldShowMenuIcon:x.shouldShowMenuIcon,shouldShowLockIcon:x.shouldShowLockIcon,alignment:WI(e,i,m),children:[E,nr.jsxs(NM,{className:"sn-table-head-label",textAlign:e.headTextAlign,direction:m,isPagination:i,children:[S,nr.jsx(kI,{forwardRef:a,isPagination:i,isHeadCell:!0,children:e.label}),w]}),t?nr.jsxs(nr.Fragment,{children:[nr.jsx(VP,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:s,anchorRef:b,menuAvailabilityFlags:{[HP.Sorting]:!0,[HP.Searching]:!0,[HP.Selections]:!0,[HP.AdjusterHeaderSize]:!0},open:r,setOpen:n,interactions:u,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),l(e,r))},searchRelatedArgs:{embed:c,listboxRef:v},selectionRelatedArgs:{app:d,qStateName:f.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:BA},shouldShowMenuIcon:x.shouldShowMenuIcon,model:g,direction:m,isPagination:i}),nr.jsx(qM,{ref:v,direction:m,isPagination:i}),nr.jsx(qM,{ref:b,direction:m})]}):null]})},VM=({isInteractionEnabled:e,columnsData:t})=>{const[r,n]=E(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=(e=>{const[t,r]=E(!1);return Lm((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}})([t]);return{open:r,setOpen:n,handleOpenMenu:t=>{!e||(e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes($m)})(t)||o||n(!0)},setIsAdjustingWidth:i}},WM=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a,direction:s}=nO(QR,(e=>e.baseProps)),{columns:l,totalsPosition:u}=nO(QR,(e=>e.tableData)),c=nO(QR,(e=>e.columnWidths[t])),d=nO(QR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),p=nO(QR,(e=>e.setFocusedCellCoord)),f=nO(QR,(({focusedCellCoord:[e,r]})=>0===e&&r===t)),m=!!n.active&&!d,{open:h,setOpen:g,handleOpenMenu:b,setIsAdjustingWidth:v}=VM({isInteractionEnabled:m,columnsData:l}),y=e.isActivelySorted?Vw[e.sortDirection]:void 0,x=h?zm:void 0,S=h?"true":void 0,w=t===r-1,E=[0,e.pageColIdx],C={width:c-(w?8:9),zIndex:l.length-t},R=f&&0===t&&!i.enabled&&m?0:-1;return nr.jsxs(HM,{headerStyle:{...a.header,...PM(a,u,!0)},background:h?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:n,style:C,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${Hm}`,tabIndex:R,title:n.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case Bm.C:KA(r);break;case Bm.Enter:case Bm.Space:null==n||n(r);break;default:XA(e)}else vm(r)})({evt:e,rootElement:o,cellCoord:E,setFocusedCellCoord:p,isInteractionEnabled:m,handleOpenMenu:b,direction:s})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&VA(r,t,n,o)})({evt:e,rootElement:o,cellCoord:E,setFocusedCellCoord:p,keyboard:i,isInteractionEnabled:m})},onClick:b,"aria-sort":y,"aria-controls":x,"aria-expanded":S,"aria-haspopup":"true",children:[nr.jsx($M,{column:e,isInteractionEnabled:m,open:h,setOpen:g,isPagination:!0}),nr.jsx(kM,{column:e,isLastColumn:w,setIsAdjustingWidth:v})]},e.id)},GM=()=>{const{columns:e}=nO(QR,(e=>e.tableData)),{styleService:t,viewService:r,layout:n}=nO(QR,(e=>e.baseProps)),o=nO(QR,(e=>e.setHeadRowHeight)),i=nO(QR,(e=>e.columnWidths)),a=nO(QR,(e=>e.env)),s=L(null),l=LM(r,n,a);return R((()=>{s.current&&o(s.current.getBoundingClientRect().height)}),[t.header.fontSize,i,o,l]),nr.jsx(JC,{style:{visibility:l?"collapse":void 0},children:nr.jsx(nR,{ref:s,className:"sn-table-row sn-table-head-row",children:e.map(((t,r)=>nr.jsx(WM,{column:t,columnIndex:r,columnsLength:e.length},t.id)))})})};var UM=_(GM);const YM=e=>{var t,r;const{pageInfo:n,setPageInfo:o,footerContainer:i,announce:a}=e,{page:s,rowsPerPage:l}=n,{totalColumnCount:u,totalRowCount:c,totalPages:d,paginationNeeded:p,rows:f,columns:m}=nO(QR,(e=>e.tableData)),{rootElement:h,keyboard:g,translator:b,theme:v,interactions:y,styleService:x,viewService:S,layout:w,rect:E,direction:C}=nO(QR,(e=>e.baseProps)),O=nO(QR,(e=>e.setYScrollbarWidth)),P=nO(QR,(e=>e.showRightBorder)),A=nO(QR,(e=>e.selectionDispatch)),I=nO(QR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),D=L(!1),M=L(null),T=L(null),{yScrollbarWidth:_}=eI(M),j=`${b.get("SNTable.Accessibility.RowsAndColumns",[String(f.length),String(m.length)])} ${b.get("SNTable.Accessibility.NavigationInstructions")}`,q=Zv(w,S),N=q&&null!==(t=S.scrollLeft)&&void 0!==t?t:0,F=q&&null!==(r=S.rowPartialHeight)&&void 0!==r?r:0,z=k((()=>{D.current=h.getElementsByTagName("table")[0].contains(document.activeElement)}),[h]),H=k((e=>{o({...n,page:e}),a({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),d.toString()]],politeness:"assertive"})}),[n,o,d,a]),B=k((e=>{o({...n,page:0,rowsPerPage:e}),a({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[a,n,o]);return YA(M,C,S),((e,t)=>{const{keyboard:r}=nO(QR,(e=>e.baseProps));R((()=>{const n=e.current;if(!n)return;const o=e=>{WA(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(T,D),(()=>{const{rootElement:e,keyboard:t}=nO(QR,(e=>e.baseProps)),r=nO(QR,(e=>e.focusedCellCoord));Lm((()=>{const n=qA(e,r);t.active?HA(n):(null==n||n.blur(),zA(e))}),[t.active,e])})(),UA(D,a,s),R((()=>{const e=M.current;e&&(e.scrollLeft=N,e.scrollTop=F)}),[n,c,N,F]),kA((()=>{O(_)}),[_]),kA((()=>{A({type:$w.UpdatePageRows,payload:{pageRows:f}})}),[f]),GA(),nr.jsxs(MA,{ref:T,background:v.background,dir:C,onKeyDown:e=>{ZA({evt:e,totalRowCount:c,page:s,rowsPerPage:l,handleChangePage:H,updateShouldRefocus:z,keyboard:g,isSelectionMode:I})},"data-testid":"sn-table",children:[nr.jsx(oI,{}),nr.jsx(rI,{ref:M,className:"sn-table-container",fullHeight:!!i||!y.active||!p,interactions:y,tabIndex:-1,role:"application","data-testid":"table-container",children:nr.jsxs(nI,{stickyHeader:!0,"aria-label":j,borderRight:P?`1px solid ${x.grid.border}`:void 0,children:[nr.jsx(UM,{}),nr.jsx(MM,{...e,updateShouldRefocus:z,tableWrapperRef:T})]})}),nr.jsx(IA,{footerContainer:i,pageInfo:n,paginationNeeded:p,theme:v,totalRowCount:c,totalColumnCount:u,totalPages:d,keyboard:g,translator:b,interactions:y,rect:E,layout:w,handleChangePage:H,handleChangeRowsPerPage:B,isSelectionMode:I,direction:C})]})};var KM=_(YM),XM=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function JM(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],o=t[r],!(n===o||XM(n)&&XM(o)))return!1;var n,o;return!0}function ZM(e,t){var r;void 0===t&&(t=JM);var n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}var QM="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function eL(e){cancelAnimationFrame(e.id)}function tL(e,t){var r=QM();var n={id:requestAnimationFrame((function o(){QM()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var rL=-1;function nL(e){if(void 0===e&&(e=!1),-1===rL||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),rL=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return rL}var oL=null;function iL(e){if(void 0===e&&(e=!1),null===oL||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?oL="positive-descending":(t.scrollLeft=1,oL=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),oL}return oL}var aL=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function sL(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,Tt(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Tt(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=ZM((function(e,t,r,o,i,a,s,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})})),n._callOnScroll=void 0,n._callOnScroll=ZM((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,s=a.columnWidth,l=a.direction,u=a.rowHeight,p=n._getItemStyleCache(h&&s,h&&l,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=r(n.props,t,n._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=ZM((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(iL()){case"negative":u=-i;break;case"positive-descending":u=l-o-i}u=Math.max(0,Math.min(u,l-o));var c=Math.max(0,Math.min(a,s-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&eL(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=tL(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}kt(t,e),t.getDerivedStateFromProps=function(e,t){return lL(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=nL();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?l(this.props,n,r,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(iL()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&eL(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?aL:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),w=S[0],E=S[1],C=this._getVerticalRangeToRender(),R=C[0],P=C[1],A=[];if(n>0&&g)for(var I=R;I<=P;I++)for(var D=w;D<=E;D++)A.push(O(t,{columnIndex:D,data:d,isScrolling:v?x:void 0,key:f({columnIndex:D,data:d,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,D)}));var M=a(this.props,this._instanceProps),L=s(this.props,this._instanceProps);return O(m||h||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:wt({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},O(u||c||"div",{children:A,ref:l,style:{height:M,pointerEvents:x?"none":void 0,width:L}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,m)}if("function"==typeof n){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=r||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var lL=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},uL=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},cL=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},dL=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:s,size:c},s+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},pL=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?fL(e,t,r,i,0,n):mL(e,t,r,Math.max(0,i),n)},fL=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=dL(e,t,a,r).offset;if(s===i)return a;s<i?o=a+1:s>i&&(n=a-1)}return o>0?o-1:0},mL=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&dL(e,t,n,r).offset<o;)n+=a,a*=2;return fL(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},hL=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=dL(e,t,r,i),u="column"===e?cL(t,i):uL(t,i),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===n&&(n=o>=d-s&&o<=c+s?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},gL=sL({getColumnOffset:function(e,t,r){return dL("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return pL("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=dL("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=dL("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:uL,getEstimatedTotalWidth:cL,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return hL("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return hL("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return dL("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return pL("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=dL("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=dL("row",e,u,n).size;return u},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),bL=function(e,t){return e};function vL(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=l(n.props,Tt(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Tt(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=ZM((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=ZM((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,s=i.itemSize,l=i.layout,c=n._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===l,m="rtl"===a,h=f?d:0;c[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=ZM((function(e,t,r){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(iL()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&eL(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=tL(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}kt(t,e),t.getDerivedStateFromProps=function(e,t){return yL(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?nL():0:l.scrollHeight>l.clientHeight?nL():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(iL()){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&&eL(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?bL:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),E=w[0],C=w[1],R=[];if(u>0)for(var P=E;P<=C;P++)R.push(O(t,{data:c,key:p(P,c),index:P,isScrolling:b?y:void 0,style:this._getItemStyle(P)}));var A=n(this.props,this._instanceProps);return O(m||h||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:wt({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},O(s||l||"div",{children:R,ref:a,style:{height:x?"100%":A,pointerEvents:y?"none":void 0,width:x?A:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,l=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,l,this._instanceProps),c=s(this.props,u,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var yL=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},xL=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var u=n(l);o[l]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},SL=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=xL(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},wL=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&xL(e,r,t).offset<n;)r+=i,i*=2;return SL(e,t,Math.min(r,o-1),Math.floor(r/2),n)},EL=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},CL=vL({getItemOffset:function(e,t,r){return xL(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:EL,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=xL(e,t,o),p=EL(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=m-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return n>=m&&n<=f?n:n<m?m:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?SL(e,t,o,0,r):wL(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:i,c=xL(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=xL(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function RL(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var OL=["style"],PL=["style"];function AL(e,t){var r=e.style,n=Mt(e,OL),o=t.style,i=Mt(t,PL);return!RL(r,o)&&!RL(n,i)}const IL=({style:e})=>nr.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var DL=x.memo(IL,AL);const ML=e=>{var t;return null===(t=e.at(0))||void 0===t||null===(t=t.contentBoxSize.at(0))||void 0===t?void 0:t.blockSize},LL=(e,t,r)=>{R((()=>{const r=e.current;if(!r)return()=>{};const n=new ResizeObserver(t);return n.observe(r),()=>{n.disconnect()}}),[e,t,r])},kL=()=>{},TL=e=>{e.preventDefault()};const _L=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o,i;const{rowsInPage:a,columns:s,isHoverEnabled:l,setMeasuredCellHeight:u,lineClamp:c,resizeObserverTaskScheduler:d}=n,p=nO(QR,(e=>e.hoverIndex===t)),f=nO(QR,(e=>e.setHoverIndex)),{interactions:m,styleService:h,direction:g}=nO(QR,(e=>e.baseProps)),b=nO(QR,(e=>e.showRightBorder)),v=null===(o=a[t])||void 0===o?void 0:o[e],{handleMouseDown:y,handleMouseOver:x,handleMouseUp:S,cellSelectionState:w}=function(e){const{interactions:t}=nO(QR,(e=>e.baseProps)),r=nO(QR,(e=>e.selectionDispatch)),n="object"==typeof e,o=nO(QR,(t=>n?bM(e,t.selectionState):Bw.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=hM(TL,e,r,kL);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(v),E=((e,t,r,n)=>{const o=L(null),i=r&&!r.isNumeric,a=k((r=>{const o=ML(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return LL(o,a),o})(t,e,v,u),C=null!==(i=s[e])&&void 0!==i&&i.isDim?h.dimension.values:h.measure.values;if("object"==typeof v){const n=((e,t,r,n,o,i)=>{let a=xM(o,i,e);a=vM(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?zR(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===Bw.Selected?{...s,...i.selectedColors}:n===Bw.Disabled?{...s,color:r?null===(l=i.grid.hoverColors)||void 0===l?void 0:l.color:s.color,background:`${dR}, ${r?null===(u=i.grid.hoverColors)||void 0===u?void 0:u.background:s.background}`}:r?{...s,...i.grid.hoverColors}:s;var l,u})(v,s[e],l&&p,w,C,h),o={rowindex:t,columnindex:e};return nr.jsx("div",{className:`sn-table-cell ${w} ${Hm}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:h.grid.border,borderTop:"0px",borderBottomWidth:v.isLastRow?"0px":"1px",borderRightWidth:UI(g,v.isLastColumn,b),borderLeftWidth:YI(g,v.isLastColumn,b),justifyContent:$I(v,g),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:v.align},onMouseDown:y,onMouseUp:S,onMouseOver:x,onMouseEnter:l?()=>{f(t)}:void 0,onMouseLeave:l?()=>{f(-1)}:void 0,title:m.passive?v.representation.text:void 0,...o,children:nr.jsx(mM,{forwardRef:h.contentStaticLineCount||1===c?void 0:E,cell:v,style:n,lineClamp:c,virtualizedCell:!0,resizeObserverTaskScheduler:d})})}return nr.jsx(DL,{style:{...r,...C,borderColor:h.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var jL=_(_L,AL);const qL=e=>{const t=L(e);return t.current=e,t},NL=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,FL=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if((null==t?void 0:t.rowIdx)!==o)return!0}return!1},zL=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!e[t]))},HL=(e,t,r,n,o,i,a,s)=>{e.forEach((e=>{e.qMatrix.forEach(((l,u)=>{const c=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,r,n,o,i,a,s,l,u)=>{var c;const{qSize:d}=a.qHyperCube,p=n.qTop+r,f=o+r,m=null!==(c=e[f])&&void 0!==c?c:[];return t.forEach(((e,t)=>{const r=t+n.qLeft;if(m.at(r))return;const{colIdx:o,isDim:c,isLocked:h,bodyTextAlign:g,selectionColIdx:b,qAttrExprInfoIndex:v,representation:y,conditionalColoring:x,qMiniChart:S}=i[r],w=$v(c,e,a,s),E=s.flags.isEnabled("CLIENT_IM_7121_TABLE_NULL_REP")&&!c&&e.qIsNull,C=E?zb(w):Fb(e);m[r]={id:jb(),...e,align:Xv(C,g,u),rowIdx:p,colIdx:o,isSelectable:c&&!h,pageRowIdx:f,pageColIdx:r,selectionColIdx:b,isLastRow:p===d.qcy-1,isLastColumn:r===d.qcx-1,isNumeric:C,isNull:(!E||!C)&&Bv(e,c),representation:Hv({cell:e,representationProperties:y,attrExprInfoIndex:v,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>E?w:e.qText,direction:u,enabledFeatures:{[Tg.Image]:s.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[Tg.Indicator]:s.flags.isEnabled("CLIENT_IM_6696_INDICATORS"),[Tg.MiniChart]:!0}})},l(m[r],p,r)})),{row:m,pageRowIdx:f}})(r,l,u,e.qArea,c,n,o,i,a,s);r[p]=d}))}))},BL=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:s,columns:l,gridState:u,setEstimatedCellHeight:c})=>{const d=nO(QR,(e=>e.env)),{direction:p}=nO(QR,(e=>e.baseProps)),f=L([]),m=k(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return HL(t,o,n,l,e,d,c,p),f.current=n,n}),[i,o,l,e,d,c,p]),[h,g]=E((()=>m(null!=n?n:[])));Lm((()=>{g(m(null!=n?n:[]))}),[n,p]);const b=((e,t)=>{const r=L(new Set),n=L(new Set),o=L(new Set),i=qL(e),a=qL(t),s=C((()=>({enqueue:e=>{const t=NL(e);o.current.has(t)||(r.current.add(e),o.current.add(t),1===r.current.size&&setTimeout((async()=>{const e=Array.from(r.current.values());if(0!==e.length){r.current.clear(),n.current.add(e);try{const t=(e=>{const t=[];return e.forEach((e=>{if(t.length>0){const r=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(r,e)?r.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(r,e)?r.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})})),t})(e),r=await i.current(t);n.current.has(e)&&a.current(r)}catch(t){e.forEach((e=>{o.current.delete(NL(e))})),console.error("Failed to fetch pages",t)}finally{n.current.delete(e)}}}),75))},clear:()=>{r.current.clear(),n.current.clear(),o.current.clear()}})),[i,a]);return s})((e=>t&&"getHyperCubeData"in t?t.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([])),(e=>{g((t=>m(e,t)))})),v=k(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(zL(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}}),[f,b]),y=k(((e,t,r,n)=>{for(let i=t;i<t+n;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(FL(f.current,e,t,r,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:r};b.enqueue(t)}}}),[f,b,o]);return R((()=>{const{qcx:t,qcy:r}=e.qHyperCube.qSize,n=u.current.overscanRowStartIndex,i=u.current.overscanColumnStartIndex,l=n+o.page*o.rowsPerPage,c=t-i,d=o.rowsPerPage-n,p=Math.min(100,c,t,s+5),f=Math.min(100,d,r,a+25);return y(i,l,p,f),()=>{b.clear()}}),[e,a,s,o,b,y,u,r]),{rowsInPage:h,loadRows:y,loadColumns:v}},$L=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},VL=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,WL=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=nO(QR,(e=>e.baseProps.styleService)),i=nO(QR,(e=>e.columnWidths)),{estimateLineCount:a}=Pm(o.dimension.values),s=YR(o.dimension.values.fontSize),l=e||t||1===r;return k(((e,t,o)=>{if(l||e.representation.type===Tg.Image||e.isNumeric)return;const u=(e=>Math.max(0,e-24-1))(i[o]),c=e.representation.text?a({text:e.representation.text,maxWidth:u,isNumeric:!1}):1,d=Math.min(r,Math.max(1,c));n(d*s,t,o)}),[l,i,a,r,s,n])},GL=({isStaticNbrOfLines:e,minRowHeight:t,state:r,rowCount:n,staticRowHeight:o,viewService:i})=>C((()=>{const{estimatedRowHeight:a,totalRowHeight:s}=e?{totalRowHeight:n*o,estimatedRowHeight:o}:(e=>{let t=0;e.forEach((e=>{t+=e}));const r=0===e.size?0:t/e.size;return{estimatedRowHeight:Math.ceil(r),totalRowHeight:t}})(r.rowHeights);return i.estimatedRowHeight=Math.max(a,t),Math.max(n*t,s)}),[e,t,n,r,o,i]),UL=({rowCount:e,isSnapshot:t,viewService:r,gridRef:n,pageInfo:o})=>{const{styleService:i}=nO(QR,(e=>e.baseProps)),[a,s]=E({rowHeights:new Map,cellHeightsInGrid:new Map}),l=i.contentLineHeight,u=i.contentMinRowHeight,c=!!i.contentStaticLineCount,d=Math.max(8e6/e,u)-9,p=d+9,f=Math.max(1,Math.min(i.grid.contentLineClamp,Math.round(d/l))),m=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:f,lineHeight:l,isStaticNbrOfLines:c});(({gridRef:e,setState:t,pageInfo:r})=>{var n,o;const{layout:i}=nO(QR,(e=>e.baseProps)),a=nO(QR,(e=>e.columnWidths)),{flags:s}=nO(QR,(e=>e.env)),l=null===(n=i.multiline)||void 0===n?void 0:n.wrapTextInCells,u=s.isEnabled("CLIENT_IM_7121_TABLE_NULL_REP")?null===(o=i.nullValueRepresentation)||void 0===o?void 0:o.text:void 0;Lm((()=>{var r;null===(r=e.current)||void 0===r||r.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map})}),[i.qHyperCube.qSize.qcx,i.qHyperCube.qSize.qcy,r.page,l,u]),Lm((()=>{var t;null===(t=e.current)||void 0===t||t.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[a])})({gridRef:n,setState:s,pageInfo:o});const h=(({setState:e,maxCellHeight:t,minRowHeight:r,gridRef:n})=>k(((o,i,a)=>{N((()=>{e((e=>{var s,l;const u=Math.max(r,o+9),c=Math.min(t,u),d=null!==(s=e.cellHeightsInGrid.get(i))&&void 0!==s?s:e.cellHeightsInGrid.set(i,new Map).get(i);if(!VL(d.get(a),c))return e;const p={...e};return d.set(a,c),p.rowHeights.set(i,$L(d)),null===(l=n.current)||void 0===l||l.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),p}))}))}),[e,r,t,n]))({maxCellHeight:p,minRowHeight:u,setState:s,gridRef:n}),g=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>k(((o,i,a)=>{e||t||1===r||n(o,i,a)}),[e,t,r,n]))({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:h});return{setMeasuredCellHeight:g,setEstimatedCellHeight:WL({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:h}),getRowHeight:k((e=>{var t;return c?m:null!==(t=a.rowHeights.get(e))&&void 0!==t?t:u}),[c,u,a.rowHeights,m]),totalRowHeight:GL({isStaticNbrOfLines:c,minRowHeight:u,state:a,staticRowHeight:m,rowCount:e,viewService:r}),lineClamp:f}},YL=(e,t)=>{j((()=>()=>{t(0)}),[e,t]);const r=k((e=>{const r=ML(e);void 0!==r&&t(r)}),[t]);LL(e,r)};var KL;!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(KL||(KL={}));const XL=({layout:e,loadRows:t,loadColumns:r,rowCount:n,pageInfo:o,gridState:i,viewService:a})=>k((({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:m})=>{const{verticalScrollDirection:h,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o=KL.None,i=KL.None;return o=n>t?KL.Down:n<t?KL.Up:KL.None,i=r>e?KL.Right:r<e?KL.Left:KL.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(i.current,s,u);if(i.current.overscanColumnStartIndex=s,i.current.overscanColumnStopIndex=l,i.current.overscanRowStartIndex=u,i.current.overscanRowStopIndex=c,u>n)return;const b=s,v=u+o.page*o.rowsPerPage,y=l-s+1,x=c-u+1;if(a.visibleLeft=d,a.visibleWidth=p-d+1,a.visibleTop=f+o.page*o.rowsPerPage,a.visibleHeight=m-f+1,a.page=o.page,a.rowsPerPage=o.rowsPerPage,h===KL.Down){const e=x+25;t(b,v,y,u+e>n?n-u:e)}else if(h===KL.Up){const e=x+25,r=o.page*o.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(g===KL.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(g===KL.Left){const t=Math.max(0,b-5),n=Math.min(e.qHyperCube.qSize.qcx,y+5);r(t,v,n,x)}}),[i,n,o.page,o.rowsPerPage,a,t,e.qHyperCube.qSize.qcx,r]),JL={enabled:!1},ZL=()=>{},QL={current:null};const ek=(e,t,r,n,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(r.height/o)),s=C((()=>n.reduce(((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[r,n]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:s}},tk=({columnIndex:e,data:t,rowIndex:r})=>{var n,o;const i=null===(n=t.rowsInPage[r])||void 0===n?void 0:n[e];return null!==(o=null==i?void 0:i.id)&&void 0!==o?o:`${r}-${e}`},rk={overflow:"hidden",willChange:"auto"};var nk=_(T(((e,t)=>{var r;const{rect:n,columns:o,pageInfo:i,headerAndTotalsHeight:a,setInnerBodyHeight:s}=e,{layout:l,model:u,theme:c,viewService:d,styleService:p,direction:f}=nO(QR,(e=>e.baseProps)),m=nO(QR,(e=>e.columnWidths)),h=nO(QR,(e=>e.initialDataPages)),g=L(null),b=L(null),v=L({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),y=L(0),x=!(null===(r=jR(l))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect),{rowCount:S,visibleRowCount:w,visibleColumnCount:E}=ek(l,i,n,m,p.contentMinRowHeight),{setMeasuredCellHeight:O,setEstimatedCellHeight:P,getRowHeight:A,lineClamp:I,totalRowHeight:D}=UL({rowCount:S,isSnapshot:!!l.snapshotData,viewService:d,gridRef:g,pageInfo:i}),{rowsInPage:M,loadRows:k,loadColumns:T}=BL({layout:l,model:u,theme:c,initialDataPages:h,pageInfo:i,rowCount:S,visibleRowCount:w,visibleColumnCount:E,columns:o,gridState:v,setEstimatedCellHeight:P}),_=XL({layout:l,loadRows:k,loadColumns:T,rowCount:S,pageInfo:i,gridState:v,viewService:d}),q=sI(),N=C((()=>({rowsInPage:M,columns:o,isHoverEnabled:x,lineClamp:I,setMeasuredCellHeight:O,resizeObserverTaskScheduler:q})),[M,o,x,I,O,q]),z=((e,t,r)=>Math.min(e.height-t,r))(n,a,D);return j((()=>{var e;1===y.current&&(null===(e=g.current)||void 0===e||e.scrollToItem({rowIndex:S-1,align:"start"}))})),function(e){const{selectionsAPI:t}=nO(QR,(e=>e.baseProps)),r=nO(QR,(e=>e.selectionDispatch));R((()=>{r({type:$w.UpdatePageRows,payload:{pageRows:e}})}),[r,e]),lI({selectionsAPI:t,selectionDispatch:r,updateShouldRefocus:ZL,keyboard:JL,tableWrapperRef:QL})}(M),F(t,(()=>({interpolatedScrollTo:(e,t)=>{var r,n;const o=(null!==(r=null===(n=b.current)||void 0===n?void 0:n.clientHeight)&&void 0!==r?r:z)-z,i=Math.round(o*e);var a,s,l;(y.current=e,1===y.current)?(null===(a=g.current)||void 0===a||a.scrollToItem({rowIndex:S-1,align:"start"}),null===(s=g.current)||void 0===s||s.scrollTo({scrollLeft:t})):null===(l=g.current)||void 0===l||l.scrollTo({scrollTop:i,scrollLeft:t})}})),[b,z,S]),YL(b,s),nr.jsx(gL,{"data-key":"body",ref:g,innerRef:b,style:rk,columnCount:l.qHyperCube.qSize.qcx,columnWidth:e=>m[e],height:z,rowCount:S,rowHeight:A,estimatedRowHeight:d.estimatedRowHeight,width:n.width,itemData:N,onItemsRendered:_,itemKey:tk,className:"sn-table-body",direction:f,children:jL})})));const ok=({width:e,height:t,children:r})=>nr.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),ik=(e,t)=>{const r=L(null),n=nO(QR,(e=>e.columnWidths));j((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=k((r=>{const n=ML(r);n&&t(n+9,e)}),[e,t]);return LL(r,o),r},ak=Rw("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e})((({interactions:e,hoverBackground:t,background:r,applicableStyle:n})=>({...n,background:r,"&&:hover":{background:e.active?t:void 0}}))),sk=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,allColumnsIconVisibilityStatusRef:i,setMeasuredCellHeight:a}=r,{interactions:s,styleService:l,direction:u}=nO(QR,(e=>e.baseProps)),c=nO(QR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),d=nO(QR,(e=>e.showRightBorder)),p=nO(QR,(e=>e.tableData.totalsPosition)),f=!!s.active&&!c,{open:m,setOpen:h,handleOpenMenu:g,setIsAdjustingWidth:b}=VM({isInteractionEnabled:f,columnsData:n}),v=ik(e,a),y=n[e],x=n.length-1===e;return nr.jsxs(ak,{className:`sn-table-cell ${Hm}`,title:s.passive?y.label:void 0,onClick:g,applicableStyle:{...l.header,...PM(l,p,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:UI(u,x,d),borderLeftWidth:YI(u,x,d),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:y.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:"right"===y.headTextAlign?"row-reverse":"row",userSelect:"none"},interactions:s,hoverBackground:l.headerMenuHoverBackground,background:m?l.headerMenuActiveBackground:l.header.background,children:[nr.jsx($M,{forwardRef:v,column:y,isInteractionEnabled:f,open:m,setOpen:h,allColumnsIconVisibilityStatusRef:i}),nr.jsx(kM,{column:y,isLastColumn:x,onColumnResize:o,setIsAdjustingWidth:b})]})},lk=e=>{const[t,r]=E(new Map);Lm((()=>{r(new Map)}),[e.length]);const n=k(((e,t)=>{r((r=>VL(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:C((()=>$L(t)),[t]),setMeasuredCellHeight:n}},uk=(e,t)=>{F(e,(()=>({scrollTo:e=>{var r;return null===(r=t.current)||void 0===r?void 0:r.scrollTo(e)}})),[t])},ck=(e,t,r,n,o)=>{Lm((()=>{var t;null===(t=e.current)||void 0===t||t.resetAfterIndex(0,!1)}),[t,r,e,n,o])},dk={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},pk=T(((e,t)=>{const{rect:r,columns:n,pageInfo:o,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a,setHeaderRowHeight:s}=e,l=L(null),u=L(null),{layout:c,theme:d,styleService:p,direction:f,viewService:m}=nO(QR,(e=>e.baseProps)),h=nO(QR,(e=>e.columnWidths)),g=nO(QR,(e=>e.env)),{rowHeight:b,setMeasuredCellHeight:v}=lk(n),y=LM(m,c,g);return uk(t,l),ck(l,c,o,h,d),YL(u,s),nr.jsx(CL,{ref:l,outerRef:u,layout:"horizontal",style:{...dk,...y?{display:"none"}:void 0},itemCount:c.qHyperCube.qSize.qcx,itemSize:e=>h[e],height:Math.max(b+8,p.headerMinRowHeight),width:r.width,itemData:{columns:n,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a,setMeasuredCellHeight:v},direction:f,children:sk})}));var fk=_(pk);const mk=T(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a,direction:s}=nO(QR,(e=>e.baseProps));return nr.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.scroll?"auto":"hidden",width:n,height:o},onScroll:i,dir:s,children:r})})),hk=({children:e,rect:t})=>{const{direction:r}=nO(QR,(e=>e.baseProps));return nr.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==r?"0px":void 0,right:"rtl"===r?"0px":void 0,width:t.width,height:t.height},children:e})},gk=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,{layout:a,interactions:s,styleService:l,direction:u}=nO(QR,(e=>e.baseProps)),c=nO(QR,(e=>e.showRightBorder)),d=ik(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:m}=n[e],h=a.qHyperCube.qSize.qcx-1===e;return nr.jsx("div",{className:`sn-table-cell ${Hm}`,title:s.passive?p:void 0,style:{...t,...l.totalRow,...PM(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:UI(u,h,c),borderLeftWidth:YI(u,h,c),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:f,textAlign:f,boxSizing:"border-box",cursor:"default"},children:nr.jsx(kI,{forwardRef:m?void 0:d,isNumeric:m,children:p})})},bk=T(((e,t)=>{const{rect:r,pageInfo:n,totals:o,columns:i,setTotalsRowHeight:a}=e,s=L(null),l=L(null),{layout:u,theme:c,styleService:d,direction:p}=nO(QR,(e=>e.baseProps)),f=nO(QR,(e=>e.columnWidths)),{rowHeight:m,setMeasuredCellHeight:h}=lk(i);return uk(t,s),ck(s,u,n,f,c),YL(l,a),nr.jsx(CL,{ref:s,outerRef:l,layout:"horizontal",style:dk,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>f[e],height:Math.max(m,d.totalRowMinHeight),width:r.width,itemData:{columns:i,totals:o,setMeasuredCellHeight:h},direction:p,children:gk})}));var vk=_(bk);const yk=(e,t,r,n,o)=>k((i=>{var a,s,l;const{scrollHeight:u,clientHeight:c,scrollTop:d}=i.currentTarget,p=((e,t)=>{const{scrollWidth:r,clientWidth:n,scrollLeft:o}=e,i=r-n;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,o),f=Math.max(0,Math.min(1,d/(u-c)));n.scrollTopRatio=f,n.scrollLeft=p,null===(a=r.current)||void 0===a||a.interpolatedScrollTo(Number.isNaN(f)?0:f,p),null===(s=e.current)||void 0===s||s.scrollTo(p),null===(l=t.current)||void 0===l||l.scrollTo(p)}),[n,r,e,t,o]),xk=e=>{const{pageInfo:t}=e,{totalsPosition:r,columns:n,paginationNeeded:o}=nO(QR,(e=>e.tableData)),{layout:i,theme:a,rect:s,viewService:l,direction:u}=nO(QR,(e=>e.baseProps)),c=nO(QR,(e=>e.columnWidths)),d=nO(QR,(e=>e.setYScrollbarWidth)),p=L(null),f=L(null),m=L(null),h=L(null),{xScrollbarWidth:g,yScrollbarWidth:b}=eI(p),v=L([]),y=C((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(s,o)),[s,o]),x=C((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(y,g,b)),[y,g,b]),{rowCount:S}=ek(i,t,x,c,0),{headerAndTotalsHeight:w,innerBodyHeight:R,setHeaderRowHeight:O,setTotalsRowHeight:P,setInnerBodyHeight:A}=(()=>{const[e,t]=E(0),[r,n]=E(0),[o,i]=E(0);return{headerAndTotalsHeight:e+r,innerBodyHeight:o,setHeaderRowHeight:t,setTotalsRowHeight:n,setInnerBodyHeight:i}})(),{width:I,height:D}=(({innerBodyHeight:e,headerAndTotalsHeight:t,rowCount:r,stickyContainerRect:n,columnWidths:o})=>{const{styleService:i}=nO(QR,(e=>e.baseProps)),a=e+t,s=r*i.contentMinRowHeight+t;let l=s;return s<n.height&&a>n.height&&(l=a),{width:o.reduce(((e,t)=>e+t),0),height:l}})({innerBodyHeight:R,headerAndTotalsHeight:w,rowCount:S,stickyContainerRect:x,columnWidths:c}),M=yk(f,m,h,l,u),T=k((()=>{p.current&&(p.current.scrollTop=0)}),[p]);GA(),j((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[n.length]),j((()=>{p.current&&(p.current.scrollTop=0)}),[t,S,a]),kA((()=>{d(b)}),[b]);const _=nr.jsx(vk,{rect:x,pageInfo:t,columns:n,ref:m,totals:r,setTotalsRowHeight:P},"totals");return nr.jsx(mk,{ref:p,width:y.width,height:y.height,onScroll:M,children:nr.jsx(ok,{width:I,height:D,children:nr.jsxs(hk,{rect:x,children:[nr.jsx(fk,{rect:x,pageInfo:t,columns:n,ref:f,columResizeHandler:T,allColumnsIconVisibilityStatusRef:v,setHeaderRowHeight:O}),r.atTop?_:null,nr.jsx(nk,{ref:h,rect:x,pageInfo:t,columns:n,headerAndTotalsHeight:w,setInnerBodyHeight:A}),r.atBottom?_:null]})})})};var Sk=_(xk);const wk=()=>{const{theme:e,keyboard:t,translator:r,interactions:n,rect:o,layout:i}=nO(QR,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:s,totalColumnCount:l,totalPages:u}=nO(QR,(e=>e.tableData)),c=nO(QR,(e=>e.pageInfo)),d=nO(QR,(e=>e.setPage));return nr.jsxs(MA,{"data-testid":"sn-table",background:e.background,children:[nr.jsx(Sk,{pageInfo:c}),nr.jsx(IA,{paginationNeeded:a,handleChangePage:e=>{d(e)},pageInfo:c,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:t,translator:r,theme:e,interactions:n,rect:o,layout:i})]})};var Ek=_(wk);var Ck={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 Rk=(e,r)=>t((()=>(function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(Ck).forEach((t=>{e.add(Ck[t])}))}(r),((e,t)=>{let r;return({keys:n,politeness:o="polite"})=>{const i=n.map((e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)})).join(" "),a=e.querySelector(`.${Ww.First}`),s=e.querySelector(`.${Ww.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;r===Ww.First?(l=s,r=Ww.Second):(l=a,r=Ww.First),l.innerHTML=l.innerHTML.endsWith(" ­")?i:`${i} ­`,l.setAttribute("aria-live",o)}})(e,r))),[e,r.language()]),Ok={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},Pk=e=>{const{app:t,model:n,rootElement:a,layout:s,translator:l,reactRoot:u,isFontLoaded:c,viewService:d,env:p}=e,{direction:f,footerContainer:m}=r(),h=Qv(s,d),g=Rk(a,l),[b,v]=o(((e,t)=>Zv(e,t)?{page:t.page||Ok.page,rowsPerPage:t.rowsPerPage||Ok.rowsPerPage,rowsPerPageOptions:Ok.rowsPerPageOptions}:Ok)(s,d)),[y,x]=o(!0);y||x(!0);const[S,w]=Cm((async()=>h?async function(e,t,r,n,o,i,a,s){var l,u,c,d;const{page:p,rowsPerPage:f,rowsPerPageOptions:m}=r,h=t.qHyperCube.qSize.qcx,g=t.qHyperCube.qSize.qcy,b=Math.ceil(g/f),v=null!==(l=o.visibleTop)&&void 0!==l?l:p*f,y=null!==(u=o.visibleHeight)&&void 0!==u?u:Math.min(f,g-v);if(p>0&&v>=g)return n({...r,page:0}),null;if(y*h>Vv)return n({...r,rowsPerPage:Wv(h,m),page:0}),null;const x=g>10,S=Gv(t,o),w=Jv(t,a,s),E=!!t.snapshotData,C=await(async(e,t,r)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const n=t.qHyperCube.qDataPages.at(0),o=null==n?void 0:n.qArea;return n&&(null==o?void 0:o.qLeft)===r.qLeft&&o.qTop===r.qTop&&o.qWidth===r.qWidth&&o.qHeight>=r.qHeight?[{...n,qMatrix:n.qMatrix.slice(0,r.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[r]):[]})(e,t,{qLeft:0,qTop:v,qHeight:y,qWidth:h});E||(o.qTop=v,o.qHeight=y,o.rowsPerPage=r.rowsPerPage,o.page=r.page);const R=null!==(c=null===(d=C.at(0))||void 0===d?void 0:d.qMatrix.map(((e,r)=>{const n=[];return w.forEach(((o,l)=>{const u=e[l],c=$v(o.isDim,u,t,i),d=i.flags.isEnabled("CLIENT_IM_7121_TABLE_NULL_REP")&&!o.isDim&&u.qIsNull,p=d?zb(c):Fb(u);n[l]={id:jb(),...u,align:Xv(p,o.bodyTextAlign,s,a),rowIdx:r+v,colIdx:o.colIdx,pageRowIdx:r,pageColIdx:l,selectionColIdx:o.selectionColIdx,isSelectable:o.isDim&&!o.isLocked,isLastRow:r===y-1,isNumeric:p,isNull:(!d||!p)&&Bv(u,o.isDim),representation:Hv({cell:u,representationProperties:o.representation,attrExprInfoIndex:o.qAttrExprInfoIndex,env:i,conditionalColoring:o.conditionalColoring,miniChartOnMeasure:o.qMiniChart,getText:()=>d?c:u.qText,direction:s,enabledFeatures:{[Tg.Image]:i.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[Tg.Indicator]:i.flags.isEnabled("CLIENT_IM_6696_INDICATORS"),[Tg.MiniChart]:!0}})}})),n})))&&void 0!==c?c:[];return{totalColumnCount:h,totalRowCount:g,totalPages:b,paginationNeeded:x,totalsPosition:S,columns:w,rows:R}}(n,s,b,v,d,p,y,f):null),[s,b,n,h,f]);i((()=>{h&&e.model&&e.changeSortOrder&&S&&c&&!w&&function(e,t){const{direction:r,...n}=e,o=oO(r);t.render(nr.jsx(xi,{stylisPlugins:"rtl"===r?[bE]:void 0,children:nr.jsx(Pw,{theme:o,children:nr.jsx(rO,{...e,children:nr.jsx(KM,{...n})})})}))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:S,pageInfo:b,setPageInfo:v,direction:f,footerContainer:m,announce:g},u)}),[g,t,f,m,c,b,u,e,h,S,w])},Ak=e=>{const r=t((()=>Am(e)),[e]);return i((()=>()=>{r.unmount()}),[r]),r},Ik=(e,r)=>t((()=>((e,t)=>{if(t)return async(r,n)=>{if(!("getEffectiveProperties"in t))return;const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=r,u=o?i:i-e,c=await t.getEffectiveProperties(),d=c.qHyperCubeDef.qInterColumnSortOrder,p=[],f=n!==s||l;if(!o){var m;const e=null===(m=c.qHyperCubeDef.qMeasures.at(u))||void 0===m?void 0:m.qSortBy;void 0===(null==e?void 0:e.qSortByNumeric)&&p.push({qPath:`/qHyperCubeDef/qMeasures/${u}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===s?1:-1})})}l||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),t.applyPatches(p,!0)}})(e.qDimensionInfo.length,r)),[e.qDimensionInfo.length,r]);const Dk=({model:e,layout:t,shouldRender:r,page:n})=>{const[o,i]=Cm((async()=>{if(r&&e)return(async(e,t,r)=>{const{qDataPages:n}=t.qHyperCube;if(0!==r||0===n.length){const n=r*Math.min(vR,t.qHyperCube.qSize.qcy);if(e&&"getHyperCubeData"in e)return e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:n,qWidth:50,qHeight:100}])}return n})(e,t,n)}),[e,t,n]);return{initialDataPages:o,isLoading:i}},Mk=e=>{const{layout:r,model:n,keyboard:a,interactions:s,reactRoot:l,isFontLoaded:u,viewService:c,direction:d}=e,p=!Qv(r,c),[f,m]=o(!1);f&&m(!1);const h=t((()=>function(e,t,r,n,o){const i=Jv(e,o,n),a=Gv(e,r),s=e.qHyperCube.qSize.qcy,l=Math.min(vR,s),u=s>vR&&!!t.active;return{totalsPosition:a,columns:i,rows:[],totalRowCount:s,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(s/l),paginationNeeded:u}}(r,s,c,d,f)),[r,s,c,d,f]),{pageInfo:g,setPage:b}=((e,r)=>{const[n,i]=o(0),a=Math.min(vR,e.qHyperCube.qSize.qcy),s=t((()=>({page:n,rowsPerPage:a,rowsPerPageOptions:[]})),[a,n]);if(r){const t=Math.floor(e.qHyperCube.qSize.qcy/vR);t<n&&i(t)}return{pageInfo:s,setPage:i}})(r,p),{initialDataPages:v,isLoading:y}=Dk({model:n,layout:r,page:g.page,shouldRender:p});i((()=>{var e;p&&a.active&&(null===(e=a.blur)||void 0===e||e.call(a,!1))}),[a,p]),i((()=>{p&&e.model&&e.changeSortOrder&&v&&!y&&u&&function(e,t){const{direction:r}=e,n=oO(r);t.render(nr.jsx(x.StrictMode,{children:nr.jsx(Pw,{theme:n,children:nr.jsx(rO,{...e,children:nr.jsx(Ek,{})})})}))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:h,pageInfo:g,setPage:b,initialDataPages:v},l)}),[v,u,y,g,l,e,b,p,h])},Lk={version:JSON.stringify("4.8.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals",label:"Totals"},usePagination:!1,components:[]};var kk=e=>({properties:{initial:Lk},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:t=>Pg({...t,env:e}),exportProperties:Sg,exploration:Ag});function Tk(e,t){var r,n;const o=e.getElementsByClassName("sn-table-container")[0];if(!o)return{};const i=o.getBoundingClientRect(),a=e.getElementsByClassName("sn-table-head-row")[0],s=null!==(r=null==a?void 0:a.getBoundingClientRect())&&void 0!==r?r:{height:0},l=e.getElementsByClassName("sn-table-totals-row")[0],u=null!==(n=null==l?void 0:l.getBoundingClientRect())&&void 0!==n?n:{height:0},c=e.getElementsByClassName("sn-table-data-row"),d={top:i.y+s.height+(t.atTop?u.height:0),bottom:i.y+i.height-(t.atBottom?u.height:0)},p=((e,t)=>{if(!e)return-1;for(let r=0;r<e.length;r++)if(e[r].getBoundingClientRect().bottom>t.top)return r;return-1})(c,d),f=((e,t)=>{if(!e)return-1;for(let r=e.length-1;r>-1;r--){const n=e[r].getBoundingClientRect();if(t.bottom>n.top)return r}return-1})(c,d),m=((e,t,r)=>{if(!e||0===e.length||r<0)return 0;const n=e[r].getBoundingClientRect();return Math.max(t.top-n.top,0)})(c,d,p);return{visibleRowStartIndex:p,visibleRowEndIndex:f,rowPartialHeight:m}}const _k=(e,t)=>{if(t)for(let r=0;r<t.length;r++){const n=t[r].getAttribute("rowindex");if(n&&parseInt(n,10)===e)return t[r]}},jk=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const qk=(e,t,r,n)=>{var o;if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||Ok.rowsPerPage,s=null!==(o=n.viewState)&&void 0!==o&&o.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},Nk=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=Gv(e,t);if(Qv(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=Tk(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:qk(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=null==r?void 0:r.getBoundingClientRect(),o=null==r?void 0:r.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:u=0}=t,c=l*u,d=a-c,p=d+s-1,f=_k(d,o),m=null==f?void 0:f.getBoundingClientRect();if(!f||!m)return{};const h=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(m.y>=h-4?0:1)+c,visibleRowEndIndex:p+c};const g=n.y+n.height,b=(jk(m,h,g)?d:d+1)+c;let v=p+c;const y=_k(p,o),x=null==y?void 0:y.getBoundingClientRect();return y&&x&&(jk(x,h,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:qk(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},Fk=({layout:e,viewService:t,model:r,rootElement:n,contentRect:o})=>{u((async i=>{const a=i;if(!a.snapshotData||!r||a.snapshotData.content)return a;if("getHyperCubeData"in r){const{rowPartialHeight:i,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m}=Nk(e,t,n);a.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:d,qWidth:e.qHyperCube.qSize.qcx,qHeight:p}]),a.snapshotData.content={rowPartialHeight:i,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m,size:{width:o.width,height:o.height},estimatedRowHeight:t.estimatedRowHeight}}return a})),c((()=>({getViewState:()=>Nk(e,t,n)})),[e,t,n])},zk=e=>{const{viewState:n}=r();return t((()=>((e,t)=>{var r,n,o,i,a,s,l,u,c,d,p,f,m,h,g,b,v;return{qTop:0,qHeight:0,rowPartialHeight:null!==(r=null==t||null===(n=t.content)||void 0===n?void 0:n.rowPartialHeight)&&void 0!==r?r:0,visibleTop:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.visibleTop)&&void 0!==o?o:null==e?void 0:e.visibleTop,visibleHeight:null!==(a=null==t||null===(s=t.content)||void 0===s?void 0:s.visibleHeight)&&void 0!==a?a:null==e?void 0:e.visibleHeight,scrollLeft:null!==(l=null!==(u=null==t||null===(c=t.content)||void 0===c?void 0:c.scrollLeft)&&void 0!==u?u:null==e?void 0:e.scrollLeft)&&void 0!==l?l:0,scrollTopRatio:null!==(d=null==t||null===(p=t.content)||void 0===p?void 0:p.scrollTopRatio)&&void 0!==d?d:null==e?void 0:e.scrollTopRatio,rowsPerPage:null!==(f=null==t||null===(m=t.content)||void 0===m?void 0:m.rowsPerPage)&&void 0!==f?f:null==e?void 0:e.rowsPerPage,page:null!==(h=null==t||null===(g=t.content)||void 0===g?void 0:g.page)&&void 0!==h?h:null==e?void 0:e.page,viewState:e,estimatedRowHeight:null!==(b=null==t||null===(v=t.content)||void 0===v?void 0:v.estimatedRowHeight)&&void 0!==b?b:0}})(n,e.snapshotData)),[n,e.snapshotData,e.usePagination])},Hk=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),Bk=e=>e.getStyle("object","straightTableV2","backgroundColor")}}}));
121
+ */!function(e,t){var r;function n(e,t){var r=[],n=0;function o(e){return r.push(e),t}function i(){return r[n++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="direction\\s*:\\s*",a="['\"]?\\s*",s="(^|[^a-zA-Z])",l="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",c="(?:[_a-z0-9-]|"+r+"|"+u+")",d=o+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+r+"|"+u+")")+c+"*")+")?",p="((?:-?"+d+")|(?:inherit|auto))",f="(#?"+c+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",m="(?:[!#$%&*-~]|"+r+"|"+u+")*?",h="(?![a-zA-Z])",g="(?!("+c+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",b="(?!"+m+a+"\\))",v="(?="+m+a+"\\))",y="(\\s*(?:!important\\s*)?[;}])",x=/`TMP`/g,S=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),E=new RegExp("("+l+g+"[^;}]+;?)","gi"),C=new RegExp("("+l+"[^\\}]*?})","gi"),w=new RegExp("("+i+")ltr","gi"),R=new RegExp("("+i+")rtl","gi"),A=new RegExp(s+"(left)"+h+b+g,"gi"),D=new RegExp(s+"(right)"+h+b+g,"gi"),L=new RegExp(s+"(left)"+v,"gi"),I=new RegExp(s+"(right)"+v,"gi"),q=new RegExp(s+"(ltr)"+v,"gi"),P=new RegExp(s+"(rtl)"+v,"gi"),M=new RegExp(s+"([ns]?)e-resize","gi"),_=new RegExp(s+"([ns]?)w-resize","gi"),k=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+y,"gi"),T=new RegExp("((?:-color|border-style)\\s*:\\s*)"+f+"(\\s+)"+f+"(\\s+)"+f+"(\\s+)"+f+y,"gi"),O=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+d+")","gi"),N=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),F=new RegExp("(border-radius\\s*:\\s*)"+p+"(?:(?:\\s+"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?)?(?:(?:(?:\\s*\\/\\s*)"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?(?:\\s+"+p+")?)?"+y,"gi"),j=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+p,"gi"),z=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+f,"gi"),H=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+p,"gi"),B=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),$=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),V=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+p+"((?:\\s*,\\s*"+p+"){0,2}\\s*\\))","gi");function G(e,t,r){var n,o;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r}function W(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 U(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter((function(e){return e})),o=r.slice(6,10).filter((function(e){return e})),i=r[10]||"";return t+(o.length?W(n)+" / "+W(o):W(n))+i}function Y(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function K(e,t,r){return t+Y(r)}function X(e,t,r,n,o){return t+r+Y(n)+o}function J(e,t,r,n,o){return t+r+n+Y(o)}return{transform:function(r,o){var i=new n(E,"`NOFLIP_SINGLE`"),a=new n(C,"`NOFLIP_CLASS`"),s=new n(S,t);return r=s.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(q,"$1"+e).replace(P,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(r=r.replace(L,"$1"+e).replace(I,"$1left").replace(x,"right")),r=r.replace(w,"$1"+e).replace(R,"$1ltr").replace(x,"rtl").replace(A,"$1"+e).replace(D,"$1left").replace(x,"right").replace(M,"$1$2"+e).replace(_,"$1$2e-resize").replace(x,"w-resize").replace(F,U).replace(j,K).replace(z,J).replace(H,J).replace(B,K).replace($,X).replace(V,X).replace(k,"$1$2$3$8$5$6$7$4$9").replace(T,"$1$2$3$8$5$6$7$4$9").replace(O,G).replace(N,G),r=i.detokenize(a.detokenize(s.detokenize(r)))}}},e.exports?t.transform=function(e,t,n){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof n&&(o.transformEdgeInUrl=n)),r.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=r)}(eR,eR.exports);var tR=At(eR.exports),rR="comm",nR="rule",oR="decl",iR=Math.abs,aR=String.fromCharCode;function sR(e){return e.trim()}function lR(e,t,r){return e.replace(t,r)}function uR(e,t,r){return e.indexOf(t,r)}function cR(e,t){return 0|e.charCodeAt(t)}function dR(e,t,r){return e.slice(t,r)}function pR(e){return e.length}function fR(e,t){return t.push(e),e}var mR,hR,gR,bR,vR=1,yR=1,xR=0,SR=0,ER=0,CR="";function wR(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:vR,column:yR,length:a,return:"",siblings:s}}function RR(){return ER=SR>0?cR(CR,--SR):0,yR--,10===ER&&(yR=1,vR--),ER}function AR(){return ER=SR<xR?cR(CR,SR++):0,yR++,10===ER&&(yR=1,vR++),ER}function DR(){return cR(CR,SR)}function LR(){return SR}function IR(e,t){return dR(CR,e,t)}function qR(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 PR(e){return sR(IR(SR-1,kR(91===e?e+2:40===e?e+1:e)))}function MR(e){for(;(ER=DR())&&ER<33;)AR();return qR(e)>2||qR(ER)>3?"":" "}function _R(e,t){for(;--t&&AR()&&!(ER<48||ER>102||ER>57&&ER<65||ER>70&&ER<97););return IR(e,LR()+(t<6&&32==DR()&&32==AR()))}function kR(e){for(;AR();)switch(ER){case e:return SR;case 34:case 39:34!==e&&39!==e&&kR(ER);break;case 40:41===e&&kR(e);break;case 92:AR()}return SR}function TR(e,t){for(;AR()&&e+ER!==57&&(e+ER!==84||47!==DR()););return"/*"+IR(t,SR-1)+"*"+aR(47===e?e:AR())}function OR(e){for(;!qR(DR());)AR();return IR(e,SR)}function NR(e){return function(e){return CR="",e}(FR("",null,null,null,[""],e=function(e){return vR=yR=1,xR=pR(CR=e),SR=0,[]}(e),0,[0],e))}function FR(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,E=n,C=y;g;)switch(m=v,v=AR()){case 40:if(108!=m&&58==cR(C,d-1)){-1!=uR(C+=lR(PR(v),"&","&\f"),"&\f",iR(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=PR(v);break;case 9:case 10:case 13:case 32:C+=MR(m);break;case 92:C+=_R(LR()-1,7);continue;case 47:switch(DR()){case 42:case 47:fR(zR(TR(AR(),LR()),t,r,l),l),5!=qR(m||1)&&5!=qR(DR()||1)||!pR(C)||" "===dR(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*h:s[u++]=pR(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=lR(C,/\f/g,"")),f>0&&(pR(C)-d||0===h&&47===m)&&fR(f>32?HR(C+";",n,r,d-1,l):HR(lR(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(fR(E=jR(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)FR(C,t,E,E,x,i,d,s,S);else{switch(p){case 99:if(110===cR(C,3))break;case 108:if(97===cR(C,2))break;default:c=0;case 100:case 109:case 115:}c?FR(e,E,E,n&&fR(jR(e,E,E,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S):FR(C,E,E,E,[""],S,0,s,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+pR(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==RR())continue;switch(C+=aR(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(pR(C)-1)*b,b=1;break;case 64:45===DR()&&(C+=PR(AR())),p=DR(),c=d=pR(y=C+=OR(LR())),v++;break;case 45:45===m&&2==pR(C)&&(h=0)}}return i}function jR(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],m=function(e){return e.length}(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=dR(e,p+1,p=iR(g=a[h])),x=e;v<m;++v)(x=sR(g>0?f[v]+" "+y:lR(y,/&\f/g,f[v])))&&(l[b++]=x);return wR(e,t,r,0===o?nR:s,l,u,c,d)}function zR(e,t,r,n){return wR(e,t,r,rR,aR(ER),dR(e,2,-2),0,n)}function HR(e,t,r,n,o){return wR(e,t,r,oR,dR(e,0,n),dR(e,n+1,-1),n,o)}function BR(e,t,r){switch(e.type){case"@import":case oR:case rR:return e.return=e.return||e.value;case nR:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===rR&&(e.children=e.value)}))}var n=function(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}(Array.prototype.concat(e.children),BR);return pR(n)?e.return=e.value+"{"+n+"}":""}function $R(e,t,r,n){if("@keyframes"===e.type||"@supports"===e.type||e.type===nR&&(!e.parent||"@media"===e.parent.type||e.parent.type===nR)){var o=tR.transform(BR(e));e.children=o?NR(o)[0].children:[],e.return=""}}Object.defineProperty($R,"name",{value:"stylisRTLPlugin"}),function(e){e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive"}(mR||(mR={})),function(e){e.Select="Select",e.SelectMouseDown="SelectMouseDown",e.SelectMouseUp="SelectMouseUp",e.SelectMultiAdd="SelectMultiAdd",e.SelectMultiEnd="SelectMultiEnd",e.Reset="Reset",e.Clear="Clear",e.UpdatePageRows="UpdatePageRows"}(hR||(hR={})),function(e){e.A="ascending",e.D="descending"}(gR||(gR={})),function(e){e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2"}(bR||(bR={}));const VR=[0,0],GR={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",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",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_25:"rgba(0, 0, 0, 0.25)",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)"},WR=12,UR=14,YR=16,KR=24,XR=3,JR=300,ZR=400,QR=600,eA=700,tA={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};var rA='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A';function nA(e){return Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Ll.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function oA(e){return Ll.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Ll.jsx("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345L9.345 8Z"})})}var iA=function({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Ll.jsx("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})};function aA(e={}){return Ll.jsx(iA,{...e,children:Ll.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Ll.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Ll.jsx("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"})]})})}function sA(e={}){return Ll.jsx(iA,{...e,children:Ll.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Ll.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Ll.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Ll.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function lA(e={}){return Ll.jsx(iA,{fontSize:"medium",...e,children:Ll.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Ll.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Ll.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function uA(e={}){return Ll.jsx(iA,{fontSize:"medium",...e,children:Ll.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Ll.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Ll.jsx("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"})]})})}function cA({className:e}){return Ll.jsx(iA,{fontSize:"small",className:e,children:Ll.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Ll.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Ll.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Ll.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Ll.jsx("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),Ll.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function dA(e={}){return Ll.jsx(iA,{...e,children:Ll.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Ll.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Ll.jsx("rect",{stroke:GR.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const pA={MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{}}},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:XR,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"},transition:"unset",color:"var(--sprout-common-foreground-color-default)",boxShadow:"none","&:hover":{backgroundColor:"var(--sprout-common-background-color-hover)"},"&:active":{backgroundColor:"var(--sprout-common-background-color-pressed)"},"&.Mui-disabled":{backgroundColor:"var(--sprout-common-background-color-disabled)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"calc(var(--sprout-focus-border-default-width) / -2)",backgroundColor:"var(--sprout-focus-background-color-default)",zIndex:100}},text:{padding:"8px 16px",backgroundColor:"transparent"},textPrimary:{color:"var(--sprout-brand-primary-color-default)"},textSecondary:{color:"var(--sprout-info-color-default)"},textWarning:{color:"var(--sprout-warning-color-default)"},textError:{color:"var(--sprout-danger-color-default)"},outlined:{padding:"7px 16px",border:"var(--sprout-common-border-moderate)",backgroundColor:"var(--sprout-common-background-color-enabled)","&.Mui-focusVisible":{borderColor:"transparent"},"&:hover":{border:"var(--sprout-common-border-moderate)"}},outlinedPrimary:{borderColor:"var(--sprout-brand-primary-color-default)",color:"var(--sprout-brand-primary-color-default)","&:hover":{borderColor:"var(--sprout-brand-primary-color-default)"}},outlinedSecondary:{borderColor:"var(--sprout-info-color-default)",color:"var(--sprout-info-color-default)","&:hover":{borderColor:"var(--sprout-info-color-default)"}},outlinedWarning:{borderColor:"var(--sprout-warning-color-default)",color:"var(--sprout-warning-color-default)","&:hover":{borderColor:"var(--sprout-warning-color-default)"}},outlinedError:{borderColor:"var(--sprout-danger-color-default)",color:"var(--sprout-danger-color-default)","&:hover":{borderColor:"var(--sprout-danger-color-default)"}},contained:{color:"var(--sprout-brand-primary-color-inverse)",backgroundColor:"var(--sprout-brand-primary-color-default)",padding:"8px 16px","&:hover":{backgroundColor:"var(--sprout-brand-primary-color-hover)"},"&:active":{backgroundColor:"var(--sprout-brand-primary-color-pressed)"},"&.Mui-focusVisible":{outline:"var(--sprout-focus-border-default)",outlineOffset:"var(--sprout-focus-border-default-width)",background:"var(--sprout-brand-primary-color-focus)"}},containedError:{backgroundColor:"var(--sprout-danger-color-default)","&:hover":{backgroundColor:"var(--sprout-danger-color-hover)"},"&:active":{backgroundColor:"var(--sprout-danger-color-pressed)"},"&.Mui-focusVisible":{outlineColor:"var(--sprout-danger-color-inverse)",backgroundColor:"var(--sprout-danger-color-focus)"}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]}};var fA=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:GR.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:GR.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Ll.jsx(nA,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${GR.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:GR.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${GR.MISC_FOCUS_BORDER}`,borderRadius:XR,backgroundColor:GR.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${GR.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:GR.WHITE,color:GR.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:XR},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${GR.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:GR.GREYSCALE_0_15,backgroundColor:GR.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:GR.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${GR.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:GR.GREEN_PALE},"&:active":{backgroundColor:GR.GREEN_DARK},"&.Mui-focusVisible":{borderColor:GR.GREEN_PALE,boxShadow:`0 0 0 3px ${hm(GR.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:GR.BLUE_PALE},"&:active":{backgroundColor:GR.BLUE_DARK},"&.Mui-focusVisible":{borderColor:GR.BLUE_PALE,boxShadow:`0 0 0 3px ${hm(GR.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:XR,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:GR.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${GR.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:GR.GREYSCALE_0_15,backgroundColor:GR.GREYSCALE_100_60,"&:active":{backgroundColor:GR.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:GR.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${GR.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:GR.PURPLE,"&.Mui-focusVisible":{borderColor:GR.PURPLE,boxShadow:`0 0 0 3px ${hm(GR.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:GR.GREEN,"&.Mui-focusVisible":{borderColor:GR.GREEN,boxShadow:`0 0 0 3px ${hm(GR.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:GR.BLUE,"&.Mui-focusVisible":{borderColor:GR.BLUE,boxShadow:`0 0 0 3px ${hm(GR.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:GR.ORANGE,"&.Mui-focusVisible":{borderColor:GR.ORANGE,boxShadow:`0 0 0 3px ${hm(GR.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:GR.RED,"&.Mui-focusVisible":{borderColor:GR.RED,boxShadow:`0 0 0 3px ${hm(GR.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:GR.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:GR.PURPLE_PALE},"&:active":{backgroundColor:GR.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:GR.PURPLE_PALE,boxShadow:`0 0 0 3px ${hm(GR.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:GR.GREEN_PALE},"&:active":{backgroundColor:GR.GREEN_DARK},"&.Mui-focusVisible":{borderColor:GR.GREEN_PALE,boxShadow:`0 0 0 3px ${hm(GR.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:GR.BLUE_PALE},"&:active":{backgroundColor:GR.BLUE_DARK},"&.Mui-focusVisible":{borderColor:GR.BLUE_PALE,boxShadow:`0 0 0 3px ${hm(GR.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:GR.ORANGE_PALE},"&:active":{backgroundColor:GR.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:GR.ORANGE_PALE,boxShadow:`0 0 0 3px ${hm(GR.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:GR.RED_PALE},"&:active":{backgroundColor:GR.RED_DARK},"&.Mui-focusVisible":{borderColor:GR.RED_PALE,boxShadow:`0 0 0 3px ${hm(GR.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:GR.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:GR.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:XR,boxShadow:`inset 0 0 0 2px ${GR.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Ll.jsx(oA,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:WR,borderRadius:XR,color:GR.TEXT_PRIMARY,backgroundColor:GR.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:GR.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${GR.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:GR.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:GR.GREYSCALE_0_05,color:GR.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:GR.GREEN,borderColor:GR.GREEN},"&.MuiChip-outlinedInfo":{color:GR.BLUE,borderColor:GR.BLUE},"&.MuiChip-outlinedWarning":{color:GR.ORANGE,borderColor:GR.ORANGE},"&.MuiChip-outlinedError":{color:GR.RED,borderColor:GR.RED}},outlined:{border:`solid 1px ${GR.GREYSCALE_0_15}`,backgroundColor:GR.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:XR,boxShadow:"none",backgroundColor:GR.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:GR.GREEN,borderColor:GR.GREEN},outlinedSecondary:{color:GR.BLUE,borderColor:GR.BLUE},label:{fontFamily:tA.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Ll.jsx(oA,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Ll.jsx(nA,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:XR},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:XR,fontSize:UR,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:GR.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${GR.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:GR.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:GR.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:GR.GREYSCALE_0_05}}},popupIndicator:{borderRadius:XR,border:`solid 1px ${GR.GREYSCALE_0_15}`,color:GR.GREYSCALE_0_60,marginRight:0,width:KR,height:KR},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${GR.GREYSCALE_0_15}`},clearIndicator:{borderRadius:XR,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:GR.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:UR}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:WR,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:GR.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:GR.GREYSCALE_25,fontSize:WR,fontFamily:tA.FONT_FAMILY,fontWeight:QR,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:GR.TEXT_PRIMARY},"&.Mui-error":{color:GR.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:GR.TEXT_SECONDARY,content:"'(optional)'",fontWeight:ZR,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:GR.TEXT_SECONDARY,content:"'(required)'",fontWeight:ZR,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:UR,lineHeight:"16px",backgroundColor:GR.WHITE,borderRadius:XR,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${GR.GREYSCALE_0_05}`,borderColor:GR.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${GR.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${GR.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${GR.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${GR.RED}`,boxShadow:`0px 0px 0px 1px ${GR.RED}, inset 0 2px 0 0 ${GR.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${GR.GREYSCALE_0_10}`,borderColor:GR.GREYSCALE_0_10,backgroundColor:GR.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:GR.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:GR.GREYSCALE_0_15,borderRadius:XR,boxShadow:`inset 0 2px 0 0 ${GR.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Ll.jsx(nA,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:GR.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:GR.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:GR.GREYSCALE_0_03},"&:active":{backgroundColor:GR.GREYSCALE_0_10},"&:focus":{backgroundColor:GR.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${GR.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${GR.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:GR.GREYSCALE_0_30,"&:hover":{backgroundColor:GR.GREYSCALE_0_0,borderColor:GR.GREYSCALE_0_15},"& ~svg":{color:GR.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${GR.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:XR}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:GR.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${GR.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:GR.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:UR,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:WR,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:WR,fontWeight:QR,color:GR.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:QR}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${GR.GREYSCALE_0_15}, 0px 0px 0px 1px ${GR.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Ll.jsx(lA,{}),checkedIcon:Ll.jsx(uA,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:GR.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${GR.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:GR.GREEN_PALE,boxShadow:`0 0 0 3px ${hm(GR.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:GR.BLUE_PALE,boxShadow:`0 0 0 3px ${hm(GR.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:GR.GREYSCALE_0_20}},"&.Mui-disabled":{fill:GR.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Ll.jsx(dA,{}),checkedIcon:Ll.jsx(aA,{}),indeterminateIcon:Ll.jsx(sA,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:XR,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:GR.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:GR.GREYSCALE_0_55,color:GR.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:GR.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:GR.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:GR.GREYSCALE_0_55,"&:hover":{color:GR.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:GR.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:GR.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:UR,color:GR.TEXT_PRIMARY,lineHeight:"16px",fontWeight:QR},secondary:{fontSize:WR,color:GR.GREYSCALE_45,fontWeight:ZR,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:UR,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:UR,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:GR.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:WR,borderBottom:`solid 1px ${GR.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:UR,color:GR.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:GR.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:GR.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:GR.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:`url('${rA}')`,fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:GR.RED}}},"&.Mui-focusVisible":{backgroundColor:GR.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:GR.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:GR.GREEN,height:"24px","&.Mui-disabled":{color:GR.GREYSCALE_0_15}},rail:{backgroundColor:GR.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${GR.GREYSCALE_0_05}`,borderRadius:XR,boxShadow:`inset 0px 0px 0px 1px ${GR.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${GR.GREYSCALE_0_05}`,borderRadius:XR},thumb:{height:"16px",width:"16px",borderRadius:XR,backgroundColor:GR.WHITE,boxShadow:`0px 1px 2px 0px ${GR.GREYSCALE_0_15}, 0px 0px 0px 1px ${GR.GREYSCALE_0_05}`,"&:hover":{borderRadius:XR,boxShadow:`0 2px 4px 0 ${GR.GREYSCALE_0_30}, 0 0 0 1px ${GR.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${GR.GREYSCALE_0_15}, 0 0 0 1px ${GR.GREYSCALE_0_06}, 0 0 0 2px ${GR.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${GR.GREYSCALE_0_15}, 0 0 0 1px ${GR.GREYSCALE_0_06}, 0 0 0 2px ${GR.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:GR.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:GR.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:GR.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:GR.GREYSCALE_0_15},markLabel:{color:GR.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:GR.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:GR.WHITE,color:GR.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:GR.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:GR.GREEN_PALE,boxShadow:`0 0 0 3px ${hm(GR.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:GR.BLUE_PALE,boxShadow:`0 0 0 3px ${hm(GR.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:GR.GREYSCALE_0_15,borderRadius:XR},thumb:{height:"16px",width:"16px",borderRadius:XR,backgroundColor:GR.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:UR,fontWeight:QR,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${GR.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${GR.MISC_FOCUS_BORDER}`,backgroundColor:GR.GREYSCALE_0_03,borderRadius:XR},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:GR.GREYSCALE_25,"&.Mui-selected":{color:GR.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:UR,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:XR,"&:hover":{backgroundColor:GR.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${GR.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${GR.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:XR,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:GR.GREYSCALE_0_05},"&:hover":{backgroundColor:GR.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${GR.GREYSCALE_85}`,borderRight:`1px solid ${GR.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:QR,backgroundColor:GR.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:GR.GREYSCALE_98,borderBottom:`1px solid ${GR.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${GR.GREYSCALE_85}`,borderTop:`1px solid ${GR.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:GR.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:GR.GREYSCALE_0_05,"&:hover":{backgroundColor:GR.GREYSCALE_0_03}},"&&:hover":{backgroundColor:GR.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Ll.jsx(cA,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${GR.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:UR,borderRadius:XR,padding:"7px 16px",border:`1px solid ${GR.GREYSCALE_0_15}`,backgroundColor:GR.GREYSCALE_100_60,color:GR.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:GR.GREYSCALE_0_10,border:`1px solid ${GR.GREYSCALE_0_30}`},"&:hover":{backgroundColor:GR.GREYSCALE_0_03,border:`1px solid ${GR.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:GR.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${GR.MISC_FOCUS_BORDER}`,border:`1px solid ${GR.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:GR.GREYSCALE_25,backgroundColor:GR.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:GR.GREYSCALE_0_10,border:`1px solid ${GR.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:WR,height:24,width:24,padding:7},sizeLarge:{fontSize:YR,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:UR,borderRadius:XR}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:GR.GREYSCALE_20},tooltip:{backgroundColor:GR.GREYSCALE_20,fontSize:WR,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...pA}:{}});var mA=()=>({mode:"light",primary:{ultraLight:GR.GREEN_ULTRA_LIGHT,light:GR.GREEN_PALE,main:GR.GREEN,dark:GR.GREEN_DARK,extraDark:GR.GREEN_EXTRA_DARK,contrastText:GR.WHITE},secondary:{ultraLight:GR.BLUE_ULTRA_LIGHT,light:GR.BLUE_PALE,main:GR.BLUE,dark:GR.BLUE_DARK,extraDark:GR.BLUE_EXTRA_DARK,contrastText:GR.WHITE},error:{ultraLight:GR.RED_ULTRA_LIGHT,light:GR.RED_PALE,main:GR.RED,dark:GR.RED_DARK,extraDark:GR.RED_EXTRA_DARK,contrastText:GR.WHITE},warning:{ultraLight:GR.ORANGE_ULTRA_LIGHT,light:GR.ORANGE_PALE,main:GR.ORANGE,dark:GR.ORANGE_DARK,extraDark:GR.ORANGE_EXTRA_DARK,contrastText:GR.WHITE},success:{ultraLight:GR.GREEN_ULTRA_LIGHT,light:GR.GREEN_PALE,main:GR.GREEN,dark:GR.GREEN_DARK,extraDark:GR.GREEN_EXTRA_DARK,contrastText:GR.WHITE},info:{ultraLight:GR.BLUE_ULTRA_LIGHT,light:GR.BLUE_PALE,main:GR.BLUE,dark:GR.BLUE_DARK,extraDark:GR.BLUE_EXTRA_DARK,contrastText:GR.WHITE},text:{primary:GR.TEXT_PRIMARY,secondary:GR.TEXT_SECONDARY,disabled:GR.GREYSCALE_0_30},action:{hover:GR.GREYSCALE_0_03,hoverOpacity:.03,selected:GR.GREYSCALE_0_05,selectedOpacity:.05,focus:GR.MISC_FOCUS_BORDER},amethyst:{ultraLight:GR.WHITE,main:GR.PURPLE,light:GR.PURPLE_PALE,dark:GR.PURPLE_DARK,extraDark:GR.GREYSCALE_0_0,contrastText:GR.WHITE},background:{paper:GR.WHITE,default:GR.GREYSCALE_95},divider:GR.GREYSCALE_0_15});var hA=e=>mA();var gA=(e,t=!1)=>{const r=((e,t)=>fA(t))(0,t);return{components:r,palette:hA(e),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:UR,fontWeightLight:JR,fontWeightRegular:ZR,fontWeightMedium:QR,fontWeightBold:eA,htmlFontSize:UR,fontFamily:tA.FONT_FAMILY,button:{fontWeight:QR,fontSize:UR,textTransform:"none"},body1:{fontSize:YR,lineHeight:"24px"},body2:{fontSize:UR,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:KR,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:YR,fontWeight:QR,lineHeight:"16px"},h6:{fontSize:UR,fontWeight:QR,lineHeight:"16px"},caption:{color:GR.TEXT_SECONDARY},subtitle1:{fontSize:UR,color:GR.TEXT_SECONDARY},subtitle2:{fontSize:WR,color:GR.TEXT_SECONDARY}},shape:{borderRadius:XR}}},bA={},vA={exports:{}},yA={exports:{}};!function(e){function t(r){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(yA);var xA=yA.exports;!function(e){var t=xA.default;function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}e.exports=function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!=t(e)&&"function"!=typeof e)return{default:e};var o=r(n);if(o&&o.has(e))return o.get(e);var i={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var l=a?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(i,s,l):i[s]=e[s]}return i.default=e,o&&o.set(e,i),i},e.exports.__esModule=!0,e.exports.default=e.exports}(vA);var SA=vA.exports,EA={},CA=Dt(yr);Object.defineProperty(EA,"__esModule",{value:!0}),EA.hexToRgb=AA,EA.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=LA(e),r=t.values;return"#".concat(r.map((function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)})).join(""))},EA.hslToRgb=DA,EA.decomposeColor=LA,EA.recomposeColor=IA,EA.getContrastRatio=function(e,t){var r=qA(e),n=qA(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},EA.getLuminance=qA,EA.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return qA(e)>.5?MA(e,t):_A(e,t)},EA.fade=function(e,t){return PA(e,t)},EA.alpha=PA,EA.darken=MA,EA.lighten=_A;var wA=CA;function RA(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}function AA(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}function DA(e){var t=(e=LA(e)).values,r=t[0],n=t[1]/100,o=t[2]/100,i=n*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),IA({type:s,values:l})}function LA(e){if(e.type)return e;if("#"===e.charAt(0))return LA(AA(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,wA.formatMuiErrorMessage)(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map((function(e){return parseFloat(e)}))}}function IA(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}function qA(e){var t="hsl"===(e=LA(e)).type?LA(DA(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function PA(e,t){return e=LA(e),t=RA(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,IA(e)}function MA(e,t){if(e=LA(e),t=RA(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]*=1-t;return IA(e)}function _A(e,t){if(e=LA(e),t=RA(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;return IA(e)}var kA,TA,OA,NA={},FA={exports:{}},jA={exports:{}},zA={exports:{}};function HA(){return kA||(kA=1,function(e){var t=xA.default;e.exports=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(zA)),zA.exports}function BA(){return TA||(TA=1,function(e){var t=xA.default,r=HA();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(jA)),jA.exports}function $A(){return OA||(OA=1,function(e){var t=BA();e.exports=function(e,r,n){return(r=t(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}(FA)),FA.exports}var VA,GA={exports:{}};function WA(){return VA||(VA=1,function(e){var t=ag();e.exports=function(e,r){if(null==e)return{};var n,o,i=t(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],r.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(GA)),GA.exports}var UA,YA={};var KA,XA={};var JA,ZA={},QA={};var eD,tD={};var rD,nD={};var oD,iD={};var aD,sD={};var lD,uD={};var cD,dD={};var pD,fD,mD={};function hD(){if(fD)return ZA;fD=1;var e=dh;Object.defineProperty(ZA,"__esModule",{value:!0}),ZA.default=function(e){var g=e.primary,b=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,v=e.secondary,y=void 0===v?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:v,x=e.error,S=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,E=e.warning,C=void 0===E?{light:u.default[300],main:u.default[500],dark:u.default[700]}:E,w=e.info,R=void 0===w?{light:c.default[300],main:c.default[500],dark:c.default[700]}:w,A=e.success,D=void 0===A?{light:d.default[300],main:d.default[500],dark:d.default[700]}:A,L=e.type,I=void 0===L?"light":L,q=e.contrastThreshold,P=void 0===q?3:q,M=e.tonalOffset,_=void 0===M?.2:M,k=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function T(e){return(0,p.getContrastRatio)(e,m.text.primary)>=P?m.text.primary:f.text.primary}var O=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[r]&&(e.main=e[r]),!e.main)throw new Error((0,n.formatMuiErrorMessage)(4,r));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return h(e,"light",o,_),h(e,"dark",i,_),e.contrastText||(e.contrastText=T(e.main)),e},N={dark:m,light:f},F=(0,n.deepmerge)((0,t.default)({common:o.default,type:I,primary:O(b),secondary:O(y,"A400","A200","A700"),error:O(S),warning:O(C),info:O(R),success:O(D),grey:i.default,contrastThreshold:P,getContrastText:T,augmentColor:O,tonalOffset:_},N[I]),k);return F},ZA.dark=ZA.light=void 0;var t=e(ng()),r=e(WA()),n=CA,o=e(function(){if(JA)return QA;JA=1,Object.defineProperty(QA,"__esModule",{value:!0}),QA.default=void 0;var e={black:"#000",white:"#fff"};return QA.default=e,QA}()),i=e(function(){if(eD)return tD;eD=1,Object.defineProperty(tD,"__esModule",{value:!0}),tD.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return tD.default=e,tD}()),a=e(function(){if(rD)return nD;rD=1,Object.defineProperty(nD,"__esModule",{value:!0}),nD.default=void 0;var e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};return nD.default=e,nD}()),s=e(function(){if(oD)return iD;oD=1,Object.defineProperty(iD,"__esModule",{value:!0}),iD.default=void 0;var e={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};return iD.default=e,iD}()),l=e(function(){if(aD)return sD;aD=1,Object.defineProperty(sD,"__esModule",{value:!0}),sD.default=void 0;var e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};return sD.default=e,sD}()),u=e(function(){if(lD)return uD;lD=1,Object.defineProperty(uD,"__esModule",{value:!0}),uD.default=void 0;var e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};return uD.default=e,uD}()),c=e(function(){if(cD)return dD;cD=1,Object.defineProperty(dD,"__esModule",{value:!0}),dD.default=void 0;var e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};return dD.default=e,dD}()),d=e(function(){if(pD)return mD;pD=1,Object.defineProperty(mD,"__esModule",{value:!0}),mD.default=void 0;var e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};return mD.default=e,mD}()),p=EA,f={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};ZA.light=f;var m={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function h(e,t,r,n){var o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return ZA.dark=m,ZA}var gD,bD={};var vD,yD={};var xD,SD={};var ED,CD={},wD=Dt(io);var RD,AD={};function DD(){if(RD)return AD;RD=1;var e=dh;Object.defineProperty(AD,"__esModule",{value:!0}),AD.default=AD.duration=AD.easing=void 0;var t=e(WA()),r={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"};AD.easing=r;var n={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}AD.duration=n;var i={easing:r,duration:n,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,s=void 0===a?n.standard:a,l=i.easing,u=void 0===l?r.easeInOut:l,c=i.delay,d=void 0===c?0:c;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof s?s:o(s)," ").concat(u," ").concat("string"==typeof d?d:o(d))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return AD.default=i,AD}var LD,ID,qD={};function PD(){if(ID)return NA;ID=1;var e=dh;Object.defineProperty(NA,"__esModule",{value:!0}),NA.createMuiTheme=function(){return p.apply(void 0,arguments)},NA.default=void 0,e($A());var t=e(WA()),r=CA,n=e(function(){if(UA)return YA;UA=1;var e=dh;Object.defineProperty(YA,"__esModule",{value:!0}),YA.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,s=void 0===a?"px":a,l=e.step,u=void 0===l?5:l,c=(0,r.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var r=n.indexOf(t);return r===n.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof i[n[r+1]]?i[n[r+1]]:t)-u/100).concat(s,")")}return(0,t.default)({keys:n,values:i,up:d,down:function(e){var t=n.indexOf(e)+1,r=i[n[t]];return t===n.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-u/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return i[e]}},c)},YA.keys=void 0;var t=e(ng()),r=e(WA()),n=["xs","sm","md","lg","xl"];return YA.keys=n,YA}()),o=e(function(){if(KA)return XA;KA=1;var e=dh;Object.defineProperty(XA,"__esModule",{value:!0}),XA.default=function(e,n,o){var i;return(0,r.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,r.default)({paddingLeft:n(2),paddingRight:n(2)},o,(0,t.default)({},e.up("sm"),(0,r.default)({paddingLeft:n(3),paddingRight:n(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e($A()),r=e(ng());return XA}()),i=e(hD()),a=e(function(){if(gD)return bD;gD=1;var e=dh;Object.defineProperty(bD,"__esModule",{value:!0}),bD.default=function(e,l){var u="function"==typeof l?l(e):l,c=u.fontFamily,d=void 0===c?s:c,p=u.fontSize,f=void 0===p?14:p,m=u.fontWeightLight,h=void 0===m?300:m,g=u.fontWeightRegular,b=void 0===g?400:g,v=u.fontWeightMedium,y=void 0===v?500:v,x=u.fontWeightBold,S=void 0===x?700:x,E=u.htmlFontSize,C=void 0===E?16:E,w=u.allVariants,R=u.pxToRem,A=(0,r.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),D=f/14,L=R||function(e){return"".concat(e/C*D,"rem")},I=function(e,r,n,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:L(r),lineHeight:n},d===s?{letterSpacing:"".concat(o(i/r),"em")}:{},a,w)},q={h1:I(h,96,1.167,-1.5),h2:I(h,60,1.2,-.5),h3:I(b,48,1.167,0),h4:I(b,34,1.235,.25),h5:I(b,24,1.334,0),h6:I(y,20,1.6,.15),subtitle1:I(b,16,1.75,.15),subtitle2:I(y,14,1.57,.1),body1:I(b,16,1.5,.15),body2:I(b,14,1.43,.15),button:I(y,14,1.75,.4,a),caption:I(b,12,1.66,.4),overline:I(b,12,2.66,1,a)};return(0,n.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:L,round:i,fontFamily:d,fontSize:f,fontWeightLight:h,fontWeightRegular:b,fontWeightMedium:y,fontWeightBold:S},q),A,{clone:!1})};var t=e(ng()),r=e(WA()),n=CA;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return bD}()),s=e(function(){if(vD)return yD;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}vD=1,Object.defineProperty(yD,"__esModule",{value:!0}),yD.default=void 0;var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return yD.default=t,yD}()),l=e(function(){if(xD)return SD;xD=1,Object.defineProperty(SD,"__esModule",{value:!0}),SD.default=void 0;var e={borderRadius:4};return SD.default=e,SD}()),u=e(function(){if(ED)return CD;ED=1,Object.defineProperty(CD,"__esModule",{value:!0}),CD.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var r=(0,e.createUnarySpacing)({spacing:t}),n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?r(1):1===t.length?r(t[0]):t.map((function(e){if("string"==typeof e)return e;var t=r(e);return"number"==typeof t?"".concat(t,"px"):t})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return t}}),n.mui=!0,n};var e=wD;return CD}()),c=e(DD()),d=e(function(){if(LD)return qD;LD=1,Object.defineProperty(qD,"__esModule",{value:!0}),qD.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return qD.default=e,qD}());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,m=e.mixins,h=void 0===m?{}:m,g=e.palette,b=void 0===g?{}:g,v=e.spacing,y=e.typography,x=void 0===y?{}:y,S=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),E=(0,i.default)(b),C=(0,n.default)(f),w=(0,u.default)(v),R=(0,r.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,o.default)(C,w,h),overrides:{},palette:E,props:{},shadows:s.default,typography:(0,a.default)(E,x),spacing:w,shape:l.default,transitions:c.default,zIndex:d.default},S),A=arguments.length,D=new Array(A>1?A-1:0),L=1;L<A;L++)D[L-1]=arguments[L];return R=D.reduce((function(e,t){return(0,r.deepmerge)(e,t)}),R)}var f=p;return NA.default=f,NA}var MD,_D={};var kD,TD={},OD=Dt(il);var ND,FD,jD={},zD={};function HD(){if(ND)return zD;ND=1;var e=dh;Object.defineProperty(zD,"__esModule",{value:!0}),zD.default=void 0;var t=(0,e(PD()).default)();return zD.default=t,zD}var BD,$D,VD={},GD={};function WD(){if($D)return VD;$D=1;var e=dh;Object.defineProperty(VD,"__esModule",{value:!0}),VD.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,u=o.factor,c=void 0===u?2:u,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 m=f.typography,h=(0,n.convertLength)(m.htmlFontSize),g=a.map((function(e){return f.breakpoints.values[e]}));return p.forEach((function(e){var o=m[e],i=parseFloat(h(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/c,u=o.lineHeight;if(!(0,n.isUnitless)(u)&&!l)throw new Error((0,r.formatMuiErrorMessage)(6));(0,n.isUnitless)(u)||(u=parseFloat(h(u,"rem"))/parseFloat(i));var d=null;l||(d=function(e){return(0,n.alignProperty)({size:e,grid:(0,n.fontGrid)({pixels:4,lineHeight:u,htmlFontSize:m.htmlFontSize})})}),m[e]=(0,t.default)({},o,(0,n.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}})),f};var t=e(ng()),r=CA,n=function(){if(BD)return GD;BD=1;var e=dh;Object.defineProperty(GD,"__esModule",{value:!0}),GD.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},GD.getUnit=r,GD.toUnitless=n,GD.convertLength=function(e){return function(t,o){var i=r(t);if(i===o)return t;var a=n(t);if("px"!==i)if("em"===i)a=n(t)*n(e);else if("rem"===i)return a=n(t)*n(e),t;var s=a;if("px"!==o)if("em"===o)s=a/n(e);else{if("rem"!==o)return t;s=a/n(e)}return parseFloat(s.toFixed(5))+o}},GD.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},GD.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},GD.responsiveProperty=function(e){var r=e.cssProperty,n=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,u=e.transform,c=void 0===u?null:u,d=(0,t.default)({},r,"".concat(n).concat(a)),p=(o-n)/l[l.length-1];return l.forEach((function(e){var o=n+p*e;null!==c&&(o=c(o)),d["@media (min-width:".concat(e,"px)")]=(0,t.default)({},r,"".concat(Math.round(1e4*o)/1e4).concat(a))})),d};var t=e($A());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return GD}();return VD}var UD,YD={};var KD,XD={};var JD,ZD={};var QD,eL={};!function(e){var t=dh,r=SA;Object.defineProperty(e,"__esModule",{value:!0});var n={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 u.default}}),Object.defineProperty(e,"styled",{enumerable:!0,get:function(){return c.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 m.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return h.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return h.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return h.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return h.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return h.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return h.ThemeProvider}});var o=EA;Object.keys(o).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))}));var i=r(PD()),a=t(function(){if(MD)return _D;MD=1;var e=dh;Object.defineProperty(_D,"__esModule",{value:!0}),_D.default=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=CA,r=e(PD());return _D}()),s=t(function(){if(kD)return TD;kD=1,Object.defineProperty(TD,"__esModule",{value:!0}),TD.default=function(t){return(0,e.createStyles)(t)};var e=OD;return TD}()),l=t(function(){if(FD)return jD;FD=1;var e=dh;Object.defineProperty(jD,"__esModule",{value:!0}),jD.default=void 0;var t=e(ng()),r=OD,n=e(HD()),o=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.makeStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return jD.default=o,jD}()),u=t(WD()),c=t(function(){if(UD)return YD;UD=1;var e=dh;Object.defineProperty(YD,"__esModule",{value:!0}),YD.default=void 0;var t=e(ng()),r=OD,n=e(HD()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return YD.default=o,YD}()),d=DD();Object.keys(d).forEach((function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return d[t]}}))}));var p=t(function(){if(KD)return XD;KD=1;var e=dh;Object.defineProperty(XD,"__esModule",{value:!0}),XD.default=function(){return(0,t.useTheme)()||r.default};var t=OD;e(x);var r=e(HD());return XD}()),f=t(function(){if(JD)return ZD;JD=1;var e=dh;Object.defineProperty(ZD,"__esModule",{value:!0}),ZD.default=void 0;var t=e(ng()),r=OD,n=e(HD()),o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return ZD.default=o,ZD}()),m=t(function(){if(QD)return eL;QD=1;var e=dh;Object.defineProperty(eL,"__esModule",{value:!0}),eL.default=void 0;var t=OD,r=e(HD()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return eL.default=n,eL}()),h=OD}(bA);var tL=Object.defineProperty,rL=(e,t)=>{for(var r in t)tL(e,r,{get:t[r],enumerable:!0})};rL({},{light:()=>nL});const nL={root:{backgroundColor:GR.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&$expanded":{margin:"0px"}}};rL({},{light:()=>oL});const oL={root:{backgroundColor:GR.WHITE}};rL({},{light:()=>iL});const iL={root:{padding:"0px 16px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${GR.GREYSCALE_0_15}`,"&$focused":{borderColor:GR.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${GR.MISC_FOCUS_BORDER}`,borderRadius:XR,backgroundColor:GR.GREYSCALE_0_03},"&$expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis"}};rL({},{light:()=>aL});const aL={root:{flex:"0 0 48px",flexDirection:"row",boxShadow:`inset 0 -1px 0 0 ${GR.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:GR.WHITE,color:GR.TEXT_PRIMARY}};rL({},{light:()=>sL});const sL={inputRoot:{boxSizing:"border-box",borderRadius:XR,"&&":{padding:0},"&&& input":{padding:"8px 4px"},"&&& $endAdornment":{right:4}},listbox:{paddingTop:0,paddingBottom:0},option:{fontSize:UR,height:"32px",'&[data-focus="true"]':{backgroundColor:GR.GREYSCALE_0_03}},endAdornment:{top:"auto",bottom:"4px",position:"absolute"},popupIndicator:{borderRadius:XR,border:`solid 1px ${GR.GREYSCALE_0_15}`,color:GR.GREYSCALE_0_60,marginRight:0,width:KR,height:KR,"& svg":{fontSize:"0.7em"},"& i":{lineHeight:"1 !important"}},paper:{marginTop:"5px",boxShadow:`0px 2px 4px 0px ${GR.GREYSCALE_0_15}`},clearIndicator:{"& svg":{fontSize:"0.5em",position:"absolute"},color:GR.GREYSCALE_25,width:YR,height:KR,borderRadius:XR,backgroundColor:"unset",marginRight:"4px","&&&&:hover":{backgroundColor:bA.alpha(GR.GREYSCALE_0,.05)}},popupIndicatorOpen:{backgroundColor:GR.GREYSCALE_0_10}};rL({},{light:()=>lL});const lL={badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}};rL({},{light:()=>uL});const uL={root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:XR,"& > $label > i:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:GR.GREYSCALE_0_10},"&$focusVisible":{boxShadow:`0 0 0 2px ${GR.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:GR.GREYSCALE_0_15,backgroundColor:GR.GREYSCALE_100_60,"&:active":{backgroundColor:GR.GREYSCALE_0_10},"&$focusVisible":{borderColor:GR.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${GR.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},containedPrimary:{"&:hover":{backgroundColor:GR.GREEN_PALE},"&:active":{backgroundColor:GR.GREEN_DARK},"&$focusVisible":{borderColor:GR.GREEN_PALE,boxShadow:`0 0 0 3px ${bA.alpha(GR.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:GR.BLUE_PALE},"&:active":{backgroundColor:GR.BLUE_DARK},"&$focusVisible":{borderColor:GR.BLUE_PALE,boxShadow:`0 0 0 3px ${bA.alpha(GR.BLUE_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > $label > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > $label > i:only-child":{marginLeft:"-10px",marginRight:"-10px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}};rL({},{light:()=>cL});const cL={root:{height:32,lineHeight:16,width:32,fontSize:UR,borderRadius:XR,padding:"7px 16px",border:`1px solid ${GR.GREYSCALE_0_15}`,backgroundColor:GR.GREYSCALE_100_60,color:GR.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:GR.GREYSCALE_0_10,border:`1px solid ${GR.GREYSCALE_0_30}`},"&:hover":{backgroundColor:GR.GREYSCALE_0_03,border:`1px solid ${GR.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:GR.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${GR.MISC_FOCUS_BORDER}`,border:`1px solid ${GR.MISC_FOCUS_BORDER}`,zIndex:2},"&$selected":{color:GR.GREYSCALE_25,backgroundColor:GR.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:GR.GREYSCALE_0_10,border:`1px solid ${GR.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:WR,height:24,width:24,padding:7},sizeLarge:{fontSize:YR,height:40,width:40,lineHeight:20}};rL({},{light:()=>dL});const dL={root:{height:"32px",lineHeight:"16px",fontSize:UR,borderRadius:XR}};rL({},{light:()=>pL});const pL={root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:XR},groupedText:{padding:"8px 16px","&:active":{backgroundColor:GR.GREYSCALE_0_10},"&$focusVisible":{boxShadow:`0 0 0 2px ${GR.MISC_FOCUS_BORDER}`}},groupedOutlined:{padding:"7px 16px",borderColor:GR.GREYSCALE_0_15,backgroundColor:GR.GREYSCALE_100_60,"&:active":{backgroundColor:GR.GREYSCALE_0_10},"&$focusVisible":{borderColor:GR.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${GR.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:GR.GREEN_PALE},"&:active":{backgroundColor:GR.GREEN_DARK},"&$focusVisible":{borderColor:GR.GREEN_PALE,boxShadow:`0 0 0 3px ${bA.alpha(GR.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:GR.BLUE_PALE},"&:active":{backgroundColor:GR.BLUE_DARK},"&$focusVisible":{borderColor:GR.BLUE_PALE,boxShadow:`0 0 0 3px ${bA.alpha(GR.BLUE_PALE,.5)}`}}};rL({},{light:()=>fL});const fL={root:{borderWidth:1,"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:3},"&:not($disabled)":{"&:not($checked)":{"&:not($indeterminate)":{"& span":{color:GR.WHITE}}}},"&$disabled":{"& span":{pointerEvents:"auto",cursor:"not-allowed",color:GR.GREYSCALE_0_25}}},colorPrimary:{"&.sprout-focus-visible i":{borderColor:GR.GREEN_PALE,boxShadow:`0 0 0 3px ${bA.alpha(GR.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible i":{borderColor:GR.BLUE_PALE,boxShadow:`0 0 0 3px ${bA.alpha(GR.BLUE_PALE,.5)}`}}};rL({},{light:()=>mL});const mL={root:{height:"24px",fontSize:WR,borderRadius:XR,color:GR.TEXT_PRIMARY,backgroundColor:GR.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:GR.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${GR.MISC_FOCUS_BORDER}`},"&$disabled":{backgroundColor:GR.GREYSCALE_0_05,color:GR.GREYSCALE_0_30,border:"none",opacity:1}},outlined:{border:`solid 1px ${GR.GREYSCALE_0_15}`,backgroundColor:GR.GREYSCALE_100_15,"$clickable&:active ":{boxSizing:"border-box",borderRadius:XR,boxShadow:"none",backgroundColor:GR.GREYSCALE_0_10},"& $deleteIconSmall":{height:13,color:"inherit"}},label:{fontFamily:tA.FONT_FAMILY,lineHeight:"16px"}};rL({},{light:()=>hL});const hL={root:{padding:"8px",backgroundColor:GR.GREYSCALE_98,borderTop:`1px ${GR.GREYSCALE_0_15} solid`}};rL({},{light:()=>gL});const gL={root:{padding:"24px"}};rL({},{light:()=>bL});const bL={root:{marginBottom:0}};rL({},{light:()=>vL});const vL={root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",height:"24px",padding:"12px 8px 12px 24px",fontSize:"16px",lineHeight:"24px",backgroundColor:GR.GREYSCALE_98,borderBottom:`1px ${GR.GREYSCALE_0_15} solid`}};rL({},{light:()=>yL});const yL={middle:{margin:"4px 8px"}};rL({},{light:()=>xL});const xL={root:{marginLeft:"-10px"},label:{fontSize:UR}};rL({},{light:()=>SL});const SL={root:{color:GR.GREYSCALE_25,fontSize:WR,fontFamily:tA.FONT_FAMILY,fontWeight:QR,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&$focused":{color:GR.TEXT_PRIMARY},"&$error":{color:GR.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:GR.TEXT_SECONDARY,position:"absolute",content:"'(optional)'",fontWeight:ZR,marginLeft:"4px"}}},asterisk:{visibility:"hidden",display:"inline-flex","&::after":{visibility:"visible",color:GR.TEXT_SECONDARY,position:"absolute",content:"'(required)'",fontWeight:ZR,marginLeft:"4px"}}};rL({},{light:()=>EL});const EL={root:{fontSize:WR,lineHeight:"16px",margin:"4px 0 0 0","&$error":{color:GR.RED}},contained:{marginLeft:0,marginRight:0}};rL({},{light:()=>CL});const CL={root:{padding:7,borderRadius:XR,border:"1px solid transparent","&.sprout-focus-visible":{borderColor:GR.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${GR.MISC_FOCUS_BORDER}`},"&&&:hover":{backgroundColor:"transparent"}}};rL({},{light:()=>wL});const wL={root:{padding:"4px 8px",color:GR.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}};rL({},{light:()=>RL});const RL={input:{padding:"8px 12px",lineHeight:"16px"}};rL({},{light:()=>AL});const AL={outlined:{fontSize:`${WR}px`,fontWeight:QR,color:GR.GREYSCALE_25,"&$shrink":{transform:"translate(0px, -8px)",fontWeight:QR}}};rL({},{light:()=>DL});const DL={root:{color:GR.MISC_FOCUS_BORDER}};rL({},{light:()=>LL});const LL={padding:{paddingTop:"0px",paddingBottom:"0px"}};rL({},{light:()=>IL});const IL={root:{minHeight:"32px",fontSize:UR,"&$selected":{backgroundColor:"unset","&:not($disabled)":{"&::after":{content:`url('${rA}')`,fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:GR.RED}}}},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:GR.GREYSCALE_0_03},"&:active":{backgroundColor:GR.GREYSCALE_0_05}}};rL({},{light:()=>qL});const qL={root:{color:GR.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}};rL({},{light:()=>PL});const PL={root:{fontSize:"12px"},primary:{fontSize:UR,color:GR.TEXT_PRIMARY,lineHeight:"16px"},secondary:{fontSize:WR,fontWeight:JR,lineHeight:"16px",color:GR.TEXT_SECONDARY}};rL({},{light:()=>ML});const ML={list:{paddingTop:4,paddingBottom:4},paper:{marginTop:4,marginBottom:4,background:GR.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15)",borderRadius:"2px"}};rL({},{light:()=>_L});const _L={root:{fontSize:UR,height:"32px",'[class*="MuiListSubheader-root"] ~ &[role="option"]':{paddingLeft:"20px"},"& div i":{color:GR.GREYSCALE_25}}};rL({},{light:()=>kL});const kL={root:{fontSize:UR,lineHeight:"16px",backgroundColor:GR.WHITE,borderRadius:XR,"&:not($focused):not($error):not($disabled):hover $notchedOutline":{border:`solid 1px ${GR.GREYSCALE_0_05}`,borderColor:GR.GREYSCALE_0_30},"&$focused:not($error) $notchedOutline":{border:`solid 1px ${GR.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${GR.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${GR.GREYSCALE_0_05}`},"&$focused$error $notchedOutline":{border:`solid 1px ${GR.RED}`,boxShadow:`0px 0px 0px 1px ${GR.RED}, inset 0 2px 0 0 ${GR.GREYSCALE_0_05}`},"&$disabled":{backgroundColor:"transparent"},"&$disabled $notchedOutline":{border:`solid 1px ${GR.GREYSCALE_0_10}`,borderColor:GR.GREYSCALE_0_10,backgroundColor:GR.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:GR.TEXT_PRIMARY,padding:"8px 12px","&$disabled":{opacity:.45}},notchedOutline:{borderColor:GR.GREYSCALE_0_15,borderRadius:XR,boxShadow:`inset 0 2px 0 0 ${GR.GREYSCALE_0_05}`},multiline:{padding:"8px 12px"}};rL({},{light:()=>TL});const TL={day:{"&&&:hover":{backgroundColor:GR.GREYSCALE_0_03}},daySelected:{"&&&:hover":{backgroundColor:GR.GREEN}}};rL({},{light:()=>OL});const OL={paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${GR.GREYSCALE_0_15}, 0px 0px 0px 1px ${GR.GREYSCALE_0_05}`}};rL({},{light:()=>NL});const NL={root:{fill:GR.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${GR.MISC_FOCUS_BORDER}`},"&$checked":{"&$colorPrimary":{"&.sprout-focus-visible i":{borderColor:GR.GREEN_PALE,boxShadow:`0 0 0 3px ${bA.alpha(GR.GREEN_PALE,.5)}`}},"&$colorSecondary":{"&.sprout-focus-visible i":{borderColor:GR.BLUE_PALE,boxShadow:`0 0 0 3px ${bA.alpha(GR.BLUE_PALE,.5)}`}},"&$disabled":{color:GR.GREYSCALE_0_20}},"&$disabled":{fill:GR.GREYSCALE_0_20,stroke:"none"}}};rL({},{light:()=>FL});const FL={root:{height:"32px",zIndex:1,borderRadius:"3px !important","& em":{color:GR.TEXT_SECONDARY,WebkitFontSmoothing:"antialiased","&::after":{content:""}},"& ~svg":{position:"absolute",top:"unset",right:"12px"},"&[aria-expanded=true]":{backgroundColor:GR.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:GR.GREYSCALE_0_03},"&:active":{backgroundColor:GR.GREYSCALE_0_10},"&:focus":{backgroundColor:GR.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${GR.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${GR.MISC_FOCUS_BORDER}`},"&$disabled":{opacity:"unset",color:GR.GREYSCALE_0_30,"&:hover":{backgroundColor:GR.GREYSCALE_0_0,borderColor:GR.GREYSCALE_0_15},"& ~svg":{color:GR.GREYSCALE_0_30}}},selectMenu:{height:"14px"},outlined:{border:`solid 1px ${GR.GREYSCALE_0_15}`}};rL({},{light:()=>jL});const jL={root:{color:GR.GREEN,height:"24px","&$disabled":{color:GR.GREYSCALE_0_15}},rail:{backgroundColor:GR.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${GR.GREYSCALE_0_05}`,borderRadius:XR,boxShadow:`inset 0px 0px 0px 1px ${GR.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${GR.GREYSCALE_0_05}`,borderRadius:XR},thumb:{height:"16px",width:"16px",borderRadius:XR,backgroundColor:GR.WHITE,boxShadow:`0px 1px 2px 0px ${GR.GREYSCALE_0_15}, 0px 0px 0px 1px ${GR.GREYSCALE_0_05}`,"&:hover":{borderRadius:XR,boxShadow:`0 2px 4px 0 ${GR.GREYSCALE_0_30}, 0 0 0 1px ${GR.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${GR.GREYSCALE_0_15}, 0 0 0 1px ${GR.GREYSCALE_0_06}, 0 0 0 2px ${GR.MISC_FOCUS_BORDER}`},"&$disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:GR.GREYSCALE_90},"& .bar":{height:"8px",width:"1px",backgroundColor:GR.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:GR.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:GR.GREYSCALE_0_15},markLabel:{color:GR.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:GR.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},active:{}};rL({},{light:()=>zL});const zL={root:{backgroundColor:GR.WHITE,color:GR.GREYSCALE_25}};rL({},{light:()=>HL});const HL={root:{padding:"10px",width:"60px",height:"40px"},switchBase:{padding:"11px","&$disabled":{"& $thumb":{backgroundColor:GR.GREYSCALE_100_50}},"&$checked + $track":{opacity:1},"&$disabled + $track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + $track":{borderColor:GR.GREEN_PALE,boxShadow:`0 0 0 3px ${bA.alpha(GR.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + $track":{borderColor:GR.BLUE_PALE,boxShadow:`0 0 0 3px ${bA.alpha(GR.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:GR.GREYSCALE_0_15,borderRadius:XR},thumb:{height:"16px",width:"16px",borderRadius:XR,backgroundColor:GR.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& $thumb":{height:"12px",width:"12px"},"& $switchBase":{padding:"9px 11px"}}};rL({},{light:()=>BL});const BL={root:{fontSize:UR,fontWeight:QR,textTransform:"none",minWidth:"auto",boxSizing:"border-box","&:hover":{borderBottom:`2px solid ${GR.GREYSCALE_80}`,paddingBottom:"4px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${GR.MISC_FOCUS_BORDER}`,paddingTop:"4px",backgroundColor:GR.GREYSCALE_0_03,borderRadius:XR,minHeight:"44px",paddingBottom:"4px",border:"none"},"&$disabled":{opacity:.3}},textColorPrimary:{color:GR.GREYSCALE_25,"&$selected":{color:GR.GREYSCALE_25}},textColorInherit:{opacity:"unset"},fullWidth:{"&.sprout-focus-visible":{paddingRight:12,paddingLeft:12}},wrapper:{alignItems:"initial"},labelIcon:{minWidth:"40px",minHeight:"48px","&.sprout-focus-visible":{minHeight:"auto",height:"30px",marginTop:9,marginBottom:9,flexDirection:"column",paddingRight:"12px",paddingBottom:"2px"},"& $wrapper":{display:"block"}}};rL({},{light:()=>$L});const $L={scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},root:{fontSize:UR,fontWeight:"bold"},indicator:{height:2}};rL({},{light:()=>VL});const VL={root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}};rL({},{light:()=>GL});const GL={arrow:{color:GR.GREYSCALE_20},tooltip:{backgroundColor:GR.GREYSCALE_20,fontSize:WR,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}};rL({},{light:()=>WL});const WL={root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${GR.GREYSCALE_85}`,borderRight:`1px solid ${GR.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:QR,backgroundColor:GR.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&$head":{height:"31px"},"&$paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:GR.GREYSCALE_98,borderBottom:`1px solid ${GR.GREYSCALE_85}`}};rL({},{light:()=>UL});const UL={root:{borderBottom:`1px solid ${GR.GREYSCALE_85}`,borderTop:`1px solid ${GR.GREYSCALE_85}`}};rL({},{light:()=>YL});const YL={root:{backgroundColor:GR.GREYSCALE_98}};rL({},{light:()=>KL});const KL={hover:{"&$selected":{backgroundColor:GR.GREYSCALE_0_05,"&:hover":{backgroundColor:GR.GREYSCALE_0_03}},"&&:hover":{backgroundColor:GR.GREYSCALE_0_03}}};rL({},{light:()=>XL});const XL={root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&$active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}};rL({},{light:()=>JL});const JL={root:{borderLeft:`1px solid ${GR.GREYSCALE_85}`}};rL({},{light:()=>ZL});const ZL={root:{height:"100%","& $focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:GR.GREYSCALE_0_03,"& $focusHighlight":{opacity:0}},"&:active":{backgroundColor:GR.GREYSCALE_95,boxShadow:"none"},"&$focusVisible":{borderRadius:XR,boxShadow:`inset 0 0 0 2px ${GR.MISC_FOCUS_BORDER}`,"& $focusHighlight":{opacity:0}}}};rL({},{light:()=>QL});const QL={root:{'&[role="option"]':{color:GR.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:WR,borderBottom:`solid 1px ${GR.GREYSCALE_0_15}`,pointerEvents:"none"}}},eI=(e="light",t=!1)=>gA(e,t),tI=(eI().palette.primary.light,mR.Selected,"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"),rI=4/3,nI="12px",oI="600",iI="Source Sans Pro, sans-serif",aI={height:"auto",fontSize:nI,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"}},sI={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:oI},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},lI=25e4,uI=(e,t,r)=>{if(!e.length)return[];const n=[],o=[];let i=t;if(e.forEach(((e,a)=>{var s;const{columnWidth:{type:l,pixels:u,percentage:c},label:d,qApprMaxGlyphCount:p,totalInfo:f}=e;let m=0;const h=()=>{n[a]=Math.min(oE.PixelsMax,Math.max(oE.PixelsMin,m)),i-=n[a]};switch(l){case iE.Pixels:m=u||oE.PixelsDefault,h();break;case iE.Percentage:m=(c||oE.PercentageDefault)/100*t,h();break;case iE.FitToContent:(null===(s=e.representation)||void 0===s?void 0:s.type)===zE.Image?o.push(a):(m=r(d,f,p,e.isLocked,e.isActivelySorted,e.isDim),h());break;case iE.Auto:o.push(a);break;default:throw new Error(`${l} is not a valid column width type`)}})),o.length){const e=i/o.length;o.forEach((t=>{n[t]=Math.max(oE.AutoMinTable,e)}))}return n},cI=(e,t,r)=>{const n=r.size,o=n>=t.size;if(n){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===n?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",n.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},dI=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},pI=e=>e.ctrlKey||e.metaKey,fI=e=>e.shiftKey&&pI(e),mI=e=>[rE.Left,rE.Right,rE.Up,rE.Down].includes(e),hI=e=>e.shiftKey&&mI(e.key),gI=e=>(e=>mI(e)||[rE.Home,rE.End,rE.PageUp,rE.PageDown].includes(e))(e.key)&&!fI(e),bI=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l=new Map;if(-1===o)null==r||r.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l=new Map(n)}return l=((e,t,r)=>{const{qElemNumber:n,rowIdx:o}=t;return r.ctrlKey||r.metaKey?(new Map).set(n,o):(e.has(n)?e.delete(n):e.set(n,o),new Map(e))})(l,i,s),cI(a,n,l),l.size?(null==r||r.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(l.values()),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(null==r||r.cancel(),{...e,rows:l,colIdx:-1})},vI=(e,t)=>{var r;const{api:n,rows:o,colIdx:i,pageRows:a,firstCell:s}=e,{cell:l,announce:u,evt:c}=t;if(!(s||"key"in c&&hI(c)))return e;-1===i&&(null==n||n.begin(["/qHyperCubeDef"]));const d=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&hI(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===rE.Down?1:-1,o=e[r.pageRowIdx+t][r.pageColIdx];return i.set(o.qElemNumber,r.rowIdx+t),i}if(!o)return t;const a=Math.min(o.pageRowIdx,r.pageRowIdx),s=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=s;t++){const r=e[t][o.pageColIdx];i.set(r.qElemNumber,r.rowIdx)}return i})(a,o,l,c,s);return cI(u,o,d),{...e,rows:d,colIdx:null!==(r=null==s?void 0:s.selectionColIdx)&&void 0!==r?r:l.selectionColIdx,isSelectMultiValues:!0}},yI=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&(null==t||t.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(r.values()),[n]]})),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},xI=(e,t)=>{var r;switch(t.type){case hR.Select:return bI(e,t.payload);case hR.SelectMouseDown:return((e,{cell:t,mouseupOutsideCallback:r})=>!r||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",r),{...e,firstCell:t,mouseupOutsideCallback:r}))(e,t.payload);case hR.SelectMouseUp:return((e,t)=>yI(e.isSelectMultiValues||e.firstCell!==t.cell?e:bI(e,t)))(e,t.payload);case hR.SelectMultiAdd:return vI(e,t.payload);case hR.SelectMultiEnd:return yI(e);case hR.Reset:return null!==(r=e.api)&&void 0!==r&&r.isModal()?e:{...e,rows:new Map,colIdx:-1};case hR.Clear:return e.rows.size?{...e,rows:new Map}:e;case hR.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},SI=4/3,EI=e=>!(null==e||!e.color)||"number"==typeof(null==e?void 0:e.index)&&e.index>-1;function CI(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const wI=(e,t)=>e?{borderBottomColor:wS.DARK_MODE_BORDER,borderRightColor:wS.DARK_MODE_BORDER,borderLeftColor:wS.DARK_MODE_BORDER,borderTopColor:wS.DARK_MODE_BORDER}:{borderLeftColor:wS.BORDER_MEDIUM,borderRightColor:wS.BORDER_MEDIUM,borderTopColor:wS.BORDER_HEAVY,borderBottomColor:t?wS.BORDER_HEAVY:wS.BORDER_LIGHT},RI=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*SI+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},AI=e=>{var t;return null===(t=e.components)||void 0===t?void 0:t.find((e=>"theme"===e.key))},DI=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),s={fontFamily:o,color:EI(null==r?void 0:r.fontColor)?CI(wS.TEXT,t,null==r?void 0:r.fontColor):i||wS.TEXT,fontSize:(null==r?void 0:r.fontSize)&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...wI(t.background.isDark,n)};return Object.keys(s).forEach((e=>{const t=e;null==s[t]&&delete s[t]})),s};function LI(e,t,r){var n,o,i;const a=null===(n=AI(e))||void 0===n?void 0:n.header,s=DI("header",t,a,r);return s.background=(e=>{if(void 0===e)return;const t=te(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),s.hoverBackground=DS(null!==(o=s.background)&&void 0!==o?o:wS.WHITE,aE),s.activeBackground=DS(null!==(i=s.background)&&void 0!==i?i:wS.WHITE,sE),s}const II=(e,t)=>{var r;const n=null!==(r=e.toLowerCase().match(/<[^>]+>/g))&&void 0!==r?r:[];return n.forEach((e=>(e=>e in sI)(e)&&Object.assign(t,sI[e]))),t};function qI(e,t,r){var n;const o={};let i={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return null==t||null===(n=t.qValues)||void 0===n||n.forEach(((e,t)=>{const n=e.qText,a=n&&qS(n);a&&"none"!==a&&(o[r[t]]=a),i=n?II(n,i):i})),o.cellBackgroundColor&&!o.cellForegroundColor&&(o.cellForegroundColor=RS(o.cellBackgroundColor)),{...e,...o,color:o.cellForegroundColor||e.color,background:o.cellBackgroundColor||e.background,fontStyle:i.fontStyle,fontWeight:i.fontWeight,textDecoration:i.textDecoration}}const PI=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},MI=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=PI(e,null==t?void 0:t.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},_I=(e,t,r,n=wS.WHITE)=>{var o;const{backgroundColor:i,backgroundFromStyling:a,sheetColorFromCSS:s}=MI(e,t,r);return null!==(o=kS(a,i,s,n))&&void 0!==o?o:n},kI=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return nI}},TI=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",OI=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?oI:"normal",NI=e=>!1===e?1:3,FI=e=>parseInt(null!=e?e:aI.fontSize,10)*rI,jI=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",zI=(e,t,r,n,o)=>{var i,a,s,l,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,A,D,L,I,q,P,M,_,k,T,O,N,F,j,z,H,B,$,V,G,W,U,Y,K,X,J,Z,Q,ee,te,re,ne,oe,ie,ae,se,le,ue,ce,de,pe,fe,me,he,ge,be,ve,ye;const{header:xe,dimensionValues:Se,measureValues:Ee,totalValues:Ce,nullValues:we,grid:Re,content:Ae}=null!==(i=AI(t))&&void 0!==i?i:{},De=!0===t.usePagination?wS.WHITE:wS.TRANSPARENT,Le=_I(n,xe,"object.straightTableV2.dimension.label.name.backgroundColor",De),Ie=null!==(a=null!==(s=null===(l=o.viewState)||void 0===l?void 0:l.maxLineCount)&&void 0!==s?s:null==Ae?void 0:Ae.rowHeight)&&void 0!==a?a:n.getStyle("object.straightTableV2","grid","lineClamp"),qe={header:{fontFamily:null!==(u=null!==(c=null!==(d=null==xe?void 0:xe.fontFamily)&&void 0!==d?d:n.getStyle("object.straightTableV2.dimension","label.name","fontFamily"))&&void 0!==c?c:r.head.fontFamily)&&void 0!==u?u:iI,fontSize:kI(null!==(p=null!==(f=null==xe?void 0:xe.fontSize)&&void 0!==f?f:n.getStyle("object.straightTableV2.dimension","label.name","fontSize"))&&void 0!==p?p:r.head.fontSize),fontStyle:TI(null==xe?void 0:xe.fontStyle),fontWeight:OI(null==xe?void 0:xe.fontStyle,oI),textDecoration:jI(null==xe?void 0:xe.fontStyle),color:null!==(m=null!==(h=null!==(g=PI(n,null==xe?void 0:xe.fontColor))&&void 0!==g?g:n.getStyle("object.straightTableV2.dimension","label.name","color"))&&void 0!==h?h:r.head.color)&&void 0!==m?m:wS.TEXT,background:Le},headerMenuHoverBackground:DS(Le,aE),headerMenuActiveBackground:DS(Le,sE),dimension:{values:{fontFamily:null!==(b=null!==(v=null!==(y=null==Se?void 0:Se.fontFamily)&&void 0!==y?y:n.getStyle("object.straightTableV2.dimension","label.value","fontFamily"))&&void 0!==v?v:r.body.fontFamily)&&void 0!==b?b:iI,fontSize:kI(null!==(x=null!==(S=null!==(E=null==Se?void 0:Se.fontSize)&&void 0!==E?E:null==Ae?void 0:Ae.fontSize)&&void 0!==S?S:n.getStyle("object.straightTableV2.dimension","label.value","fontSize"))&&void 0!==x?x:r.body.fontSize),fontStyle:TI(null==Se?void 0:Se.fontStyle),fontWeight:OI(null==Se?void 0:Se.fontStyle,"normal"),textDecoration:jI(null==Se?void 0:Se.fontStyle),color:null!==(C=null!==(w=null!==(R=null!==(A=PI(n,null==Se?void 0:Se.fontColor))&&void 0!==A?A:PI(n,null==Ae?void 0:Ae.fontColor))&&void 0!==R?R:n.getStyle("object.straightTableV2.dimension","label.value","color"))&&void 0!==w?w:r.body.color)&&void 0!==C?C:wS.TEXT,background:null!==(D=null!==(L=MI(n,Se,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor)&&void 0!==L?L:r.body.background)&&void 0!==D?D:wS.TRANSPARENT}},measure:{values:{fontFamily:null!==(I=null!==(q=null!==(P=null==Ee?void 0:Ee.fontFamily)&&void 0!==P?P:n.getStyle("object.straightTableV2.measure","label.value","fontFamily"))&&void 0!==q?q:r.body.fontFamily)&&void 0!==I?I:iI,fontSize:kI(null!==(M=null!==(_=null!==(k=null==Ee?void 0:Ee.fontSize)&&void 0!==k?k:null==Ae?void 0:Ae.fontSize)&&void 0!==_?_:n.getStyle("object.straightTableV2.measure","label.value","fontSize"))&&void 0!==M?M:r.body.fontSize),fontStyle:TI(null==Ee?void 0:Ee.fontStyle),fontWeight:OI(null==Ee?void 0:Ee.fontStyle,"normal"),textDecoration:jI(null==Ee?void 0:Ee.fontStyle),color:null!==(T=null!==(O=null!==(N=null!==(F=PI(n,null==Ee?void 0:Ee.fontColor))&&void 0!==F?F:PI(n,null==Ae?void 0:Ae.fontColor))&&void 0!==N?N:n.getStyle("object.straightTableV2.measure","label.value","color"))&&void 0!==O?O:r.body.color)&&void 0!==T?T:wS.TEXT,background:null!==(j=null!==(z=MI(n,Ee,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor)&&void 0!==z?z:r.body.background)&&void 0!==j?j:wS.TRANSPARENT}},totalRow:{fontFamily:null!==(H=null!==(B=null!==($=null==Ce?void 0:Ce.fontFamily)&&void 0!==$?$:n.getStyle("object.straightTableV2.total","label.value","fontFamily"))&&void 0!==B?B:r.totals.fontFamily)&&void 0!==H?H:iI,fontSize:kI(null!==(V=null!==(G=null!==(W=null==Ce?void 0:Ce.fontSize)&&void 0!==W?W:null==Ae?void 0:Ae.fontSize)&&void 0!==G?G:n.getStyle("object.straightTableV2.total","label.value","fontSize"))&&void 0!==V?V:r.totals.fontSize),fontStyle:TI(null==Ce?void 0:Ce.fontStyle),fontWeight:OI(null==Ce?void 0:Ce.fontStyle,oI),textDecoration:jI(null==Ce?void 0:Ce.fontStyle),color:null!==(U=null!==(Y=null!==(K=null!==(X=PI(n,null==Ce?void 0:Ce.fontColor))&&void 0!==X?X:PI(n,null==Ae?void 0:Ae.fontColor))&&void 0!==K?K:n.getStyle("object.straightTableV2.total","label.value","color"))&&void 0!==Y?Y:r.totals.color)&&void 0!==U?U:wS.TEXT,background:_I(n,Ce,"object.straightTableV2.total.label.value.backgroundColor",De)},nullValues:{fontStyle:TI(null==we?void 0:we.fontStyle),fontWeight:OI(null==we?void 0:we.fontStyle,"normal"),textDecoration:jI(null==we?void 0:we.fontStyle),color:null!==(J=null!==(Z=null!==(Q=null!==(ee=PI(n,null==we?void 0:we.fontColor))&&void 0!==ee?ee:PI(n,null==Ae?void 0:Ae.fontColor))&&void 0!==Q?Q:n.getStyle("object.straightTableV2.null","label.value","color"))&&void 0!==Z?Z:r.body.color)&&void 0!==J?J:wS.TEXT,background:null!==(te=null!==(re=PI(n,null==we?void 0:we.background))&&void 0!==re?re:n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor"))&&void 0!==te?te:wS.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:null!=Ie?Ie:NI(null===(ne=t.multiline)||void 0===ne?void 0:ne.wrapTextInCells),headerLineClamp:NI(null===(oe=t.multiline)||void 0===oe?void 0:oe.wrapTextInHeaders),border:null!==(ie=null!==(ae=PI(n,null==Re?void 0:Re.border))&&void 0!==ae?ae:n.getStyle("object.straightTableV2","grid","borderColor"))&&void 0!==ie?ie:n.background.isDark?wS.DARK_MODE_BORDER:wS.BORDER_MEDIUM,divider:null!==(se=null!==(le=PI(n,null==Re?void 0:Re.divider))&&void 0!==le?le:n.getStyle("object.straightTableV2.grid","","divider.borderColor"))&&void 0!==se?se:wS.BORDER_HEAVY,hoverColors:{color:null!==(ue=null!==(ce=PI(n,null==Ae?void 0:Ae.hoverFontColor))&&void 0!==ce?ce:n.getStyle("object.straightTableV2","","grid.hover.color"))&&void 0!==ue?ue:null===(de=r.body.hoverColors)||void 0===de?void 0:de.color,background:null!==(pe=null!==(fe=PI(n,null==Ae?void 0:Ae.hoverColor))&&void 0!==fe?fe:n.getStyle("object.straightTableV2","","grid.hover.backgroundColor"))&&void 0!==pe?pe:null===(me=r.body.hoverColors)||void 0===me?void 0:me.background},zebraStripes:{show:!(null==Re||null===(he=Re.zebraStripes)||void 0===he||!he.show),odd:{color:PI(n,null==Re||null===(ge=Re.zebraStripes)||void 0===ge||null===(ge=ge.color)||void 0===ge?void 0:ge.odd),background:PI(n,null==Re||null===(be=Re.zebraStripes)||void 0===be||null===(be=be.background)||void 0===be?void 0:be.odd)},even:{color:PI(n,null==Re||null===(ve=Re.zebraStripes)||void 0===ve||null===(ve=ve.color)||void 0===ve?void 0:ve.even),background:PI(n,null==Re||null===(ye=Re.zebraStripes)||void 0===ye||null===(ye=ye.background)||void 0===ye?void 0:ye.even)},overrideNullValueBackground:void 0===PI(n,null==we?void 0:we.background),overrideNullValueColor:void 0===PI(n,null==we?void 0:we.fontColor)},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:AS(n),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:Ie},{headerMinRowHeight:Pe,totalRowLineHeight:Me,totalRowMinHeight:_e,contentLineHeight:ke,contentMinRowHeight:Te}=(e=>{const t=Math.max(FI(e.header.fontSize)+8,32),r=FI(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(FI(e.dimension.values.fontSize),FI(e.measure.values.fontSize)),i=(e.contentStaticLineCount||1)*o;return{headerMinRowHeight:t,totalRowLineHeight:r,totalRowMinHeight:n,contentLineHeight:o,contentMinRowHeight:Math.max(i+8+1,24)}})(qe);return qe.headerMinRowHeight=Pe,qe.totalRowLineHeight=Me,qe.totalRowMinHeight=_e,qe.contentLineHeight=ke,qe.contentMinRowHeight=Te,qe},HI=(e,t,r,n)=>{const o=w((()=>{const o=r.totalsPosition.atTop,i=function(e,t,r,n){var o;const i=null===(o=AI(e))||void 0===o?void 0:o.content,a=DI("content",t,i);a.background=t.background.color;const s=RI(a.fontSize,r,n),l=null==i?void 0:i.hoverColor,u=null==i?void 0:i.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),d=t.getStyle("object","","straightTableV2.content.hover.color"),p=EI(u)||!!d,f=EI(l)||!!c,m=p||f;let h;h=EI(l)?CI(wS.HOVER,t,l):c||(p?"":wS.HOVER);const g=m?CI(RS(h),t,u):"";return{...a,lastRowBottomBorder:s,hoverColors:{background:h,color:g}}}(e,t,r.rows.length,n),a=LI(e,t,!o),s=function(e,t,r){var n;const o=null===(n=AI(e))||void 0===n?void 0:n.content,i=DI("content",t,o),{borderBottomColor:a,borderTopColor:s,background:l}=LI(e,t,r);return{...i,borderBottomColor:a,background:l,borderTopColor:s}}(e,t,o);return{body:i,head:a,totals:s}}),[e,t,r,n]);return o},BI=new Map;const $I=P({}),VI=function(e){const t=P([()=>{},new Set]);return BI.set(e,t),({children:r,value:n})=>{const o=M(n),i=M(new Set);R((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=_((()=>o.current),[o]),s=w((()=>[a,i.current]),[a]);return Ll.jsx(e.Provider,{value:n,children:Ll.jsx(t.Provider,{value:s,children:r})})}}($I),GI={rows:[],columns:[],totalsPosition:{}},WI=({app:e,children:t,tableData:r=GI,selectionsAPI:n,cellCoordMock:o,layout:i,model:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,setPage:h,pageInfo:g,initialDataPages:b,rect:v,viewService:y,downloadService:x,env:S,direction:E})=>{const[R,A]=C(0),[D,L]=C(o||VR),[I,P]=((e,t)=>{const[r,n]=q(xI,{pageRows:e,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(r.rows,n),[M,_]=C(-1),k=HI(i,u,r,d),T=((e,t,r,n,o)=>w((()=>zI(0,t,r,n,o)),[t,r,e,n,o]))(S,i,k,u,y),[O,N,F,j]=((e,t,r,n)=>{const o=t.atBottom||t.atTop,i=HS({...n.header,fontWeight:oI},{maxNbrLinesOfText:3}).measureText,a=HS({...n.totalRow,fontWeight:oI},{maxNbrLinesOfText:3}).measureText,{estimateWidth:s}=HS(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:l}=HS(n.measure.values,{maxNbrLinesOfText:3}),u=w((()=>(e,t,r,n,u,c)=>{let d=25;d+=28,n&&(d+=24),u&&(d+=20);const p=c?s:l;return Math.max(i(e)+d,o?a(t)+24+1:0,p(r))}),[s,l,i,a,o]),[c,d]=C(0),[p,f]=C((()=>uI(e,r,u)));WS((()=>{f(uI(e,r-c,u))}),[e,r,c,u]);const m=w((()=>((e,t,r)=>e.length>0&&e.reduce(((e,t)=>e+t))+t<r)(p,c,r)),[p,c,r]);return[p,f,d,m]})(r.columns,r.totalsPosition,v.width,T),z=w((()=>({app:e,selectionsAPI:n,layout:i,model:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,rect:v,viewService:y,styleService:T,direction:E,downloadService:x})),[e,n,i,a,s,l,u,c.active,d,p,f,m,v,y,T,E,x]);return Ll.jsx(VI,{value:{headRowHeight:R,setHeadRowHeight:A,focusedCellCoord:D,setFocusedCellCoord:L,selectionState:I,selectionDispatch:P,hoverIndex:M,setHoverIndex:_,columnWidths:O,setColumnWidths:N,baseProps:z,tableData:r,setYScrollbarWidth:F,setPage:h,pageInfo:g,initialDataPages:b,showRightBorder:j,env:S},children:t})};function UI(e,t){const r=function(e){return BI.get(e)}(e),[n,o]=E(r),[,i]=q((e=>e+1),0),a=M(t),s=M(),l=n();if(void 0===l)throw new Error("You must call useContextSelector inside a valid context.");const u=w((()=>t(l)),[l,t]);return R((()=>{a.current=t,s.current=u}),[l,u,t]),R((()=>{const e=e=>{a.current(e)!==s.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function YI(e){var t;const r=eI();return null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),Jh({...r,direction:e})}const KI={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},XI={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},JI=_g("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t,dir:r})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===r?"-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":{...KI},"&::-moz-range-track":{...KI},"&::-ms-track":{...KI},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...XI},"&::-moz-range-thumb":{...XI},"&::-ms-thumb":{...XI},"&: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"}}))),ZI=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:u,accessibilityRelatedArgs:c,direction:d="ltr"})=>{const p=YS({translator:c.translator}),f=M({initWidth:e,columnWidth:e,initX:0}),m=r?0:1,h=n&&!u,g=()=>h?f.current.columnWidth-m:"100%",b={left:"rtl"!==d?g():void 0,right:"rtl"===d?g():void 0},v=t=>{f.current={initWidth:e,columnWidth:e,initX:null!=t?t:f.current.initX}};WS((()=>{h&&v()}),[e]);const y=e=>{const t=Math.max(e,oE.PixelsMin);f.current.columnWidth=t,i(t)},S=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:iE.Pixels,pixels:f.current.columnWidth};a(e)}else null==l||l(!1)},E=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},C=e=>{MS(e),document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",C),S()},w=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)},R=e=>{MS(e),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",R),S()},A=!n&&s?e=>{if(e.key===rE.Left||e.key===rE.Right){MS(e);const t=5,r=e.key===rE.Left?t:-5,n="rtl"===d?r:-r;y(f.current.columnWidth+n)}else e.key===rE.Space||e.key===rE.Enter?(MS(e),s(e),S()):e.key===rE.Esc&&(MS(e),s(e),y(f.current.initWidth))}:void 0,D=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return x.createElement(JI,{style:b,key:t,hoverColor:o,isLastColumn:r,className:nE,"data-testid":nE,onMouseDown:e=>{MS(e),document.addEventListener("mousemove",E),document.addEventListener("mouseup",C),null==l||l(!0),v(e.clientX)},onDoubleClick:()=>{a({type:iE.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(MS(e),document.addEventListener("touchmove",w),document.addEventListener("touchend",R),null==l||l(!0),v(e.touches[0].clientX))},onKeyDown:A,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,max:oE.PixelsMax,"aria-label":D,"aria-valuemin":oE.PixelsMin,"aria-valuemax":oE.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d})},QI=k(((e,t)=>Ll.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:Ll.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})));function eq(){return eq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},eq.apply(null,arguments)}const tq=_g(bv,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),rq=_g(QI,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),nq=_g(Zy)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),oq=_g(Kv)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),iq=_g(nx)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),aq=_g(nx,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:r})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden",boxSizing:"border-box !important",background:r?"rgba(0, 0, 0, 0.05)":"transparent"}))),sq=_g("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),lq=_g("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),uq=_g(_b)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),cq=_g(Ry,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({theme:e,direction:t,isPagination:r})=>({width:16,minWidth:"unset !important",marginRight:r||"rtl"!==t?e.spacing(1.5):0,marginLeft:r||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0}))),dq=k(((e,t)=>Ll.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:Ll.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),pq=e=>{const t=e.nextElementSibling;var r;return t?"HR"===t.tagName?pq(t):t:null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[0]},fq=e=>{const t=e.previousElementSibling;if(!t){var r,n;const t=null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r.length;return null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[t-1]}return"HR"===t.tagName?fq(t):t},mq=e=>{var t;const{key:r,currentTarget:n}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:n;if(r===rE.Down||r===rE.Up){const t=e=>r===rE.Down?pq(e):fq(e);e.preventDefault(),e.stopPropagation();let n=t(o);for(;n;){if("true"!==n.ariaDisabled){n.focus();break}n=t(n)}}},hq=(e,t)=>e.map((e=>e.map((e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map((({onClick:e,...r})=>({...r,...e?{onClick:async r=>{Object.entries(t).forEach((([,e])=>{e(!1)})),await e(r)}}:{}})))})))));let gq={};const bq=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:u,isPagination:c})=>{const[d,p]=C(!1),f=M(null),m=_((e=>{e.stopPropagation(),p(!1)}),[p]);return x.createElement(x.Fragment,null,x.createElement(aq,{ref:a?f:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),gq={}),null!=a&&a.length&&(p(!0),gq[n]=p))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:mq},l?x.createElement(sq,{direction:u,isPagination:c}):null,x.createElement(lq,null,x.createElement(cq,{direction:u,isPagination:c},x.createElement(o,null)),x.createElement(uq,{variant:"body2"},n)),null!=a&&a.length?x.createElement(dq,null):null),null!=a&&a.length?x.createElement(xq,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:m,menuGroups:hq(a,gq),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null)},vq=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&x.createElement(iq,{key:e.groupHeading,disabled:!0,style:{opacity:1}},e.groupHeading),e.items.map((e=>x.createElement(bq,eq({key:e.id},e,{isSubMenu:t,direction:r,isPagination:n}))))].filter(Boolean)])),yq={appear:0,enter:0,exit:0},xq=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?x.createElement(nq,eq({className:QS,open:t,anchorEl:e,onClose:r,transitionDuration:yq,MenuListProps:{id:eE}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{},{dir:s}),(({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[vq({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?x.createElement(oq,{"data-testid":"group-divider",variant:"middle"}):void 0])))({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})):null,Sq=(e,t)=>e.some((e=>t[e]>0)),Eq={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},Cq=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=C(null),[a,s]=C(Eq);return WS((()=>{e||(s(Eq),i(null))}),[e]),R((()=>{if(null==n||!n.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{var e,u,c;const d=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(t,r),p=await n.createSessionObject(d),f=await p.getLayout(),{qStateCounts:m}=null!==(e=null===(u=f.qListObject)||void 0===u?void 0:u.qDimensionInfo)&&void 0!==e?e:{};o=null===(c=f.qInfo)||void 0===c?void 0:c.qId,a?l():(i(p),m&&s((e=>({canSelectAll:Sq(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:Sq(["qSelected"],e),canSelectPossible:Sq(["qOption"],e),canSelectAlternative:Sq(["qAlternative"],e),canSelectExcluded:Sq(["qAlternative","qExcluded"],e)}))(m)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},wq=k(((e,t)=>Ll.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:Ll.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"})}))),Rq=k(((e,t)=>Ll.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:Ll.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 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"})}))),Aq=k(((e,t)=>Ll.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:Ll.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"})}))),Dq=k(((e,t)=>Ll.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:Ll.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"})}))),Lq=k(((e,t)=>Ll.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:Ll.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.454.858v6.484a1 1 0 0 1-.576.906L8.5 14.663V7.17z"})}))),Iq=k(((e,t)=>Ll.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:Ll.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"})}))),qq=k(((e,t)=>Ll.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:Ll.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"})}))),Pq=k(((e,t)=>Ll.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:Ll.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"})}))),Mq=k(((e,t)=>Ll.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:Ll.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"})}))),_q=k(((e,t)=>Ll.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:Ll.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"})}))),kq=k(((e,t)=>Ll.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:Ll.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"})}))),Tq=k(((e,t)=>Ll.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:Ll.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"})}))),Oq=k(((e,t)=>Ll.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:Ll.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"})}))),Nq=k(((e,t)=>Ll.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:Ll.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 Fq=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const jq="/qListObjectDef",zq=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:u,focusColumnAdjuster:c,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[Fq.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"A")),n(!1)},icon:wq,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"D")),n(!1)},icon:Dq,enabled:s,isActive:!!r&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:Pq,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:Lq,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&null!=i&&i.select){const e=[];r[Fq.Searching]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:Mq,enabled:!0}]}]),r[Fq.Selections]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:Nq,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectListObjectAll(jq))},icon:_q,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectListObjectPossible(jq))},icon:Oq,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectListObjectAlternative(jq))},icon:kq,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.selectListObjectExcluded(jq))},icon:Tq,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==s?void 0:s.clearSelections(jq))},icon:Rq,enabled:l.canClearSelections}]}]]}]}]),p&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:qq,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:Iq,enabled:!0}]}]),e.length>0&&f.push(...e)}return r[Fq.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),null==c||c(u)},icon:Aq,enabled:!0}]}]),f},Hq=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:u,selectionRelatedArgs:c,adjustHeaderSizeRelatedArgs:d,expandOrCollapseArgs:p,model:f,direction:m="ltr",isPagination:h})=>{var g;const b=YS({translator:o}),{qLibraryId:v,fieldId:y,headTextAlign:S}=n,E=null==c?void 0:c.app,{fieldInstance:C,selectionActionsEnabledStatus:w}=Cq({open:e,headerData:n,app:E,qStateName:null==c?void 0:c.qStateName});let R=null;if(f&&"setActiveField"in f&&void 0!==n.dimensionInfoIndex){const e=n.dimensionInfoIndex;R=async t=>{try{await f.setActiveField("/qHyperCubeDef",e,t)}catch(e){console.error(e)}}}const A=_((()=>{const e=v?{qLibraryId:v,type:"dimension"}:y;if(null!=u&&u.embed){const{embed:t,listboxRef:r}=u;t.__DO_NOT_USE__.popover(r.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===m?"right":"left"},sortCriteria:u.sortCriteria,stateName:null==c?void 0:c.qStateName,direction:m})}}),[v,y,u,null==c?void 0:c.qStateName,m]),D=_((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?x.createElement(tq,{rightAligned:"right"===S,shouldShowMenuIcon:s,className:ZS},s?x.createElement(rq,{height:XS,className:JS,"data-testid":JS,isInteractionsActive:null!==(g=i.active)&&void 0!==g&&g},x.createElement(QI,null)):null,x.createElement(xq,{open:e,anchorEl:r.current,onClose:D,menuGroups:zq({headerData:n,translator:b,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:A,interactions:i,fieldInstance:C,selectionActionsEnabledStatus:w,anchorRef:r,focusColumnAdjuster:null==d?void 0:d.focusColumnAdjuster,setActiveFieldCallback:R,expandOrCollapseArgs:p}),direction:m,isPagination:h})):null},Bq=e=>e.isDark?{background:e.color,borderColor:wS.DARK_MODE_BORDER,color:wS.DARK_MODE_TEXT,disabledColor:wS.DARK_MODE_DISABLED,iconColor:wS.DARK_MODE_TEXT}:{background:e.color,borderColor:wS.BORDER_MEDIUM,color:wS.TEXT,disabledColor:wS.DISABLED},$q=_g(bv,{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}`}))),Vq=_g(Nx,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),Gq=_g(Dv,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)}))),Wq=_g(_b)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),Uq=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=w((()=>Bq(n.background)),[n]);if(!r.active)return null;const a=o?x.createElement($q,{footerStyle:i},e):null;return t?z.createPortal(e,t):a},Yq=P({}),Kq=()=>E(Yq),Xq=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=w((()=>Bq(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=YS({translator:d}),S=w((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:m,layout:h,footerStyle:b,tabIndex:g,width:v})),[t,r,n,o,i,a,s,l,u,c,y,p,f,m,h,b,g,v]);return x.createElement(Yq.Provider,{value:S},e)};let Jq=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),Zq=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 Qq=k(((e,t)=>Ll.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:Ll.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),eP=k(((e,t)=>Ll.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:Ll.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),tP=k(((e,t)=>Ll.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:Ll.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),rP={FirstPage:eP,PreviousPage:Qq,NextPage:dq,LastPage:tP,FirstPageRTL:tP,PreviousPageRTL:dq,NextPageRTL:Qq,LastPageRTL:eP},nP=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=Kq(),u=r.concat("rtl"===n?"RTL":""),c=rP[u];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${r}`),title:s.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:l,onClick:e?void 0:()=>{i(t)}},IconComponent:c}},oP=()=>{const{pageInfo:e,width:t}=Kq(),r=0===e.page,{IconComponent:n,styledProps:o}=nP({type:Jq.FirstPage,disabledCondition:r,pageNumber:0});return t<=Zq.FirstPage?null:x.createElement(Gq,o,x.createElement(n,{height:XS}))},iP=(e,t,r=!1)=>{r&&e.key===rE.Tab&&!e.shiftKey&&(MS(e),PS(e.target,t,!1))},aP=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=Kq(),i=e.page>=r-1,{IconComponent:a,styledProps:s}=nP({type:Jq.LastPage,disabledCondition:i,pageNumber:r-1}),l=t.enabled?e=>{iP(e,t,n)}:void 0;return o<=Zq.LastPage?null:x.createElement(Gq,eq({},s,{onKeyDown:l}),x.createElement(a,{height:XS}))},sP=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=Kq(),i=e.page>=r-1,{IconComponent:a,styledProps:s}=nP({type:Jq.NextPage,disabledCondition:i,pageNumber:e.page+1}),l=!(o>Zq.FirstPage&&o>Zq.LastPage)&&t.enabled?e=>{iP(e,t,n)}:void 0;return x.createElement(Gq,eq({},s,{onKeyDown:l}),x.createElement(a,{height:XS}))},lP=()=>{const{pageInfo:e}=Kq(),t=0===e.page,{IconComponent:r,styledProps:n}=nP({type:Jq.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return x.createElement(Gq,n,x.createElement(r,{height:XS}))},uP=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=Kq(),{page:o,rowsPerPage:i}=r;if(t<=Zq.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return x.createElement(Wq,{variant:"caption",dir:"ltr"},a)},cP=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s}=Kq(),l=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${l}`,p={tabIndex:s,id:`${c}-${l}`,"data-testid":c,"aria-labelledby":d};return x.createElement(x.Fragment,null,x.createElement(Wq,{variant:"caption",id:d},u,":"),x.createElement(Vq,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:p},r))},dP=()=>{var e;const{pageInfo:t,isSelectionMode:r,totalColumnCount:n,width:o,handleChangeRowsPerPage:i}=Kq();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!r&&o>Zq.RowsPerPage&&n<=100)||void 0===t.rowsPerPageOptions)return null;const a=x.createElement(x.Fragment,null,t.rowsPerPageOptions.map((e=>x.createElement("option",{key:e,value:e},e))));return x.createElement(cP,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},pP=1e3,fP="…",mP=({totalPages:e,page:t})=>{const r=Math.min(e,pP),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-pP):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return x.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(x.createElement("option",{key:"startMoreOptions",value:fP,disabled:!0},fP)),o<e-1&&a.push(x.createElement("option",{key:"endMoreOptions",value:fP,disabled:!0},fP)),x.createElement(x.Fragment,null,a)},hP=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=Kq(),{page:o}=e;if(t<=Zq.SelectPage)return null;const i=x.createElement(mP,{totalPages:r,page:o});return x.createElement(cP,{name:"SelectPage",value:o,options:i,handleChange:e=>{n(+e.target.value)}})};var gP=T((e=>x.createElement(Xq,e,x.createElement(dP,null),x.createElement(hP,null),x.createElement(uP,null),x.createElement(oP,null),x.createElement(lP,null),x.createElement(sP,null),x.createElement(aP,null))));const bP=e=>x.createElement(Uq,e,x.createElement(gP,e)),vP={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},yP=_g(bv,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.color}))),xP=_g("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e})((({lineClamp:e,isHeadCell:t=!1,isPagination:r=!1,isNumeric:n=!1})=>n||1===e&&!t?{...vP,whiteSpace:"nowrap",display:r?"block":void 0}:{...vP,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}));function SP(e,t){const r=M(!1);R((()=>{r.current?e():r.current=!0}),t)}const EP=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),CP=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),wP=e=>e.atTop?2:1,RP=(e,t)=>{var r;return null===(r=e.getElementsByClassName("sn-table-row")[t[0]])||void 0===r?void 0:r.getElementsByClassName("sn-table-cell")[t[1]]},AP=e=>null==e?void 0:e.setAttribute("tabIndex","0"),DP=e=>null==e?void 0:e.setAttribute("tabIndex","-1"),LP=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(DP)},IP=e=>{null==e||e.focus(),AP(e)},qP=e=>{setTimeout((()=>{var t;const r=null===(t=e.current)||void 0===t||null===(t=t.closest(".sn-table-cell"))||void 0===t?void 0:t.querySelector(`.${nE}`);IP(r)}),0)},PP=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{LP(t);const a=((e,t,r,n,o={top:0,bottom:0})=>{const i=o.top>0,a=o.top,s=t.getElementsByClassName("sn-table-row").length-1-o.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[u,c]=r;switch(e.key){case rE.Down:u<s&&u++;break;case rE.Up:u>a&&u--;break;case rE.Right:if(i)break;[u,c]="rtl"===n?EP({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):CP({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case rE.Left:if(i)break;[u,c]="rtl"===n?CP({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):EP({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case rE.Home:(pI(e)||i)&&(u=a),i||(c=0);break;case rE.End:(pI(e)||i)&&(u=s),i||(c=l);break;case rE.PageDown:u=Math.min(s,u+10);break;case rE.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=RP(t,a);return IP(s),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(null==r||!r.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{const e=t.getElementsByClassName("sn-table-head-cell")[0],i=t.getElementsByClassName("sn-table-row")[n].getElementsByClassName("sn-table-cell")[o];if(!i||!e)return;if(i.offsetTop-e.offsetHeight<r.scrollTop){const t=r.scrollTop-i.offsetHeight-e.offsetHeight;r.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(a,t),n(a),{nextCell:s,nextCellCoord:a}},MP=(e,t,r,n)=>{var o;(LP(t),r(e),n.enabled&&!n.active)?null===(o=n.focus)||void 0===o||o.call(n):IP(RP(t,e))},_P=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!(null==n||!n.contains(o)),a=null==o?void 0:o.closest(`.${QS}`);var s;!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${bR.First}`),r=e.querySelector(`.${bR.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),null===(s=r.blur)||void 0===s||s.call(r,!1))},kP=()=>{const{downloadService:e}=UI($I,(e=>e.baseProps));R((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))},TP=(e,t,r)=>{const{rootElement:n,keyboard:o}=UI($I,(e=>e.baseProps)),{totalColumnCount:i,totalRowCount:a,rows:s,totalsPosition:l}=UI($I,(e=>e.tableData)),u=UI($I,(e=>e.focusedCellCoord)),c=UI($I,(e=>e.setFocusedCellCoord)),d=UI($I,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()}));SP((()=>{const r=((e,t,r=!1)=>{const n=[wP(t),e[1]];return r?n:VR})(u,l,d);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(LP(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=RP(t,e);var l;r.current?(IP(s),r.current=!1):AP(s),n&&(a({keys:[null!==(l=null==s?void 0:s.textContent)&&void 0!==l?l:""]}),dI(a,s,n))})({resetCellCoord:r,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:d,keyboard:o,announce:t})}),[s.length,a,i,r])},OP=(e,t,r)=>{R((()=>{const n=e.current;if(!n)return;const o=e=>{((e,t,r)=>{if(0===e.deltaX)return;e.stopPropagation();const n=r.scrollWidth-r.offsetWidth;let{scrollLeft:o}=r,i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(n,i)):Math.max(0,Math.min(n,i)))})(e,"rtl"===t,n)},i=e=>{var t;r.scrollLeft=(null===(t=e.currentTarget)||void 0===t?void 0:t.scrollLeft)||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}}),[e,t,r])},NP=e=>{MS(e),pI(e)&&dE(e.currentTarget)},FP=e=>{gI(e.evt)&&(MS(e.evt),PP(e))},jP=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!gI(t))return;MS(t);const i=((e,t)=>[e.pageRowIdx+wP(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?wP(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=PP({...e,cellCoord:i,allowedRows:a});l[0]!==i[0]&&(({evt:e,isSelectionsEnabled:t,cell:r,selectionDispatch:n,announce:o,isSelectionMode:i,nextCell:a})=>{e.shiftKey&&t&&r.isSelectable?n({type:hR.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):dI(o,a,i)})({...e,nextCell:s})},zP=e=>{const{evt:t}=e;fI(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{MS(e);const a=Math.ceil(t/r)-1;e.key===rE.Right&&n<a?(o(),i(n+1)):e.key===rE.Left&&n>0&&(o(),i(n-1))})(e):t.key===rE.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{var n;t.enabled&&!r&&(MS(e),null===(n=t.blur)||void 0===n||n.call(t,!0))})(e):mI(t.key)&&MS(t)},HP=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(mR.Disabled))return void MS(t);const n={...e,isSelectionMode:!(null==r||!r.isModal())};switch(t.key){case rE.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{MS(e),t.isSelectable&&r&&n({type:hR.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case rE.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{MS(r),e&&(null==t||t.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case rE.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(MS(r),null==t||t.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case rE.C:NP(t);break;case rE.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(MS(e),PS(e.currentTarget,t,e.shiftKey))})(n);break;default:jP(n)}},BP=e=>{const{layout:t,rect:r,theme:n}=UI($I,(e=>e.baseProps)),[o,i]=C(0),[a,s]=C(0);return O((()=>{if(e.current){const{offsetWidth:t=0,offsetHeight:r=0,clientWidth:n=0,clientHeight:o=0}=e.current,a=r-o;s(t-n),i(a)}}),[e,t,r,n]),{xScrollbarWidth:o,yScrollbarWidth:a}},$P=_g("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),VP=_g(iS,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"}))),GP=_g($x,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),WP=()=>Ll.jsxs(Ll.Fragment,{children:[Ll.jsx($P,{className:bR.First,"data-testid":bR.First,"aria-live":"polite","aria-atomic":"true"}),Ll.jsx($P,{className:bR.Second,"data-testid":bR.Second,"aria-live":"polite","aria-atomic":"true"})]}),UP=e=>{const t=M(new Map),r=M(null);R((()=>{r.current=e(t.current),t.current.forEach(((e,t)=>{var n;null===(n=r.current)||void 0===n||n.observe(t)}));const n=t.current,o=r.current;return()=>{o.disconnect(),n.clear()}}),[e,r,t]);const n=_(((e,n)=>{var o;t.current.set(e,n),null===(o=r.current)||void 0===o||o.observe(e)}),[t,r]),o=_((e=>{var n;t.current.delete(e),null===(n=r.current)||void 0===n||n.unobserve(e)}),[r,t]);return w((()=>({addTask:n,removeTask:o})),[n,o])},YP=e=>new ResizeObserver((t=>{t.forEach((t=>{const r=e.get(t.target);null==r||r(t)}))})),KP=()=>UP(YP),XP=({selectionsAPI:e,selectionDispatch:t,updateShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{R((()=>{const i=()=>{t({type:hR.Reset})},a=()=>{t({type:hR.Clear})},s=()=>{var e;if(null!==(e=o.current)&&void 0!==e&&e.contains(document.activeElement))r();else if(n.enabled){var t;null===(t=n.blur)||void 0===t||t.call(n,!0)}i()};return null==e||e.on("deactivated",i),null==e||e.on("canceled",i),null==e||e.on("confirmed",s),null==e||e.on("cleared",a),()=>{null==e||e.removeListener("deactivated",i),null==e||e.removeListener("canceled",i),null==e||e.removeListener("confirmed",s),null==e||e.removeListener("cleared",a)}}),[e,n,t,r,o])},JP=e=>{e.stopPropagation()},ZP=({href:e,text:t,interactions:r,color:n})=>x.createElement(hy,(({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:JP,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}}))({href:e,text:t,interactions:r,color:n}),t);var QP,eM;const tM=null!==(QP=window.requestIdleCallback)&&void 0!==QP?QP:e=>setTimeout((()=>{e({})}),0),rM=null!==(eM=window.cancelIdleCallback)&&void 0!==eM?eM:e=>{clearTimeout(e)},nM="qDimensionInfo/0",oM="qMeasureInfo/0",iM="x",aM="y",sM=e=>({key:"bars",type:"box",data:{extract:{field:nM,props:{start:0,end:{field:oM}}}},settings:{major:{scale:iM},minor:{scale:aM},box:{maxWidthPx:8,fill:{fn:e}}}}),lM=e=>({key:"p",type:"point",data:{extract:{field:nM,props:{y:{field:oM}}}},settings:{x:{scale:iM},y:{scale:aM},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),uM=({qNum:e})=>void 0===e?0:Math.sign(e),cM=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=IS(e,null==t?void 0:t.negative,r),a=IS(e,null==t?void 0:t.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:nM,props:{start:0,end:{field:oM,value:uM}}}},settings:{major:{scale:iM},minor:{scale:aM},box:{maxWidthPx:8,fill:{fn:e=>-2===e.datum.value?n:-3===e.datum.value?o:0===e.datum.end.value?"#DDDDDD":Math.sign(e.datum.end.value)<0?i:a}}}}},dM=(e,{type:t,showDots:r,colors:n,colorMin:o,colorMax:i})=>{const a=((e,t,r,n)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),s=IS(e,null==t?void 0:t.main,o),l=IS(e,null==t?void 0:t.max,s),u=IS(e,null==t?void 0:t.min,s),c=IS(e,null==t?void 0:t.first,s),d=IS(e,null==t?void 0:t.last,s);return e=>{const t=aM in e.datum?aM:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=n?l:e.datum[t].value<=r?u:e.data.items.at(0)===e.datum?c:e.data.items.at(-1)===e.datum?d:s}})(e,n,o,i);switch(t){case"bars":return[sM(a)];case"dots":return[lM(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:nM,props:{v:{field:oM}}}},settings:{coordinates:{major:{scale:iM},minor:{scale:aM,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(IS(e,null==n?void 0:n.main,e.getDataColorSpecials().primary));return r?[t,lM(a)]:[t]}case"posNeg":return[cM(e,n)];default:return[]}},pM=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"}),fM=(e,t,r,n)=>({y:{data:{field:oM},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:nM}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),mM=$();mM.use(B),mM.renderer.prio(["canvas"]);const hM={resolve:()=>{},promise:{}},gM=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=M(e.isDownloadedAsPDForImage?bt():hM);return{addChartPromiseToQueue:_((()=>{e.waitForPromise(t.current.promise)}),[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:_((()=>{if(null===t.current||null!==e.current)return;u();r.current=tM((()=>{t.current&&(e.current=(({element:e,theme:t,isSnapshot:r,miniChartData:n,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:s,minY:l,maxY:u}=n;return mM.chart({element:e,data:{type:"q",key:"qHyperCube",data:pM(s)},settings:{scales:fM(a,l,u,i),components:dM(t,n),strategy:r?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:n,isSnapshot:o,miniChartData:a,direction:i,onChartRendered:l}))}),{timeout:2e3})}),[t,e,u,r,n,o,a,i,l]),safeCancelIdleCallback:_((()=>{null!==r.current&&rM(r.current),r.current=null,l()}),[r,l])}},bM=e=>{const t=M(null),r=M(!1);return _((n=>{var o,i;const a=null!==(o=null===(i=n.contentBoxSize.at(0))||void 0===i?void 0:i.inlineSize)&&void 0!==o?o:0;(e=>{e.current&&(rM(e.current),e.current=null)})(t),r.current?0!==a?null!==e.current&&(t.current=tM((()=>{var t;null===(t=e.current)||void 0===t||t.update()}),{timeout:2e3})):r.current=!1:r.current=!0}),[e])},vM=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=M(null),l=M(null),u=M(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=gM({element:s,chart:l,requestId:u,theme:r,isSnapshot:n,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:r,renderChartWithRequestIdleCallback:n,chart:o})=>{const i=_((e=>{e.isIntersecting?n():r()}),[n,r]);R((()=>{if(!e.current||!t)return()=>{};const n=e.current;return t.addTask(n,i),()=>{var e;t.removeTask(n),r(),null===(e=o.current)||void 0===e||e.destroy(),o.current=null}}),[o,e,t,r,i])})({element:s,intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:r,intersectionObserverTaskScheduler:n})=>{R((()=>n?()=>{}:(e(),()=>{var e;t(),null===(e=r.current)||void 0===e||e.destroy(),r.current=null})),[n,t,e,r])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:r})=>{const n=bM(t);R((()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}}),[e,n,r])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},yM=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=vM({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return x.createElement("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},xM="cell-text",SM=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const{styleService:a}=UI($I,(e=>e.baseProps));return o?Ll.jsx(xP,{"data-testid":xM,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,children:e}):Ll.jsx(xP,{"data-testid":xM,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:null!=i?i:a.grid.contentLineClamp,isPagination:n,children:e})},EM=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),CM=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},wM=(e,t)=>{const r=(e=>e.map((e=>{var t;return null!==(t=e.value)&&void 0!==t?t:e})).sort(((e,t)=>e-t)))(e),n=r.some((e=>!FC(e)));return 0===r.length||n?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===r.length?((e,t)=>{const r=e[0]-t;if(0===r||!FC(r)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return r>0?{min:t-.5*Math.abs(t),max:e[0]+2*r}:{min:e[0]+2*r,max:t+.5*Math.abs(t)}})(r,t):((e,t)=>{let r=e[e.length-1]-e[0];return r=r>0?r:1,{min:Math.min(t,e[0])-r/2,max:Math.max(t,e[e.length-1])+r/2}})(r,t)},RM=(e,t,r)=>{const n={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 r=e.limits&&e.limits.concat().sort(((e,t)=>e.value-t.value));return{lowerLimit:r&&t>0?r[t-1]:{value:0,gradient:!1},upperLimit:r&&r[t]?r[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,r,n,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,u=n===i.value?1:(n-a.value)/(i.value-a.value);return a.gradient&&i.gradient?n-a.value<i.value-n?{color:s.color,t:.5-u}:{color:l.color,t:u-.5}:a.gradient?{color:s.color,t:1-(.5+u/2)}:i.gradient?{color:l.color,t:u/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return s&&te(e.localPaletteColors[t].color).blend(te(s.color),s.t)},AM=(e,t,r)=>{const n=((e,t)=>{const{limits:r}=e;return r&&(e.limits=r.sort(((e,t)=>e.value-t.value)),e.limits=r.map((e=>({...e,value:EM(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:CM(n,t,r)})))),n},DM=(e,t,r,n)=>{const o=AM(e,r,n),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let r="",n=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>=n&&t<i){r=RM(e,a,t);break}n=i}return r})(o,t);return a},LM=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=wM(e,t),o=Math.abs(t);return{min:null!=r?r:t-o,max:null!=n?n:t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!FC(t))return 0;let a=r&&FC(r)?Math.min(r,t):0;const s=n.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,n.min);return{limitRange:n,limitPaletteColorIndex:o}},IM=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=LM(o,t),a=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(null==i||!i.length||!((e,t)=>{var r,n,o;return!(!e||0===e.length||!(null!==(r=null===(n=e[t])||void 0===n?void 0:n.gradient)&&void 0!==r?r:null===(o=e[t-1])||void 0===o?void 0:o.gradient))})(i,r.limitPaletteColorIndex))return CM(o,r.limitPaletteColorIndex,n);const a=EM(r.limitRange,t);return DM(o,a,r.limitRange,n)})(o,t,i,n),s=o.segments.paletteColors[(null==i?void 0:i.limitPaletteColorIndex)||0].icon,{indicator:l}=e;let u=(null==l?void 0:l.position)||"right";return"rtl"===r&&(u="right"===u?"left":"right"),{color:a,iconKey:s,position:u}},qM=(e,t)=>{var r,n,o,i;return"rtl"===e&&"center"!==(null===(r=t.resolvedImagePosition)||void 0===r?void 0:r.horizontal)?(null===(o=t.resolvedImagePosition)||void 0===o?void 0:o.horizontal)&&(e=>"flex-start"===e?"flex-end":"flex-start")(null===(i=t.resolvedImagePosition)||void 0===i?void 0:i.horizontal):null===(n=t.resolvedImagePosition)||void 0===n?void 0:n.horizontal},PM=(e,t)=>e.representation.type===zE.Image&&"fitHeight"===e.representation.imageSize?qM(t,e.representation):e.align,MM=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",_M=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},kM=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,TM=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",OM=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",NM=e=>{let t="center",r="center";return"flex-start"===(null==e?void 0:e.vertical)?t="top":"flex-end"===(null==e?void 0:e.vertical)&&(t="bottom"),"flex-start"===(null==e?void 0:e.horizontal)?r="left":"flex-end"===(null==e?void 0:e.horizontal)&&(r="right"),`${r} ${t}`},FM=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},jM=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{direction:o}=UI($I,(e=>e.baseProps)),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=Ll.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:FM(s),objectPosition:NM(l),overflow:"hidden"}});return n?Ll.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?qM(o,e):void 0},children:c}):c},zM=k(((e,t)=>Ll.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:Ll.jsx("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})}))),HM=k(((e,t)=>Ll.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:Ll.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"})}))),BM=k(((e,t)=>Ll.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:[Ll.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"}),Ll.jsx("use",{fillRule:"evenodd"})]}))),$M=k(((e,t)=>Ll.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:Ll.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"})}))),VM=k(((e,t)=>Ll.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:Ll.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"})}))),GM=k(((e,t)=>Ll.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:Ll.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"})}))),WM=k(((e,t)=>Ll.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:Ll.jsx("path",{d:"M2 7h12v2H2z"})}))),UM=k(((e,t)=>Ll.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:Ll.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"})}))),YM=k(((e,t)=>Ll.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:Ll.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"})}))),KM=k(((e,t)=>Ll.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:Ll.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"})}))),XM=k(((e,t)=>Ll.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:Ll.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"})}))),JM=k(((e,t)=>Ll.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:Ll.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),ZM=k(((e,t)=>Ll.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:Ll.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"})}))),QM=k(((e,t)=>Ll.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:Ll.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"})}))),e_=k(((e,t)=>Ll.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:Ll.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"})}))),t_={m:JM,"ï":KM,R:k(((e,t)=>Ll.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:Ll.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"})}))),S:ZM,T:QM,U:e_,P:YM,Q:GM,"è":k(((e,t)=>Ll.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:Ll.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"})}))),"¢":$M,"©":BM,"23F4":VM,2013:XM,"&":UM,add:zM,"minus-2":WM,dot:HM},r_=({size:e,iconKey:t,color:r,pvStyle:n})=>{var o;const i=null!==(o=t&&t_[t])&&void 0!==o?o:t_.dot;return i&&x.createElement("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n}},x.createElement(i,{style:{height:e}}))},n_=({representation:e,cellValue:t,paginationCellAlign:r})=>{const{styleService:n,theme:o,direction:i}=UI($I,(e=>e.baseProps)),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=null!=s?s:{},c=IM(e,t,i,o),d=(e=>parseInt(e||nI,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:m}=c||{};return l?Ll.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:null!=r?r:"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:u?p:void 0},children:["left"===m&&r_({size:d,iconKey:f,color:p}),Ll.jsx(SM,{isNumeric:!0,children:a}),"right"===m&&r_({size:d,iconKey:f,color:p})]}):r_({size:d,iconKey:f,color:p})},o_=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(null!=t?t:e.grid.contentLineClamp):e.contentLineHeight,i_=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const{interactions:l,styleService:u,theme:c,layout:d,downloadService:p,direction:f}=UI($I,(e=>e.baseProps)),m=UI($I,(e=>{var t;return null===(t=e.selectionState.api)||void 0===t?void 0:t.isActive()}));let h=t.representation.text;if(t.representation.type!==zE.Link||m||(h=Ll.jsx(ZP,{href:t.representation.url,text:t.representation.text,interactions:l,color:r.cellForegroundColor})),t.representation.type===zE.Image)return Ll.jsx(jM,{representation:t.representation,textStyle:r,maxImageHeight:o_(u,o),wrapInContainer:!n});const g="string"==typeof(b=t.qIsNull?t.representation.text:t.qNum)&&b.length>0||"number"==typeof b?+b:NaN;var b;return t.representation.type!==zE.Indicator||Number.isNaN(g)?t.representation.type===zE.MiniChart&&t.representation.miniChart&&!t.isNull?Ll.jsx(yM,{height:o_(u,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:c,isSnapshot:!!d.snapshotData,direction:f,downloadService:p}):Ll.jsx(SM,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:h}):Ll.jsx(n_,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:s})},a_=(e,t,r,n)=>({handleMouseDown:n=>{null==e||e(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:hR.SelectMultiEnd})};r({type:hR.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:hR.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:hR.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),s_=(e,t)=>{const{paginationNeeded:r,totalsPosition:n}=UI($I,(e=>e.tableData)),{selectionsAPI:o,rootElement:i,keyboard:a,interactions:s,direction:l}=UI($I,(e=>e.baseProps)),u=UI($I,(e=>e.setFocusedCellCoord)),c=UI($I,(e=>e.selectionDispatch)),d=!!s.active&&!!s.select,p=s=>{HP({evt:s,rootElement:i,selectionsAPI:o,cell:e,selectionDispatch:c,isSelectionsEnabled:d,setFocusedCellCoord:u,announce:t,keyboard:a,paginationNeeded:r,totalsPosition:n,direction:l})},f=e=>{((e,t)=>{e.key===rE.Shift&&t({type:hR.SelectMultiEnd})})(e,c)},m=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;MP([s,a],t,r,n)})(e,i,u,a,n)};if(!d)return{onKeyDown:p,onKeyUp:f,onMouseDown:m};const{handleMouseDown:h,handleMouseOver:g,handleMouseUp:b}=a_(m,e,c,t);return{onKeyDown:p,onKeyUp:f,onMouseDown:h,onMouseUp:b,onMouseOver:g}},l_=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=mR.Inactive;return null!=o&&o.isModal()&&(i=r!==e.selectionColIdx?mR.Disabled:n.has(e.qElemNumber)?mR.Selected:mR.Possible),i},u_=(e,t,r)=>{if(!r.isNull)return e;const n={...e,...t.nullValues};return t.grid.zebraStripes.show?(t.grid.zebraStripes.overrideNullValueColor&&(n.color=e.color),t.grid.zebraStripes.overrideNullValueBackground&&(n.background=e.background),n):n},c_=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},d_=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return c_(t,e,n?"even":"odd")}return e},p_=(e,t)=>{const{styleService:r}=UI($I,(e=>e.baseProps)),n=UI($I,(t=>l_(e,t.selectionState)));let o=t.isDim?r.dimension.values:r.measure.values;o=d_(o,r,e),o=u_(o,r,e);const i=qI(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===mR.Selected?{...e,...r}:t===mR.Disabled?{...e,background:`${tI}, ${e.background}`}:e}(w((()=>e.isNull?o:qI(o,e.qAttrExps,t.qAttrExprInfoIDs)),[o,e.qAttrExps,e.isNull,t.qAttrExprInfoIDs]),n,r.selectedColors);return{cellStyle:{...a,borderColor:r.grid.border},representationStyle:i,cellSelectionState:n}},f_=_g(Xx,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),m_=_g(bS,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})((({hover:e,hoverColors:t,height:r})=>({height:r,"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}}))),h_=_g(tS,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...aI,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}))),g_=_g(tS,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...aI,...e,fontWeight:oI,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?r:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",zIndex:t?1:void 0}))),b_=({cell:e,announce:t,column:r,columnIndex:n,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i})=>{const{interactions:a,direction:s}=UI($I,(e=>e.baseProps)),{onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p}=s_(e,t),{cellStyle:f,representationStyle:m,cellSelectionState:h}=p_(e,r);return Ll.jsx(h_,{cellStyle:f,scope:0===n?"row":void 0,component:0===n?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${h} ${tE}`,title:a.passive?e.representation.text:void 0,onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p,children:Ll.jsx(i_,{cell:e,style:m,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i,paginationCellAlign:kM(s,e.align)})})},v_=(e,{atTop:t,atBottom:r},n)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!n&&r?e.grid.divider:e.grid.border,borderBottomColor:n&&!t||!n&&t?e.grid.divider:e.grid.border}),y_=()=>{const{columns:e,totalsPosition:t,rows:r}=UI($I,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,styleService:a,interactions:s,direction:l}=UI($I,(e=>e.baseProps)),u=UI($I,(e=>e.headRowHeight)),c=UI($I,(e=>e.setFocusedCellCoord)),d=!(null==o||!o.isModal()),p=!!s.active;return Ll.jsx(bS,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,o)=>{const f=[t.atTop?1:r.length+1,o];return Ll.jsx(g_,{totalsStyle:{...a.totalRow,...v_(a,t,!1)},headRowHeight:u,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${tE}`,tabIndex:-1,title:s.passive?e.totalInfo:void 0,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case rE.C:NP(r);break;case rE.Space:r.preventDefault();break;default:FP(e)}else MS(r)})({evt:e,rootElement:n,cellCoord:f,setFocusedCellCoord:c,isSelectionMode:d,isInteractionEnabled:p,direction:l})},onMouseDown:()=>{MP(f,n,c,i)},children:Ll.jsx(SM,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)}))})};var x_=T(y_);const S_=({updateShouldRefocus:e,tableWrapperRef:t,announce:r})=>{var n;const{rows:o,columns:i,totalsPosition:a}=UI($I,(e=>e.tableData)),{selectionsAPI:s,keyboard:l,layout:u,styleService:c}=UI($I,(e=>e.baseProps)),d=UI($I,(e=>e.selectionDispatch)),p=!(null===(n=AI(u))||void 0===n||null===(n=n.content)||void 0===n||!n.hoverEffect);XP({keyboard:l,selectionDispatch:d,selectionsAPI:s,updateShouldRefocus:e,tableWrapperRef:t});const f=(e=>{const t=_((t=>new IntersectionObserver((e=>{e.forEach((e=>{const r=t.get(e.target);null==r||r(e)}))}),{root:e.current})),[e]);return UP(t)})(t),m=KP();return Ll.jsxs(f_,{lastRowBottomBorder:c.grid.lastRowBottomBorder,children:[a.atTop?Ll.jsx(x_,{}):void 0,o.map(((e,t)=>Ll.jsx(m_,{hoverColors:c.grid.hoverColors,hover:p,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:c.contentMinRowHeight,children:i.map(((t,n)=>{const{id:o}=t,i=e[n];return Ll.jsx(b_,{columnIndex:n,cell:i,column:t,announce:r,intersectionObserverTaskScheduler:f,resizeObserverTaskScheduler:m},o)}))},`row-${t}`))),a.atBottom?Ll.jsx(x_,{}):void 0]})};var E_=T(S_);const C_=(e,t)=>{var r;return!(null===(r=e.viewState)||void 0===r||!r.skipHeader)||!!t.hideHeader},w_=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:s,translator:l,direction:u}=UI($I,(e=>e.baseProps)),c=UI($I,(e=>e.columnWidths)),d=UI($I,(e=>e.setColumnWidths));if(!s.active)return null;return Ll.jsx(ZI,{columnWidth:c[o],isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{null==r||r();const t=[...c];t[o]=e,d(t)},confirmWidthCallback:t=>{a(t,e)},handleBlur:e=>{(e=>{DP(e);const t=e.closest(".sn-table-cell");IP(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:l,columnLabel:i},direction:u})},R_=k(((e,t)=>Ll.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:Ll.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"})}))),A_=k(((e,t)=>Ll.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:Ll.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"})}))),D_=k(((e,t)=>Ll.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:[Ll.jsx("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),Ll.jsx("use",{fillRule:"evenodd"})]}))),L_=_g("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0}))),I_=_g(bv,{shouldForwardProp:e=>!["textAlign","direction","isPagination"].includes(e)})((({textAlign:e,theme:t,direction:r,isPagination:n})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center",flexDirection:"rtl"===r?MM(e,n):void 0})));_g("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1});const q_=_g(bv,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})((({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:r})=>{const n=e?"24px":"";let o;switch(r){case"left":o={gridTemplateColumns:t?`20px 2fr ${n}`:`1fr ${n}`};break;case"center":{const r=e||t;o={gridTemplateColumns:r?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:r?2:1},[`& .${ZS}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${n} 2fr 20px`:`${n} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:e?2:"span 2"},[`& .${ZS}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),P_=_g(bv,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})));_g(bv,{shouldForwardProp:e=>"isVisible"!==e&&"rightAligned"!==e})((({rightAligned:e})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:"24px",display:"flex"}))),_g(nx)((({theme:e})=>({borderRadius:"4px",margin:e.spacing(0,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"}}))),_g("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),_g(Ry)((({theme:e})=>({marginRight:e.spacing(1.5),lineHeight:0}))),_g("div")((({theme:e})=>({height:"350px",boxSizing:"border-box",background:e.palette.common.white})));const M_=_g(tS,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...aI,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom","&&:focus-visible, &&:hover":{background:t.active?r:n}})));_g("div")({display:"flex",alignItems:"center"});const __=_g("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})((({align:e,dir:t})=>({minWidth:nI,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),k_=({column:e,isInteractionEnabled:t,open:r,setOpen:n,allColumnsIconVisibilityStatusRef:o,isPagination:i,forwardRef:a})=>{const{translator:s,changeSortOrder:l,interactions:u,embed:c,app:d,styleService:p,layout:f,direction:m}=UI($I,(e=>e.baseProps)),h=UI($I,(t=>t.columnWidths[e.pageColIdx])),g=UI($I,(e=>e.baseProps.model)),b=M(null),v=M(null),y=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=HS({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:oI});return _((()=>{let e=!1,o=!1,i=!1;const a=t.isLocked,s=t.isActivelySorted,l=r-25,u=a?20:0,c=s?20:0;let d=n(t.label);return a&&d+u<=l&&(i=!0,d+=u,s&&d+c<=l&&(o=!0,d+=c)),!a&&s&&d+c<=l&&(o=!0,d+=c),d+24<=l&&(e=!0,d+=24),{shouldShowMenuIcon:e,shouldShowSortIcon:o,shouldShowLockIcon:i}}),[t.isLocked,t.label,t.isActivelySorted,r,n])})({styleService:p,column:e,columnWidth:h}),x=y(),{StartIcon:S,EndIcon:E,LockIcon:C}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?Ll.jsx(R_,{height:nI,"data-testid":"head-cell-sort-ascending-icon"}):Ll.jsx(A_,{height:nI,"data-testid":"head-cell-sort-descending-icon"}),a=r?Ll.jsx(__,{align:t,dir:o,children:i}):void 0,s=n?Ll.jsx(P_,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:Ll.jsx(D_,{height:nI,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(e,x,m);o&&(o.current[e.pageColIdx]=x);return Ll.jsxs(q_,{shouldShowMenuIcon:x.shouldShowMenuIcon,shouldShowLockIcon:x.shouldShowLockIcon,alignment:_M(e,i,m),children:[C,Ll.jsxs(I_,{className:"sn-table-head-label",textAlign:e.headTextAlign,direction:m,isPagination:i,children:[S,Ll.jsx(SM,{forwardRef:a,isPagination:i,isHeadCell:!0,children:e.label}),E]}),t?Ll.jsxs(Ll.Fragment,{children:[Ll.jsx(Hq,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:s,anchorRef:b,menuAvailabilityFlags:{[Fq.Sorting]:!0,[Fq.Searching]:!0,[Fq.Selections]:!0,[Fq.AdjusterHeaderSize]:!0},open:r,setOpen:n,interactions:u,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),l(e,r))},searchRelatedArgs:{embed:c,listboxRef:v},selectionRelatedArgs:{app:d,qStateName:f.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:qP},shouldShowMenuIcon:x.shouldShowMenuIcon,model:g,direction:m,isPagination:i}),Ll.jsx(L_,{ref:v,direction:m,isPagination:i}),Ll.jsx(L_,{ref:b,direction:m})]}):null]})},T_=({isInteractionEnabled:e,columnsData:t})=>{const[r,n]=C(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=(e=>{const[t,r]=C(!1);return WS((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}})([t]);return{open:r,setOpen:n,handleOpenMenu:t=>{!e||(e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(nE)})(t)||o||n(!0)},setIsAdjustingWidth:i}},O_=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a,direction:s}=UI($I,(e=>e.baseProps)),{columns:l,totalsPosition:u}=UI($I,(e=>e.tableData)),c=UI($I,(e=>e.columnWidths[t])),d=UI($I,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),p=UI($I,(e=>e.setFocusedCellCoord)),f=UI($I,(({focusedCellCoord:[e,r]})=>0===e&&r===t)),m=!!n.active&&!d,{open:h,setOpen:g,handleOpenMenu:b,setIsAdjustingWidth:v}=T_({isInteractionEnabled:m,columnsData:l}),y=e.isActivelySorted?gR[e.sortDirection]:void 0,x=h?eE:void 0,S=h?"true":void 0,E=t===r-1,C=[0,e.pageColIdx],w={width:c-(E?8:9),zIndex:l.length-t},R=f&&0===t&&!i.enabled&&m?0:-1;return Ll.jsxs(M_,{headerStyle:{...a.header,...v_(a,u,!0)},background:h?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:n,style:w,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${tE}`,tabIndex:R,title:n.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case rE.C:NP(r);break;case rE.Enter:case rE.Space:null==n||n(r);break;default:FP(e)}else MS(r)})({evt:e,rootElement:o,cellCoord:C,setFocusedCellCoord:p,isInteractionEnabled:m,handleOpenMenu:b,direction:s})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&MP(r,t,n,o)})({evt:e,rootElement:o,cellCoord:C,setFocusedCellCoord:p,keyboard:i,isInteractionEnabled:m})},onClick:b,"aria-sort":y,"aria-controls":x,"aria-expanded":S,"aria-haspopup":"true",children:[Ll.jsx(k_,{column:e,isInteractionEnabled:m,open:h,setOpen:g,isPagination:!0}),Ll.jsx(w_,{column:e,isLastColumn:E,setIsAdjustingWidth:v})]},e.id)},N_=()=>{const{columns:e}=UI($I,(e=>e.tableData)),{styleService:t,viewService:r,layout:n}=UI($I,(e=>e.baseProps)),o=UI($I,(e=>e.setHeadRowHeight)),i=UI($I,(e=>e.columnWidths)),a=M(null),s=C_(r,n);return R((()=>{a.current&&o(a.current.getBoundingClientRect().height)}),[t.header.fontSize,i,o,s]),Ll.jsx(dS,{style:{visibility:s?"collapse":void 0},children:Ll.jsx(bS,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map(((t,r)=>Ll.jsx(O_,{column:t,columnIndex:r,columnsLength:e.length},t.id)))})})};var F_=T(N_);const j_=e=>{var t,r;const{pageInfo:n,setPageInfo:o,footerContainer:i,announce:a}=e,{page:s,rowsPerPage:l}=n,{totalColumnCount:u,totalRowCount:c,totalPages:d,paginationNeeded:p,rows:f,columns:m}=UI($I,(e=>e.tableData)),{rootElement:h,keyboard:g,translator:b,theme:v,interactions:y,styleService:x,viewService:S,layout:E,rect:C,direction:w}=UI($I,(e=>e.baseProps)),A=UI($I,(e=>e.setYScrollbarWidth)),D=UI($I,(e=>e.showRightBorder)),L=UI($I,(e=>e.selectionDispatch)),I=UI($I,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),q=M(!1),P=M(null),k=M(null),{yScrollbarWidth:T}=BP(P),O=`${b.get("SNTable.Accessibility.RowsAndColumns",[String(f.length),String(m.length)])} ${b.get("SNTable.Accessibility.NavigationInstructions")}`,N=Zw(E,S),F=N&&null!==(t=S.scrollLeft)&&void 0!==t?t:0,j=N&&null!==(r=S.rowPartialHeight)&&void 0!==r?r:0,z=_((()=>{q.current=h.getElementsByTagName("table")[0].contains(document.activeElement)}),[h]),H=_((e=>{o({...n,page:e}),a({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),d.toString()]],politeness:"assertive"})}),[n,o,d,a]),B=_((e=>{o({...n,page:0,rowsPerPage:e}),a({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[a,n,o]);return OP(P,w,S),((e,t)=>{const{keyboard:r}=UI($I,(e=>e.baseProps));R((()=>{const n=e.current;if(!n)return;const o=e=>{_P(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(k,q),(()=>{const{rootElement:e,keyboard:t}=UI($I,(e=>e.baseProps)),r=UI($I,(e=>e.focusedCellCoord));WS((()=>{const n=RP(e,r);t.active?IP(n):(null==n||n.blur(),LP(e))}),[t.active,e])})(),TP(q,a,s),R((()=>{const e=P.current;e&&(e.scrollLeft=F,e.scrollTop=j)}),[n,c,F,j]),SP((()=>{A(T)}),[T]),SP((()=>{L({type:hR.UpdatePageRows,payload:{pageRows:f}})}),[f]),kP(),Ll.jsxs(yP,{ref:k,background:v.background,dir:w,onKeyDown:e=>{zP({evt:e,totalRowCount:c,page:s,rowsPerPage:l,handleChangePage:H,updateShouldRefocus:z,keyboard:g,isSelectionMode:I})},"data-testid":"sn-table",children:[Ll.jsx(WP,{}),Ll.jsx(VP,{ref:P,className:"sn-table-container",fullHeight:!!i||!y.active||!p,interactions:y,tabIndex:-1,role:"application","data-testid":"table-container",children:Ll.jsxs(GP,{stickyHeader:!0,"aria-label":O,borderRight:D?`1px solid ${x.grid.border}`:void 0,children:[Ll.jsx(F_,{}),Ll.jsx(E_,{...e,updateShouldRefocus:z,tableWrapperRef:k})]})}),Ll.jsx(bP,{footerContainer:i,pageInfo:n,paginationNeeded:p,theme:v,totalRowCount:c,totalColumnCount:u,totalPages:d,keyboard:g,translator:b,interactions:y,rect:C,layout:E,handleChangePage:H,handleChangeRowsPerPage:B,isSelectionMode:I,direction:w})]})};var z_=T(j_),H_=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function B_(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],o=t[r],!(n===o||H_(n)&&H_(o)))return!1;var n,o;return!0}function $_(e,t){var r;void 0===t&&(t=B_);var n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}var V_="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function G_(e){cancelAnimationFrame(e.id)}function W_(e,t){var r=V_();var n={id:requestAnimationFrame((function o(){V_()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var U_=-1;function Y_(e){if(void 0===e&&(e=!1),-1===U_||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),U_=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return U_}var K_=null;function X_(e){if(void 0===e&&(e=!1),null===K_||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?K_="positive-descending":(t.scrollLeft=1,K_=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),K_}return K_}var J_=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function Z_(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,go(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:go(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=$_((function(e,t,r,o,i,a,s,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})})),n._callOnScroll=void 0,n._callOnScroll=$_((function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,s=a.columnWidth,l=a.direction,u=a.rowHeight,p=n._getItemStyleCache(h&&s,h&&l,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=r(n.props,t,n._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=$_((function(e,t,r){return{}})),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;n.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,u=i;if("rtl"===t)switch(X_()){case"negative":u=-i;break;case"positive-descending":u=l-o-i}u=Math.max(0,Math.min(u,l-o));var c=Math.max(0,Math.min(a,s-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&G_(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=W_(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}ho(t,e),t.getDerivedStateFromProps=function(e,t){return Q_(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=Y_();void 0!==n&&(n=Math.max(0,Math.min(n,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?l(this.props,n,r,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(X_()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&G_(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?J_:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],C=S[1],w=this._getVerticalRangeToRender(),R=w[0],D=w[1],L=[];if(n>0&&g)for(var I=R;I<=D;I++)for(var q=E;q<=C;q++)L.push(A(t,{columnIndex:q,data:d,isScrolling:v?x:void 0,key:f({columnIndex:q,data:d,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,q)}));var P=a(this.props,this._instanceProps),M=s(this.props,this._instanceProps);return A(m||h||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:Et({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},A(u||c||"div",{children:L,ref:l,style:{height:P,pointerEvents:x?"none":void 0,width:M}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,m)}if("function"==typeof n){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,u=l.horizontalScrollDirection,c=l.isScrolling,d=l.scrollLeft,p=r||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}(N),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var Q_=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},ek=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},tk=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},rk=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:s,size:c},s+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},nk=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?ok(e,t,r,i,0,n):ik(e,t,r,Math.max(0,i),n)},ok=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=rk(e,t,a,r).offset;if(s===i)return a;s<i?o=a+1:s>i&&(n=a-1)}return o>0?o-1:0},ik=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&rk(e,t,n,r).offset<o;)n+=a,a*=2;return ok(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},ak=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=rk(e,t,r,i),u="column"===e?tk(t,i):ek(t,i),c=Math.max(0,Math.min(u-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===n&&(n=o>=d-s&&o<=c+s?"auto":"center"),n){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},sk=Z_({getColumnOffset:function(e,t,r){return rk("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return nk("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=rk("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=rk("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:ek,getEstimatedTotalWidth:tk,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return ak("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return ak("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return rk("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return nk("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=rk("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=rk("row",e,u,n).size;return u},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),lk=function(e,t){return e};function uk(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=l(n.props,go(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:go(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=$_((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=$_((function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})})),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,s=i.itemSize,l=i.layout,c=n._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===l,m="rtl"===a,h=f?d:0;c[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=$_((function(e,t,r){return{}})),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState((function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(X_()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&G_(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=W_(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}ho(t,e),t.getDerivedStateFromProps=function(e,t){return ck(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?Y_():0:l.scrollHeight>l.clientHeight?Y_():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(X_()){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&&G_(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?lk:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),C=E[0],w=E[1],R=[];if(u>0)for(var D=C;D<=w;D++)R.push(A(t,{data:c,key:p(D,c),index:D,isScrolling:b?y:void 0,style:this._getItemStyle(D)}));var L=n(this.props,this._instanceProps);return A(m||h||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:Et({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},A(s||l||"div",{children:R,ref:a,style:{height:x?"100%":L,pointerEvents:y?"none":void 0,width:x?L:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,l=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,l,this._instanceProps),c=s(this.props,u,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(N),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var ck=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},dk=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var u=n(l);o[l]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},pk=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=dk(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},fk=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&dk(e,r,t).offset<n;)r+=i,i*=2;return pk(e,t,Math.min(r,o-1),Math.floor(r/2),n)},mk=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},hk=uk({getItemOffset:function(e,t,r){return dk(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:mk,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.layout,u=e.width,c="horizontal"===a||"horizontal"===l?u:s,d=dk(e,t,o),p=mk(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=m-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return n>=m&&n<=f?n:n<m?m:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?pk(e,t,o,0,r):fk(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,u="horizontal"===o||"horizontal"===s?l:i,c=dk(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=dk(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function gk(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var bk=["style"],vk=["style"];function yk(e,t){var r=e.style,n=Er(e,bk),o=t.style,i=Er(t,vk);return!gk(r,o)&&!gk(n,i)}const xk=({style:e})=>Ll.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var Sk=x.memo(xk,yk);const Ek=e=>{var t;return null===(t=e.at(0))||void 0===t||null===(t=t.contentBoxSize.at(0))||void 0===t?void 0:t.blockSize},Ck=(e,t,r)=>{R((()=>{const r=e.current;if(!r)return()=>{};const n=new ResizeObserver(t);return n.observe(r),()=>{n.disconnect()}}),[e,t,r])},wk=()=>{},Rk=e=>{e.preventDefault()};const Ak=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o,i;const{rowsInPage:a,columns:s,isHoverEnabled:l,setMeasuredCellHeight:u,lineClamp:c,resizeObserverTaskScheduler:d}=n,p=UI($I,(e=>e.hoverIndex===t)),f=UI($I,(e=>e.setHoverIndex)),{interactions:m,styleService:h,direction:g}=UI($I,(e=>e.baseProps)),b=UI($I,(e=>e.showRightBorder)),v=null===(o=a[t])||void 0===o?void 0:o[e],{handleMouseDown:y,handleMouseOver:x,handleMouseUp:S,cellSelectionState:E}=function(e){const{interactions:t}=UI($I,(e=>e.baseProps)),r=UI($I,(e=>e.selectionDispatch)),n="object"==typeof e,o=UI($I,(t=>n?l_(e,t.selectionState):mR.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=a_(Rk,e,r,wk);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(v),C=((e,t,r,n)=>{const o=M(null),i=r&&!r.isNumeric,a=_((r=>{const o=Ek(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return Ck(o,a),o})(t,e,v,u),w=null!==(i=s[e])&&void 0!==i&&i.isDim?h.dimension.values:h.measure.values;if("object"==typeof v){const n=((e,t,r,n,o,i)=>{let a=d_(o,i,e);a=u_(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?qI(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===mR.Selected?{...s,...i.selectedColors}:n===mR.Disabled?{...s,color:r?null===(l=i.grid.hoverColors)||void 0===l?void 0:l.color:s.color,background:`${tI}, ${r?null===(u=i.grid.hoverColors)||void 0===u?void 0:u.background:s.background}`}:r?{...s,...i.grid.hoverColors}:s;var l,u})(v,s[e],l&&p,E,w,h),o={rowindex:t,columnindex:e};return Ll.jsx("div",{className:`sn-table-cell ${E} ${tE}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:h.grid.border,borderTop:"0px",borderBottomWidth:v.isLastRow?"0px":"1px",borderRightWidth:TM(g,v.isLastColumn,b),borderLeftWidth:OM(g,v.isLastColumn,b),justifyContent:PM(v,g),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:v.align},onMouseDown:y,onMouseUp:S,onMouseOver:x,onMouseEnter:l?()=>{f(t)}:void 0,onMouseLeave:l?()=>{f(-1)}:void 0,title:m.passive?v.representation.text:void 0,...o,children:Ll.jsx(i_,{forwardRef:h.contentStaticLineCount||1===c?void 0:C,cell:v,style:n,lineClamp:c,virtualizedCell:!0,resizeObserverTaskScheduler:d})})}return Ll.jsx(Sk,{style:{...r,...w,borderColor:h.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var Dk=T(Ak,yk);const Lk=e=>{const t=M(e);return t.current=e,t},Ik=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,qk=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if((null==t?void 0:t.rowIdx)!==o)return!0}return!1},Pk=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!e[t]))},Mk=(e,t,r,n,o,i,a,s)=>{e.forEach((e=>{e.qMatrix.forEach(((l,u)=>{const c=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,r,n,o,i,a,s,l,u)=>{var c;const{qSize:d}=a.qHyperCube,p=n.qTop+r,f=o+r,m=null!==(c=e[f])&&void 0!==c?c:[];return t.forEach(((e,t)=>{const r=t+n.qLeft;if(m.at(r))return;const{colIdx:o,isDim:c,isLocked:h,bodyTextAlign:g,selectionColIdx:b,qAttrExprInfoIndex:v,representation:y,conditionalColoring:x,qMiniChart:S}=i[r],E=$w(c,e,a),C=!c&&e.qIsNull,w=C?zC(E):jC(e);m[r]={id:OC(),...e,align:Xw(w,g,u),rowIdx:p,colIdx:o,isSelectable:c&&!h,pageRowIdx:f,pageColIdx:r,selectionColIdx:b,isLastRow:p===d.qcy-1,isLastColumn:r===d.qcx-1,isNumeric:w,isNull:(!C||!w)&&Bw(e,c),representation:Hw({cell:e,representationProperties:y,attrExprInfoIndex:v,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>C?E:e.qText,direction:u,enabledFeatures:{[zE.Image]:s.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[zE.Indicator]:!0,[zE.MiniChart]:!0}})},l(m[r],p,r)})),{row:m,pageRowIdx:f}})(r,l,u,e.qArea,c,n,o,i,a,s);r[p]=d}))}))},_k=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:s,columns:l,gridState:u,setEstimatedCellHeight:c})=>{const d=UI($I,(e=>e.env)),{direction:p}=UI($I,(e=>e.baseProps)),f=M([]),m=_(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return Mk(t,o,n,l,e,d,c,p),f.current=n,n}),[i,o,l,e,d,c,p]),[h,g]=C((()=>m(null!=n?n:[])));WS((()=>{g(m(null!=n?n:[]))}),[n,p]);const b=((e,t)=>{const r=M(new Set),n=M(new Set),o=M(new Set),i=Lk(e),a=Lk(t),s=w((()=>({enqueue:e=>{const t=Ik(e);o.current.has(t)||(r.current.add(e),o.current.add(t),1===r.current.size&&setTimeout((async()=>{const e=Array.from(r.current.values());if(0!==e.length){r.current.clear(),n.current.add(e);try{const t=(e=>{const t=[];return e.forEach((e=>{if(t.length>0){const r=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(r,e)?r.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(r,e)?r.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})})),t})(e),r=await i.current(t);n.current.has(e)&&a.current(r)}catch(t){e.forEach((e=>{o.current.delete(Ik(e))})),console.error("Failed to fetch pages",t)}finally{n.current.delete(e)}}}),75))},clear:()=>{r.current.clear(),n.current.clear(),o.current.clear()}})),[i,a]);return s})((e=>t&&"getHyperCubeData"in t?t.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([])),(e=>{g((t=>m(e,t)))})),v=_(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(Pk(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}}),[f,b]),y=_(((e,t,r,n)=>{for(let i=t;i<t+n;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(qk(f.current,e,t,r,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:r};b.enqueue(t)}}}),[f,b,o]);return R((()=>{const{qcx:t,qcy:r}=e.qHyperCube.qSize,n=u.current.overscanRowStartIndex,i=u.current.overscanColumnStartIndex,l=n+o.page*o.rowsPerPage,c=t-i,d=o.rowsPerPage-n,p=Math.min(100,c,t,s+5),f=Math.min(100,d,r,a+25);return y(i,l,p,f),()=>{b.clear()}}),[e,a,s,o,b,y,u,r]),{rowsInPage:h,loadRows:y,loadColumns:v}},kk=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},Tk=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,Ok=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=UI($I,(e=>e.baseProps.styleService)),i=UI($I,(e=>e.columnWidths)),{estimateLineCount:a}=HS(o.dimension.values),s=FI(o.dimension.values.fontSize),l=e||t||1===r;return _(((e,t,o)=>{if(l||e.representation.type===zE.Image||e.isNumeric)return;const u=(e=>Math.max(0,e-24-1))(i[o]),c=e.representation.text?a({text:e.representation.text,maxWidth:u,isNumeric:!1}):1,d=Math.min(r,Math.max(1,c));n(d*s,t,o)}),[l,i,a,r,s,n])},Nk=({isStaticNbrOfLines:e,minRowHeight:t,state:r,rowCount:n,staticRowHeight:o,viewService:i})=>w((()=>{const{estimatedRowHeight:a,totalRowHeight:s}=e?{totalRowHeight:n*o,estimatedRowHeight:o}:(e=>{let t=0;e.forEach((e=>{t+=e}));const r=0===e.size?0:t/e.size;return{estimatedRowHeight:Math.ceil(r),totalRowHeight:t}})(r.rowHeights);return i.estimatedRowHeight=Math.max(a,t),Math.max(n*t,s)}),[e,t,n,r,o,i]),Fk=({rowCount:e,isSnapshot:t,viewService:r,gridRef:n,pageInfo:o})=>{const{styleService:i}=UI($I,(e=>e.baseProps)),[a,s]=C({rowHeights:new Map,cellHeightsInGrid:new Map}),l=i.contentLineHeight,u=i.contentMinRowHeight,c=!!i.contentStaticLineCount,d=Math.max(8e6/e,u)-9,p=d+9,f=Math.max(1,Math.min(i.grid.contentLineClamp,Math.round(d/l))),m=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:f,lineHeight:l,isStaticNbrOfLines:c});(({gridRef:e,setState:t,pageInfo:r})=>{var n,o;const{layout:i}=UI($I,(e=>e.baseProps)),a=UI($I,(e=>e.columnWidths)),s=null===(n=i.multiline)||void 0===n?void 0:n.wrapTextInCells,l=null===(o=i.nullValueRepresentation)||void 0===o?void 0:o.text;WS((()=>{var r;null===(r=e.current)||void 0===r||r.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map})}),[i.qHyperCube.qSize.qcx,i.qHyperCube.qSize.qcy,r.page,s,l]),WS((()=>{var t;null===(t=e.current)||void 0===t||t.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[a])})({gridRef:n,setState:s,pageInfo:o});const h=(({setState:e,maxCellHeight:t,minRowHeight:r,gridRef:n})=>_(((o,i,a)=>{F((()=>{e((e=>{var s,l;const u=Math.max(r,o+9),c=Math.min(t,u),d=null!==(s=e.cellHeightsInGrid.get(i))&&void 0!==s?s:e.cellHeightsInGrid.set(i,new Map).get(i);if(!Tk(d.get(a),c))return e;const p={...e};return d.set(a,c),p.rowHeights.set(i,kk(d)),null===(l=n.current)||void 0===l||l.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),p}))}))}),[e,r,t,n]))({maxCellHeight:p,minRowHeight:u,setState:s,gridRef:n}),g=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>_(((o,i,a)=>{e||t||1===r||n(o,i,a)}),[e,t,r,n]))({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:h});return{setMeasuredCellHeight:g,setEstimatedCellHeight:Ok({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:h}),getRowHeight:_((e=>{var t;return c?m:null!==(t=a.rowHeights.get(e))&&void 0!==t?t:u}),[c,u,a.rowHeights,m]),totalRowHeight:Nk({isStaticNbrOfLines:c,minRowHeight:u,state:a,staticRowHeight:m,rowCount:e,viewService:r}),lineClamp:f}},jk=(e,t)=>{O((()=>()=>{t(0)}),[e,t]);const r=_((e=>{const r=Ek(e);void 0!==r&&t(r)}),[t]);Ck(e,r)};var zk;!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(zk||(zk={}));const Hk=({layout:e,loadRows:t,loadColumns:r,rowCount:n,pageInfo:o,gridState:i,viewService:a})=>_((({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:m})=>{const{verticalScrollDirection:h,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o=zk.None,i=zk.None;return o=n>t?zk.Down:n<t?zk.Up:zk.None,i=r>e?zk.Right:r<e?zk.Left:zk.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(i.current,s,u);if(i.current.overscanColumnStartIndex=s,i.current.overscanColumnStopIndex=l,i.current.overscanRowStartIndex=u,i.current.overscanRowStopIndex=c,u>n)return;const b=s,v=u+o.page*o.rowsPerPage,y=l-s+1,x=c-u+1;if(a.visibleLeft=d,a.visibleWidth=p-d+1,a.visibleTop=f+o.page*o.rowsPerPage,a.visibleHeight=m-f+1,a.page=o.page,a.rowsPerPage=o.rowsPerPage,h===zk.Down){const e=x+25;t(b,v,y,u+e>n?n-u:e)}else if(h===zk.Up){const e=x+25,r=o.page*o.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(g===zk.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(g===zk.Left){const t=Math.max(0,b-5),n=Math.min(e.qHyperCube.qSize.qcx,y+5);r(t,v,n,x)}}),[i,n,o.page,o.rowsPerPage,a,t,e.qHyperCube.qSize.qcx,r]),Bk={enabled:!1},$k=()=>{},Vk={current:null};const Gk=(e,t,r,n,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(r.height/o)),s=w((()=>n.reduce(((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[r,n]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:s}},Wk=({columnIndex:e,data:t,rowIndex:r})=>{var n,o;const i=null===(n=t.rowsInPage[r])||void 0===n?void 0:n[e];return null!==(o=null==i?void 0:i.id)&&void 0!==o?o:`${r}-${e}`},Uk={overflow:"hidden",willChange:"auto"};var Yk=T(k(((e,t)=>{var r;const{rect:n,columns:o,pageInfo:i,headerAndTotalsHeight:a,setInnerBodyHeight:s}=e,{layout:l,model:u,theme:c,viewService:d,styleService:p,direction:f}=UI($I,(e=>e.baseProps)),m=UI($I,(e=>e.columnWidths)),h=UI($I,(e=>e.initialDataPages)),g=M(null),b=M(null),v=M({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),y=M(0),x=!(null===(r=AI(l))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect),{rowCount:S,visibleRowCount:E,visibleColumnCount:C}=Gk(l,i,n,m,p.contentMinRowHeight),{setMeasuredCellHeight:A,setEstimatedCellHeight:D,getRowHeight:L,lineClamp:I,totalRowHeight:q}=Fk({rowCount:S,isSnapshot:!!l.snapshotData,viewService:d,gridRef:g,pageInfo:i}),{rowsInPage:P,loadRows:_,loadColumns:k}=_k({layout:l,model:u,theme:c,initialDataPages:h,pageInfo:i,rowCount:S,visibleRowCount:E,visibleColumnCount:C,columns:o,gridState:v,setEstimatedCellHeight:D}),T=Hk({layout:l,loadRows:_,loadColumns:k,rowCount:S,pageInfo:i,gridState:v,viewService:d}),N=KP(),F=w((()=>({rowsInPage:P,columns:o,isHoverEnabled:x,lineClamp:I,setMeasuredCellHeight:A,resizeObserverTaskScheduler:N})),[P,o,x,I,A,N]),z=((e,t,r)=>Math.min(e.height-t,r))(n,a,q);return O((()=>{var e;1===y.current&&(null===(e=g.current)||void 0===e||e.scrollToItem({rowIndex:S-1,align:"start"}))})),function(e){const{selectionsAPI:t}=UI($I,(e=>e.baseProps)),r=UI($I,(e=>e.selectionDispatch));R((()=>{r({type:hR.UpdatePageRows,payload:{pageRows:e}})}),[r,e]),XP({selectionsAPI:t,selectionDispatch:r,updateShouldRefocus:$k,keyboard:Bk,tableWrapperRef:Vk})}(P),j(t,(()=>({interpolatedScrollTo:(e,t)=>{var r,n;const o=(null!==(r=null===(n=b.current)||void 0===n?void 0:n.clientHeight)&&void 0!==r?r:z)-z,i=Math.round(o*e);var a,s,l;(y.current=e,1===y.current)?(null===(a=g.current)||void 0===a||a.scrollToItem({rowIndex:S-1,align:"start"}),null===(s=g.current)||void 0===s||s.scrollTo({scrollLeft:t})):null===(l=g.current)||void 0===l||l.scrollTo({scrollTop:i,scrollLeft:t})}})),[b,z,S]),jk(b,s),Ll.jsx(sk,{"data-key":"body",ref:g,innerRef:b,style:Uk,columnCount:l.qHyperCube.qSize.qcx,columnWidth:e=>m[e],height:z,rowCount:S,rowHeight:L,estimatedRowHeight:d.estimatedRowHeight,width:n.width,itemData:F,onItemsRendered:T,itemKey:Wk,className:"sn-table-body",direction:f,children:Dk})})));const Kk=({width:e,height:t,children:r})=>Ll.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),Xk=(e,t)=>{const r=M(null),n=UI($I,(e=>e.columnWidths));O((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=_((r=>{const n=Ek(r);n&&t(n+9,e)}),[e,t]);return Ck(r,o),r},Jk=_g("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e})((({interactions:e,hoverBackground:t,background:r,applicableStyle:n})=>({...n,background:r,"&&:hover":{background:e.active?t:void 0}}))),Zk=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,allColumnsIconVisibilityStatusRef:i,setMeasuredCellHeight:a}=r,{interactions:s,styleService:l,direction:u}=UI($I,(e=>e.baseProps)),c=UI($I,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),d=UI($I,(e=>e.showRightBorder)),p=UI($I,(e=>e.tableData.totalsPosition)),f=!!s.active&&!c,{open:m,setOpen:h,handleOpenMenu:g,setIsAdjustingWidth:b}=T_({isInteractionEnabled:f,columnsData:n}),v=Xk(e,a),y=n[e],x=n.length-1===e;return Ll.jsxs(Jk,{className:`sn-table-cell ${tE}`,title:s.passive?y.label:void 0,onClick:g,applicableStyle:{...l.header,...v_(l,p,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:TM(u,x,d),borderLeftWidth:OM(u,x,d),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:y.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:"right"===y.headTextAlign?"row-reverse":"row",userSelect:"none"},interactions:s,hoverBackground:l.headerMenuHoverBackground,background:m?l.headerMenuActiveBackground:l.header.background,children:[Ll.jsx(k_,{forwardRef:v,column:y,isInteractionEnabled:f,open:m,setOpen:h,allColumnsIconVisibilityStatusRef:i}),Ll.jsx(w_,{column:y,isLastColumn:x,onColumnResize:o,setIsAdjustingWidth:b})]})},Qk=e=>{const[t,r]=C(new Map);WS((()=>{r(new Map)}),[e.length]);const n=_(((e,t)=>{r((r=>Tk(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:w((()=>kk(t)),[t]),setMeasuredCellHeight:n}},eT=(e,t)=>{j(e,(()=>({scrollTo:e=>{var r;return null===(r=t.current)||void 0===r?void 0:r.scrollTo(e)}})),[t])},tT=(e,t,r,n,o)=>{WS((()=>{var t;null===(t=e.current)||void 0===t||t.resetAfterIndex(0,!1)}),[t,r,e,n,o])},rT={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},nT=k(((e,t)=>{const{rect:r,columns:n,pageInfo:o,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a,setHeaderRowHeight:s}=e,l=M(null),u=M(null),{layout:c,theme:d,styleService:p,direction:f,viewService:m}=UI($I,(e=>e.baseProps)),h=UI($I,(e=>e.columnWidths)),{rowHeight:g,setMeasuredCellHeight:b}=Qk(n),v=C_(m,c);return eT(t,l),tT(l,c,o,h,d),jk(u,s),Ll.jsx(hk,{ref:l,outerRef:u,layout:"horizontal",style:{...rT,...v?{display:"none"}:void 0},itemCount:c.qHyperCube.qSize.qcx,itemSize:e=>h[e],height:Math.max(g+8,p.headerMinRowHeight),width:r.width,itemData:{columns:n,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a,setMeasuredCellHeight:b},direction:f,children:Zk})}));var oT=T(nT);const iT=k(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a,direction:s}=UI($I,(e=>e.baseProps));return Ll.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.scroll?"auto":"hidden",width:n,height:o},onScroll:i,dir:s,children:r})})),aT=({children:e,rect:t})=>{const{direction:r}=UI($I,(e=>e.baseProps));return Ll.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==r?"0px":void 0,right:"rtl"===r?"0px":void 0,width:t.width,height:t.height},children:e})},sT=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,{layout:a,interactions:s,styleService:l,direction:u}=UI($I,(e=>e.baseProps)),c=UI($I,(e=>e.showRightBorder)),d=Xk(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:m}=n[e],h=a.qHyperCube.qSize.qcx-1===e;return Ll.jsx("div",{className:`sn-table-cell ${tE}`,title:s.passive?p:void 0,style:{...t,...l.totalRow,...v_(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:TM(u,h,c),borderLeftWidth:OM(u,h,c),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:f,textAlign:f,boxSizing:"border-box",cursor:"default"},children:Ll.jsx(SM,{forwardRef:m?void 0:d,isNumeric:m,children:p})})},lT=k(((e,t)=>{const{rect:r,pageInfo:n,totals:o,columns:i,setTotalsRowHeight:a}=e,s=M(null),l=M(null),{layout:u,theme:c,styleService:d,direction:p}=UI($I,(e=>e.baseProps)),f=UI($I,(e=>e.columnWidths)),{rowHeight:m,setMeasuredCellHeight:h}=Qk(i);return eT(t,s),tT(s,u,n,f,c),jk(l,a),Ll.jsx(hk,{ref:s,outerRef:l,layout:"horizontal",style:rT,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>f[e],height:Math.max(m,d.totalRowMinHeight),width:r.width,itemData:{columns:i,totals:o,setMeasuredCellHeight:h},direction:p,children:sT})}));var uT=T(lT);const cT=(e,t,r,n,o)=>_((i=>{var a,s,l;const{scrollHeight:u,clientHeight:c,scrollTop:d}=i.currentTarget,p=((e,t)=>{const{scrollWidth:r,clientWidth:n,scrollLeft:o}=e,i=r-n;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,o),f=Math.max(0,Math.min(1,d/(u-c)));n.scrollTopRatio=f,n.scrollLeft=p,null===(a=r.current)||void 0===a||a.interpolatedScrollTo(Number.isNaN(f)?0:f,p),null===(s=e.current)||void 0===s||s.scrollTo(p),null===(l=t.current)||void 0===l||l.scrollTo(p)}),[n,r,e,t,o]),dT=e=>{const{pageInfo:t}=e,{totalsPosition:r,columns:n,paginationNeeded:o}=UI($I,(e=>e.tableData)),{layout:i,theme:a,rect:s,viewService:l,direction:u}=UI($I,(e=>e.baseProps)),c=UI($I,(e=>e.columnWidths)),d=UI($I,(e=>e.setYScrollbarWidth)),p=M(null),f=M(null),m=M(null),h=M(null),{xScrollbarWidth:g,yScrollbarWidth:b}=BP(p),v=M([]),y=w((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(s,o)),[s,o]),x=w((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(y,g,b)),[y,g,b]),{rowCount:S}=Gk(i,t,x,c,0),{headerAndTotalsHeight:E,innerBodyHeight:R,setHeaderRowHeight:A,setTotalsRowHeight:D,setInnerBodyHeight:L}=(()=>{const[e,t]=C(0),[r,n]=C(0),[o,i]=C(0);return{headerAndTotalsHeight:e+r,innerBodyHeight:o,setHeaderRowHeight:t,setTotalsRowHeight:n,setInnerBodyHeight:i}})(),{width:I,height:q}=(({innerBodyHeight:e,headerAndTotalsHeight:t,rowCount:r,stickyContainerRect:n,columnWidths:o})=>{const{styleService:i}=UI($I,(e=>e.baseProps)),a=e+t,s=r*i.contentMinRowHeight+t;let l=s;return s<n.height&&a>n.height&&(l=a),{width:o.reduce(((e,t)=>e+t),0),height:l}})({innerBodyHeight:R,headerAndTotalsHeight:E,rowCount:S,stickyContainerRect:x,columnWidths:c}),P=cT(f,m,h,l,u),k=_((()=>{p.current&&(p.current.scrollTop=0)}),[p]);kP(),O((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[n.length]),O((()=>{p.current&&(p.current.scrollTop=0)}),[t,S,a]),SP((()=>{d(b)}),[b]);const T=Ll.jsx(uT,{rect:x,pageInfo:t,columns:n,ref:m,totals:r,setTotalsRowHeight:D},"totals");return Ll.jsx(iT,{ref:p,width:y.width,height:y.height,onScroll:P,children:Ll.jsx(Kk,{width:I,height:q,children:Ll.jsxs(aT,{rect:x,children:[Ll.jsx(oT,{rect:x,pageInfo:t,columns:n,ref:f,columResizeHandler:k,allColumnsIconVisibilityStatusRef:v,setHeaderRowHeight:A}),r.atTop?T:null,Ll.jsx(Yk,{ref:h,rect:x,pageInfo:t,columns:n,headerAndTotalsHeight:E,setInnerBodyHeight:L}),r.atBottom?T:null]})})})};var pT=T(dT);const fT=()=>{const{theme:e,keyboard:t,translator:r,interactions:n,rect:o,layout:i}=UI($I,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:s,totalColumnCount:l,totalPages:u}=UI($I,(e=>e.tableData)),c=UI($I,(e=>e.pageInfo)),d=UI($I,(e=>e.setPage));return Ll.jsxs(yP,{"data-testid":"sn-table",background:e.background,children:[Ll.jsx(pT,{pageInfo:c}),Ll.jsx(bP,{paginationNeeded:a,handleChangePage:e=>{d(e)},pageInfo:c,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:t,translator:r,theme:e,interactions:n,rect:o,layout:i})]})};var mT=T(fT);var hT={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 gT=(e,r)=>t((()=>(function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(hT).forEach((t=>{e.add(hT[t])}))}(r),((e,t)=>{let r;return({keys:n,politeness:o="polite"})=>{const i=n.map((e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)})).join(" "),a=e.querySelector(`.${bR.First}`),s=e.querySelector(`.${bR.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;r===bR.First?(l=s,r=bR.Second):(l=a,r=bR.First),l.innerHTML=l.innerHTML.endsWith(" ­")?i:`${i} ­`,l.setAttribute("aria-live",o)}})(e,r))),[e,r.language()]),bT={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},vT=e=>{const{app:t,model:n,rootElement:a,layout:s,translator:l,reactRoot:u,isFontLoaded:c,viewService:d,env:p}=e,{direction:f,footerContainer:m}=r(),h=Qw(s,d),g=gT(a,l),[b,v]=o(((e,t)=>Zw(e,t)?{page:t.page||bT.page,rowsPerPage:t.rowsPerPage||bT.rowsPerPage,rowsPerPageOptions:bT.rowsPerPageOptions}:bT)(s,d)),[y,x]=o(!0);y||x(!0);const[S,E]=FS((async()=>h?async function(e,t,r,n,o,i,a,s){var l,u,c,d;const{page:p,rowsPerPage:f,rowsPerPageOptions:m}=r,h=t.qHyperCube.qSize.qcx,g=t.qHyperCube.qSize.qcy,b=Math.ceil(g/f),v=null!==(l=o.visibleTop)&&void 0!==l?l:p*f,y=null!==(u=o.visibleHeight)&&void 0!==u?u:Math.min(f,g-v);if(p>0&&v>=g)return n({...r,page:0}),null;if(y*h>Vw)return n({...r,rowsPerPage:Gw(h,m),page:0}),null;const x=g>10,S=Ww(t,o),E=Jw(t,a,s),C=!!t.snapshotData,w=await(async(e,t,r)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const n=t.qHyperCube.qDataPages.at(0),o=null==n?void 0:n.qArea;return n&&(null==o?void 0:o.qLeft)===r.qLeft&&o.qTop===r.qTop&&o.qWidth===r.qWidth&&o.qHeight>=r.qHeight?[{...n,qMatrix:n.qMatrix.slice(0,r.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[r]):[]})(e,t,{qLeft:0,qTop:v,qHeight:y,qWidth:h});C||(o.qTop=v,o.qHeight=y,o.rowsPerPage=r.rowsPerPage,o.page=r.page);const R=null!==(c=null===(d=w.at(0))||void 0===d?void 0:d.qMatrix.map(((e,r)=>{const n=[];return E.forEach(((o,l)=>{const u=e[l],c=$w(o.isDim,u,t),d=!o.isDim&&u.qIsNull,p=d?zC(c):jC(u);n[l]={id:OC(),...u,align:Xw(p,o.bodyTextAlign,s,a),rowIdx:r+v,colIdx:o.colIdx,pageRowIdx:r,pageColIdx:l,selectionColIdx:o.selectionColIdx,isSelectable:o.isDim&&!o.isLocked,isLastRow:r===y-1,isNumeric:p,isNull:(!d||!p)&&Bw(u,o.isDim),representation:Hw({cell:u,representationProperties:o.representation,attrExprInfoIndex:o.qAttrExprInfoIndex,env:i,conditionalColoring:o.conditionalColoring,miniChartOnMeasure:o.qMiniChart,getText:()=>d?c:u.qText,direction:s,enabledFeatures:{[zE.Image]:i.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[zE.Indicator]:!0,[zE.MiniChart]:!0}})}})),n})))&&void 0!==c?c:[];return{totalColumnCount:h,totalRowCount:g,totalPages:b,paginationNeeded:x,totalsPosition:S,columns:E,rows:R}}(n,s,b,v,d,p,y,f):null),[s,b,n,h,f]);i((()=>{h&&e.model&&e.changeSortOrder&&S&&c&&!E&&function(e,t){const{direction:r,...n}=e,o=YI(r);t.render(Ll.jsx(Vd,{stylisPlugins:"rtl"===r?[$R]:void 0,children:Ll.jsx(Tg,{theme:o,children:Ll.jsx(WI,{...e,children:Ll.jsx(z_,{...n})})})}))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:S,pageInfo:b,setPageInfo:v,direction:f,footerContainer:m,announce:g},u)}),[g,t,f,m,c,b,u,e,h,S,E])},yT=e=>{const r=t((()=>BS(e)),[e]);return i((()=>()=>{r.unmount()}),[r]),r},xT=(e,r)=>t((()=>((e,t)=>{if(t)return async(r,n)=>{if(!("getEffectiveProperties"in t))return;const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=r,u=o?i:i-e,c=await t.getEffectiveProperties(),d=c.qHyperCubeDef.qInterColumnSortOrder,p=[],f=n!==s||l;if(!o){var m;const e=null===(m=c.qHyperCubeDef.qMeasures.at(u))||void 0===m?void 0:m.qSortBy;void 0===(null==e?void 0:e.qSortByNumeric)&&p.push({qPath:`/qHyperCubeDef/qMeasures/${u}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===s?1:-1})})}l||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),t.applyPatches(p,!0)}})(e.qDimensionInfo.length,r)),[e.qDimensionInfo.length,r]);const ST=({model:e,layout:t,shouldRender:r,page:n})=>{const[o,i]=FS((async()=>{if(r&&e)return(async(e,t,r)=>{const{qDataPages:n}=t.qHyperCube;if(0!==r||0===n.length){const n=r*Math.min(lI,t.qHyperCube.qSize.qcy);if(e&&"getHyperCubeData"in e)return e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:n,qWidth:50,qHeight:100}])}return n})(e,t,n)}),[e,t,n]);return{initialDataPages:o,isLoading:i}},ET=e=>{const{layout:r,model:n,keyboard:a,interactions:s,reactRoot:l,isFontLoaded:u,viewService:c,direction:d}=e,p=!Qw(r,c),[f,m]=o(!1);f&&m(!1);const h=t((()=>function(e,t,r,n,o){const i=Jw(e,o,n),a=Ww(e,r),s=e.qHyperCube.qSize.qcy,l=Math.min(lI,s),u=s>lI&&!!t.active;return{totalsPosition:a,columns:i,rows:[],totalRowCount:s,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(s/l),paginationNeeded:u}}(r,s,c,d,f)),[r,s,c,d,f]),{pageInfo:g,setPage:b}=((e,r)=>{const[n,i]=o(0),a=Math.min(lI,e.qHyperCube.qSize.qcy),s=t((()=>({page:n,rowsPerPage:a,rowsPerPageOptions:[]})),[a,n]);if(r){const t=Math.floor(e.qHyperCube.qSize.qcy/lI);t<n&&i(t)}return{pageInfo:s,setPage:i}})(r,p),{initialDataPages:v,isLoading:y}=ST({model:n,layout:r,page:g.page,shouldRender:p});i((()=>{var e;p&&a.active&&(null===(e=a.blur)||void 0===e||e.call(a,!1))}),[a,p]),i((()=>{p&&e.model&&e.changeSortOrder&&v&&!y&&u&&function(e,t){const{direction:r}=e,n=YI(r);t.render(Ll.jsx(x.StrictMode,{children:Ll.jsx(Tg,{theme:n,children:Ll.jsx(WI,{...e,children:Ll.jsx(mT,{})})})}))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:h,pageInfo:g,setPage:b,initialDataPages:v},l)}),[v,u,y,g,l,e,b,p,h])},CT={version:JSON.stringify("4.8.2"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals",label:"Totals"},usePagination:!1,components:[]};var wT=e=>({properties:{initial:CT},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>_E({...e}),exportProperties:DE,exploration:kE});function RT(e,t){var r,n;const o=e.getElementsByClassName("sn-table-container")[0];if(!o)return{};const i=o.getBoundingClientRect(),a=e.getElementsByClassName("sn-table-head-row")[0],s=null!==(r=null==a?void 0:a.getBoundingClientRect())&&void 0!==r?r:{height:0},l=e.getElementsByClassName("sn-table-totals-row")[0],u=null!==(n=null==l?void 0:l.getBoundingClientRect())&&void 0!==n?n:{height:0},c=e.getElementsByClassName("sn-table-data-row"),d={top:i.y+s.height+(t.atTop?u.height:0),bottom:i.y+i.height-(t.atBottom?u.height:0)},p=((e,t)=>{if(!e)return-1;for(let r=0;r<e.length;r++)if(e[r].getBoundingClientRect().bottom>t.top)return r;return-1})(c,d),f=((e,t)=>{if(!e)return-1;for(let r=e.length-1;r>-1;r--){const n=e[r].getBoundingClientRect();if(t.bottom>n.top)return r}return-1})(c,d),m=((e,t,r)=>{if(!e||0===e.length||r<0)return 0;const n=e[r].getBoundingClientRect();return Math.max(t.top-n.top,0)})(c,d,p);return{visibleRowStartIndex:p,visibleRowEndIndex:f,rowPartialHeight:m}}const AT=(e,t)=>{if(t)for(let r=0;r<t.length;r++){const n=t[r].getAttribute("rowindex");if(n&&parseInt(n,10)===e)return t[r]}},DT=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const LT=(e,t,r,n)=>{var o;if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||bT.rowsPerPage,s=null!==(o=n.viewState)&&void 0!==o&&o.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},IT=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=Ww(e,t);if(Qw(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=RT(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:LT(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=null==r?void 0:r.getBoundingClientRect(),o=null==r?void 0:r.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:u=0}=t,c=l*u,d=a-c,p=d+s-1,f=AT(d,o),m=null==f?void 0:f.getBoundingClientRect();if(!f||!m)return{};const h=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(m.y>=h-4?0:1)+c,visibleRowEndIndex:p+c};const g=n.y+n.height,b=(DT(m,h,g)?d:d+1)+c;let v=p+c;const y=AT(p,o),x=null==y?void 0:y.getBoundingClientRect();return y&&x&&(DT(x,h,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:LT(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},qT=({layout:e,viewService:t,model:r,rootElement:n,contentRect:o})=>{u((async i=>{const a=i;if(!a.snapshotData||!r||a.snapshotData.content)return a;if("getHyperCubeData"in r){const{rowPartialHeight:i,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m}=IT(e,t,n);a.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:d,qWidth:e.qHyperCube.qSize.qcx,qHeight:p}]),a.snapshotData.content={rowPartialHeight:i,scrollLeft:s,scrollTopRatio:l,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m,size:{width:o.width,height:o.height},estimatedRowHeight:t.estimatedRowHeight}}return a})),c((()=>({getViewState:()=>IT(e,t,n)})),[e,t,n])},PT=e=>{const{viewState:n}=r();return t((()=>((e,t)=>{var r,n,o,i,a,s,l,u,c,d,p,f,m,h,g,b,v;return{qTop:0,qHeight:0,rowPartialHeight:null!==(r=null==t||null===(n=t.content)||void 0===n?void 0:n.rowPartialHeight)&&void 0!==r?r:0,visibleTop:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.visibleTop)&&void 0!==o?o:null==e?void 0:e.visibleTop,visibleHeight:null!==(a=null==t||null===(s=t.content)||void 0===s?void 0:s.visibleHeight)&&void 0!==a?a:null==e?void 0:e.visibleHeight,scrollLeft:null!==(l=null!==(u=null==t||null===(c=t.content)||void 0===c?void 0:c.scrollLeft)&&void 0!==u?u:null==e?void 0:e.scrollLeft)&&void 0!==l?l:0,scrollTopRatio:null!==(d=null==t||null===(p=t.content)||void 0===p?void 0:p.scrollTopRatio)&&void 0!==d?d:null==e?void 0:e.scrollTopRatio,rowsPerPage:null!==(f=null==t||null===(m=t.content)||void 0===m?void 0:m.rowsPerPage)&&void 0!==f?f:null==e?void 0:e.rowsPerPage,page:null!==(h=null==t||null===(g=t.content)||void 0===g?void 0:g.page)&&void 0!==h?h:null==e?void 0:e.page,viewState:e,estimatedRowHeight:null!==(b=null==t||null===(v=t.content)||void 0===v?void 0:v.estimatedRowHeight)&&void 0!==b?b:0}})(n,e.snapshotData)),[n,e.snapshotData,e.usePagination])},MT=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),_T=e=>e.getStyle("object","straightTableV2","backgroundColor")}}}));