@nebula.js/sn-table 4.8.2 → 4.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-specifications/properties.json +1 -1
- package/core/esm/index.js +11 -11
- package/dist/sn-table.js +14 -14
- package/dist/sn-table.systemjs.js +11 -11
- package/package.json +9 -9
- package/sn-table-ext/dist/sn-table.js +14 -14
- package/sn-table-ext/sn-table.qext +1 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-table v4.8.
|
|
2
|
+
* @nebula.js/sn-table v4.8.4
|
|
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,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){
|
|
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,h,m,g,b,v,y,x,S,C,E,w,R,A,M,I,P,k,L,_,D,T,q,O,N,j,z,F,$,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,h=e.useModel,m=e.useTranslator,g=e.useSelections,b=e.useKeyboard,v=e.useRect,y=e.useEmbed},function(e){x=e.default,S=e,C=e.useContext,E=e.useState,w=e.useMemo,R=e.useEffect,A=e.createElement,M=e.isValidElement,I=e.cloneElement,P=e.Children,k=e.useReducer,L=e.createContext,_=e.useRef,D=e.useCallback,T=e.forwardRef,q=e.memo,O=e.useLayoutEffect,N=e.PureComponent,j=e.startTransition,z=e.useImperativeHandle},function(e){F=e.default,$=e},function(e){H=e.default},function(e){B=e.default}],execute:function(){function G(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 V(e){if("object"==typeof e&&G(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:zO(),ext:Bw(e),component(){var n;const o=d(),i=TO(o),a=p(),s=f(),u=h(),c=US(!!a.snapshotData),x=m(),S=g(),C=b(),E=r(),{freeResize:w}=E,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]),M=WO(a),I=y(),P=qS(a,o,UO,YO),k=e.flags.isEnabled("CLIENT_IM_7150_TABLE_RTL")?E.direction:"ltr",L=qO(a.qHyperCube,u),_=Gw(a.qHyperCube,u),D=BS(P,a,e),T=vt(),q={app:s,layout:a,model:u,rect:A,theme:P,keyboard:C,translator:x,interactions:c,selectionsAPI:S,changeSortOrder:L,rootElement:o,embed:I,reactRoot:i,applyColumnWidths:_,isFontLoaded:D,downloadService:T,viewService:M,direction:k,env:e};null==l||l(((e,t)=>{const r=t.target,n=null==r?void 0:r.closest(`.${QS}`);null!=n&&n.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{uC(n)}})})),VO({layout:a,viewService:M,model:u,rootElement:o,contentRect:R}),NO(q),DO(q)}}}));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(G(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(G(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?V(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function J(e,t){return G(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:J(U(e))}function Z(e){return G(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(G(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?V(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,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(l=s(t,r))&&(h&&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(h,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*",he="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",me="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ge=/^#([0-9a-f]{3,8})$/,be=new RegExp(`^rgb\\(${fe},${fe},${fe}\\)$`),ve=new RegExp(`^rgb\\(${me},${me},${me}\\)$`),ye=new RegExp(`^rgba\\(${fe},${fe},${fe},${he}\\)$`),xe=new RegExp(`^rgba\\(${me},${me},${me},${he}\\)$`),Se=new RegExp(`^hsl\\(${he},${me},${me}\\)$`),Ce=new RegExp(`^hsla\\(${he},${me},${me},${he}\\)$`),Ee={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?Me(t):3===r?new Le(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Ie(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Ie(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 Le(t[1],t[2],t[3],1):(t=ve.exec(e))?new Le(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ye.exec(e))?Ie(t[1],t[2],t[3],t[4]):(t=xe.exec(e))?Ie(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=Ce.exec(e))?Ne(t[1],t[2]/100,t[3]/100,t[4]):Ee.hasOwnProperty(e)?Me(Ee[e]):"transparent"===e?new Le(NaN,NaN,NaN,0):null}function Me(e){return new Le(e>>16&255,e>>8&255,255&e,1)}function Ie(e,t,r,n){return n<=0&&(e=t=r=NaN),new Le(e,t,r,n)}function Pe(e){return e instanceof de||(e=Ae(e)),e?new Le((e=e.rgb()).r,e.g,e.b,e.opacity):new Le}function ke(e,t,r,n){return 1===arguments.length?Pe(e):new Le(e,t,r,null==n?1:n)}function Le(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function _e(){return`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}`}function De(){const e=Te(this.opacity);return`${1===e?"rgb(":"rgba("}${qe(this.r)}, ${qe(this.g)}, ${qe(this.b)}${1===e?")":`, ${e})`}`}function Te(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function qe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Oe(e){return((e=qe(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 ze(e,t,r,n)}function je(e){if(e instanceof ze)return new ze(e.h,e.s,e.l,e.opacity);if(e instanceof de||(e=Ae(e)),!e)return new ze;if(e instanceof ze)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 ze(a,s,l,e.opacity)}function ze(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Fe(e){return(e=(e||0)%360)<0?e+360:e}function $e(e){return Math.max(0,Math.min(1,e||0))}function He(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 je(this).formatHsl()},formatRgb:Re,toString:Re}),ue(Le,ke,ce(de,{brighter(e){return e=null==e?pe:Math.pow(pe,e),new Le(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Le(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Le(qe(this.r),qe(this.g),qe(this.b),Te(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`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}${Oe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:De,toString:De})),ue(ze,(function(e,t,r,n){return 1===arguments.length?je(e):new ze(e,t,r,null==n?1:n)}),ce(de,{brighter(e){return e=null==e?pe:Math.pow(pe,e),new ze(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ze(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 Le(He(e>=240?e-240:e+120,o,n),He(e,o,n),He(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new ze(Fe(this.h),$e(this.s),$e(this.l),Te(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=Te(this.opacity);return`${1===e?"hsl(":"hsla("}${Fe(this.h)}, ${100*$e(this.s)}%, ${100*$e(this.l)}%${1===e?")":`, ${e})`}`}}));const Be=Math.PI/180,Ge=180/Math.PI,Ve=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 Le||(e=Pe(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+Ve}function Je(e){return e>We?e*e*e:Ue*(e-Ve)}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*Be;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 Le(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)*Ge;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=ke(e)).r,(t=ke(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,it="center",at="bottom";function st(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 lt(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 ut(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=dt)):void 0===t&&(t=ct);for(var r,n,o,i,a,s=new ht(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 ht(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(ft)}function ct(e){return e.children}function dt(e){return Array.isArray(e)?e[1]:null}function pt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function ft(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function ht(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:it,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:it,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:it,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:it},{key:"DataRangeIncludingZero",alignment:at},{key:"LimitedData",alignment:at},{key:"NegativeOrZeroValues",alignment:at}].reduce((function(e,t){return e[t.key]=t,e}),{}),ht.prototype=ut.prototype={constructor:ht,count:function(){return this.eachAfter(lt)},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 ut(this).eachBefore(pt)},[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)}},ot=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}},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}
|
|
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\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(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(m="",b=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%l)&&y<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},ot({exports:{}});const mt=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function gt(e,r){return t((()=>e),r)}const bt={},vt=()=>{const{viewState:e}=r(),o=(e=>{const r=t((()=>({current:bt})),[]);return r.current=r.current===bt?e:r.current,r})(new Set),i=void 0!==e,{promise:a,resolve:s}=t((()=>mt()),[]),l=gt((e=>{i&&o.current.add(e)}),[o]),u=gt(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 yt(e,t){return function(){return null}}function xt(){return xt=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},xt.apply(null,arguments)}function St(e){return St="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},St(e)}function Ct(e){return e&&"object"===St(e)&&e.constructor===Object}function Et(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?xt({},e):e;return Ct(e)&&Ct(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(Ct(t[o])&&o in e?n[o]=Et(e[o],t[o],r):n[o]=t[o])})),n}function wt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Rt(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 At={exports:{}};function Mt(){}function It(){}It.resetWarningCache=Mt;At.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:It,resetWarningCache:Mt};return r.PropTypes=r,r}();var Pt=wt(At.exports),kt=(Pt.element,function(){return null});kt.isRequired=(Pt.element.isRequired,function(){return null});var Lt=function(){return null};function _t(e){var t=function(e,t){if("object"!=St(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=St(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==St(t)?t:t+""}function Dt(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 Tt={exports:{}},qt={},Ot=60103,Nt=60106,jt=60107,zt=60108,Ft=60114,$t=60109,Ht=60110,Bt=60112,Gt=60113,Vt=60120,Wt=60115,Ut=60116,Yt=60121,Kt=60122,Xt=60117,Jt=60129,Zt=60131;if("function"==typeof Symbol&&Symbol.for){var Qt=Symbol.for;Ot=Qt("react.element"),Nt=Qt("react.portal"),jt=Qt("react.fragment"),zt=Qt("react.strict_mode"),Ft=Qt("react.profiler"),$t=Qt("react.provider"),Ht=Qt("react.context"),Bt=Qt("react.forward_ref"),Gt=Qt("react.suspense"),Vt=Qt("react.suspense_list"),Wt=Qt("react.memo"),Ut=Qt("react.lazy"),Yt=Qt("react.block"),Kt=Qt("react.server.block"),Xt=Qt("react.fundamental"),Jt=Qt("react.debug_trace_mode"),Zt=Qt("react.legacy_hidden")}function er(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ot:switch(e=e.type){case jt:case Ft:case zt:case Gt:case Vt:return e;default:switch(e=e&&e.$$typeof){case Ht:case Bt:case Ut:case Wt:case $t:return e;default:return t}}case Nt:return t}}}var tr=$t,rr=Ot,nr=Bt,or=jt,ir=Ut,ar=Wt,sr=Nt,lr=Ft,ur=zt,cr=Gt;qt.ContextConsumer=Ht,qt.ContextProvider=tr,qt.Element=rr,qt.ForwardRef=nr,qt.Fragment=or,qt.Lazy=ir,qt.Memo=ar,qt.Portal=sr,qt.Profiler=lr,qt.StrictMode=ur,qt.Suspense=cr,qt.isAsyncMode=function(){return!1},qt.isConcurrentMode=function(){return!1},qt.isContextConsumer=function(e){return er(e)===Ht},qt.isContextProvider=function(e){return er(e)===$t},qt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ot},qt.isForwardRef=function(e){return er(e)===Bt},qt.isFragment=function(e){return er(e)===jt},qt.isLazy=function(e){return er(e)===Ut},qt.isMemo=function(e){return er(e)===Wt},qt.isPortal=function(e){return er(e)===Nt},qt.isProfiler=function(e){return er(e)===Ft},qt.isStrictMode=function(e){return er(e)===zt},qt.isSuspense=function(e){return er(e)===Gt},qt.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===jt||e===Ft||e===Jt||e===zt||e===Gt||e===Vt||e===Zt||"object"==typeof e&&null!==e&&(e.$$typeof===Ut||e.$$typeof===Wt||e.$$typeof===$t||e.$$typeof===Ht||e.$$typeof===Bt||e.$$typeof===Xt||e.$$typeof===Yt||e[0]===Kt)},qt.typeOf=er,Tt.exports=qt;var dr=Tt.exports,pr=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function fr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(pr);return t&&t[1]||""}(e)||t}function hr(e,t,r){var n=fr(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var mr="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),gr=Pt.oneOfType([Pt.func,Pt.object]),br=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:yt,deepmerge:Et,elementAcceptingRef:kt,elementTypeAcceptingRef:Lt,exactProp:function(e){return e},formatMuiErrorMessage:Dt,getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return fr(e,"Component");if("object"===St(e))switch(e.$$typeof){case dr.ForwardRef:return hr(e,e.render,"ForwardRef");case dr.Memo:return hr(e,e.type,"memo");default:return}}},ponyfillGlobal:mr,refType:gr});function vr(e){if(e.type)return e;if("#"===e.charAt(0))return vr(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(Dt(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 yr(e,t){return e=vr(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 xr(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 Sr(e,t){if(null==e)return{};var r,n,o=xr(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 Cr(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 Er(e,t){if(e){if("string"==typeof e)return Cr(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)?Cr(e,t):void 0}}function wr(e){return function(e){if(Array.isArray(e))return Cr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Er(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 Rr(e,t){return t?Et(e,t,{clone:!1}):e}var Ar={xs:0,sm:600,md:960,lg:1280,xl:1920},Mr={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(Ar[e],"px)")}};function Ir(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||Mr;return t.reduce((function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e}),{})}if("object"===St(t)){var o=e.theme.breakpoints||Mr;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 kr(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 Ir(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=_t(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 Lr(){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?Rr(t,n):t}),{})};return n.propTypes={},n.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),n}function _r(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var Dr=kr({prop:"border",themeKey:"borders",transform:_r}),Tr=kr({prop:"borderTop",themeKey:"borders",transform:_r}),qr=kr({prop:"borderRight",themeKey:"borders",transform:_r}),Or=kr({prop:"borderBottom",themeKey:"borders",transform:_r}),Nr=kr({prop:"borderLeft",themeKey:"borders",transform:_r}),jr=kr({prop:"borderColor",themeKey:"palette"}),zr=kr({prop:"borderRadius",themeKey:"shape"}),Fr=Lr(Dr,Tr,qr,Or,Nr,jr,zr);function $r(e,t){var r={};return Object.keys(e).forEach((function(n){-1===t.indexOf(n)&&(r[n]=e[n])})),r}function Hr(e){var t=function(t){var r=e(t);return t.css?xt({},Rr(r,e(xt({theme:t.theme},t.css))),$r(t.css,[e.filterProps])):t.sx?xt({},Rr(r,e(xt({theme:t.theme},t.sx))),$r(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(wr(e.filterProps)),t}var Br=Lr(kr({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),kr({prop:"display"}),kr({prop:"overflow"}),kr({prop:"textOverflow"}),kr({prop:"visibility"}),kr({prop:"whiteSpace"})),Gr=kr({prop:"flexBasis"}),Vr=kr({prop:"flexDirection"}),Wr=kr({prop:"flexWrap"}),Ur=kr({prop:"justifyContent"}),Yr=kr({prop:"alignItems"}),Kr=kr({prop:"alignContent"}),Xr=kr({prop:"order"}),Jr=kr({prop:"flex"}),Zr=kr({prop:"flexGrow"}),Qr=kr({prop:"flexShrink"}),en=kr({prop:"alignSelf"}),tn=kr({prop:"justifyItems"}),rn=kr({prop:"justifySelf"}),nn=Lr(Gr,Vr,Wr,Ur,Yr,Kr,Xr,Jr,Zr,Qr,en,tn,rn),on=kr({prop:"gridGap"}),an=kr({prop:"gridColumnGap"}),sn=kr({prop:"gridRowGap"}),ln=kr({prop:"gridColumn"}),un=kr({prop:"gridRow"}),cn=kr({prop:"gridAutoFlow"}),dn=kr({prop:"gridAutoColumns"}),pn=kr({prop:"gridAutoRows"}),fn=kr({prop:"gridTemplateColumns"}),hn=kr({prop:"gridTemplateRows"}),mn=kr({prop:"gridTemplateAreas"}),gn=kr({prop:"gridArea"}),bn=Lr(on,an,sn,ln,un,cn,dn,pn,fn,hn,mn,gn),vn=kr({prop:"color",themeKey:"palette"}),yn=kr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),xn=Lr(vn,yn),Sn=kr({prop:"position"}),Cn=kr({prop:"zIndex",themeKey:"zIndex"}),En=kr({prop:"top"}),wn=kr({prop:"right"}),Rn=kr({prop:"bottom"}),An=kr({prop:"left"}),Mn=Lr(Sn,Cn,En,wn,Rn,An),In=kr({prop:"boxShadow",themeKey:"shadows"});function Pn(e){return e<=1?"".concat(100*e,"%"):e}var kn=kr({prop:"width",transform:Pn}),Ln=kr({prop:"maxWidth",transform:Pn}),_n=kr({prop:"minWidth",transform:Pn}),Dn=kr({prop:"height",transform:Pn}),Tn=kr({prop:"maxHeight",transform:Pn}),qn=kr({prop:"minHeight",transform:Pn}),On=kr({prop:"size",cssProperty:"width",transform:Pn}),Nn=kr({prop:"size",cssProperty:"height",transform:Pn}),jn=kr({prop:"boxSizing"}),zn=Lr(kn,Ln,_n,Dn,Tn,qn,jn);function Fn(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)||Er(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"},Hn={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Bn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Gn=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(!Bn[e])return[e];e=Bn[e]}var t=Fn(e.split(""),2),r=t[0],n=t[1],o=$n[r],i=Hn[n]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),Vn=["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 Wn(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 Un(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 Yn(e){var t=Wn(e.theme);return Object.keys(e).map((function(r){if(-1===Vn.indexOf(r))return null;var n=Un(Gn(r),t),o=e[r];return Ir(e,o,n)})).reduce(Rr,{})}Yn.propTypes={},Yn.filterProps=Vn;var Kn=kr({prop:"fontFamily",themeKey:"typography"}),Xn=kr({prop:"fontSize",themeKey:"typography"}),Jn=kr({prop:"fontStyle",themeKey:"typography"}),Zn=kr({prop:"fontWeight",themeKey:"typography"}),Qn=kr({prop:"letterSpacing"}),eo=kr({prop:"lineHeight"}),to=kr({prop:"textAlign"}),ro=Lr(Kn,Xn,Jn,Zn,Qn,eo,to),no=Object.freeze({__proto__:null,alignContent:Kr,alignItems:Yr,alignSelf:en,bgcolor:yn,border:Dr,borderBottom:Or,borderColor:jr,borderLeft:Nr,borderRadius:zr,borderRight:qr,borderTop:Tr,borders:Fr,bottom:Rn,boxSizing:jn,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||Mr,o=n.keys.reduce((function(r,o){return t[o]&&((r=r||{})[n.up(o)]=e(xt({theme:t.theme},t[o]))),r}),null);return Rr(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(wr(e.filterProps)),t},color:vn,compose:Lr,createUnarySpacing:Wn,css:function(e){return Hr(e)},display:Br,flex:Jr,flexBasis:Gr,flexDirection:Vr,flexGrow:Zr,flexShrink:Qr,flexWrap:Wr,flexbox:nn,fontFamily:Kn,fontSize:Xn,fontStyle:Jn,fontWeight:Zn,grid:bn,gridArea:gn,gridAutoColumns:dn,gridAutoFlow:cn,gridAutoRows:pn,gridColumn:ln,gridColumnGap:an,gridGap:on,gridRow:un,gridRowGap:sn,gridTemplateAreas:mn,gridTemplateColumns:fn,gridTemplateRows:hn,height:Dn,justifyContent:Ur,justifyItems:tn,justifySelf:rn,left:An,letterSpacing:Qn,lineHeight:eo,maxHeight:Tn,maxWidth:Ln,minHeight:qn,minWidth:_n,order:Xr,palette:xn,position:Sn,positions:Mn,right:wn,shadows:In,sizeHeight:Nn,sizeWidth:On,sizing:zn,spacing:Yn,style:kr,styleFunctionSx:Hr,textAlign:to,top:En,typography:ro,width:kn,zIndex:Cn}),oo="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",io=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function ao(){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!==io.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[oo]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function so(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 lo="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},uo="object"===("undefined"==typeof window?"undefined":lo(window))&&"object"===("undefined"==typeof document?"undefined":lo(document))&&9===document.nodeType;function co(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,_t(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function po(e,t){return po=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},po(e,t)}function fo(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,po(e,t)}function ho(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var mo={}.constructor;function go(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(go);if(e.constructor!==mo)return e;var t={};for(var r in e)t[r]=go(e[r]);return t}function bo(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=go(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var vo=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},yo=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+=vo(e[r]," ");else t=vo(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function xo(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function So(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function Co(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=xo(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+=So(p+":"+u+yo(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=So(h+":"+u+yo(m)+";",i))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(n&&(n+=l),n+=So(g+":"+u+yo(b)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),So(""+e+u+"{"+n,--i)+So("}",i)):n}var Eo=/([[\].#*$><+~=|^:(),"'`\s])/g,wo="undefined"!=typeof CSS&&CSS.escape,Ro=function(e){return wo?wo(e):e.replace(Eo,"\\$1")},Ao=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}(),Mo=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(ho(ho(o)),s),o.selectorText="."+Ro(o.id)),o}fo(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]=yo(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?xt({},e,{allowEmpty:!0}):e;return Co(this.selectorText,this.style,r)},co(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}(Ao),Io={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new Mo(e,t,r)}},Po={indent:1,children:!0},ko=/@([\w-]+)/,Lo=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(ko);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new ti(xt({},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=xo(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}(),_o=/@container|@media|@supports\s+/,Do={onCreateRule:function(e,t,r){return _o.test(e)?new Lo(e,t,r):null}},To={indent:1,children:!0},qo=/@keyframes\s+([\w-]+)/,Oo=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(qo);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:Ro(a(this,i)),this.rules=new ti(xt({},r,{parent:this})),t)this.rules.add(s,t[s],xt({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=To);var t=xo(e).linebreak;if(null==e.indent&&(e.indent=To.indent),null==e.children&&(e.children=To.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}(),No=/@keyframes\s+/,jo=/\$([\w-]+)/g,zo=function(e,t){return"string"==typeof e?e.replace(jo,(function(e,r){return r in t?t[r]:e})):e},Fo=function(e,t,r){var n=e[t],o=zo(n,r);o!==n&&(e[t]=o)},$o={onCreateRule:function(e,t,r){return"string"==typeof e&&No.test(e)?new Oo(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&Fo(e,"animation-name",r.keyframes),"animation"in e&&Fo(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 zo(e,n.keyframes);default:return e}}},Ho=function(e){function t(){return e.apply(this,arguments)||this}return fo(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?xt({},e,{allowEmpty:!0}):e;return Co(this.key,this.style,r)},t}(Ao),Bo={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new Ho(e,t,r):null}},Go=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=xo(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=Co(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return Co(this.at,this.style,e)},e}(),Vo=/@font-face/,Wo={onCreateRule:function(e,t,r){return Vo.test(e)?new Go(e,t,r):null}},Uo=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 Co(this.key,this.style,e)},e}(),Yo={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new Uo(e,t,r):null}},Ko=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}(),Xo={"@charset":!0,"@import":!0,"@namespace":!0},Jo={onCreateRule:function(e,t,r){return e in Xo?new Ko(e,t,r):null}},Zo=[Io,Do,$o,Bo,Wo,Yo,Jo],Qo={process:!0},ei={force:!0,process:!0},ti=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=xt({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="."+Ro(this.classes[d]));var p=bo(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=xt({},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 Mo?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Oo&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Mo?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Oo&&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=Qo);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,ei)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,ei)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=xo(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}(),ri=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=xt({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new ti(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}(),ni=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}(),oi=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=xr(t,["attached"]),o=xo(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},co(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),ii=new oi,ai="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),si="2f1acc6c3a606b082e5eef5e54414ffb";null==ai[si]&&(ai[si]=0);var li=ai[si]++,ui=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")+li+o+t:i+r.key+"-"+li+(o?"-"+o:"")+"-"+t}},ci=function(e){var t;return function(){return t||(t=e()),t}},di=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},pi=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=yo(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},fi=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},hi=function(e,t){return e.selectorText=t,e.selectorText===t},mi=ci((function(){return document.querySelector("head")}));function gi(e){var t=ii.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=mi(),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 bi=ci((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),vi=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]},yi=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},xi=function(){function e(e){this.getPropertyValue=di,this.setProperty=pi,this.removeProperty=fi,this.setSelector=hi,this.hasInsertedRules=!1,this.cssRules=[],e&&ii.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=bi();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=gi(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 mi().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=yi(r,t);if(!1===(o=vi(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=yi(r,t),l=vi(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 ri&&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}(),Si=0,Ci=function(){function e(e){this.id=Si++,this.version="10.10.0",this.plugins=new ni,this.options={id:{minify:!1},createGenerateId:ui,Renderer:uo?xi:null,plugins:[]},this.generateId=ui({minify:!1});for(var t=0;t<Zo.length;t++)this.plugins.use(Zo[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=xt({},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===ii.index?0:ii.index+1);var n=new ri(e,xt({},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(),ii.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=xt({},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=bo(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}(),Ei=function(e){return new Ci(e)},wi="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Ri(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=Ri(n);i&&(t||(t={}),t[r]=i)}}return t}
|
|
10
10
|
/**
|
|
11
11
|
* A better abstraction over CSS.
|
|
12
12
|
*
|
|
13
13
|
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
14
14
|
* @website https://github.com/cssinjs/jss
|
|
15
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});
|
|
16
|
+
*/Ei();var Ai=Date.now(),Mi="fnValues"+Ai,Ii="fnStyle"+ ++Ai,Pi="@global",ki="@global ",Li=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 ti(xt({},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}(),_i=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,xt({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Di=/\s*,\s*/g;function Ti(e,t){for(var r=e.split(Di),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function qi(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===Pi)return new Li(e,t,r);if("@"===e[0]&&e.substr(0,8)===ki)return new _i(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],xt({},r,{selector:Ti(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=Ti(o.substr(7),e.selector);t.addRule(i,n[o],xt({},r,{selector:i})),delete n[o]}}(e,t))}}}var Oi=/\s*,\s*/g,Ni=/&/g,ji=/\$([\w-]+)/g;function zi(){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(Oi),n=e.split(Oi),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(Ni,a):a+" "+l}return o}function r(e,t,r){if(r)return xt({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var o=xt({},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(ji,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,n[c],xt({},a,{selector:f})):u.addRule(h,n[c],xt({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(l.key,n[c],{selector:l.selector});delete n[c]}}return n}}}var Fi=/[A-Z]/g,$i=/^ms-/,Hi={};function Bi(e){return"-"+e.toLowerCase()}function Gi(e){if(Hi.hasOwnProperty(e))return Hi[e];var t=e.replace(Fi,Bi);return Hi[e]=$i.test(t)?"-"+t:t}function Vi(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:Gi(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Vi):t.fallbacks=Vi(e.fallbacks)),t}var Wi=wi&&CSS?CSS.px:"px",Ui=wi&&CSS?CSS.ms:"ms",Yi=wi&&CSS?CSS.percent:"%";function Ki(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 Xi=Ki({"animation-delay":Ui,"animation-duration":Ui,"background-position":Wi,"background-position-x":Wi,"background-position-y":Wi,"background-size":Wi,border:Wi,"border-bottom":Wi,"border-bottom-left-radius":Wi,"border-bottom-right-radius":Wi,"border-bottom-width":Wi,"border-left":Wi,"border-left-width":Wi,"border-radius":Wi,"border-right":Wi,"border-right-width":Wi,"border-top":Wi,"border-top-left-radius":Wi,"border-top-right-radius":Wi,"border-top-width":Wi,"border-width":Wi,"border-block":Wi,"border-block-end":Wi,"border-block-end-width":Wi,"border-block-start":Wi,"border-block-start-width":Wi,"border-block-width":Wi,"border-inline":Wi,"border-inline-end":Wi,"border-inline-end-width":Wi,"border-inline-start":Wi,"border-inline-start-width":Wi,"border-inline-width":Wi,"border-start-start-radius":Wi,"border-start-end-radius":Wi,"border-end-start-radius":Wi,"border-end-end-radius":Wi,margin:Wi,"margin-bottom":Wi,"margin-left":Wi,"margin-right":Wi,"margin-top":Wi,"margin-block":Wi,"margin-block-end":Wi,"margin-block-start":Wi,"margin-inline":Wi,"margin-inline-end":Wi,"margin-inline-start":Wi,padding:Wi,"padding-bottom":Wi,"padding-left":Wi,"padding-right":Wi,"padding-top":Wi,"padding-block":Wi,"padding-block-end":Wi,"padding-block-start":Wi,"padding-inline":Wi,"padding-inline-end":Wi,"padding-inline-start":Wi,"mask-position-x":Wi,"mask-position-y":Wi,"mask-size":Wi,height:Wi,width:Wi,"min-height":Wi,"max-height":Wi,"min-width":Wi,"max-width":Wi,bottom:Wi,left:Wi,top:Wi,right:Wi,inset:Wi,"inset-block":Wi,"inset-block-end":Wi,"inset-block-start":Wi,"inset-inline":Wi,"inset-inline-end":Wi,"inset-inline-start":Wi,"box-shadow":Wi,"text-shadow":Wi,"column-gap":Wi,"column-rule":Wi,"column-rule-width":Wi,"column-width":Wi,"font-size":Wi,"font-size-delta":Wi,"letter-spacing":Wi,"text-decoration-thickness":Wi,"text-indent":Wi,"text-stroke":Wi,"text-stroke-width":Wi,"word-spacing":Wi,motion:Wi,"motion-offset":Wi,outline:Wi,"outline-offset":Wi,"outline-width":Wi,perspective:Wi,"perspective-origin-x":Yi,"perspective-origin-y":Yi,"transform-origin":Yi,"transform-origin-x":Yi,"transform-origin-y":Yi,"transform-origin-z":Yi,"transition-delay":Ui,"transition-duration":Ui,"vertical-align":Wi,"flex-basis":Wi,"shape-margin":Wi,size:Wi,gap:Wi,grid:Wi,"grid-gap":Wi,"row-gap":Wi,"grid-row-gap":Wi,"grid-column-gap":Wi,"grid-template-rows":Wi,"grid-template-columns":Wi,"grid-auto-rows":Wi,"grid-auto-columns":Wi,"box-shadow-x":Wi,"box-shadow-y":Wi,"box-shadow-blur":Wi,"box-shadow-spread":Wi,"font-line-height":Wi,"text-shadow-x":Wi,"text-shadow-y":Wi,"text-shadow-blur":Wi});function Ji(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=Ji(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=Ji(o,t[o],r);else for(var i in t)t[i]=Ji(e+"-"+i,t[i],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||Xi[e];return!a||0===t&&a===Wi?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Zi(e){void 0===e&&(e={});var t=Ki(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=Ji(n,e[n],t);return e},onChangeValue:function(e,r){return Ji(r,e,t)}}}var Qi="",ea="",ta="",ra="",na=uo&&"ontouchstart"in document.documentElement;if(uo){var oa={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},ia=document.createElement("p").style;for(var aa in oa)if(aa+"Transform"in ia){Qi=aa,ea=oa[aa];break}"Webkit"===Qi&&"msHyphens"in ia&&(Qi="ms",ea=oa.ms,ra="edge"),"Webkit"===Qi&&"-apple-trailing-word"in ia&&(ta="apple")}var sa=Qi,la=ea,ua=ta,ca=ra,da=na;var pa={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===sa?"-webkit-"+e:la+e)}},fa={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===sa?la+"print-"+e:e)}},ha=/[-\s]+(.)?/g;function ma(e,t){return t?t.toUpperCase():""}function ga(e){return e.replace(ha,ma)}function ba(e){return ga("-"+e)}var va,ya={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===sa){var r="mask-image";if(ga(r)in t)return e;if(sa+ba(r)in t)return la+e}return e}},xa={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==ua||da?e:la+e)}},Sa={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:la+e)}},Ca={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:la+e)}},Ea={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===sa||"ms"===sa&&"edge"!==ca?la+e:e)}},wa={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===sa||"ms"===sa||"apple"===ua?la+e:e)}},Ra={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===sa?"WebkitColumn"+ba(e)in t&&la+"column-"+e:"Moz"===sa&&("page"+ba(e)in t&&"page-"+e))}},Aa={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===sa)return e;var r=e.replace("-inline","");return sa+ba(r)in t&&la+r}},Ma={supportedProperty:function(e,t){return ga(e)in t&&e}},Ia={supportedProperty:function(e,t){var r=ba(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:sa+r in t?la+e:"Webkit"!==sa&&"Webkit"+r in t&&"-webkit-"+e}},Pa={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===sa?""+la+e:e)}},ka={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===sa?la+"scroll-chaining":e)}},La={"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"},_a={supportedProperty:function(e,t){var r=La[e];return!!r&&(sa+ba(r)in t&&la+r)}},Da={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"},Ta=Object.keys(Da),qa=function(e){return la+e},Oa={supportedProperty:function(e,t,r){var n=r.multiple;if(Ta.indexOf(e)>-1){var o=Da[e];if(!Array.isArray(o))return sa+ba(o)in t&&la+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(sa+ba(o[0])in t))return!1;return o.map(qa)}return!1}},Na=[pa,fa,ya,xa,Sa,Ca,Ea,wa,Ra,Aa,Ma,Ia,Pa,ka,_a,Oa],ja=Na.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),za=Na.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,wr(t.noPrefill)),e}),[]),Fa={};if(uo){va=document.createElement("p");var $a=window.getComputedStyle(document.documentElement,"");for(var Ha in $a)isNaN(Ha)||(Fa[$a[Ha]]=$a[Ha]);za.forEach((function(e){return delete Fa[e]}))}function Ba(e,t){if(void 0===t&&(t={}),!va)return e;if(null!=Fa[e])return Fa[e];"transition"!==e&&"transform"!==e||(t[e]=e in va.style);for(var r=0;r<ja.length&&(Fa[e]=ja[r](e,va.style,t),!Fa[e]);r++);try{va.style[e]=""}catch(e){return!1}return Fa[e]}var Ga,Va={},Wa={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Ua=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Ya(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?Ba(t):", "+Ba(r);return n||(t||r)}function Ka(e,t){var r=t;if(!Ga||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=Va[n])return Va[n];try{Ga.style[e]=r}catch(e){return Va[n]=!1,!1}if(Wa[e])r=r.replace(Ua,Ya);else if(""===Ga.style[e]&&("-ms-flex"===(r=la+r)&&(Ga.style[e]="-ms-flexbox"),Ga.style[e]=r,""===Ga.style[e]))return Va[n]=!1,!1;return Ga.style[e]="",Va[n]=r,Va[n]}function Xa(){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=Ba(r);i&&i!==r&&(o=!0);var a=!1,s=Ka(i,yo(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"===sa?e:"@"+la+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return Ka(t,yo(e))||e}}}function Ja(){return{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=bo(e,{},r);return n[Ii]=t,n},onProcessStyle:function(e,t){if(Mi in t||Ii 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[Mi]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[Ii];i&&(o.style=i(e)||{});var a=o[Mi];if(a)for(var s in a)o.prop(s,a[s](e),n)}},qi(),zi(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Vi(e[t]);return e}return Vi(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=Gi(t);return t===n?e:(r.prop(n,e),null)}},Zi(),"undefined"==typeof window?null:Xa(),(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 Za(){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=xt({},t);return Object.keys(r).forEach((function(e){r[e]&&(n[e]="".concat(t[e]," ").concat(r[e]))})),n}uo&&(Ga=document.createElement("p"));var Qa=function(e,t,r,n){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},es=function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},ts=function(e,t,r){e.get(t).delete(r)},rs=x.createContext(null);function ns(){return x.useContext(rs)}var os,is=Ei(Ja()),as=ao(),ss=new Map,ls={disableGeneration:!1,generateClassName:as,jss:is,sheetsCache:null,sheetsManager:ss,sheetsRegistry:null},us=x.createContext(ls);function cs(e){var t=e.children,r=e.injectFirst,n=void 0!==r&&r,o=e.disableGeneration,i=void 0!==o&&o,a=Sr(e,["children","injectFirst","disableGeneration"]),s=xt({},x.useContext(us),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&n&&"undefined"!=typeof window){if(!os){var l=document.head;os=document.createComment("mui-inject-first"),l.insertBefore(os,l.firstChild)}s.jss=Ei({plugins:Ja().plugins,insertionPoint:os})}return x.createElement(us.Provider,{value:s},t)}var ds=-1e9;var ps={};function fs(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=es(o.sheetsManager,i,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},Qa(o.sheetsManager,i,n,s));var l=xt({},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=es(o.sheetsCache,i,n));var d=i.create(n,a);c||((c=o.jss.createStyleSheet(d,xt({link:!1},l))).attach(),o.sheetsCache&&Qa(o.sheetsCache,i,n,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=Ri(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,xt({link:!0},l));p.update(t),p.attach(),r.dynamicSheet=p,r.classes=Za({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else r.classes=s.staticSheet.classes;s.refs+=1}}function hs(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?ps:i,s=Sr(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=xt({},o);return Object.keys(i).forEach((function(e){a[e]=Et(a[e],i[e])})),a},options:{}}}(e),u=r||n||"makeStyles";l.options={index:ds+=1,name:r,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ns()||a,n=xt({},x.useContext(us),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 fs(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=es(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;0===i.refs&&(ts(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=Za({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(i.current,e.classes,o);return c}}var ms=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 co(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new oi;var r=ao();return x.createElement(cs,xt({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",xt({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function gs(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=gs(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function bs(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=gs(e))&&(n&&(n+=" "),n+=t);return n}var vs={exports:{}},ys={},xs="function"==typeof Symbol&&Symbol.for,Ss=xs?Symbol.for("react.element"):60103,Cs=xs?Symbol.for("react.portal"):60106,Es=xs?Symbol.for("react.fragment"):60107,ws=xs?Symbol.for("react.strict_mode"):60108,Rs=xs?Symbol.for("react.profiler"):60114,As=xs?Symbol.for("react.provider"):60109,Ms=xs?Symbol.for("react.context"):60110,Is=xs?Symbol.for("react.async_mode"):60111,Ps=xs?Symbol.for("react.concurrent_mode"):60111,ks=xs?Symbol.for("react.forward_ref"):60112,Ls=xs?Symbol.for("react.suspense"):60113,_s=xs?Symbol.for("react.suspense_list"):60120,Ds=xs?Symbol.for("react.memo"):60115,Ts=xs?Symbol.for("react.lazy"):60116,qs=xs?Symbol.for("react.block"):60121,Os=xs?Symbol.for("react.fundamental"):60117,Ns=xs?Symbol.for("react.responder"):60118,js=xs?Symbol.for("react.scope"):60119;function zs(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ss:switch(e=e.type){case Is:case Ps:case Es:case Rs:case ws:case Ls:return e;default:switch(e=e&&e.$$typeof){case Ms:case ks:case Ts:case Ds:case As:return e;default:return t}}case Cs:return t}}}function Fs(e){return zs(e)===Ps}ys.AsyncMode=Is,ys.ConcurrentMode=Ps,ys.ContextConsumer=Ms,ys.ContextProvider=As,ys.Element=Ss,ys.ForwardRef=ks,ys.Fragment=Es,ys.Lazy=Ts,ys.Memo=Ds,ys.Portal=Cs,ys.Profiler=Rs,ys.StrictMode=ws,ys.Suspense=Ls,ys.isAsyncMode=function(e){return Fs(e)||zs(e)===Is},ys.isConcurrentMode=Fs,ys.isContextConsumer=function(e){return zs(e)===Ms},ys.isContextProvider=function(e){return zs(e)===As},ys.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ss},ys.isForwardRef=function(e){return zs(e)===ks},ys.isFragment=function(e){return zs(e)===Es},ys.isLazy=function(e){return zs(e)===Ts},ys.isMemo=function(e){return zs(e)===Ds},ys.isPortal=function(e){return zs(e)===Cs},ys.isProfiler=function(e){return zs(e)===Rs},ys.isStrictMode=function(e){return zs(e)===ws},ys.isSuspense=function(e){return zs(e)===Ls},ys.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Es||e===Ps||e===Rs||e===ws||e===Ls||e===_s||"object"==typeof e&&null!==e&&(e.$$typeof===Ts||e.$$typeof===Ds||e.$$typeof===As||e.$$typeof===Ms||e.$$typeof===ks||e.$$typeof===Os||e.$$typeof===Ns||e.$$typeof===js||e.$$typeof===qs)},ys.typeOf=zs,vs.exports=ys;var $s=vs.exports,Hs={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Bs={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Gs={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Vs={};function Ws(e){return $s.isMemo(e)?Gs:Vs[e.$$typeof]||Hs}Vs[$s.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Vs[$s.Memo]=Gs;var Us=Object.defineProperty,Ys=Object.getOwnPropertyNames,Ks=Object.getOwnPropertySymbols,Xs=Object.getOwnPropertyDescriptor,Js=Object.getPrototypeOf,Zs=Object.prototype;var Qs=function e(t,r,n){if("string"!=typeof r){if(Zs){var o=Js(r);o&&o!==Zs&&e(t,o,n)}var i=Ys(r);Ks&&(i=i.concat(Ks(r)));for(var a=Ws(t),s=Ws(r),l=0;l<i.length;++l){var u=i[l];if(!(Bs[u]||n&&n[u]||s&&s[u]||a&&a[u])){var c=Xs(r,u);try{Us(t,u,c)}catch(e){}}}}return t},el=wt(Qs);function tl(){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=Sr(r,["innerRef"]),a=ns()||e;return x.createElement(t,xt({theme:a,ref:o||n},i))}));return el(r,t),r}}var rl=tl(),nl=Object.freeze({__proto__:null,ServerStyleSheets:ms,StylesContext:us,StylesProvider:cs,ThemeProvider:function(e){var t=e.children,r=e.theme,n=ns(),o=x.useMemo((function(){var e=null===n?r:function(e,t){return"function"==typeof t?t(e):xt({},e,t)}(n,r);return null!=e&&(e[oo]=null!==n),e}),[r,n]);return x.createElement(rs.Provider,{value:o},t)},createGenerateClassName:ao,createStyles:function(e){return e},getThemeProps:so,jssPreset:Ja,makeStyles:hs,mergeClasses:Za,sheetsManager:ss,styled:function(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.name,i=Sr(n,["name"]),a=o,s=hs("function"==typeof t?function(e){return{root:function(r){return t(xt({theme:e},r))}}}:{root:t},xt({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=Sr(t,["children","className","clone","component"]),f=bs(s(t).root,u),h=p;if(r&&(o=h,i=r,a={},Object.keys(o).forEach((function(e){-1===i.indexOf(e)&&(a[e]=o[e])})),h=a),c)return x.cloneElement(l,xt({className:bs(l.props.className,f)},h));if("function"==typeof l)return l(xt({className:f},h));var m=d||e;return x.createElement(m,xt({ref:n,className:f},h),l)}));return el(l,e),l}},useTheme:ns,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=Sr(t,["defaultTheme","withTheme","name"]),l=a,u=hs(e,xt({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=Sr(e,["classes","innerRef"]),c=u(xt({},r.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=ns()||n,a&&(d=so({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),x.createElement(r,xt({ref:s||t,classes:c},d))}));return el(c,r),c}},withTheme:rl,withThemeCreator:tl});
|
|
17
17
|
/** @license Material-UI v4.11.5
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the MIT license found in the
|
|
20
20
|
* LICENSE file in the root directory of this source tree.
|
|
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}));
|
|
21
|
+
*/const ol={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"},il={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",...ol,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)"},al=12,sl=14,ll=16,ul=24,cl=3,dl=300,pl=400,fl=600,hl=700,ml={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};yr(il.GREYSCALE_0,.05),yr(il.GREEN_PALE,.5),yr(il.BLUE_PALE,.5),yr(il.GREEN_PALE,.5),yr(il.BLUE_PALE,.5),yr(il.GREEN_PALE,.5),yr(il.BLUE_PALE,.5);yr(il.GREEN_PALE,.5),yr(il.BLUE_PALE,.5),yr(il.GREEN_PALE,.5),yr(il.BLUE_PALE,.5);var gl={exports:{}},bl={},vl=x,yl=Symbol.for("react.element"),xl=Symbol.for("react.fragment"),Sl=Object.prototype.hasOwnProperty,Cl=vl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,El={key:!0,ref:!0,__self:!0,__source:!0};function wl(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)Sl.call(t,n)&&!El.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:yl,type:e,key:i,ref:a,props:o,_owner:Cl.current}}bl.Fragment=xl,bl.jsx=wl,bl.jsxs=wl,gl.exports=bl;var Rl,Al=gl.exports;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 Il,Pl=function(e){return S.createElement("svg",Ml({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Rl||(Rl=S.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function kl(){return kl=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},kl.apply(null,arguments)}var Ll=function(e){return S.createElement("svg",kl({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Il||(Il=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 _l({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Al.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 Dl(e={}){return Al.jsx(_l,{...e,children:Al.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Al.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Al.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 Tl(e={}){return Al.jsx(_l,{...e,children:Al.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Al.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Al.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Al.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function ql(e={}){return Al.jsx(_l,{fontSize:"medium",...e,children:Al.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Al.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Al.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function Ol(e={}){return Al.jsx(_l,{fontSize:"medium",...e,children:Al.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Al.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Al.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 Nl({className:e}){return Al.jsx(_l,{fontSize:"small",className:e,children:Al.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Al.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Al.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Al.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Al.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"}),Al.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"})]})})})})})}Al.jsx(Ll,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Al.jsx(Pl,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),Al.jsx(ql,{}),Al.jsx(Ol,{}),Al.jsx((function(e={}){return Al.jsx(_l,{...e,children:Al.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Al.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Al.jsx("rect",{stroke:"#000000",fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}),{}),Al.jsx(Dl,{}),Al.jsx(Tl,{}),Al.jsx(Pl,{style:{color:il.TEXT_PRIMARY},"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16});const jl={black:"#000",white:"#fff"},zl="#e57373",Fl="#ef5350",$l="#f44336",Hl="#d32f2f",Bl="#c62828",Gl="#f3e5f5",Vl="#ce93d8",Wl="#ba68c8",Ul="#ab47bc",Yl="#9c27b0",Kl="#7b1fa2",Xl="#e3f2fd",Jl="#90caf9",Zl="#42a5f5",Ql="#1976d2",eu="#1565c0",tu="#4fc3f7",ru="#29b6f6",nu="#03a9f4",ou="#0288d1",iu="#01579b",au="#81c784",su="#66bb6a",lu="#4caf50",uu="#388e3c",cu="#2e7d32",du="#1b5e20",pu="#ffb74d",fu="#ffa726",hu="#ff9800",mu="#f57c00",gu="#e65100",bu={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 vu(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 yu=Object.freeze({__proto__:null,default:vu}),xu="$$material";function Su(){return Su=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},Su.apply(this,arguments)}function Cu(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 Eu=function(){return Eu=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},Eu.apply(this,arguments)};function wu(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 Ru=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},Au=wt(Ru),Mu="-ms-",Iu="-moz-",Pu="-webkit-",ku="comm",Lu="rule",_u="decl",Du="@keyframes",Tu=Math.abs,qu=String.fromCharCode,Ou=Object.assign;function Nu(e){return e.trim()}function ju(e,t){return(e=t.exec(e))?e[0]:e}function zu(e,t,r){return e.replace(t,r)}function Fu(e,t,r){return e.indexOf(t,r)}function $u(e,t){return 0|e.charCodeAt(t)}function Hu(e,t,r){return e.slice(t,r)}function Bu(e){return e.length}function Gu(e){return e.length}function Vu(e,t){return t.push(e),e}function Wu(e,t){return e.filter((function(e){return!ju(e,t)}))}var Uu=1,Yu=1,Ku=0,Xu=0,Ju=0,Zu="";function Qu(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Uu,column:Yu,length:a,return:"",siblings:s}}function ec(e,t){return Ou(Qu("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function tc(e){for(;e.root;)e=ec(e.root,{children:[e]});Vu(e,e.siblings)}function rc(){return Ju=Xu<Ku?$u(Zu,Xu++):0,Yu++,10===Ju&&(Yu=1,Uu++),Ju}function nc(){return $u(Zu,Xu)}function oc(){return Xu}function ic(e,t){return Hu(Zu,e,t)}function ac(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 sc(e){return Nu(ic(Xu-1,cc(91===e?e+2:40===e?e+1:e)))}function lc(e){for(;(Ju=nc())&&Ju<33;)rc();return ac(e)>2||ac(Ju)>3?"":" "}function uc(e,t){for(;--t&&rc()&&!(Ju<48||Ju>102||Ju>57&&Ju<65||Ju>70&&Ju<97););return ic(e,oc()+(t<6&&32==nc()&&32==rc()))}function cc(e){for(;rc();)switch(Ju){case e:return Xu;case 34:case 39:34!==e&&39!==e&&cc(Ju);break;case 40:41===e&&cc(e);break;case 92:rc()}return Xu}function dc(e,t){for(;rc()&&e+Ju!==57&&(e+Ju!==84||47!==nc()););return"/*"+ic(t,Xu-1)+"*"+qu(47===e?e:rc())}function pc(e){for(;!ac(nc());)rc();return ic(e,Xu)}function fc(e){return function(e){return Zu="",e}(hc("",null,null,null,[""],e=function(e){return Uu=Yu=1,Ku=Bu(Zu=e),Xu=0,[]}(e),0,[0],e))}function hc(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",x=o,S=i,C=n,E=y;g;)switch(h=v,v=rc()){case 40:if(108!=h&&58==$u(E,d-1)){-1!=Fu(E+=zu(sc(v),"&","&\f"),"&\f",Tu(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:E+=sc(v);break;case 9:case 10:case 13:case 32:E+=lc(h);break;case 92:E+=uc(oc()-1,7);continue;case 47:switch(nc()){case 42:case 47:Vu(gc(dc(rc(),oc()),t,r,l),l);break;default:E+="/"}break;case 123*m:s[u++]=Bu(E)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(E=zu(E,/\f/g,"")),f>0&&Bu(E)-d&&Vu(f>32?bc(E+";",n,r,d-1,l):bc(zu(E," ","")+";",n,r,d-2,l),l);break;case 59:E+=";";default:if(Vu(C=mc(E,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)hc(E,t,C,C,x,i,d,s,S);else switch(99===p&&110===$u(E,3)?100:p){case 100:case 108:case 109:case 115:hc(e,C,C,n&&Vu(mc(e,C,C,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S);break;default:hc(E,C,C,C,[""],S,0,s,S)}}u=c=f=0,m=b=1,y=E="",d=a;break;case 58:d=1+Bu(E),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==(Ju=Xu>0?$u(Zu,--Xu):0,Yu--,10===Ju&&(Yu=1,Uu--),Ju))continue;switch(E+=qu(v),v*m){case 38:b=c>0?1:(E+="\f",-1);break;case 44:s[u++]=(Bu(E)-1)*b,b=1;break;case 64:45===nc()&&(E+=sc(rc())),p=nc(),c=d=Bu(y=E+=pc(oc())),v++;break;case 45:45===h&&2==Bu(E)&&(m=0)}}return i}function mc(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=Gu(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=Hu(e,p+1,p=Tu(g=a[m])),x=e;v<h;++v)(x=Nu(g>0?f[v]+" "+y:zu(y,/&\f/g,f[v])))&&(l[b++]=x);return Qu(e,t,r,0===o?Lu:s,l,u,c,d)}function gc(e,t,r,n){return Qu(e,t,r,ku,qu(Ju),Hu(e,2,-2),0,n)}function bc(e,t,r,n,o){return Qu(e,t,r,_u,Hu(e,0,n),Hu(e,n+1,-1),n,o)}function vc(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 Iu+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Pu+e+Iu+e+Mu+e+e;case 5936:switch($u(e,t+11)){case 114:return Pu+e+Mu+zu(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Pu+e+Mu+zu(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Pu+e+Mu+zu(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Pu+e+Mu+e+e;case 6165:return Pu+e+Mu+"flex-"+e+e;case 5187:return Pu+e+zu(e,/(\w+).+(:[^]+)/,Pu+"box-$1$2"+Mu+"flex-$1$2")+e;case 5443:return Pu+e+Mu+"flex-item-"+zu(e,/flex-|-self/g,"")+(ju(e,/flex-|baseline/)?"":Mu+"grid-row-"+zu(e,/flex-|-self/g,""))+e;case 4675:return Pu+e+Mu+"flex-line-pack"+zu(e,/align-content|flex-|-self/g,"")+e;case 5548:return Pu+e+Mu+zu(e,"shrink","negative")+e;case 5292:return Pu+e+Mu+zu(e,"basis","preferred-size")+e;case 6060:return Pu+"box-"+zu(e,"-grow","")+Pu+e+Mu+zu(e,"grow","positive")+e;case 4554:return Pu+zu(e,/([^-])(transform)/g,"$1"+Pu+"$2")+e;case 6187:return zu(zu(zu(e,/(zoom-|grab)/,Pu+"$1"),/(image-set)/,Pu+"$1"),e,"")+e;case 5495:case 3959:return zu(e,/(image-set\([^]*)/,Pu+"$1$`$1");case 4968:return zu(zu(e,/(.+:)(flex-)?(.*)/,Pu+"box-pack:$3"+Mu+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Pu+e+e;case 4200:if(!ju(e,/flex-|baseline/))return Mu+"grid-column-align"+Hu(e,t)+e;break;case 2592:case 3360:return Mu+zu(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,ju(e.props,/grid-\w+-end/)}))?~Fu(e+(r=r[t].value),"span",0)?e:Mu+zu(e,"-start","")+e+Mu+"grid-row-span:"+(~Fu(r,"span",0)?ju(r,/\d+/):+ju(r,/\d+/)-+ju(e,/\d+/))+";":Mu+zu(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return ju(e.props,/grid-\w+-start/)}))?e:Mu+zu(zu(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return zu(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(Bu(e)-1-t>6)switch($u(e,t+1)){case 109:if(45!==$u(e,t+4))break;case 102:return zu(e,/(.+:)(.+)-([^]+)/,"$1"+Pu+"$2-$3$1"+Iu+(108==$u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Fu(e,"stretch",0)?vc(zu(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return zu(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,s){return Mu+r+":"+n+s+(o?Mu+r+"-span:"+(i?a:+a-+n)+s:"")+e}));case 4949:if(121===$u(e,t+6))return zu(e,":",":"+Pu)+e;break;case 6444:switch($u(e,45===$u(e,14)?18:11)){case 120:return zu(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Pu+(45===$u(e,14)?"inline-":"")+"box$3$1"+Pu+"$2$3$1"+Mu+"$2box$3")+e;case 100:return zu(e,":",":"+Mu)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return zu(e,"scroll-","scroll-snap-")+e}return e}function yc(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function xc(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case _u:return e.return=e.return||e.value;case ku:return"";case Du:return e.return=e.value+"{"+yc(e.children,n)+"}";case Lu:if(!Bu(e.value=e.props.join(",")))return""}return Bu(r=yc(e.children,n))?e.return=e.value+"{"+r+"}":""}function Sc(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case _u:return void(e.return=vc(e.value,e.length,r));case Du:return yc([ec(e,{value:zu(e.value,"@","@"+Pu)})],n);case Lu:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(ju(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":tc(ec(e,{props:[zu(t,/:(read-\w+)/,":-moz-$1")]})),tc(ec(e,{props:[t]})),Ou(e,{props:Wu(r,n)});break;case"::placeholder":tc(ec(e,{props:[zu(t,/:(plac\w+)/,":"+Pu+"input-$1")]})),tc(ec(e,{props:[zu(t,/:(plac\w+)/,":-moz-$1")]})),tc(ec(e,{props:[zu(t,/:(plac\w+)/,Mu+"input-$1")]})),tc(ec(e,{props:[t]})),Ou(e,{props:Wu(r,n)})}return""}))}}var Cc={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},Ec="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",wc="active",Rc="data-styled-version",Ac="6.1.18",Mc="/*!sc*/\n",Ic="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)),kc={},Lc=Object.freeze([]),_c=Object.freeze({});function Dc(e,t,r){return void 0===r&&(r=_c),e.theme!==r.theme&&e.theme||t||r.theme}var Tc=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"]),qc=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Oc=/(^-|-$)/g;function Nc(e){return e.replace(qc,"-").replace(Oc,"")}var jc=/(a)(d)/gi,zc=function(e){return String.fromCharCode(e+(e>25?39:97))};function Fc(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=zc(t%52)+r;return(zc(t%52)+r).replace(jc,"$1-$2")}var $c,Hc=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Bc=function(e){return Hc(5381,e)};function Gc(e){return Fc(Bc(e)>>>0)}function Vc(e){return"string"==typeof e&&!0}var Wc="function"==typeof Symbol&&Symbol.for,Uc=Wc?Symbol.for("react.memo"):60115,Yc=Wc?Symbol.for("react.forward_ref"):60112,Kc={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Xc={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Jc={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Zc=(($c={})[Yc]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},$c[Uc]=Jc,$c);function Qc(e){return("type"in(t=e)&&t.type.$$typeof)===Uc?Jc:"$$typeof"in e?Zc[e.$$typeof]:Kc;var t}var ed=Object.defineProperty,td=Object.getOwnPropertyNames,rd=Object.getOwnPropertySymbols,nd=Object.getOwnPropertyDescriptor,od=Object.getPrototypeOf,id=Object.prototype;function ad(e,t,r){if("string"!=typeof t){if(id){var n=od(t);n&&n!==id&&ad(e,n,r)}var o=td(t);rd&&(o=o.concat(rd(t)));for(var i=Qc(e),a=Qc(t),s=0;s<o.length;++s){var l=o[s];if(!(l in Xc||r&&r[l]||a&&l in a||i&&l in i)){var u=nd(t,l);try{ed(e,l,u)}catch(e){}}}}return e}function sd(e){return"function"==typeof e}function ld(e){return"object"==typeof e&&"styledComponentId"in e}function ud(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function cd(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function dd(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function pd(e,t,r){if(void 0===r&&(r=!1),!r&&!dd(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=pd(e[n],t[n]);else if(dd(t))for(var n in t)e[n]=pd(e[n],t[n]);return e}function fd(e,t){Object.defineProperty(e,"toString",{value:t})}function hd(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 md=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 hd(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(Mc);return t},e}(),gd=new Map,bd=new Map,vd=1,yd=function(e){if(gd.has(e))return gd.get(e);for(;bd.has(vd);)vd++;var t=vd++;return gd.set(e,t),bd.set(t,e),t},xd=function(e,t){vd=t+1,gd.set(e,t),bd.set(t,e)},Sd="style[".concat(Ec,"][").concat(Rc,'="').concat(Ac,'"]'),Cd=new RegExp("^".concat(Ec,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ed=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)},wd=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Mc),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var l=s.match(Cd);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(xd(c,u),Ed(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},Rd=function(e){for(var t=document.querySelectorAll(Sd),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Ec)!==wc&&(wd(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Ad=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Ec,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Ec,wc),n.setAttribute(Rc,Ac);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Md=function(){function e(e){this.element=Ad(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 hd(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}(),Id=function(){function e(e){this.element=Ad(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}(),kd=Ic,Ld={isServer:!Ic,useCSSOMInjection:!Pc},_d=function(){function e(e,t,r){void 0===e&&(e=_c),void 0===t&&(t={});var n=this;this.options=Eu(Eu({},Ld),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Ic&&kd&&(kd=!1,Rd(this)),fd(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return bd.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(Ec,".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(Mc)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return yd(e)},e.prototype.rehydrate=function(){!this.server&&Ic&&Rd(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(Eu(Eu({},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 Md(r):new Id(r)}(this.options),new md(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(yd(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(yd(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(yd(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Dd=/&/g,Td=/^\s*\/\/.*$/gm;function qd(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=qd(e.children,t)),e}))}function Od(e){var t,r,n,o=void 0===e?_c:e,i=o.options,a=void 0===i?_c:i,s=o.plugins,l=void 0===s?Lc: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===Lu&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Dd,r).replace(n,u))})),a.prefix&&c.push(Sc),c.push(xc);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(Td,""),u=fc(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(u=qd(u,a.namespace));var d,p=[];return yc(u,function(e){var t=Gu(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||hd(15),Hc(e,t.name)}),5381).toString():"",d}var Nd=new _d,jd=Od(),zd=x.createContext({shouldForwardProp:void 0,styleSheet:Nd,stylis:jd});zd.Consumer;var Fd=x.createContext(void 0);function $d(){return C(zd)}function Hd(e){var t=E(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 Od({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})}),[e.enableVendorPrefixes,e.namespace,r]);R((function(){Au(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(zd.Provider,{value:s},x.createElement(Fd.Provider,{value:a},e.children))}var Bd=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=jd);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,fd(this,(function(){throw hd(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=jd),this.name+e.hash},e}(),Gd=function(e){return e>="A"&&e<="Z"};function Vd(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Gd(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var Wd=function(e){return null==e||!1===e||""===e},Ud=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Wd(i)&&(Array.isArray(i)&&i.isCss||sd(i)?n.push("".concat(Vd(o),":"),i,";"):dd(i)?n.push.apply(n,wu(wu(["".concat(o," {")],Ud(i),!1),["}"],!1)):n.push("".concat(Vd(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in Cc||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Yd(e,t,r,n){return Wd(e)?[]:ld(e)?[".".concat(e.styledComponentId)]:sd(e)?!sd(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Yd(e(t),t,r,n):e instanceof Bd?r?(e.inject(r,n),[e.getName(n)]):[e]:dd(e)?Ud(e):Array.isArray(e)?Array.prototype.concat.apply(Lc,e.map((function(e){return Yd(e,t,r,n)}))):[e.toString()];var o}function Kd(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(sd(r)&&!ld(r))return!1}return!0}var Xd=Bc(Ac),Jd=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Kd(e),this.componentId=t,this.baseHash=Hc(Xd,t),this.baseStyle=r,_d.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=ud(n,this.staticRulesId);else{var o=cd(Yd(this.rules,e,t,r)),i=Fc(Hc(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=ud(n,i),this.staticRulesId=i}else{for(var s=Hc(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=cd(Yd(c,e,t,r));s=Hc(s,d+u),l+=d}}if(l){var p=Fc(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(l,".".concat(p),void 0,this.componentId)),n=ud(n,p)}}return n},e}(),Zd=x.createContext(void 0);Zd.Consumer;var Qd={};function ep(e,t,r){var n=ld(e),o=e,i=!Vc(e),a=t.attrs,s=void 0===a?Lc:a,l=t.componentId,u=void 0===l?function(e,t){var r="string"!=typeof e?"sc":Nc(e);Qd[r]=(Qd[r]||0)+1;var n="".concat(r,"-").concat(Gc(Ac+r+Qd[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):l,c=t.displayName,d=void 0===c?function(e){return Vc(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Nc(t.displayName),"-").concat(t.componentId):t.componentId||u,f=n&&o.attrs?o.attrs.concat(s).filter(Boolean):s,h=t.shouldForwardProp;if(n&&o.shouldForwardProp){var m=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;h=function(e,t){return m(e,t)&&g(e,t)}}else h=m}var b=new Jd(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(Zd),c=$d(),d=e.shouldForwardProp||c.shouldForwardProp,p=Dc(t,u,i)||_c,f=function(e,t,r){for(var n,o=Eu(Eu({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=sd(n=e[i])?n(o):n;for(var s in a)o[s]="className"===s?ud(o[s],a[s]):"style"===s?Eu(Eu({},o[s]),a[s]):a[s]}return t.className&&(o.className=ud(o.className,t.className)),o}(n,t,p),h=f.as||l,m={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?m.as=f.forwardedAs:d&&!d(g,h)||(m[g]=f[g]));var b=function(e,t){var r=$d();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=ud(a,s);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),m[Vc(h)&&!Tc.has(h)?"class":"className"]=v,r&&(m.ref=r),A(h,m)}(y,e,t)}v.displayName=d;var y=x.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=h,y.foldedComponentIds=n?ud(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++)pd(e,o[n],!0);return e}({},o.defaultProps,e):e}}),fd(y,(function(){return".".concat(y.styledComponentId)})),i&&ad(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function tp(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 rp=function(e){return Object.assign(e,{isCss:!0})};function np(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(sd(e)||dd(e))return rp(Yd(tp(Lc,wu([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Yd(n):rp(Yd(tp(n,t)))}function op(e,t,r){if(void 0===r&&(r=_c),!t)throw hd(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,np.apply(void 0,wu([n],o,!1)))};return n.attrs=function(n){return op(e,t,Eu(Eu({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return op(e,t,Eu(Eu({},r),n))},n}var ip=function(e){return op(ep,e)},ap=ip;Tc.forEach((function(e){ap[e]=ip(e)}));var sp=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Kd(e),_d.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(cd(Yd(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&&_d.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function lp(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=cd(np.apply(void 0,wu([e],t,!1))),o=Gc(n);return new Bd(o,n)}function up(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}up.propTypes={children:Pt.node,injectFirst:Pt.bool};const cp=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=np.apply(void 0,wu([e],t,!1)),o="sc-global-".concat(Gc(JSON.stringify(n))),i=new sp(n,o),a=function(e){var t=$d(),r=x.useContext(Zd),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,kc,r,o);else{var s=Eu(Eu({},t),{theme:Dc(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}));
|
|
22
22
|
/**
|
|
23
23
|
* @mui/styled-engine-sc v6.4.2
|
|
24
24
|
*
|
|
@@ -26,7 +26,7 @@ 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
|
|
|
26
26
|
* This source code is licensed under the MIT license found in the
|
|
27
27
|
* LICENSE file in the root directory of this source tree.
|
|
28
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`
|
|
29
|
+
function dp(e,t){let r;return r=t?ap(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):ap(e),r}function pp(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}cp.propTypes={defaultTheme:Pt.object,styles:Pt.oneOfType([Pt.array,Pt.string,Pt.object,Pt.func])};var fp=Object.freeze({__proto__:null,GlobalStyles:cp,StyledEngineProvider:up,ThemeContext:Zd,css:np,default:dp,internal_mutateStyles:pp,internal_processStyles:function(e,t){return pp(e,t)},internal_serializeStyles:function(e){return e},keyframes:lp});function hp(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 mp(e){if(S.isValidElement(e)||!hp(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=mp(e[r])})),t}function gp(e,t,r={clone:!0}){const n=r.clone?xt({},e):e;return hp(e)&&hp(t)&&Object.keys(t).forEach((o=>{S.isValidElement(t[o])?n[o]=t[o]:hp(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&hp(e[o])?n[o]=gp(e[o],t[o],r):r.clone?n[o]=hp(t[o])?mp(t[o]):t[o]:n[o]=t[o]})),n}var bp=Object.freeze({__proto__:null,default:gp,isPlainObject:hp});const vp=["values","unit","step"];function yp(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=xr(e,vp),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)=>xt({},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 xt({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 xp={borderRadius:4};function Sp(e,t){return t?gp(e,t,{clone:!1}):e}const Cp={xs:0,sm:600,md:900,lg:1200,xl:1536},Ep={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Cp[e]}px)`};function wp(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Ep;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Ep;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Cp).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Rp(e){if("string"!=typeof e)throw new Error(vu(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Ap=Object.freeze({__proto__:null,default:Rp});function Mp(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 Ip(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Mp(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=Mp(e.theme,n)||{};return wp(e,i,(e=>{let n=Ip(a,o,e);return e===n&&"string"==typeof e&&(n=Ip(a,o,`${t}${"default"===e?"":Rp(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const kp={m:"margin",p:"padding"},Lp={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},_p={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Dp=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!_p[e])return[e];e=_p[e]}const[t,r]=e.split(""),n=kp[t],o=Lp[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Tp=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],qp=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Op(e,t,r,n){var o;const i=null!=(o=Mp(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 Np(e){return Op(e,"spacing",8)}function jp(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 zp(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=jp(t,r),e)),{})}(Dp(r),n);return wp(e,e[r],o)}function Fp(e,t){const r=Np(e.theme);return Object.keys(e).map((n=>zp(e,t,n,r))).reduce(Sp,{})}function $p(e){return Fp(e,Tp)}function Hp(e){return Fp(e,qp)}function Bp(...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]?Sp(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Gp(e){return"number"!=typeof e?e:`${e}px solid`}function Vp(e,t){return Pp({prop:e,themeKey:"borders",transform:t})}$p.propTypes={},$p.filterProps=Tp,Hp.propTypes={},Hp.filterProps=qp;const Wp=Vp("border",Gp),Up=Vp("borderTop",Gp),Yp=Vp("borderRight",Gp),Kp=Vp("borderBottom",Gp),Xp=Vp("borderLeft",Gp),Jp=Vp("borderColor"),Zp=Vp("borderTopColor"),Qp=Vp("borderRightColor"),ef=Vp("borderBottomColor"),tf=Vp("borderLeftColor"),rf=Vp("outline",Gp),nf=Vp("outlineColor"),of=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Op(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:jp(t,e)});return wp(e,e.borderRadius,r)}return null};of.propTypes={},of.filterProps=["borderRadius"],Bp(Wp,Up,Yp,Kp,Xp,Jp,Zp,Qp,ef,tf,of,rf,nf);const af=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Op(e.theme,"spacing",8),r=e=>({gap:jp(t,e)});return wp(e,e.gap,r)}return null};af.propTypes={},af.filterProps=["gap"];const sf=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Op(e.theme,"spacing",8),r=e=>({columnGap:jp(t,e)});return wp(e,e.columnGap,r)}return null};sf.propTypes={},sf.filterProps=["columnGap"];const lf=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Op(e.theme,"spacing",8),r=e=>({rowGap:jp(t,e)});return wp(e,e.rowGap,r)}return null};lf.propTypes={},lf.filterProps=["rowGap"];function uf(e,t){return"grey"===t?t:e}Bp(af,sf,lf,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 cf(e){return e<=1&&0!==e?100*e+"%":e}Bp(Pp({prop:"color",themeKey:"palette",transform:uf}),Pp({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:uf}),Pp({prop:"backgroundColor",themeKey:"palette",transform:uf}));const df=Pp({prop:"width",transform:cf}),pf=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])||Cp[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:cf(t)}};return wp(e,e.maxWidth,t)}return null};pf.filterProps=["maxWidth"];const ff=Pp({prop:"minWidth",transform:cf}),hf=Pp({prop:"height",transform:cf}),mf=Pp({prop:"maxHeight",transform:cf}),gf=Pp({prop:"minHeight",transform:cf});Pp({prop:"size",cssProperty:"width",transform:cf}),Pp({prop:"size",cssProperty:"height",transform:cf});Bp(df,pf,ff,hf,mf,gf,Pp({prop:"boxSizing"}));const bf={border:{themeKey:"borders",transform:Gp},borderTop:{themeKey:"borders",transform:Gp},borderRight:{themeKey:"borders",transform:Gp},borderBottom:{themeKey:"borders",transform:Gp},borderLeft:{themeKey:"borders",transform:Gp},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Gp},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:of},color:{themeKey:"palette",transform:uf},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:uf},backgroundColor:{themeKey:"palette",transform:uf},p:{style:Hp},pt:{style:Hp},pr:{style:Hp},pb:{style:Hp},pl:{style:Hp},px:{style:Hp},py:{style:Hp},padding:{style:Hp},paddingTop:{style:Hp},paddingRight:{style:Hp},paddingBottom:{style:Hp},paddingLeft:{style:Hp},paddingX:{style:Hp},paddingY:{style:Hp},paddingInline:{style:Hp},paddingInlineStart:{style:Hp},paddingInlineEnd:{style:Hp},paddingBlock:{style:Hp},paddingBlockStart:{style:Hp},paddingBlockEnd:{style:Hp},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:af},rowGap:{style:lf},columnGap:{style:sf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:cf},maxWidth:{style:pf},minWidth:{transform:cf},height:{transform:cf},maxHeight:{transform:cf},minHeight:{transform:cf},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function vf(){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=Mp(r,s)||{};if(u)return u(o);return wp(o,t,(t=>{let r=Ip(c,l,t);return t===r&&"string"==typeof t&&(r=Ip(c,l,`${e}${"default"===t?"":Rp(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:bf;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=Sp(l,e(r,o,i,a));else{const e=wp({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=Sp(l,e):l[r]=t({sx:o,theme:i})}else l=Sp(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 yf=vf();function xf(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:{}}yf.filterProps=["sx"];const Sf=["breakpoints","palette","spacing","shape"];function Cf(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=xr(e,Sf),s=yp(r),l=function(e=8){if(e.mui)return e;const t=Np({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=gp({breakpoints:s,direction:"ltr",components:{},palette:xt({mode:"light"},n),spacing:l,shape:xt({},xp,i)},a);return u.applyStyles=xf,u=t.reduce(((e,t)=>gp(e,t)),u),u.unstable_sxConfig=xt({},bf,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return yf({sx:e,theme:this})},u}var Ef=Object.freeze({__proto__:null,default:Cf,private_createBreakpoints:yp,unstable_applyStyles:xf});function wf(e=null){const t=S.useContext(Zd);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Rf=Cf();function Af(e=Rf){return wf(e)}function Mf({styles:e,themeId:t,defaultTheme:r={}}){const n=Af(r),o="function"==typeof e?e(t&&n[t]||n):e;return Al.jsx(cp,{styles:o})}const If=["sx"];function Pf(e){const{sx:t}=e,r=xr(e,If),{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:bf;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 hp(r)?xt({},n,r):n}:xt({},n,t),xt({},o,{sx:i})}var kf=Object.freeze({__proto__:null,default:yf,extendSxProp:Pf,unstable_createStyleFunctionSx:vf,unstable_defaultSxConfig:bf});const Lf=e=>e,_f=(()=>{let e=Lf;return{configure(t){e=t},generate:t=>e(t),reset(){e=Lf}}})();function Df(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=Df(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Tf(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Df(e))&&(n&&(n+=" "),n+=t);return n}const qf=["className","component"];const Of={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 Nf(e,t,r="Mui"){const n=Of[t];return n?`${r}-${n}`:`${_f.generate(e)}-${t}`}function jf(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=Nf(e,t,r)})),n}var zf={exports:{}},Ff={},$f=Symbol.for("react.transitional.element"),Hf=Symbol.for("react.portal"),Bf=Symbol.for("react.fragment"),Gf=Symbol.for("react.strict_mode"),Vf=Symbol.for("react.profiler"),Wf=Symbol.for("react.consumer"),Uf=Symbol.for("react.context"),Yf=Symbol.for("react.forward_ref"),Kf=Symbol.for("react.suspense"),Xf=Symbol.for("react.suspense_list"),Jf=Symbol.for("react.memo"),Zf=Symbol.for("react.lazy"),Qf=Symbol.for("react.offscreen"),eh=Symbol.for("react.client.reference");function th(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case $f:switch(e=e.type){case Bf:case Vf:case Gf:case Kf:case Xf:return e;default:switch(e=e&&e.$$typeof){case Uf:case Yf:case Zf:case Jf:case Wf:return e;default:return t}}case Hf:return t}}}Ff.ContextConsumer=Wf,Ff.ContextProvider=Uf,Ff.Element=$f,Ff.ForwardRef=Yf,Ff.Fragment=Bf,Ff.Lazy=Zf,Ff.Memo=Jf,Ff.Portal=Hf,Ff.Profiler=Vf,Ff.StrictMode=Gf,Ff.Suspense=Kf,Ff.SuspenseList=Xf,Ff.isContextConsumer=function(e){return th(e)===Wf},Ff.isContextProvider=function(e){return th(e)===Uf},Ff.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===$f},Ff.isForwardRef=function(e){return th(e)===Yf},Ff.isFragment=function(e){return th(e)===Bf},Ff.isLazy=function(e){return th(e)===Zf},Ff.isMemo=function(e){return th(e)===Jf},Ff.isPortal=function(e){return th(e)===Hf},Ff.isProfiler=function(e){return th(e)===Vf},Ff.isStrictMode=function(e){return th(e)===Gf},Ff.isSuspense=function(e){return th(e)===Kf},Ff.isSuspenseList=function(e){return th(e)===Xf},Ff.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Bf||e===Vf||e===Gf||e===Kf||e===Xf||e===Qf||"object"==typeof e&&null!==e&&(e.$$typeof===Zf||e.$$typeof===Jf||e.$$typeof===Uf||e.$$typeof===Wf||e.$$typeof===Yf||e.$$typeof===eh||void 0!==e.getModuleId)},Ff.typeOf=th,zf.exports=Ff;var rh=zf.exports;const nh=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function oh(e){const t=`${e}`.match(nh);return t&&t[1]||""}function ih(e,t=""){return e.displayName||e.name||oh(e)||t}function ah(e,t,r){const n=ih(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var sh=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return ih(e,"Component");if("object"==typeof e)switch(e.$$typeof){case rh.ForwardRef:return ah(e,e.render,"ForwardRef");case rh.Memo:return ah(e,e.type,"memo");default:return}}},getFunctionName:oh});function lh(e,t){const r=xt({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=xt({},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]=xt({},i),Object.keys(o).forEach((e=>{r[n][e]=lh(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const uh="undefined"!=typeof window?S.useLayoutEffect:S.useEffect;function ch(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var dh=Object.freeze({__proto__:null,default:ch});function ph(e){if(e.type)return e;if("#"===e.charAt(0))return ph(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(vu(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(vu(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function fh(e,t){return e=ph(e),t=function(e,t=0,r=1){return ch(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 hh(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function mh(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function gh(e){return e&&e.ownerDocument||document}function bh(e){return gh(e).defaultView||window}function vh(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let yh=0;const xh=S["useId".toString()];function Sh(e){if(void 0!==xh){return xh()}return function(e){const[t,r]=S.useState(e),n=t;return S.useEffect((()=>{null==t&&(yh+=1,r(`mui-${yh}`))}),[t]),n}(e)}function Ch({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 Eh(e){const t=S.useRef(e);return uh((()=>{t.current=e})),S.useRef(((...e)=>(0,t.current)(...e))).current}function wh(...e){return S.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{vh(e,t)}))}),e)}const Rh={};const Ah=[];class Mh{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Mh}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Ih(){const e=function(e,t){const r=S.useRef(Rh);return r.current===Rh&&(r.current=e(t)),r}(Mh.create).current;var t;return t=e.disposeEffect,S.useEffect(t,Ah),e}let Ph=!0,kh=!1;const Lh=new Mh,_h={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 Dh(e){e.metaKey||e.altKey||e.ctrlKey||(Ph=!0)}function Th(){Ph=!1}function qh(){"hidden"===this.visibilityState&&kh&&(Ph=!0)}function Oh(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Ph||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!_h[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Nh(){const e=S.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Dh,!0),t.addEventListener("mousedown",Th,!0),t.addEventListener("pointerdown",Th,!0),t.addEventListener("touchstart",Th,!0),t.addEventListener("visibilitychange",qh,!0))}),[]),t=S.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Oh(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(kh=!0,Lh.start(100,(()=>{kh=!1})),t.current=!1,!0)},ref:e}}function jh(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function zh(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 Fh(e){return"string"==typeof e}function $h(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 Hh(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 Bh=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Gh(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=xr(e,Bh),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=Tf(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=xt({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=xt({},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=$h(xt({},o,n)),s=Hh(n),l=Hh(o),u=t(a),c=Tf(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=xt({},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=xt({},u,r,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(xt({},a,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||Fh(e)?t:xt({},t,{ownerState:xt({},t.ownerState,r)})}(r,xt({},l,{ref:wh(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function Vh(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 Wh=S.createContext(null);function Uh(){return S.useContext(Wh)}var Yh="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Kh(e){const{children:t,theme:r}=e,n=Uh(),o=S.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return xt({},e,t)}(n,r);return null!=e&&(e[Yh]=null!==n),e}),[r,n]);return Al.jsx(Wh.Provider,{value:o,children:t})}const Xh=["value"],Jh=S.createContext();function Zh(e){let{value:t}=e,r=xr(e,Xh);return Al.jsx(Jh.Provider,xt({value:null==t||t},r))}const Qh=S.createContext(void 0);function em({value:e,children:t}){return Al.jsx(Qh.Provider,{value:e,children:t})}function tm({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?lh(o.defaultProps,n):o.styleOverrides||o.variants?n:lh(o,n)}({props:e,name:t,theme:{components:S.useContext(Qh)}})}const rm={};function nm(e,t,r,n=!1){return S.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?xt({},t,{[e]:i}):i;return n?()=>a:a}return xt({},t,e?{[e]:r}:r)}),[e,t,r,n])}function om(e){const{children:t,theme:r,themeId:n}=e,o=wf(rm),i=Uh()||rm,a=nm(n,o,r),s=nm(n,i,r,!0),l="rtl"===a.direction;return Al.jsx(Kh,{theme:s,children:Al.jsx(Zd.Provider,{value:a,children:Al.jsx(Zh,{value:l,children:Al.jsx(em,{value:null==a?void 0:a.components,children:t})})})})}function im(e,t){return Su({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var am,sm={},lm={exports:{}};(am=lm).exports=function(e){return e&&e.__esModule?e:{default:e}},am.exports.__esModule=!0,am.exports.default=am.exports;var um=lm.exports,cm=Rt(yu),dm=Rt(dh),pm=um;Object.defineProperty(sm,"__esModule",{value:!0});var fm=sm.alpha=Am;sm.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=Sm(e),a=Sm(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Em({type:"rgb",values:s})},sm.colorChannel=void 0;var hm=sm.darken=Mm;sm.decomposeColor=Sm,sm.emphasize=Pm;var mm=sm.getContrastRatio=function(e,t){const r=Rm(e),n=Rm(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};sm.getLuminance=Rm,sm.hexToRgb=xm,sm.hslToRgb=wm;var gm=sm.lighten=Im;sm.private_safeAlpha=function(e,t,r){try{return Am(e,t)}catch(t){return e}},sm.private_safeColorChannel=void 0,sm.private_safeDarken=function(e,t,r){try{return Mm(e,t)}catch(t){return e}},sm.private_safeEmphasize=function(e,t,r){try{return Pm(e,t)}catch(t){return e}},sm.private_safeLighten=function(e,t,r){try{return Im(e,t)}catch(t){return e}},sm.recomposeColor=Em,sm.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Sm(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 bm=pm(cm),vm=pm(dm);function ym(e,t=0,r=1){return(0,vm.default)(e,t,r)}function xm(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 Sm(e){if(e.type)return e;if("#"===e.charAt(0))return Sm(xm(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,bm.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,bm.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const Cm=e=>{const t=Sm(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};sm.colorChannel=Cm;function Em(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 wm(e){e=Sm(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])),Em({type:s,values:l})}function Rm(e){let t="hsl"===(e=Sm(e)).type||"hsla"===e.type?Sm(wm(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 Am(e,t){return e=Sm(e),t=ym(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Em(e)}function Mm(e,t){if(e=Sm(e),t=ym(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 Em(e)}function Im(e,t){if(e=Sm(e),t=ym(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 Em(e)}function Pm(e,t=.15){return Rm(e)>.5?Mm(e,t):Im(e,t)}sm.private_safeColorChannel=(e,t)=>{try{return Cm(e)}catch(t){return e}};const km=["mode","contrastThreshold","tonalOffset"],Lm={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:jl.white,default:jl.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}},_m={text:{primary:jl.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:jl.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 Dm(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=gm(e.main,o):"dark"===t&&(e.dark=hm(e.main,i)))}function Tm(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Cu(e,km),i=e.primary||function(e="light"){return"dark"===e?{main:Jl,light:Xl,dark:Zl}:{main:Ql,light:Zl,dark:eu}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Vl,light:Gl,dark:Ul}:{main:Yl,light:Wl,dark:Kl}}(t),s=e.error||function(e="light"){return"dark"===e?{main:$l,light:zl,dark:Hl}:{main:Hl,light:Fl,dark:Bl}}(t),l=e.info||function(e="light"){return"dark"===e?{main:ru,light:tu,dark:ou}:{main:ou,light:nu,dark:iu}}(t),u=e.success||function(e="light"){return"dark"===e?{main:su,light:au,dark:uu}:{main:cu,light:lu,dark:du}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:fu,light:pu,dark:mu}:{main:"#ed6c02",light:hu,dark:gu}}(t);function d(e){return mm(e,_m.text.primary)>=r?_m.text.primary:Lm.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Su({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(vu(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(vu(12,t?` (${t})`:"",JSON.stringify(e.main)));return Dm(e,"light",o,n),Dm(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:_m,light:Lm};return gp(Su({common:Su({},jl),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:bu,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const qm=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Om={textTransform:"uppercase"},Nm='"Roboto", "Helvetica", "Arial", sans-serif';function jm(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Nm,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Cu(r,qm),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return Su({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===Nm?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,Om),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Om),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return gp(Su({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function zm(...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 Fm=["none",zm(0,2,1,-1,0,1,1,0,0,1,3,0),zm(0,3,1,-2,0,2,2,0,0,1,5,0),zm(0,3,3,-2,0,3,4,0,0,1,8,0),zm(0,2,4,-1,0,4,5,0,0,1,10,0),zm(0,3,5,-1,0,5,8,0,0,1,14,0),zm(0,3,5,-1,0,6,10,0,0,1,18,0),zm(0,4,5,-2,0,7,10,1,0,2,16,1),zm(0,5,5,-3,0,8,10,1,0,3,14,2),zm(0,5,6,-3,0,9,12,1,0,3,16,2),zm(0,6,6,-3,0,10,14,1,0,4,18,3),zm(0,6,7,-4,0,11,15,1,0,4,20,3),zm(0,7,8,-4,0,12,17,2,0,5,22,4),zm(0,7,8,-4,0,13,19,2,0,5,24,4),zm(0,7,9,-4,0,14,21,2,0,5,26,4),zm(0,8,9,-5,0,15,22,2,0,6,28,5),zm(0,8,10,-5,0,16,24,2,0,6,30,5),zm(0,8,11,-5,0,17,26,2,0,6,32,5),zm(0,9,11,-5,0,18,28,2,0,7,34,6),zm(0,9,12,-6,0,19,29,2,0,7,36,6),zm(0,10,13,-6,0,20,31,3,0,8,38,7),zm(0,10,13,-6,0,21,33,3,0,8,40,7),zm(0,10,14,-6,0,22,35,3,0,8,42,7),zm(0,11,14,-7,0,23,36,3,0,9,44,8),zm(0,11,15,-7,0,24,38,3,0,9,46,8)],$m=["duration","easing","delay"],Hm={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)"},Bm={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Gm(e){return`${Math.round(e)}ms`}function Vm(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Wm(e){const t=Su({},Hm,e.easing),r=Su({},Bm,e.duration);return Su({getAutoHeightDuration:Vm,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Cu(n,$m),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Gm(o)} ${i} ${"string"==typeof a?a:Gm(a)}`)).join(",")}},e,{easing:t,duration:r})}const Um={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ym=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Km(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Cu(e,Ym);if(e.vars&&void 0===e.generateCssVars)throw new Error(vu(18));const s=Tm(n),l=Cf(e);let u=gp(l,{mixins:im(l.breakpoints,r),palette:s,shadows:Fm.slice(),typography:jm(s,i),transitions:Wm(o),zIndex:Su({},Um)});return u=gp(u,a),u=t.reduce(((e,t)=>gp(e,t)),u),u.unstable_sxConfig=Su({},bf,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return yf({sx:e,theme:this})},u}const Xm=Km();function Jm(){const e=Af(Xm);return e[xu]||e}var Zm,Qm={},eg={exports:{}};function tg(){return Zm||(Zm=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}(eg)),eg.exports}var rg,ng={exports:{}};function og(){return rg||(rg=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}(ng)),ng.exports}var ig=Rt(fp),ag=Rt(bp),sg=Rt(Ap),lg=Rt(sh),ug=Rt(Ef),cg=Rt(kf),dg=um;Object.defineProperty(Qm,"__esModule",{value:!0});var pg=Qm.default=function(e={}){const{themeId:t,defaultTheme:r=wg,rootShouldForwardProp:n=Eg,slotShouldForwardProp:o=Eg}=e,i=e=>(0,vg.default)((0,fg.default)({},e,{theme:Ag((0,fg.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,mg.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Mg(Rg(l))}=a,p=(0,hg.default)(a,Sg),f=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,h=c||!1;let m=Eg;"Root"===l||"root"===l?m=n:l?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,mg.default)(e,(0,fg.default)({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,gg.isPlainObject)(e)?n=>Ig(e,(0,fg.default)({},n,{theme:Ag({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=Ag((0,fg.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]=Ig(r,(0,fg.default)({},e,{theme:n}))})),d(e,i)})),s&&!f&&l.push((e=>{var n;const o=Ag((0,fg.default)({},e,{defaultTheme:r,themeId:t}));return Ig({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,fg.default)({},e,{theme:o}))})),h||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}};Qm.shouldForwardProp=Eg,Qm.systemDefaultTheme=void 0;var fg=dg(tg()),hg=dg(og()),mg=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=Cg(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}(ig),gg=ag;dg(sg),dg(lg);var bg=dg(ug),vg=dg(cg);const yg=["ownerState"],xg=["variants"],Sg=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Cg(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(Cg=function(e){return e?r:t})(e)}function Eg(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const wg=Qm.systemDefaultTheme=(0,bg.default)(),Rg=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Ag({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Mg(e){return e?(t,r)=>r[e]:null}function Ig(e,t){let{ownerState:r}=t,n=(0,hg.default)(t,yg);const o="function"==typeof e?e((0,fg.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>Ig(e,(0,fg.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,hg.default)(o,xg);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,fg.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,fg.default)({ownerState:r},n,r)):e.style))})),t}return o}function Pg(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const kg=e=>Pg(e)&&"classes"!==e,Lg=pg({themeId:xu,defaultTheme:Xm,rootShouldForwardProp:kg}),_g=["theme"];function Dg(e){let{theme:t}=e,r=Cu(e,_g);const n=t[xu];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=Su({},n,{vars:null}):t&&!t.vars&&(o=Su({},t,{vars:null}))),Al.jsx(om,Su({},r,{themeId:n?xu:void 0,theme:o}))}const Tg=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function qg(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=qg(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Og(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=qg(e))&&(n&&(n+=" "),n+=t);return n}function Ng(e){return tm(e)}function jg(e){return Nf("MuiSvgIcon",e)}jf("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const zg=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Fg=Lg("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Rp(r.color)}`],t[`fontSize${Rp(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,s,l,u,c,d,p,f,h;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==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),$g=S.forwardRef((function(e,t){const r=Ng({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=Cu(r,zg),f=S.isValidElement(n)&&"svg"===n.type,h=Su({},r,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),m={};u||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return zh({root:["root","inherit"!==t&&`color${Rp(t)}`,`fontSize${Rp(r)}`]},jg,n)})(h);return Al.jsxs(Fg,Su({as:a,className:Og(g.root,o),focusable:"false",color:l,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},m,p,f&&n.props,{ownerState:h,children:[f?n.props.children:n,c?Al.jsx("title",{children:c}):null]}))}));$g.muiName="SvgIcon";var Hg=!1,Bg=x.createContext(null),Gg="unmounted",Vg="exited",Wg="entering",Ug="entered",Yg="exiting",Kg=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=Vg,n.appearStatus=Wg):o=Ug:o=t.unmountOnExit||t.mountOnEnter?Gg:Vg,n.state={status:o},n.nextCallback=null,n}fo(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Gg?{status:Vg}: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!==Wg&&r!==Ug&&(t=Wg):r!==Wg&&r!==Ug||(t=Yg)}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===Wg){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:F.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Vg&&this.setState({status:Gg})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[F.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||Hg?this.safeSetState({status:Ug},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Wg},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Ug},(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:F.findDOMNode(this);t&&!Hg?(this.props.onExit(n),this.safeSetState({status:Yg},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Vg},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Vg},(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:F.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===Gg)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=xr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(Bg.Provider,{value:null},"function"==typeof r?r(e,n):x.cloneElement(x.Children.only(r),n))},t}(x.Component);function Xg(){}function Jg(e,t){var r=Object.create(null);return e&&P.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&M(e)?t(e):e}(e)})),r}function Zg(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Qg(e,t,r){var n=Jg(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(M(a)){var s=i in t,l=i in n,u=t[i],c=M(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&M(u)&&(o[i]=I(a,{onExited:r.bind(null,a),in:u.props.in,exit:Zg(a,"exit",e),enter:Zg(a,"enter",e)})):o[i]=I(a,{in:!1}):o[i]=I(a,{onExited:r.bind(null,a),in:!0,exit:Zg(a,"exit",e),enter:Zg(a,"enter",e)})}})),o}Kg.contextType=Bg,Kg.propTypes={},Kg.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Xg,onEntering:Xg,onEntered:Xg,onExit:Xg,onExiting:Xg,onExited:Xg},Kg.UNMOUNTED=Gg,Kg.EXITED=Vg,Kg.ENTERING=Wg,Kg.ENTERED=Ug,Kg.EXITING=Yg;var eb=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},tb=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(ho(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}fo(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,Jg(r.children,(function(e){return I(e,{onExited:n.bind(null,e),in:!0,appear:Zg(e,"appear",r),enter:Zg(e,"enter",r),exit:Zg(e,"exit",r)})}))):Qg(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=Jg(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=xt({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=xr(e,["component","childFactory"]),o=this.state.contextValue,i=eb(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?x.createElement(Bg.Provider,{value:o},i):x.createElement(Bg.Provider,{value:o},x.createElement(t,n,i))},t}(x.Component);tb.propTypes={},tb.defaultProps={component:"div",childFactory:function(e){return e}};const rb=e=>e.scrollTop;function nb(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 ob(e){return Nf("MuiPaper",e)}jf("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 ib=["className","component","elevation","square","variant"],ab=Lg("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 Su({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&&Su({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${fm("#fff",Tg(t.elevation))}, ${fm("#fff",Tg(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),sb=S.forwardRef((function(e,t){const r=Ng({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=Cu(r,ib),u=Su({},r,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return zh({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},ob,o)})(u);return Al.jsx(ab,Su({as:o,ownerState:u,className:Og(c.root,n),ref:t},l))}));const lb=jf("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ub=["center","classes","className"];let cb,db,pb,fb,hb=e=>e;const mb=lp(cb||(cb=hb`
|
|
30
30
|
0% {
|
|
31
31
|
transform: scale(0);
|
|
32
32
|
opacity: 0.1;
|
|
@@ -36,7 +36,7 @@ function fp(e,t){let r;return r=t?lp(e).withConfig({displayName:t.label,shouldFo
|
|
|
36
36
|
transform: scale(1);
|
|
37
37
|
opacity: 0.3;
|
|
38
38
|
}
|
|
39
|
-
`)),
|
|
39
|
+
`)),gb=lp(db||(db=hb`
|
|
40
40
|
0% {
|
|
41
41
|
opacity: 1;
|
|
42
42
|
}
|
|
@@ -44,7 +44,7 @@ function fp(e,t){let r;return r=t?lp(e).withConfig({displayName:t.label,shouldFo
|
|
|
44
44
|
100% {
|
|
45
45
|
opacity: 0;
|
|
46
46
|
}
|
|
47
|
-
`)),
|
|
47
|
+
`)),bb=lp(pb||(pb=hb`
|
|
48
48
|
0% {
|
|
49
49
|
transform: scale(1);
|
|
50
50
|
}
|
|
@@ -56,7 +56,7 @@ function fp(e,t){let r;return r=t?lp(e).withConfig({displayName:t.label,shouldFo
|
|
|
56
56
|
100% {
|
|
57
57
|
transform: scale(1);
|
|
58
58
|
}
|
|
59
|
-
`)),
|
|
59
|
+
`)),vb=Lg("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),yb=Lg((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=Og(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=Og(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]),Al.jsx("span",{className:p,style:f,children:Al.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(fb||(fb=hb`
|
|
60
60
|
opacity: 0;
|
|
61
61
|
position: absolute;
|
|
62
62
|
|
|
@@ -99,7 +99,7 @@ function fp(e,t){let r;return r=t?lp(e).withConfig({displayName:t.label,shouldFo
|
|
|
99
99
|
animation-iteration-count: infinite;
|
|
100
100
|
animation-delay: 200ms;
|
|
101
101
|
}
|
|
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["""]="34",n["&"]="38",n["<"]="60",n[">"]="62",n[" "]="160",n["¡"]="161",n["¢"]="162",n["£"]="163",n["¤"]="164",n["¥"]="165",n["¦"]="166",n["§"]="167",n["¨"]="168",n["©"]="169",n["ª"]="170",n["«"]="171",n["¬"]="172",n["­"]="173",n["®"]="174",n["¯"]="175",n["°"]="176",n["±"]="177",n["²"]="178",n["³"]="179",n["´"]="180",n["µ"]="181",n["¶"]="182",n["·"]="183",n["¸"]="184",n["¹"]="185",n["º"]="186",n["»"]="187",n["¼"]="188",n["½"]="189",n["¾"]="190",n["¿"]="191",n["À"]="192",n["Á"]="193",n["Â"]="194",n["Ã"]="195",n["Ä"]="196",n["Å"]="197",n["Æ"]="198",n["Ç"]="199",n["È"]="200",n["É"]="201",n["Ê"]="202",n["Ë"]="203",n["Ì"]="204",n["Í"]="205",n["Î"]="206",n["Ï"]="207",n["Ð"]="208",n["Ñ"]="209",n["Ò"]="210",n["Ó"]="211",n["Ô"]="212",n["Õ"]="213",n["Ö"]="214",n["×"]="215",n["Ø"]="216",n["Ù"]="217",n["Ú"]="218",n["Û"]="219",n["Ü"]="220",n["Ý"]="221",n["Þ"]="222",n["ß"]="223",n["à"]="224",n["á"]="225",n["â"]="226",n["ã"]="227",n["ä"]="228",n["å"]="229",n["æ"]="230",n["ç"]="231",n["è"]="232",n["é"]="233",n["ê"]="234",n["ë"]="235",n["ì"]="236",n["í"]="237",n["î"]="238",n["ï"]="239",n["ð"]="240",n["ñ"]="241",n["ò"]="242",n["ó"]="243",n["ô"]="244",n["õ"]="245",n["ö"]="246",n["÷"]="247",n["ø"]="248",n["ù"]="249",n["ú"]="250",n["û"]="251",n["ü"]="252",n["ý"]="253",n["þ"]="254",n["ÿ"]="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["¬in"]="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
|
+
`),lb.rippleVisible,mb,550,(({theme:e})=>e.transitions.easing.easeInOut),lb.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),lb.child,lb.childLeaving,gb,550,(({theme:e})=>e.transitions.easing.easeInOut),lb.childPulsate,bb,(({theme:e})=>e.transitions.easing.easeInOut)),xb=S.forwardRef((function(e,t){const r=Ng({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Cu(r,ub),[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=Ih(),f=S.useRef(null),h=S.useRef(null),m=S.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l((e=>[...e,Al.jsx(yb,{classes:{ripple:Og(o.ripple,lb.ripple),rippleVisible:Og(o.rippleVisible,lb.rippleVisible),ripplePulsate:Og(o.ripplePulsate,lb.ripplePulsate),child:Og(o.child,lb.child),childLeaving:Og(o.childLeaving,lb.childLeaving),childPulsate:Og(o.childPulsate,lb.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:h.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=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,m,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]),Al.jsx(vb,Su({className:Og(lb.root,o.root,i),ref:h},a,{children:Al.jsx(tb,{component:null,exit:!0,children:s})}))}));function Sb(e){return Nf("MuiButtonBase",e)}const Cb=jf("MuiButtonBase",["root","disabled","focusVisible"]),Eb=["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"],wb=Lg("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"},[`&.${Cb.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Rb=S.forwardRef((function(e,t){const r=Ng({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:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:x,onMouseDown:C,onMouseLeave:E,onMouseUp:w,onTouchEnd:R,onTouchMove:A,onTouchStart:M,tabIndex:I=0,TouchRippleProps:P,touchRippleRef:k,type:L}=r,_=Cu(r,Eb),D=S.useRef(null),T=S.useRef(null),q=wh(T,k),{isFocusVisibleRef:O,onFocus:N,onBlur:j,ref:z}=Nh(),[F,$]=S.useState(!1);l&&F&&$(!1),S.useImperativeHandle(n,(()=>({focusVisible:()=>{$(!0),D.current.focus()}})),[]);const[H,B]=S.useState(!1);S.useEffect((()=>{B(!0)}),[]);const G=H&&!u&&!l;function V(e,t,r=c){return Eh((n=>{t&&t(n);return!r&&T.current&&T.current[e](n),!0}))}S.useEffect((()=>{F&&d&&!u&&H&&T.current.pulsate()}),[u,d,F,H]);const W=V("start",C),U=V("stop",m),Y=V("stop",g),K=V("stop",w),X=V("stop",(e=>{F&&e.preventDefault(),E&&E(e)})),J=V("start",M),Z=V("stop",R),Q=V("stop",A),ee=V("stop",(e=>{j(e),!1===O.current&&$(!1),f&&f(e)}),!1),te=Eh((e=>{D.current||(D.current=e.currentTarget),N(e),!0===O.current&&($(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=D.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=S.useRef(!1),oe=Eh((e=>{d&&!ne.current&&F&&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(),h&&h(e))})),ie=Eh((e=>{d&&" "===e.key&&T.current&&F&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(_.href||_.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===L?"button":L,se.disabled=l):(_.href||_.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=wh(t,z,D),ue=Su({},r,{centerRipple:o,component:s,disabled:l,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:F}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=zh({root:["root",t&&"disabled",r&&"focusVisible"]},Sb,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Al.jsxs(wb,Su({as:ae,className:Og(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,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:I,type:L},se,_,{children:[i,G?Al.jsx(xb,Su({ref:q,center:o},P)):null]}))}));function Ab(e){return Nf("MuiTypography",e)}jf("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Mb=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Ib=Lg("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${Rp(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Su({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"},kb={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Lb=S.forwardRef((function(e,t){const r=Ng({props:e,name:"MuiTypography"}),n=(e=>kb[e]||e)(r.color),o=Pf(Su({},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=Cu(o,Mb),h=Su({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=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 zh({root:["root",i,"inherit"!==e.align&&`align${Rp(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},Ab,a)})(h);return Al.jsx(Ib,Su({as:m,ref:t,ownerState:h,className:Og(g.root,a)},f))}));const _b=S.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=S.useState(null),s=wh(S.isValidElement(r)?Vh(r):null,t);if(uh((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),uh((()=>{if(i&&!o)return vh(t,i),()=>{vh(t,null)}}),[t,i,o]),o){if(S.isValidElement(r)){const e={ref:s};return S.cloneElement(r,e)}return Al.jsx(S.Fragment,{children:r})}return Al.jsx(S.Fragment,{children:i?$.createPortal(r,i):i})})),Db=["onChange","maxRows","minRows","style","value"];function Tb(e){return parseInt(e,10)||0}const qb={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Ob(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Nb=S.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=Cu(e,Db),{current:l}=S.useRef(null!=a),u=S.useRef(null),c=wh(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=bh(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=Tb(i.paddingBottom)+Tb(i.paddingTop),l=Tb(i.borderBottomWidth)+Tb(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]),h=Eh((()=>{const e=u.current,t=f();if(!e||!t||Ob(t))return!1;const r=t.outerHeightStyle;return null!=d.current&&d.current!==r})),m=S.useCallback((()=>{const e=u.current,t=f();if(!e||!t||Ob(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);uh((()=>{const e=mh(m),t=null==u?void 0:u.current;if(!t)return;const r=bh(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver((()=>{h()&&(n.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame((()=>{n.observe(t)})))})),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),r.removeEventListener("resize",e),n&&n.disconnect()}}),[f,m,h]),uh((()=>{m()}));return Al.jsxs(S.Fragment,{children:[Al.jsx("textarea",Su({value:a,onChange:e=>{l||m(),r&&r(e)},ref:c,rows:o,style:i},s)),Al.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:Su({},qb,i,{paddingTop:0,paddingBottom:0})})]})}));function jb({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 zb=S.createContext(void 0);function Fb(){return S.useContext(zb)}function $b(e){return Al.jsx(Mf,Su({},e,{defaultTheme:Xm,themeId:xu}))}function Hb(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Bb(e,t=!1){return e&&(Hb(e.value)&&""!==e.value||t&&Hb(e.defaultValue)&&""!==e.defaultValue)}function Gb(e){return Nf("MuiInputBase",e)}const Vb=jf("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Wb=["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"],Ub=(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${Rp(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Yb=(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]},Kb=Lg("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ub})((({theme:e,ownerState:t})=>Su({},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",[`&.${Vb.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Su({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Xb=Lg("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Yb})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=Su({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 Su({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] + .${Vb.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},[`&.${Vb.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"})})),Jb=Al.jsx($b,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Zb=S.forwardRef((function(e,t){var r;const n=Ng({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:h=!1,id:m,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:y,minRows:x,multiline:C=!1,name:E,onBlur:w,onChange:R,onClick:A,onFocus:M,onKeyDown:I,onKeyUp:P,placeholder:k,readOnly:L,renderSuffix:_,rows:D,slotProps:T={},slots:q={},startAdornment:O,type:N="text",value:j}=n,z=Cu(n,Wb),F=null!=b.value?b.value:j,{current:$}=S.useRef(null!=F),H=S.useRef(),B=S.useCallback((e=>{}),[]),G=wh(H,v,b.ref,B),[V,W]=S.useState(!1),U=Fb(),Y=jb({props:n,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:V,S.useEffect((()=>{!U&&d&&V&&(W(!1),w&&w())}),[U,d,V,w]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=S.useCallback((e=>{Bb(e)?K&&K():X&&X()}),[K,X]);uh((()=>{$&&J({value:F})}),[F,J,$]);S.useEffect((()=>{J(H.current)}),[]);let Z=g,Q=b;C&&"input"===Z&&(Q=Su(D?{type:void 0,minRows:D,maxRows:D}:{type:void 0,maxRows:y,minRows:x},Q),Z=Nb);S.useEffect((()=>{U&&U.setAdornedStart(Boolean(O))}),[U,O]);const ee=Su({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:U,fullWidth:h,hiddenLabel:Y.hiddenLabel,multiline:C,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:h}=e;return zh({root:["root",`color${Rp(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${Rp(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Gb,t)})(ee),re=q.root||l.Root||Kb,ne=T.root||u.root||{},oe=q.input||l.Input||Xb;return Q=Su({},Q,null!=(r=T.input)?r:u.input),Al.jsxs(S.Fragment,{children:[!p&&Jb,Al.jsxs(re,Su({},ne,!Fh(re)&&{ownerState:Su({},ee,ne.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),A&&A(e)}},z,{className:Og(te.root,ne.className,s,L&&"MuiInputBase-readOnly"),children:[O,Al.jsx(zb.Provider,{value:null,children:Al.jsx(oe,Su({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:E,placeholder:k,readOnly:L,required:Y.required,rows:D,value:F,onKeyDown:I,onKeyUp:P,type:N},Q,!Fh(oe)&&{as:Z,ownerState:Su({},ee,Q.ownerState)},{ref:G,className:Og(te.input,Q.className,L&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),U&&U.onBlur?U.onBlur(e):W(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||H.current;if(null==t)throw new Error(vu(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(M&&M(e),b.onFocus&&b.onFocus(e),U&&U.onFocus?U.onFocus(e):W(!0))}}))}),f,_?_(Su({},Y,{startAdornment:O})):null]}))]})}));function Qb(e){return Nf("MuiInput",e)}const ev=Su({},Vb,jf("MuiInput",["root","underline","input"]));function tv(e){return Nf("MuiOutlinedInput",e)}const rv=Su({},Vb,jf("MuiOutlinedInput",["root","notchedOutline","input"]));function nv(e){return Nf("MuiFilledInput",e)}const ov=Su({},Vb,jf("MuiFilledInput",["root","underline","input"]));var iv=function(e,t){function r(r,n){return Al.jsx($g,Su({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=$g.muiName,S.memo(S.forwardRef(r))}(Al.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const av=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],sv={entering:{opacity:1},entered:{opacity:1}},lv=S.forwardRef((function(e,t){const r=Jm(),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:h,style:m,timeout:g=n,TransitionComponent:b=Kg}=e,v=Cu(e,av),y=S.useRef(null),x=wh(y,Vh(a),t),C=e=>t=>{if(e){const r=y.current;void 0===t?e(r):e(r,t)}},E=C(d),w=C(((e,t)=>{rb(e);const n=nb({style:m,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=C(c),A=C(h),M=C((e=>{const t=nb({style:m,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)})),I=C(f);return Al.jsx(b,Su({appear:i,in:l,nodeRef:y,onEnter:w,onEntered:R,onEntering:E,onExit:M,onExited:I,onExiting:A,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>S.cloneElement(a,Su({style:Su({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},sv[e],m,a.props.style),ref:x},t))}))}));function uv(e){return Nf("MuiBackdrop",e)}jf("MuiBackdrop",["root","invisible"]);const cv=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],dv=Lg("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>Su({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"}))),pv=S.forwardRef((function(e,t){var r,n,o;const i=Ng({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=lv,transitionDuration:g}=i,b=Cu(i,cv),v=Su({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return zh({root:["root",r&&"invisible"]},uv,t)})(v),x=null!=(r=f.root)?r:c.root;return Al.jsx(m,Su({in:p,timeout:g},b,{children:Al.jsx(dv,Su({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:l,className:Og(y.root,s,null==x?void 0:x.className),ownerState:Su({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),fv=jf("MuiBox",["root"]),hv=Km(),mv=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=dp("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(yf);return S.forwardRef((function(e,a){const s=Af(r),l=Pf(e),{className:u,component:c="div"}=l,d=xr(l,qf);return Al.jsx(i,xt({as:c,ref:a,className:Tf(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:xu,defaultTheme:hv,defaultClassName:fv.root,generateClassName:_f.generate});function gv(e){return Nf("MuiButton",e)}const bv=jf("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"]),vv=S.createContext({}),yv=S.createContext(void 0),xv=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Sv=e=>Su({},"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}}),Cv=Lg(Rb,{shouldForwardProp:e=>kg(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Rp(r.color)}`],t[`size${Rp(r.size)}`],t[`${r.variant}Size${Rp(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 Su({},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":Su({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:fm(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})`:fm(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})`:fm(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":Su({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${bv.focusVisible}`]:Su({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${bv.disabled}`]:Su({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 ${fm(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"},[`&.${bv.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${bv.disabled}`]:{boxShadow:"none"}})),Ev=Lg("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Rp(r.size)}`]]}})((({ownerState:e})=>Su({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Sv(e)))),wv=Lg("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Rp(r.size)}`]]}})((({ownerState:e})=>Su({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Sv(e)))),Rv=S.forwardRef((function(e,t){const r=S.useContext(vv),n=S.useContext(yv),o=Ng({props:lh(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:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=o,y=Cu(o,xv),x=Su({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),C=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return Su({},a,zh({root:["root",i,`${i}${Rp(t)}`,`size${Rp(o)}`,`${i}Size${Rp(o)}`,`color${Rp(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Rp(o)}`],endIcon:["icon","endIcon",`iconSize${Rp(o)}`]},gv,a))})(x),E=g&&Al.jsx(Ev,{className:C.startIcon,ownerState:x,children:g}),w=p&&Al.jsx(wv,{className:C.endIcon,ownerState:x,children:p}),R=n||"";return Al.jsxs(Cv,Su({ownerState:x,className:Og(r.className,C.root,l,R),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:Og(C.focusVisible,f),ref:t,type:b},y,{classes:C,children:[E,i,w]}))}));function Av(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Mv(e){return parseInt(bh(e).getComputedStyle(e).paddingRight,10)||0}function Iv(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&&Av(e,o)}))}function Pv(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function kv(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=gh(e);return t.body===e?bh(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=jh(gh(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Mv(n)+e}px`;const t=gh(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Mv(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=gh(n).body;else{const t=n.parentElement,r=bh(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 Lv=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function _v(e){const t=[],r=[];return Array.from(e.querySelectorAll(Lv)).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 Dv(){return!0}function Tv(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=_v,isEnabled:a=Dv,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),h=S.useRef(null),m=wh(Vh(t),h),g=S.useRef(null);S.useEffect((()=>{s&&h.current&&(f.current=!r)}),[r,s]),S.useEffect((()=>{if(!s||!h.current)return;const e=gh(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}}),[s]),S.useEffect((()=>{if(!s||!h.current)return;const e=gh(h.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(l.current=!0,c.current&&c.current.focus())},r=()=>{const t=h.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(h.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 Al.jsxs(S.Fragment,{children:[Al.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),S.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),Al.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const qv=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&&Av(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);Iv(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=kv(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&&Av(e.modalRef,t),Iv(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&&Av(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Ov(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=qv,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=S.useRef({}),f=S.useRef(null),h=S.useRef(null),m=wh(h,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=h.current,p.current.mount=f.current,p.current),C=()=>{o.mount(x(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},E=Eh((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||gh(f.current).body;o.add(x(),e),h.current&&C()})),w=S.useCallback((()=>o.isTopModal(x())),[o]),R=Eh((e=>{f.current=e,e&&(c&&w()?C():h.current&&Av(h.current,y))})),A=S.useCallback((()=>{o.remove(x(),y)}),[y,o]);S.useEffect((()=>()=>{A()}),[A]),S.useEffect((()=>{c?E():v&&i||A()}),[c,A,v,i,E]);const M=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")))},I=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=$h(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=Su({},r,t);return Su({role:"presentation"},n,{onKeyDown:M(n),ref:m})},getBackdropProps:(e={})=>Su({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:hh((()=>{b(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:hh((()=>{b(!0),s&&s(),i&&A()}),null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}function Nv(e){return Nf("MuiModal",e)}jf("MuiModal",["root","hidden","backdrop"]);const jv=["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"],zv=Lg("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})=>Su({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Fv=Lg(pv,{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=Ng({name:"MuiModal",props:e}),{BackdropComponent:u=Fv,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:C=!1,disableRestoreFocus:E=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:M,open:I,slotProps:P,slots:k}=l,L=Cu(l,jv),_=Su({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:C,disableRestoreFocus:E,disableScrollLock:w,hideBackdrop:R,keepMounted:A}),{getRootProps:D,getBackdropProps:T,getTransitionProps:q,portalRef:O,isTopModal:N,exited:j,hasTransition:z}=Ov(Su({},_,{rootRef:t})),F=Su({},_,{exited:j}),$=(e=>{const{open:t,exited:r,classes:n}=e;return zh({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Nv,n)})(F),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),z){const{onEnter:e,onExited:t}=q();H.onEnter=e,H.onExited=t}const B=null!=(r=null!=(n=null==k?void 0:k.root)?n:g.Root)?r:zv,G=null!=(o=null!=(i=null==k?void 0:k.backdrop)?i:g.Backdrop)?o:u,V=null!=(a=null==P?void 0:P.root)?a:b.root,W=null!=(s=null==P?void 0:P.backdrop)?s:b.backdrop,U=Gh({elementType:B,externalSlotProps:V,externalForwardedProps:L,getSlotProps:D,additionalProps:{ref:t,as:m},ownerState:F,className:Og(d,null==V?void 0:V.className,null==$?void 0:$.root,!F.open&&F.exited&&(null==$?void 0:$.hidden))}),Y=Gh({elementType:G,externalSlotProps:W,additionalProps:c,getSlotProps:e=>T(Su({},e,{onClick:t=>{M&&M(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Og(null==W?void 0:W.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:F});return A||I||z&&!j?Al.jsx(_b,{ref:O,container:h,disablePortal:C,children:Al.jsxs(B,Su({},U,{children:[!R&&u?Al.jsx(G,Su({},Y)):null,Al.jsx(Tv,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:E,isEnabled:N,open:I,children:S.cloneElement(f,H)})]}))}):null}));function Hv(e){return Nf("MuiDivider",e)}const Bv=jf("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Gv=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Vv=Lg("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})=>Su({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)`:fm(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})=>Su({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Su({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>Su({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>Su({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Wv=Lg("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Su({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)`}))),Uv=S.forwardRef((function(e,t){const r=Ng({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=Cu(r,Gv),h=Su({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return zh({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"]},Hv,n)})(h);return Al.jsx(Vv,Su({as:a,className:Og(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?Al.jsx(Wv,{className:m.wrapper,ownerState:h,children:o}):null}))}));Uv.muiSkipListHighlight=!0;const Yv=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Kv=Lg(Kb,{shouldForwardProp:e=>kg(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Ub(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 Su({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}},[`&.${ov.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${ov.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"},[`&.${ov.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ov.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(.${ov.disabled}, .${ov.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ov.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Su({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}))})),Xv=Lg(Xb,{name:"MuiFilledInput",slot:"Input",overridesResolver:Yb})((({theme:e,ownerState:t})=>Su({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}))),Jv=S.forwardRef((function(e,t){var r,n,o,i;const a=Ng({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=Cu(a,Yv),g=Su({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:r}=e;return Su({},t,zh({root:["root",!r&&"underline"],input:["input"]},nv,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?gp(v,null!=p?p:l):v,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:Kv,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:Xv;return Al.jsx(Zb,Su({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))}));Jv.muiName="Input";const Zv=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Qv(e){return`scale(${e}, ${e**2})`}const ey={entering:{opacity:1,transform:Qv(1)},entered:{opacity:1,transform:"none"}},ty="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ry=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:h="auto",TransitionComponent:m=Kg}=e,g=Cu(e,Zv),b=Ih(),v=S.useRef(),y=Jm(),x=S.useRef(null),C=wh(x,Vh(o),t),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},w=E(u),R=E(((e,t)=>{rb(e);const{duration:r,delay:n,easing:o}=nb({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(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:ty?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)})),A=E(l),M=E(p),I=E((e=>{const{duration:t,delay:r,easing:n}=nb({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(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:ty?o:.666*o,delay:ty?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Qv(.75),c&&c(e)})),P=E(d);return Al.jsx(m,Su({appear:n,in:a,nodeRef:x,onEnter:R,onEntered:A,onEntering:w,onExit:I,onExited:P,onExiting:M,addEndListener:e=>{"auto"===h&&b.start(v.current||0,e),r&&r(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>S.cloneElement(o,Su({style:Su({opacity:0,transform:Qv(.75),visibility:"exited"!==e||a?void 0:"hidden"},ey[e],f,o.props.style),ref:C},t))}))}));ry.muiSupportAuto=!0;const ny=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],oy=Lg(Kb,{shouldForwardProp:e=>kg(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Ub(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})`),Su({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"},[`&.${ev.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ev.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(.${ev.disabled}, .${ev.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${ev.disabled}:before`]:{borderBottomStyle:"dotted"}})})),iy=Lg(Xb,{name:"MuiInput",slot:"Input",overridesResolver:Yb})({}),ay=S.forwardRef((function(e,t){var r,n,o,i;const a=Ng({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=Cu(a,ny),b=(e=>{const{classes:t,disableUnderline:r}=e;return Su({},t,zh({root:["root",!r&&"underline"],input:["input"]},Qb,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?gp(null!=f?f:u,v):v,x=null!=(r=null!=(n=h.root)?n:l.Root)?r:oy,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:iy;return Al.jsx(Zb,Su({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))}));function sy(e){return Nf("MuiLink",e)}ay.muiName="Input";const ly=jf("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),uy={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},cy=({theme:e,ownerState:t})=>{const r=(e=>uy[e]||e)(t.color),n=Mp(e,`palette.${r}`,!1)||t.color,o=Mp(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:fm(n,.4)},dy=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],py=Lg(Lb,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Rp(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>Su({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Su({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:cy({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"},[`&.${ly.focusVisible}`]:{outline:"auto"}}))),fy=S.forwardRef((function(e,t){const r=Ng({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=Cu(r,dy),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=Nh(),[b,v]=S.useState(!1),y=wh(t,g),x=Su({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),C=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return zh({root:["root",`underline${Rp(o)}`,"button"===r&&"button",n&&"focusVisible"]},sy,t)})(x);return Al.jsx(py,Su({color:o,className:Og(C.root,n),classes:l,component:i,onBlur:e=>{h(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&v(!0),s&&s(e)},ref:y,ownerState:x,variant:c,sx:[...Object.keys(uy).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))})),hy=S.createContext({});function my(e){return Nf("MuiList",e)}jf("MuiList",["root","padding","dense","subheader"]);const gy=["children","className","component","dense","disablePadding","subheader"],by=Lg("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})=>Su({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),vy=S.forwardRef((function(e,t){const r=Ng({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,u=Cu(r,gy),c=S.useMemo((()=>({dense:a})),[a]),d=Su({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return zh({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},my,t)})(d);return Al.jsx(hy.Provider,{value:c,children:Al.jsxs(by,Su({as:i,className:Og(p.root,o),ref:t,ownerState:d},u,{children:[l,n]}))})}));function yy(e){return Nf("MuiListItemIcon",e)}const xy=jf("MuiListItemIcon",["root","alignItemsFlexStart"]),Sy=["className"],Cy=Lg("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})=>Su({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),Ey=S.forwardRef((function(e,t){const r=Ng({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Cu(r,Sy),i=Su({},r,{alignItems:S.useContext(hy).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return zh({root:["root","flex-start"===t&&"alignItemsFlexStart"]},yy,r)})(i);return Al.jsx(Cy,Su({className:Og(a.root,n),ownerState:i,ref:t},o))})),wy=jf("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Ry=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Ay(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function My(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Iy(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")&&Iy(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const ky=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=Cu(e,Ry),p=S.useRef(null),f=S.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});uh((()=>{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=`${jh(gh(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const h=wh(p,t);let m=-1;S.Children.forEach(i,((e,t)=>{S.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=S.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),S.cloneElement(e,t)}return e}));return Al.jsx(vy,Su({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=gh(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Py(t,n,l,s,Ay);else if("ArrowUp"===r)e.preventDefault(),Py(t,n,l,s,My);else if("Home"===r)e.preventDefault(),Py(t,null,l,s,Ay);else if("End"===r)e.preventDefault(),Py(t,null,l,s,My);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&&Iy(n,o);o.previousKeyMatched&&(l||Py(t,n,!1,s,Ay,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function Ly(e){return Nf("MuiPopover",e)}jf("MuiPopover",["root","paper"]);const _y=["onEntering"],Dy=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Ty=["slotProps"];function qy(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Oy(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Ny(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function jy(e){return"function"==typeof e?e():e}const zy=Lg($v,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Fy=Lg(sb,{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=Ng({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:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:C=ry,transitionDuration:E="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,A=Cu(i.TransitionProps,_y),M=Cu(i,Dy),I=null!=(r=null==y?void 0:y.paper)?r:b,P=S.useRef(),k=wh(P,I.ref),L=Su({},i,{anchorOrigin:l,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:I,transformOrigin:x,TransitionComponent:C,transitionDuration:E,TransitionProps:A}),_=(e=>{const{classes:t}=e;return zh({root:["root"],paper:["paper"]},Ly,t)})(L),D=S.useCallback((()=>{if("anchorPosition"===c)return u;const e=jy(s),t=(e&&1===e.nodeType?e:gh(P.current).body).getBoundingClientRect();return{top:t.top+qy(t,l.vertical),left:t.left+Oy(t,l.horizontal)}}),[s,l.horizontal,l.vertical,u,c]),T=S.useCallback((e=>({vertical:qy(e,x.vertical),horizontal:Oy(e,x.horizontal)})),[x.horizontal,x.vertical]),q=S.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=T(t);if("none"===c)return{top:null,left:null,transformOrigin:Ny(r)};const n=D();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=bh(jy(s)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,r.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==m&&i<m){const e=i-m;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:Ny(r)}}),[s,c,D,T,m]),[O,N]=S.useState(g),j=S.useCallback((()=>{const e=P.current;if(!e)return;const t=q(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[q]);S.useEffect((()=>(R&&window.addEventListener("scroll",j),()=>window.removeEventListener("scroll",j))),[s,R,j]);S.useEffect((()=>{g&&j()})),S.useImperativeHandle(a,(()=>g?{updatePosition:()=>{j()}}:null),[g,j]),S.useEffect((()=>{if(!g)return;const e=mh((()=>{j()})),t=bh(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,j]);let z=E;"auto"!==E||C.muiSupportAuto||(z=void 0);const F=f||(s?gh(jy(s)).body:void 0),$=null!=(n=null==v?void 0:v.root)?n:zy,H=null!=(o=null==v?void 0:v.paper)?o:Fy,B=Gh({elementType:H,externalSlotProps:Su({},I,{style:O?I.style:Su({},I.style,{opacity:0})}),additionalProps:{elevation:h,ref:k},ownerState:L,className:Og(_.paper,null==I?void 0:I.className)}),G=Gh({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:M,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:L,className:Og(_.root,p)}),{slotProps:V}=G,W=Cu(G,Ty);return Al.jsx($,Su({},W,!Fh($)&&{slotProps:V,disableScrollLock:R},{children:Al.jsx(C,Su({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),j()},onExited:()=>{N(!1)},timeout:z},A,{children:Al.jsx(H,Su({},B,{children:d}))}))}))}));function Hy(e){return Nf("MuiMenu",e)}jf("MuiMenu",["root","paper","list"]);const By=["onEntering"],Gy=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Vy={vertical:"top",horizontal:"right"},Wy={vertical:"top",horizontal:"left"},Uy=Lg($y,{shouldForwardProp:e=>kg(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Yy=Lg(Fy,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Ky=Lg(ky,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Xy=S.forwardRef((function(e,t){var r,n;const o=Ng({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:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=Cu(o.TransitionProps,By),x=Cu(o,Gy),C=(()=>{const e=S.useContext(Jh);return null!=e&&e})(),E=Su({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),w=(e=>{const{classes:t}=e;return zh({root:["root"],paper:["paper"],list:["list"]},Hy,t)})(E),R=i&&!l&&d,A=S.useRef(null);let M=-1;S.Children.map(a,((e,t)=>{S.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===M)&&(M=t))}));const I=null!=(r=b.paper)?r:Yy,P=null!=(n=v.paper)?n:p,k=Gh({elementType:b.root,externalSlotProps:v.root,ownerState:E,className:[w.root,s]}),L=Gh({elementType:I,externalSlotProps:P,ownerState:E,className:w.paper});return Al.jsx(Uy,Su({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Vy:Wy,slots:{paper:I,root:b.root},slotProps:{root:k,paper:L},open:d,ref:t,transitionDuration:h,TransitionProps:Su({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,{direction:C?"rtl":"ltr"}),m&&m(e,t)}},y),ownerState:E},x,{classes:f,children:Al.jsx(Ky,Su({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===M||l),autoFocusItem:R,variant:g},u,{className:Og(w.list,u.className),children:a}))}))}));function Jy(e){return Nf("MuiMenuItem",e)}const Zy=jf("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Qy=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],ex=Lg(Rb,{shouldForwardProp:e=>kg(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})=>Su({},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"}},[`&.${Zy.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:fm(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Zy.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:fm(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Zy.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:fm(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})`:fm(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Zy.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Zy.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Bv.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Bv.inset}`]:{marginLeft:52},[`& .${wy.root}`]:{marginTop:0,marginBottom:0},[`& .${wy.inset}`]:{paddingLeft:36},[`& .${xy.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Su({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${xy.root} svg`]:{fontSize:"1.25rem"}})))),tx=S.forwardRef((function(e,t){const r=Ng({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=Cu(r,Qy),f=S.useContext(hy),h=S.useMemo((()=>({dense:i||f.dense||!1,disableGutters:s})),[f.dense,i,s]),m=S.useRef(null);uh((()=>{n&&m.current&&m.current.focus()}),[n]);const g=Su({},r,{dense:h.dense,divider:a,disableGutters:s}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return Su({},a,zh({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Jy,a))})(r),v=wh(m,t);let y;return r.disabled||(y=void 0!==c?c:-1),Al.jsx(hy.Provider,{value:h,children:Al.jsx(ex,Su({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:Og(b.focusVisible,l),className:Og(b.root,d)},p,{ownerState:g,classes:b}))})}));function rx(e){return Nf("MuiNativeSelect",e)}const nx=jf("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ox=["className","disabled","error","IconComponent","inputRef","variant"],ix=({ownerState:e,theme:t})=>Su({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Su({},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"},[`&.${nx.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}}),ax=Lg("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:kg,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${nx.multiple}`]:t.multiple}]}})(ix),sx=({ownerState:e,theme:t})=>Su({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${nx.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),lx=Lg("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Rp(r.variant)}`],r.open&&t.iconOpen]}})(sx),ux=S.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Cu(e,ox),u=Su({},e,{disabled:n,variant:s,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return zh({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Rp(r)}`,i&&"iconOpen",n&&"disabled"]},rx,t)})(u);return Al.jsxs(S.Fragment,{children:[Al.jsx(ax,Su({ownerState:u,className:Og(c.select,r),disabled:n,ref:a||t},l)),e.multiple?null:Al.jsx(lx,{as:i,ownerState:u,className:c.icon})]})}));var cx;const dx=["children","classes","className","label","notched"],px=Lg("fieldset",{shouldForwardProp:kg})({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%"}),fx=Lg("legend",{shouldForwardProp:kg})((({ownerState:e,theme:t})=>Su({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&&Su({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 hx=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],mx=Lg(Kb,{shouldForwardProp:e=>kg(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ub})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Su({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${rv.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${rv.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${rv.focused} .${rv.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${rv.error} .${rv.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${rv.disabled} .${rv.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Su({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),gx=Lg((function(e){const{className:t,label:r,notched:n}=e,o=Cu(e,dx),i=null!=r&&""!==r,a=Su({},e,{notched:n,withLabel:i});return Al.jsx(px,Su({"aria-hidden":!0,className:t,ownerState:a},o,{children:Al.jsx(fx,{ownerState:a,children:i?Al.jsx("span",{children:r}):cx||(cx=Al.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}})),bx=Lg(Xb,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Yb})((({theme:e,ownerState:t})=>Su({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}))),vx=S.forwardRef((function(e,t){var r,n,o,i,a;const s=Ng({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=s,g=Cu(s,hx),b=(e=>{const{classes:t}=e;return Su({},t,zh({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},tv,t))})(s),v=Fb(),y=jb({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=Su({},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:m}),C=null!=(r=null!=(n=h.root)?n:l.Root)?r:mx,E=null!=(o=null!=(i=h.input)?i:l.Input)?o:bx;return Al.jsx(Zb,Su({slots:{root:C,input:E},renderSuffix:e=>Al.jsx(gx,{ownerState:x,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=Al.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:m},g,{classes:Su({},b,{notchedOutline:null})}))}));function yx(e){return Nf("MuiSelect",e)}vx.muiName="Input";const xx=jf("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Sx;const Cx=["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"],Ex=Lg("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${xx.select}`]:t.select},{[`&.${xx.select}`]:t[r.variant]},{[`&.${xx.error}`]:t.error},{[`&.${xx.multiple}`]:t.multiple}]}})(ix,{[`&.${xx.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),wx=Lg("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Rp(r.variant)}`],r.open&&t.iconOpen]}})(sx),Rx=Lg("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 Ax(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Mx(e){return null==e||"string"==typeof e&&!e.trim()}const Ix=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:h,inputRef:m,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:x,onChange:C,onClose:E,onFocus:w,onOpen:R,open:A,readOnly:M,renderValue:I,SelectDisplayProps:P={},tabIndex:k,value:L,variant:_="standard"}=e,D=Cu(e,Cx),[T,q]=Ch({controlled:L,default:c,name:"Select"}),[O,N]=Ch({controlled:A,default:u,name:"Select"}),j=S.useRef(null),z=S.useRef(null),[F,$]=S.useState(null),{current:H}=S.useRef(null!=A),[B,G]=S.useState(),V=wh(t,m),W=S.useCallback((e=>{z.current=e,e&&$(e)}),[]),U=null==F?void 0:F.parentNode;S.useImperativeHandle(V,(()=>({focus:()=>{z.current.focus()},node:j.current,value:T})),[T]),S.useEffect((()=>{u&&O&&F&&!H&&(G(a?null:U.clientWidth),z.current.focus())}),[F,a]),S.useEffect((()=>{i&&z.current.focus()}),[i]),S.useEffect((()=>{if(!g)return;const e=gh(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const Y=(e,t)=>{e?R&&R(t):E&&E(t),H||(G(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(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&&(q(r),C)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:y}}),C(o,e)}v||Y(!1,t)}},J=null!==F&&O;let Z,Q;delete D["aria-invalid"];const ee=[];let te=!1;(Bb({value:T})||p)&&(I?Z=I(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(vu(2));t=T.some((t=>Ax(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Ax(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=B;!a&&H&&F&&(oe=U.clientWidth),ne=void 0!==k?k:d?null:0;const ie=P.id||(y?`mui-component-select-${y}`:void 0),ae=Su({},e,{variant:_,value:T,open:J,error:f}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return zh({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Rp(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},yx,t)})(ae),le=Su({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=Sh();return Al.jsxs(S.Fragment,{children:[Al.jsx(Ex,Su({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(!M){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||M?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),Y(!0,e))},onBlur:e=>{!J&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:T,name:y}}),x(e))},onFocus:w},P,{ownerState:ae,className:Og(P.className,se.select,l),id:ie,children:Mx(Z)?Sx||(Sx=Al.jsx("span",{className:"notranslate",children:""})):Z})),Al.jsx(Rx,Su({"aria-invalid":f,value:Array.isArray(T)?T.join(","):T,name:y,ref:j,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(q(t.props.value),C&&C(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},D)),Al.jsx(wx,{as:h,className:se.icon,ownerState:ae}),Al.jsx(Xy,Su({id:`menu-${y||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Su({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:Su({},b.slotProps,{paper:Su({},le,{style:Su({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"],kx=["root"],Lx={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>kg(e)&&"variant"!==e,slot:"Root"},_x=Lg(ay,Lx)(""),Dx=Lg(vx,Lx)(""),Tx=Lg(Jv,Lx)(""),qx=S.forwardRef((function(e,t){const r=Ng({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=iv,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:x,renderValue:C,SelectDisplayProps:E,variant:w="outlined"}=r,R=Cu(r,Px),A=b?ux:Ix,M=jb({props:r,muiFormControl:Fb(),states:["variant","error"]}),I=M.variant||w,P=Su({},r,{variant:I,classes:i}),k=(e=>{const{classes:t}=e;return t})(P),L=Cu(k,kx),_=d||{standard:Al.jsx(_x,{ownerState:P}),outlined:Al.jsx(Dx,{label:f,ownerState:P}),filled:Al.jsx(Tx,{ownerState:P})}[I],D=wh(t,Vh(_));return Al.jsx(S.Fragment,{children:S.cloneElement(_,Su({inputComponent:A,inputProps:Su({children:o,error:M.error,IconComponent:u,variant:I,type:void 0,multiple:g},b?{id:c}:{autoWidth:n,defaultOpen:s,displayEmpty:l,labelId:h,MenuProps:m,onClose:v,onOpen:y,open:x,renderValue:C,SelectDisplayProps:Su({id:c},E)},p,{classes:p?gp(L,p.classes):L},d?d.props.inputProps:{})},(g&&b||l)&&"outlined"===I?{notched:!0}:{},{ref:D,className:Og(_.props.className,a,k.root)},!d&&{variant:I},R))})}));qx.muiName="Select";const Ox=S.createContext();function Nx(e){return Nf("MuiTable",e)}jf("MuiTable",["root","stickyHeader"]);const jx=["className","component","padding","size","stickyHeader"],zx=Lg("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Su({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Su({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),Fx="table",$x=S.forwardRef((function(e,t){const r=Ng({props:e,name:"MuiTable"}),{className:n,component:o=Fx,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=Cu(r,jx),u=Su({},r,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:r}=e;return zh({root:["root",r&&"stickyHeader"]},Nx,t)})(u),d=S.useMemo((()=>({padding:i,size:a,stickyHeader:s})),[i,a,s]);return Al.jsx(Ox.Provider,{value:d,children:Al.jsx(zx,Su({as:o,role:o===Fx?null:"table",ref:t,className:Og(c.root,n),ownerState:u},l))})})),Hx=S.createContext();function Bx(e){return Nf("MuiTableBody",e)}jf("MuiTableBody",["root"]);const Gx=["className","component"],Vx=Lg("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Wx={variant:"body"},Ux="tbody",Yx=S.forwardRef((function(e,t){const r=Ng({props:e,name:"MuiTableBody"}),{className:n,component:o=Ux}=r,i=Cu(r,Gx),a=Su({},r,{component:o}),s=(e=>{const{classes:t}=e;return zh({root:["root"]},Bx,t)})(a);return Al.jsx(Hx.Provider,{value:Wx,children:Al.jsx(Vx,Su({className:Og(s.root,n),as:o,ref:t,role:o===Ux?null:"rowgroup",ownerState:a},i))})}));function Kx(e){return Nf("MuiTableCell",e)}const Xx=jf("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Jx=["align","className","component","padding","scope","size","sortDirection","variant"],Zx=Lg("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Rp(r.size)}`],"normal"!==r.padding&&t[`padding${Rp(r.padding)}`],"inherit"!==r.align&&t[`align${Rp(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Su({},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?gm(fm(e.palette.divider,1),.88):hm(fm(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",[`&.${Xx.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}))),Qx=S.forwardRef((function(e,t){const r=Ng({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c}=r,d=Cu(r,Jx),p=S.useContext(Ox),f=S.useContext(Hx),h=f&&"head"===f.variant;let m;m=i||(h?"th":"td");let g=s;"td"===m?g=void 0:!g&&h&&(g="col");const b=c||f&&f.variant,v=Su({},r,{align:n,component:m,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 zh({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${Rp(n)}`,"normal"!==o&&`padding${Rp(o)}`,`size${Rp(i)}`]},Kx,t)})(v);let x=null;return u&&(x="asc"===u?"ascending":"descending"),Al.jsx(Zx,Su({as:m,ref:t,className:Og(y.root,o),"aria-sort":x,scope:g,ownerState:v},d))}));function eS(e){return Nf("MuiTableContainer",e)}jf("MuiTableContainer",["root"]);const tS=["className","component"],rS=Lg("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),nS=S.forwardRef((function(e,t){const r=Ng({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=Cu(r,tS),a=Su({},r,{component:o}),s=(e=>{const{classes:t}=e;return zh({root:["root"]},eS,t)})(a);return Al.jsx(rS,Su({ref:t,as:o,className:Og(s.root,n),ownerState:a},i))}));function oS(e){return Nf("MuiTableHead",e)}jf("MuiTableHead",["root"]);const iS=["className","component"],aS=Lg("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),sS={variant:"head"},lS="thead",uS=S.forwardRef((function(e,t){const r=Ng({props:e,name:"MuiTableHead"}),{className:n,component:o=lS}=r,i=Cu(r,iS),a=Su({},r,{component:o}),s=(e=>{const{classes:t}=e;return zh({root:["root"]},oS,t)})(a);return Al.jsx(Hx.Provider,{value:sS,children:Al.jsx(aS,Su({as:o,className:Og(s.root,n),ref:t,role:o===lS?null:"rowgroup",ownerState:a},i))})}));function cS(e){return Nf("MuiTableRow",e)}const dS=jf("MuiTableRow",["root","selected","hover","head","footer"]),pS=["className","component","hover","selected"],fS=Lg("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,[`&.${dS.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${dS.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:fm(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}))`:fm(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),hS="tr",mS=S.forwardRef((function(e,t){const r=Ng({props:e,name:"MuiTableRow"}),{className:n,component:o=hS,hover:i=!1,selected:a=!1}=r,s=Cu(r,pS),l=S.useContext(Hx),u=Su({},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 zh({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},cS,t)})(u);return Al.jsx(fS,Su({as:o,ref:t,className:Og(c.root,n),role:o===hS?null:"row",ownerState:u},s))}));function gS(e={}){return Al.jsx(_l,{...e,children:Al.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Al.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Al.jsx("rect",{stroke:il.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const bS={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:cl,"& > 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 vS=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:il.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:il.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Al.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 ${il.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:il.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${il.MISC_FOCUS_BORDER}`,borderRadius:cl,backgroundColor:il.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 ${il.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:il.WHITE,color:il.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:cl},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${il.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:il.GREYSCALE_0_15,backgroundColor:il.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:il.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${il.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:il.GREEN_PALE},"&:active":{backgroundColor:il.GREEN_DARK},"&.Mui-focusVisible":{borderColor:il.GREEN_PALE,boxShadow:`0 0 0 3px ${fh(il.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:il.BLUE_PALE},"&:active":{backgroundColor:il.BLUE_DARK},"&.Mui-focusVisible":{borderColor:il.BLUE_PALE,boxShadow:`0 0 0 3px ${fh(il.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:cl,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:il.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${il.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:il.GREYSCALE_0_15,backgroundColor:il.GREYSCALE_100_60,"&:active":{backgroundColor:il.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:il.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${il.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:il.PURPLE,"&.Mui-focusVisible":{borderColor:il.PURPLE,boxShadow:`0 0 0 3px ${fh(il.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:il.GREEN,"&.Mui-focusVisible":{borderColor:il.GREEN,boxShadow:`0 0 0 3px ${fh(il.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:il.BLUE,"&.Mui-focusVisible":{borderColor:il.BLUE,boxShadow:`0 0 0 3px ${fh(il.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:il.ORANGE,"&.Mui-focusVisible":{borderColor:il.ORANGE,boxShadow:`0 0 0 3px ${fh(il.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:il.RED,"&.Mui-focusVisible":{borderColor:il.RED,boxShadow:`0 0 0 3px ${fh(il.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:il.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:il.PURPLE_PALE},"&:active":{backgroundColor:il.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:il.PURPLE_PALE,boxShadow:`0 0 0 3px ${fh(il.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:il.GREEN_PALE},"&:active":{backgroundColor:il.GREEN_DARK},"&.Mui-focusVisible":{borderColor:il.GREEN_PALE,boxShadow:`0 0 0 3px ${fh(il.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:il.BLUE_PALE},"&:active":{backgroundColor:il.BLUE_DARK},"&.Mui-focusVisible":{borderColor:il.BLUE_PALE,boxShadow:`0 0 0 3px ${fh(il.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:il.ORANGE_PALE},"&:active":{backgroundColor:il.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:il.ORANGE_PALE,boxShadow:`0 0 0 3px ${fh(il.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:il.RED_PALE},"&:active":{backgroundColor:il.RED_DARK},"&.Mui-focusVisible":{borderColor:il.RED_PALE,boxShadow:`0 0 0 3px ${fh(il.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:il.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:il.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:cl,boxShadow:`inset 0 0 0 2px ${il.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Al.jsx(Ll,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:al,borderRadius:cl,color:il.TEXT_PRIMARY,backgroundColor:il.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:il.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${il.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:il.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:il.GREYSCALE_0_05,color:il.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:il.GREEN,borderColor:il.GREEN},"&.MuiChip-outlinedInfo":{color:il.BLUE,borderColor:il.BLUE},"&.MuiChip-outlinedWarning":{color:il.ORANGE,borderColor:il.ORANGE},"&.MuiChip-outlinedError":{color:il.RED,borderColor:il.RED}},outlined:{border:`solid 1px ${il.GREYSCALE_0_15}`,backgroundColor:il.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:cl,boxShadow:"none",backgroundColor:il.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:il.GREEN,borderColor:il.GREEN},outlinedSecondary:{color:il.BLUE,borderColor:il.BLUE},label:{fontFamily:ml.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Al.jsx(Ll,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Al.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:cl},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:cl,fontSize:sl,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:il.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${il.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:il.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:il.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:il.GREYSCALE_0_05}}},popupIndicator:{borderRadius:cl,border:`solid 1px ${il.GREYSCALE_0_15}`,color:il.GREYSCALE_0_60,marginRight:0,width:ul,height:ul},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${il.GREYSCALE_0_15}`},clearIndicator:{borderRadius:cl,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:il.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:sl}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:al,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:il.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:il.GREYSCALE_25,fontSize:al,fontFamily:ml.FONT_FAMILY,fontWeight:fl,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:il.TEXT_PRIMARY},"&.Mui-error":{color:il.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:il.TEXT_SECONDARY,content:"'(optional)'",fontWeight:pl,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:il.TEXT_SECONDARY,content:"'(required)'",fontWeight:pl,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:sl,lineHeight:"16px",backgroundColor:il.WHITE,borderRadius:cl,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${il.GREYSCALE_0_05}`,borderColor:il.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${il.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${il.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${il.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${il.RED}`,boxShadow:`0px 0px 0px 1px ${il.RED}, inset 0 2px 0 0 ${il.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${il.GREYSCALE_0_10}`,borderColor:il.GREYSCALE_0_10,backgroundColor:il.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:il.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:il.GREYSCALE_0_15,borderRadius:cl,boxShadow:`inset 0 2px 0 0 ${il.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Al.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:il.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:il.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:il.GREYSCALE_0_03},"&:active":{backgroundColor:il.GREYSCALE_0_10},"&:focus":{backgroundColor:il.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${il.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${il.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:il.GREYSCALE_0_30,"&:hover":{backgroundColor:il.GREYSCALE_0_0,borderColor:il.GREYSCALE_0_15},"& ~svg":{color:il.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${il.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:cl}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:il.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${il.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:il.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:sl,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:al,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:al,fontWeight:fl,color:il.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:fl}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${il.GREYSCALE_0_15}, 0px 0px 0px 1px ${il.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Al.jsx(ql,{}),checkedIcon:Al.jsx(Ol,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:il.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${il.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:il.GREEN_PALE,boxShadow:`0 0 0 3px ${fh(il.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:il.BLUE_PALE,boxShadow:`0 0 0 3px ${fh(il.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:il.GREYSCALE_0_20}},"&.Mui-disabled":{fill:il.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Al.jsx(gS,{}),checkedIcon:Al.jsx(Dl,{}),indeterminateIcon:Al.jsx(Tl,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:cl,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:il.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:il.GREYSCALE_0_55,color:il.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:il.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:il.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:il.GREYSCALE_0_55,"&:hover":{color:il.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:il.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:il.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:sl,color:il.TEXT_PRIMARY,lineHeight:"16px",fontWeight:fl},secondary:{fontSize:al,color:il.GREYSCALE_45,fontWeight:pl,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:sl,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:sl,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:il.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:al,borderBottom:`solid 1px ${il.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:sl,color:il.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:il.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:il.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:il.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:il.RED}}},"&.Mui-focusVisible":{backgroundColor:il.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:il.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:il.GREEN,height:"24px","&.Mui-disabled":{color:il.GREYSCALE_0_15}},rail:{backgroundColor:il.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${il.GREYSCALE_0_05}`,borderRadius:cl,boxShadow:`inset 0px 0px 0px 1px ${il.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${il.GREYSCALE_0_05}`,borderRadius:cl},thumb:{height:"16px",width:"16px",borderRadius:cl,backgroundColor:il.WHITE,boxShadow:`0px 1px 2px 0px ${il.GREYSCALE_0_15}, 0px 0px 0px 1px ${il.GREYSCALE_0_05}`,"&:hover":{borderRadius:cl,boxShadow:`0 2px 4px 0 ${il.GREYSCALE_0_30}, 0 0 0 1px ${il.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${il.GREYSCALE_0_15}, 0 0 0 1px ${il.GREYSCALE_0_06}, 0 0 0 2px ${il.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${il.GREYSCALE_0_15}, 0 0 0 1px ${il.GREYSCALE_0_06}, 0 0 0 2px ${il.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:il.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:il.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:il.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:il.GREYSCALE_0_15},markLabel:{color:il.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:il.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:il.WHITE,color:il.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:il.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:il.GREEN_PALE,boxShadow:`0 0 0 3px ${fh(il.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:il.BLUE_PALE,boxShadow:`0 0 0 3px ${fh(il.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:il.GREYSCALE_0_15,borderRadius:cl},thumb:{height:"16px",width:"16px",borderRadius:cl,backgroundColor:il.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:sl,fontWeight:fl,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${il.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${il.MISC_FOCUS_BORDER}`,backgroundColor:il.GREYSCALE_0_03,borderRadius:cl},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:il.GREYSCALE_25,"&.Mui-selected":{color:il.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:sl,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:cl,"&:hover":{backgroundColor:il.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 ${il.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${il.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:cl,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:il.GREYSCALE_0_05},"&:hover":{backgroundColor:il.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${il.GREYSCALE_85}`,borderRight:`1px solid ${il.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:fl,backgroundColor:il.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:il.GREYSCALE_98,borderBottom:`1px solid ${il.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${il.GREYSCALE_85}`,borderTop:`1px solid ${il.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:il.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:il.GREYSCALE_0_05,"&:hover":{backgroundColor:il.GREYSCALE_0_03}},"&&:hover":{backgroundColor:il.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Al.jsx(Nl,{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 ${il.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:sl,borderRadius:cl,padding:"7px 16px",border:`1px solid ${il.GREYSCALE_0_15}`,backgroundColor:il.GREYSCALE_100_60,color:il.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:il.GREYSCALE_0_10,border:`1px solid ${il.GREYSCALE_0_30}`},"&:hover":{backgroundColor:il.GREYSCALE_0_03,border:`1px solid ${il.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:il.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${il.MISC_FOCUS_BORDER}`,border:`1px solid ${il.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:il.GREYSCALE_25,backgroundColor:il.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:il.GREYSCALE_0_10,border:`1px solid ${il.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:al,height:24,width:24,padding:7},sizeLarge:{fontSize:ll,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:sl,borderRadius:cl}}},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:il.GREYSCALE_20},tooltip:{backgroundColor:il.GREYSCALE_20,fontSize:al,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...bS}:{}}))(t);const yS=e=>({mode:"light",primary:{ultraLight:il.GREEN_ULTRA_LIGHT,light:il.GREEN_PALE,main:il.GREEN,dark:il.GREEN_DARK,extraDark:il.GREEN_EXTRA_DARK,contrastText:il.WHITE},secondary:{ultraLight:il.BLUE_ULTRA_LIGHT,light:il.BLUE_PALE,main:il.BLUE,dark:il.BLUE_DARK,extraDark:il.BLUE_EXTRA_DARK,contrastText:il.WHITE},error:{ultraLight:il.RED_ULTRA_LIGHT,light:il.RED_PALE,main:il.RED,dark:il.RED_DARK,extraDark:il.RED_EXTRA_DARK,contrastText:il.WHITE},warning:{ultraLight:il.ORANGE_ULTRA_LIGHT,light:il.ORANGE_PALE,main:il.ORANGE,dark:il.ORANGE_DARK,extraDark:il.ORANGE_EXTRA_DARK,contrastText:il.WHITE},success:{ultraLight:il.GREEN_ULTRA_LIGHT,light:il.GREEN_PALE,main:il.GREEN,dark:il.GREEN_DARK,extraDark:il.GREEN_EXTRA_DARK,contrastText:il.WHITE},info:{ultraLight:il.BLUE_ULTRA_LIGHT,light:il.BLUE_PALE,main:il.BLUE,dark:il.BLUE_DARK,extraDark:il.BLUE_EXTRA_DARK,contrastText:il.WHITE},text:{primary:il.TEXT_PRIMARY,secondary:il.TEXT_SECONDARY,disabled:il.GREYSCALE_0_30},action:{hover:il.GREYSCALE_0_03,hoverOpacity:.03,selected:il.GREYSCALE_0_05,selectedOpacity:.05,focus:il.MISC_FOCUS_BORDER},amethyst:{ultraLight:il.WHITE,main:il.PURPLE,light:il.PURPLE_PALE,dark:il.PURPLE_DARK,extraDark:il.GREYSCALE_0_0,contrastText:il.WHITE},background:{paper:il.WHITE,default:il.GREYSCALE_95},divider:il.GREYSCALE_0_15}),xS={...ol},SS=((e="light",t=!1)=>((e,t=!1)=>({components:vS(0,t),palette:yS(),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:sl,fontWeightLight:dl,fontWeightRegular:pl,fontWeightMedium:fl,fontWeightBold:hl,htmlFontSize:sl,fontFamily:ml.FONT_FAMILY,button:{fontWeight:fl,fontSize:sl,textTransform:"none"},body1:{fontSize:ll,lineHeight:"24px"},body2:{fontSize:sl,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:ul,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:ll,fontWeight:fl,lineHeight:"16px"},h6:{fontSize:sl,fontWeight:fl,lineHeight:"16px"},caption:{color:il.TEXT_SECONDARY},subtitle1:{fontSize:sl,color:il.TEXT_SECONDARY},subtitle2:{fontSize:al,color:il.TEXT_SECONDARY}},shape:{borderRadius:cl}}))(0,t))().palette,CS={TEXT:SS.text.primary,DISABLED:SS.text.disabled,HOVER:SS.action.hover,WHITE:xS.GREYSCALE_100,BORDER_LIGHT:xS.GREYSCALE_90,BORDER_MEDIUM:xS.GREYSCALE_85,BORDER_HEAVY:xS.GREYSCALE_50,DARK_MODE_TEXT:xS.GREYSCALE_95,DARK_MODE_BORDER:xS.GREYSCALE_95,DARK_MODE_DISABLED:xS.GREYSCALE_70,DARK_MODE_BACKGROUND:xS.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:xS.GREYSCALE_95,SELECTED:SS.primary.main},ES=(e,t=CS.TEXT,r=CS.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()},wS=e=>{const t=e.getStyle("","","dataColors.selected")||CS.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,CS.TEXT);return{background:t,color:r}},RS=(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()},AS=e=>!!e&&0===te(e).a,MS=(e,t,r)=>{const n=t?e.getColorPickerColor(t):"none";return"none"===n?r:n},IS=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)},kS=e=>{e.stopPropagation(),e.preventDefault()},LS="#grid",_S=(e,t,r,n=CS.WHITE)=>e&&!AS(e)?e:AS(t)?r&&!AS(r)?r:n:t,DS=(e,t)=>{const r=null==t?void 0:t.closest(e);return r&&window.getComputedStyle(r).backgroundColor},TS=(e,t,r,n,o)=>{const i=DS(".qv-object .qv-inner-object",r),a=DS(".qv-panel-sheet",r),s=DS(LS,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 IS(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=AS(p),h=!AS(m=f?l:p)&&ES(m,CS.TEXT,CS.DARK_MODE_TEXT)===X(CS.DARK_MODE_TEXT);var m;return{color:p,headerColor:_S(u,p,l),isDark:h}},qS=(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(LS),{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:TS(e,l,r,n,s)})),[l.name(),r,n,s,e,u])};function OS(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 NS=3;function jS(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 zS({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=NS}=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=st(o.measureText.bind(o)),s=e=>+a(e).width.toFixed(2),l=st((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=jS(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 FS,$S=F;FS=$S.createRoot,$S.hydrateRoot;const HS="Source Sans Pro, sans-serif",BS=(e,t,r)=>{const[,n,o]=OS((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,HS].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 GS(e,t){const[r,n]=E(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var VS={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 WS=({translator:e})=>(w((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(VS).forEach((t=>{e.add(VS[t])}))}}(e)}),[e]),e),US=e=>{const t=s();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}},YS="12px",KS="nebula-table-utils-head-menu-button",XS="nebula-table-utils-head-menu-wrapper",JS="nebula-table-utils-head-menu",ZS="nebula-table-utils-head-menu-list-id",QS="sn-copy-cell";let eC=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 tC="nebula-table-utils-column-adjuster";let rC=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}({}),nC=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const oC={darker:.15,brighter:.3,opacity:.03},iC={darker:.3,brighter:.5,opacity:.05};let aC=function(e){return e.Single="N",e.DrillDown="H",e.Cyclic="C",e}({});const sC=document.createElement("textarea");function lC(e){sC.value=e,document.body.appendChild(sC),sC.select(),sC.setSelectionRange(0,sC.value.length),document.execCommand("copy"),document.body.removeChild(sC)}sC.style.position="absolute",sC.style.left="-9999px",sC.setAttribute("readonly","");const uC=e=>{var t;const r=e.title;r&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(r).catch((()=>{lC(r)})):lC(r))};var cC,dC;function pC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fC=function(){if(dC)return cC;dC=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 cC=function e(){var t,r,n,l,u,c,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(l=s(t,r))&&(h&&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(h,c,l)})):void 0!==l&&a(d,{name:r,newValue:l}));return d},cC}();function hC(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function mC(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function gC(){}pC(fC);var bC=1/.7,vC="\\s*([+-]?\\d+)\\s*",yC="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",xC="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",SC=/^#([0-9a-f]{3,8})$/,CC=new RegExp(`^rgb\\(${vC},${vC},${vC}\\)$`),EC=new RegExp(`^rgb\\(${xC},${xC},${xC}\\)$`),wC=new RegExp(`^rgba\\(${vC},${vC},${vC},${yC}\\)$`),RC=new RegExp(`^rgba\\(${xC},${xC},${xC},${yC}\\)$`),AC=new RegExp(`^hsl\\(${yC},${xC},${xC}\\)$`),MC=new RegExp(`^hsla\\(${yC},${xC},${xC},${yC}\\)$`),IC={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 PC(){return this.rgb().formatHex()}function kC(){return this.rgb().formatRgb()}function LC(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=SC.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?_C(t):3===r?new OC(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?DC(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?DC(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=CC.exec(e))?new OC(t[1],t[2],t[3],1):(t=EC.exec(e))?new OC(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=wC.exec(e))?DC(t[1],t[2],t[3],t[4]):(t=RC.exec(e))?DC(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=AC.exec(e))?HC(t[1],t[2]/100,t[3]/100,1):(t=MC.exec(e))?HC(t[1],t[2]/100,t[3]/100,t[4]):IC.hasOwnProperty(e)?_C(IC[e]):"transparent"===e?new OC(NaN,NaN,NaN,0):null}function _C(e){return new OC(e>>16&255,e>>8&255,255&e,1)}function DC(e,t,r,n){return n<=0&&(e=t=r=NaN),new OC(e,t,r,n)}function TC(e){return e instanceof gC||(e=LC(e)),e?new OC((e=e.rgb()).r,e.g,e.b,e.opacity):new OC}function qC(e,t,r,n){return 1===arguments.length?TC(e):new OC(e,t,r,null==n?1:n)}function OC(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function NC(){return`#${$C(this.r)}${$C(this.g)}${$C(this.b)}`}function jC(){const e=zC(this.opacity);return`${1===e?"rgb(":"rgba("}${FC(this.r)}, ${FC(this.g)}, ${FC(this.b)}${1===e?")":`, ${e})`}`}function zC(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function FC(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function $C(e){return((e=FC(e))<16?"0":"")+e.toString(16)}function HC(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new GC(e,t,r,n)}function BC(e){if(e instanceof GC)return new GC(e.h,e.s,e.l,e.opacity);if(e instanceof gC||(e=LC(e)),!e)return new GC;if(e instanceof GC)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 GC(a,s,l,e.opacity)}function GC(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function VC(e){return(e=(e||0)%360)<0?e+360:e}function WC(e){return Math.max(0,Math.min(1,e||0))}function UC(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}hC(gC,LC,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:PC,formatHex:PC,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return BC(this).formatHsl()},formatRgb:kC,toString:kC}),hC(OC,qC,mC(gC,{brighter(e){return e=null==e?bC:Math.pow(bC,e),new OC(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new OC(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new OC(FC(this.r),FC(this.g),FC(this.b),zC(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:NC,formatHex:NC,formatHex8:function(){return`#${$C(this.r)}${$C(this.g)}${$C(this.b)}${$C(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:jC,toString:jC})),hC(GC,(function(e,t,r,n){return 1===arguments.length?BC(e):new GC(e,t,r,null==n?1:n)}),mC(gC,{brighter(e){return e=null==e?bC:Math.pow(bC,e),new GC(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new GC(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 OC(UC(e>=240?e-240:e+120,o,n),UC(e,o,n),UC(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new GC(VC(this.h),WC(this.s),WC(this.l),zC(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=zC(this.opacity);return`${1===e?"hsl(":"hsla("}${VC(this.h)}, ${100*WC(this.s)}%, ${100*WC(this.l)}%${1===e?")":`, ${e})`}`}}));const YC=Math.PI/180,KC=180/Math.PI,XC=4/29,JC=6/29,ZC=3*JC*JC;function QC(e){if(e instanceof eE)return new eE(e.l,e.a,e.b,e.opacity);if(e instanceof iE)return aE(e);e instanceof OC||(e=TC(e));var t,r,n=oE(e.r),o=oE(e.g),i=oE(e.b),a=tE((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=tE((.4360747*n+.3850649*o+.1430804*i)/.96422),r=tE((.0139322*n+.0971045*o+.7141733*i)/.82521)),new eE(116*a-16,500*(t-a),200*(a-r),e.opacity)}function eE(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function tE(e){return e>.008856451679035631?Math.pow(e,1/3):e/ZC+XC}function rE(e){return e>JC?e*e*e:ZC*(e-XC)}function nE(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function oE(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function iE(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function aE(e){if(isNaN(e.h))return new eE(e.l,0,0,e.opacity);var t=e.h*YC;return new eE(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}hC(eE,(function(e,t,r,n){return 1===arguments.length?QC(e):new eE(e,t,r,null==n?1:n)}),mC(gC,{brighter(e){return new eE(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new eE(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 OC(nE(3.1338561*(t=.96422*rE(t))-1.6168667*(e=1*rE(e))-.4906146*(r=.82521*rE(r))),nE(-.9787684*t+1.9161415*e+.033454*r),nE(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),hC(iE,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof iE)return new iE(e.h,e.c,e.l,e.opacity);if(e instanceof eE||(e=QC(e)),0===e.a&&0===e.b)return new iE(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*KC;return new iE(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new iE(e,t,r,null==n?1:n)}),mC(gC,{brighter(e){return new iE(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new iE(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return aE(this).rgb()}}));var sE=-.14861,lE=1.78277,uE=-.29227,cE=-.90649,dE=1.97294,pE=dE*cE,fE=dE*lE,hE=lE*uE-cE*sE;function mE(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof gE)return new gE(e.h,e.s,e.l,e.opacity);e instanceof OC||(e=TC(e));var t=e.r/255,r=e.g/255,n=e.b/255,o=(hE*n+pE*t-fE*r)/(hE+pE-fE),i=n-o,a=(dE*(r-o)-uE*i)/cE,s=Math.sqrt(a*a+i*i)/(dE*o*(1-o)),l=s?Math.atan2(a,i)*KC-120:NaN;return new gE(l<0?l+360:l,s,o,e.opacity)}(e):new gE(e,t,r,null==n?1:n)}function gE(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}hC(gE,mE,mC(gC,{brighter(e){return e=null==e?bC:Math.pow(bC,e),new gE(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new gE(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*YC,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),o=Math.sin(e);return new OC(255*(t+r*(sE*n+lE*o)),255*(t+r*(uE*n+cE*o)),255*(t+r*(dE*n)),this.opacity)}}));var bE=e=>()=>e;function vE(e,t){return function(r){return e+r*t}}function yE(e,t){var r=t-e;return r?vE(e,r):bE(isNaN(e)?t:e)}function xE(e){return((e=Math.exp(e))+1/e)/2}function SE(e){return function t(r){function n(t,n){var o=e((t=mE(t)).h,(n=mE(n)).h),i=yE(t.s,n.s),a=yE(t.l,n.l),s=yE(t.opacity,n.opacity);return function(e){return t.h=o(e),t.s=i(e),t.l=a(Math.pow(e,r)),t.opacity=s(e),t+""}}return r=+r,n.gamma=t,n}(1)}!function e(t){var r=function(e){return 1==(e=+e)?yE: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):bE(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=qC(e)).r,(t=qC(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=yE(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),function e(t,r,n){function o(e,o){var i,a,s=e[0],l=e[1],u=e[2],c=o[0],d=o[1],p=o[2],f=c-s,h=d-l,m=f*f+h*h;if(m<1e-12)a=Math.log(p/u)/t,i=function(e){return[s+e*f,l+e*h,u*Math.exp(t*e*a)]};else{var g=Math.sqrt(m),b=(p*p-u*u+n*m)/(2*u*r*g),v=(p*p-u*u-n*m)/(2*p*r*g),y=Math.log(Math.sqrt(b*b+1)-b),x=Math.log(Math.sqrt(v*v+1)-v);a=(x-y)/t,i=function(e){var n,o=e*a,i=xE(y),c=u/(r*g)*(i*(n=t*o+y,((n=Math.exp(2*n))-1)/(n+1))-function(e){return((e=Math.exp(e))-1/e)/2}(y));return[s+c*f,l+c*h,u*i/xE(t*o+y)]}}return i.duration=1e3*a*t/Math.SQRT2,i}return o.rho=function(t){var r=Math.max(.001,+t),n=r*r;return e(r,n,n*n)},o}(Math.SQRT2,2,4),SE((function(e,t){var r=t-e;return r?vE(e,r>180||r<-180?r-360*Math.round(r/360):r):bE(isNaN(e)?t:e)})),SE(yE);var CE="center",EE="bottom";[{key:"NoDataExist",alignment:CE,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:CE,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:CE,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:CE},{key:"DataRangeIncludingZero",alignment:EE},{key:"LimitedData",alignment:EE},{key:"NegativeOrZeroValues",alignment:EE}].reduce((function(e,t){return e[t.key]=t,e}),{});var wE=["__proto__","constructor"];function RE(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!wE.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]}}}var AE,ME={exports:{}},IE=AE?ME.exports:(AE=1,ME.exports=function(){function e(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"===t?String:Number)(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 t(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 r(r){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach((function(t){e(r,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===o.call(e)},l=function(e){if(!e||"[object Object]"!==o.call(e))return!1;var t,r=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!i)return!1;for(t in e);return void 0===t||n.call(e,t)},u=function(e,t){i&&"__proto__"===t.name?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},c=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]},d=function e(){var t,r,n,o,i,a,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=c(d,r),d!==(o=c(t,r))&&(h&&o&&(l(o)||(i=s(o)))?(i?(i=!1,a=n&&s(n)?n:[]):a=n&&l(n)?n:{},u(d,{name:r,newValue:e(h,a,o)})):void 0!==o&&u(d,{name:r,newValue:o}));return d};function p(e,t,r,n){if(!e)return-1;const o=r.cache,i=e.origin?e.origin():null;i&&(e=i);let a=o.fields.indexOf(e),s=-1,l=-1;if(-1===a)for(let t=0;t<o.wrappedFields.length;t++)if(l=o.wrappedFields[t].attrDims.map((e=>e.instance)).indexOf(e),s=o.wrappedFields[t].attrExps.map((e=>e.instance)).indexOf(e),-1!==l||-1!==s){a=t;break}if(Array.isArray(n)&&n.some(((e,t)=>e!==t))){const e=n.indexOf(a);-1!==e&&(a=e)}return a-=t.qArea.qLeft,a<0||a>=t.qArea.qWidth?-1:l>=0?e=>e[a].qAttrDims.qValues[l]:s>=0?e=>e[a].qAttrExps.qValues[s]:e=>e[a]}function f(e,t,r){let{key:n}=r;const o={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return o.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(o.value),e.field&&(o.source={key:n,field:e.field.key()}),o}function h(e){let{cache:t,f:r,mainCell:n,p:o,page:i,rowIdx:a,row:s,sourceKey:l,target:u,targetProp:c,columnOrder:h}=e,m=n;if(o.field&&o.field!==r){const e=p(o.field,i,{cache:t},h);if(-1===e)return;m=d({qRow:a},e(s))}u[c]=f(o,m,{key:l})}function m(e,t,r,n){const o=Array.isArray(e)?e:[e];let i=[];for(let e=0;e<o.length;e++)if(void 0!==o[e].field){const a=t.raw(),s=t.key(),l="object"==typeof o[e].field?o[e].field:t.field(o[e].field),{props:u,main:c}=n.normalizeConfig(o[e],t),m=Object.keys(u),g=!!o[e].trackBy,b=typeof o[e].trackBy,v={},y=[],x=[];for(let t=0;t<a.qDataPages.length;t++){const i=p(l,a.qDataPages[t],{cache:r},a.qColumnOrder);if(-1!==i)for(let p=0;p<a.qDataPages[t].qMatrix.length;p++){const S=a.qDataPages[t].qArea.qTop+p,C=d({qRow:S},i(a.qDataPages[t].qMatrix[p])),E=f(c,C,{key:s});if(!c.filter||c.filter(C)){for(let e=0;e<m.length;e++){const n=u[m[e]];let o=n.fields||[n];n.fields&&(E[m[e]]=[]);for(let i=0;i<o.length;i++)h({cache:r,f:l,mainCell:C,p:o[i],prop:m[e],page:a.qDataPages[t],rowIdx:S,row:a.qDataPages[t].qMatrix[p],sourceKey:s,target:n.fields?E[m[e]]:E,targetProp:n.fields?i:m[e],columnOrder:a.qColumnOrder});if(n.fields){const t=E[m[e]].map((e=>e.value)),r=E[m[e]].map((e=>e.label));E[m[e]]={value:"function"==typeof n.value?n.value(t):void 0!==n.value?n.value:t,label:"function"==typeof n.label?n.label(r):void 0!==n.label?String(n.label):String(E[m[e]].value)}}}g&&n.track({cfg:o[e],itemData:C,obj:E,target:y,tracker:v,trackType:b}),x.push(E)}}}const S=g?n.collect(y,{main:c,propsArr:m,props:u}):x;i=[...i,...S]}return i}function g(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 b(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=y)):void 0===t&&(t=v);for(var r,n,o,i,a,s=new C(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 C(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(S)}function v(e){return e.children}function y(e){return Array.isArray(e)?e[1]:null}function x(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function S(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function C(e){this.data=e,this.depth=this.height=0,this.parent=null}function E(e){return null==e?null:function(e){if("function"!=typeof e)throw new Error;return e}(e)}C.prototype=b.prototype={constructor:C,count:function(){return this.eachAfter(g)},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 b(this).eachBefore(x)},[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)}};var w={depth:-1},R={},A={};function M(e){return e.id}function I(e){return e.parentId}function P(){var e,t=M,r=I;function n(n){var o,i,a,s,l,u,c,d,p=Array.from(n),f=t,h=r,m=new Map;if(null!=e){const t=p.map(((t,r)=>function(e){let t=(e=`${e}`).length;return L(e,t-1)&&!L(e,t-2)&&(e=e.slice(0,-1)),"/"===e[0]?e:`/${e}`}(e(t,r,n)))),r=t.map(k),o=new Set(t).add("");for(const e of r)o.has(e)||(o.add(e),t.push(e),r.push(k(e)),p.push(A));f=(e,r)=>t[r],h=(e,t)=>r[t]}for(a=0,o=p.length;a<o;++a)i=p[a],u=p[a]=new C(i),null!=(c=f(i,a,n))&&(c+="")&&(d=u.id=c,m.set(d,m.has(d)?R:u)),null!=(c=h(i,a,n))&&(c+="")&&(u.parent=c);for(a=0;a<o;++a)if(c=(u=p[a]).parent){if(!(l=m.get(c)))throw new Error("missing: "+c);if(l===R)throw new Error("ambiguous: "+c);l.children?l.children.push(u):l.children=[u],u.parent=l}else{if(s)throw new Error("multiple roots");s=u}if(!s)throw new Error("no root");if(null!=e){for(;s.data===A&&1===s.children.length;)s=s.children[0],--o;for(let e=p.length-1;e>=0&&(u=p[e]).data===A;--e)u.data=null}if(s.parent=w,s.eachBefore((function(e){e.depth=e.parent.depth+1,--o})).eachBefore(S),s.parent=null,o>0)throw new Error("cycle");return s}return n.id=function(e){return arguments.length?(t=E(e),n):t},n.parentId=function(e){return arguments.length?(r=E(e),n):r},n.path=function(t){return arguments.length?(e=E(t),n):e},n}function k(e){let t=e.length;if(t<2)return"";for(;--t>1&&!L(e,t););return e.slice(0,t)}function L(e,t){if("/"===e[t]){let r=0;for(;t>0&&"\\"===e[--t];)++r;if(!(1&r))return!0}return!1}function _(e,t){"/"===e.charAt(0)&&(e=e.substring(1));const r=e.split("/");let n,o=t;for(let e=0;e<r.length;e++){if("*"===r[e]&&Array.isArray(o)){const t=[];n=r.slice(e+1).join("/");for(let e=0;e<o.length;e++){let r=_(n,o[e]);Array.isArray(r)?t.push(...r):t.push(r)}return t}if(!r[e]&&Array.isArray(o)){const t=new Array(o.length);n=r.slice(e+1).join("/");for(let e=0;e<o.length;e++)t[e]=_(n,o[e]);return t}r[e]in o&&(o=o[r[e]])}return o}function D(e,t,r){let n=[];if(!e||!e.length)return n;if(t<=0){const t=r>=0?[e[r]]:e;n=[...n,...t]}else for(let o=0;o<e.length;o++)e[o].children&&e[o].children.length&&(n=[...n,...D(e[o].children,t-1,r)]);return n}function T(e,t,r){if(e===t)return e=>e;if(e>t){const r=Math.max(0,Math.min(100,e-t));return e=>{let t=e;for(let e=0;e<r;++e)t=t.parent;return t}}if(t>e){const n=Math.max(0,Math.min(100,t-e));return e=>D(e.children,n-1,r)}return!1}const q=/^qDimensionInfo(?:\/(\d+))?/,O=/^\/?qMeasureInfo\/(\d+)/,N=/\/qAttrExprInfo\/(\d+)/,j=/\/qAttrDimInfo\/(\d+)/;function z(e){return(e.qColumnOrder&&e.qColumnOrder.length?e.qColumnOrder:e.qDimensionInfo.map(((e,t)=>t))).filter((t=>t<e.qDimensionInfo.length))}function F(e,t){let{cube:r}=t;if(!e)return-1;let n=e.origin&&e.origin()?e.origin().key():e.key(),o=!1,i=-1,a=-1,s=-1,l=-1,u=-1,c=-1,d=n;const p=r.qEffectiveInterColumnSortOrder,f=z(r);return q.test(d)&&(o=!0,i=+q.exec(d)[1],d=n.replace(q,"")),O.test(d)&&("K"===r.qMode?u=+O.exec(d)[1]:p&&-1!==p.indexOf(-1)?(u=+O.exec(d)[1],c=0):c=+O.exec(d)[1],d=d.replace(O,"")),d&&(j.exec(d)?s=+j.exec(d)[1]:N.exec(d)&&(a=+N.exec(d)[1])),l=o?"S"===r.qMode?f[i]:p?p.indexOf(i):i:p&&-1!==p.indexOf(-1)?p.indexOf(-1):r.qDimensionInfo.length-("K"===r.qMode?0:1),{fieldDepth:l+1,pseudoMeasureIndex:u,measureIdx:c,attrDimIdx:s,attrIdx:a}}function $(e,t){let r,n,o=T(e.fieldDepth,t.fieldDepth,t.pseudoMeasureIndex);return r=t.measureIdx>=0?e=>e.data.qValues[t.measureIdx]:e=>e.data,t.attrDimIdx>=0?n=e=>{var r;return null==e||null===(r=e.qAttrDims)||void 0===r?void 0:r.qValues[t.attrDimIdx]}:t.attrIdx>=0&&(n=e=>{var r;return null==e||null===(r=e.qAttrExps)||void 0===r?void 0:r.qValues[t.attrIdx]}),{nodeFn:o,attrFn:n,valueFn:r}}function H(e,t,r){let{key:n}=r;const o={value:"function"==typeof e.value?e.value(t):void 0!==e.value?e.value:t};return o.label="function"==typeof e.label?e.label(t):void 0!==e.label?String(e.label):String(o.value),e.field&&(o.source={key:n,field:e.field.key()}),o}function B(e){let{propsArr:t,props:r,item:n,itemData:o,ret:i,sourceKey:a}=e;for(let e=0;e<t.length;e++){const s=r[t[e]],l=s.fields||[s];let u,c;s.fields&&(u=[],c=[]);for(let r=0;r<l.length;r++){const d=l[r];let p,f,h,m,g,b;if("primitive"===d.type?(h=d.value,b=String(d.value)):("function"==typeof d.value&&(p=e=>d.value(e,n)),"function"==typeof d.label&&(f=e=>d.label(e,n)),d.accessor?(m=d.accessor(n),Array.isArray(m)?(g=m.map(d.valueAccessor),d.attrAccessor&&(g=g.map(d.attrAccessor)),p&&(h=g.map(p),p=null),f&&(b=g.map(f),f=null),h=d.reduce?d.reduce(h):h,b=d.reduceLabel?d.reduceLabel(b,h):String(h)):(h=d.attrAccessor?d.attrAccessor(d.valueAccessor(m)):d.valueAccessor(m),b=h)):(h=o,b=o)),s.fields){const e=p?p(h):h;u.push(e),c.push(f&&null!=b?f(b):null!=b?b:String(e))}else{const r=p?p(h):h;i[t[e]]={value:r,label:f?f(b):null!=b?b:String(r)},d.field&&(i[t[e]].source={field:d.field.key(),key:a})}}u&&(i[t[e]]={value:"function"==typeof s.value?s.value(u,n):u,label:"function"==typeof s.label?s.label(c,n):c})}}const G=(e,t,r)=>{const n="K"===e.qMode?"/qStackedDataPages/*/qData":"/qTreeDataPages/*",o="K"===e.qMode?"qSubNodes":"qNodes",i=_(n,e);return i&&i[0]?(t.tree=b(i[0],r.children||(e=>e[o])),t.tree):null};const V=e=>{let{propsArr:t,props:r,cube:n,cache:o,itemDepthObject:i,f:a}=e;for(let e=0;e<t.length;e++){const o=r[t[e]],s=o.fields?o.fields:[o];for(let e=0;e<s.length;e++){const t=s[e];if(t.field!==a){const e=$(i,F(t.field,{cube:n}));t.accessor=e.nodeFn,t.valueAccessor=e.valueFn,t.attrAccessor=e.attrFn}}}};function W(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;const i=t.raw(),a=t.key(),s="S"===i.qMode?function(e){const t=e.raw().qDataPages.length?e.raw().qDataPages[0].qMatrix:[],n=function(e){const t=e.raw().qColumnOrder,r=e.fields();return t&&t.length===r.length?t:r.map(((e,t)=>t))}(e),o=e.fields(),i=e.fields().filter((e=>"dimension"===e.type())).map((e=>n.indexOf(o.indexOf(e)))),a=e.fields().filter((e=>"measure"===e.type())).map((e=>n.indexOf(o.indexOf(e)))),s={__root:{__id:"__root",qValues:[]}};for(let e=0;e<t.length;e++){const n=t[e];let o="__root",u=!1;for(let e=0;e<i.length;e++){var l;const t=n[i[e]],a="".concat(o,"__").concat(null!==(l=t.qElemNumber)&&void 0!==l?l:t.qElemNo);s[a]||(s[a]=r({__id:a,__parent:o,qValues:[]},t),u=!0),o=a}if(u)for(let e=0;e<a.length;e++){const t=n[a[e]];s[o].qValues.push(t)}}const u=Object.keys(s).map((e=>s[e]));return P().id((e=>e.__id)).parentId((e=>e.__parent))(u)}(t):G(i,n,e);if(!s)return null;const l=s.height,u=[];for(let a=0;a<=l;a++){let s=null;if(a>0)if("S"===i.qMode){let e=z(i)[a-1];s=n.fields[e]}else{let e=i.qEffectiveInterColumnSortOrder[a-1];a>i.qEffectiveInterColumnSortOrder.length&&(e=i.qDimensionInfo.length),s=n.fields[e]}const{props:l,main:c}=o.normalizeConfig(r(r({},e),{},{field:s?s.key():void 0}),t),d=Object.keys(l);u[a]={propsArr:d,props:l,main:c};const p=s?F(s,{cube:i}):{fieldDepth:0};V({propsArr:d,props:l,cube:i,cache:n,itemDepthObject:p,f:s})}const c=s.copy().descendants(),d=s.descendants();for(let e=0;e<d.length;e++){const t=u[d[e].depth].propsArr,r=u[d[e].depth].props,n=u[d[e].depth].main,o=c[e],i=o.data,s=H(n,i,{key:a});B({propsArr:t,props:r,item:o,itemData:i,ret:s,sourceKey:a}),d[e].data=s}return s}function U(e,t,r,n){const o=Array.isArray(e)?e:[e];let i=[];for(let a=0;a<o.length;a++)if(void 0!==o[a].field){const s=t.raw(),l=t.key();if(!G(s,r,e))continue;const u="object"==typeof o[a].field?o[a].field:t.field(o[a].field),{props:c,main:d}=n.normalizeConfig(o[a],t),p=Object.keys(c),f=F(u,{cube:s}),{nodeFn:h,attrFn:m,valueFn:g}=$({fieldDepth:0},f);V({propsArr:p,props:c,cube:s,cache:r,itemDepthObject:f,f:u});const b=!!o[a].trackBy,v=typeof o[a].trackBy,y={},x=[],S=h(r.tree),C=[];for(let e=0;e<S.length;e++){const t=S[e],r=m?m(g(t)):g(t);if(d.filter&&!d.filter(r))continue;const i=H(d,r,{key:l});B({propsArr:p,props:c,item:t,itemData:r,ret:i,sourceKey:l}),b&&n.track({cfg:o[a],itemData:r,obj:i,target:x,tracker:y,trackType:v}),C.push(i)}const E=b?n.collect(x,{main:d,propsArr:p,props:c}):C;i=[...i,...E]}return i}var Y=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var t;t=function(){return 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\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(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(m="",b=(d=t[0]).length%l,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%l)&&y<p-l&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+x}},e.exports=t()}));function K(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}const X={3:"k",6:"M",9:"G",12:"T",15:"P",18:"E",21:"Z",24:"Y","-3":"m","-6":"μ","-9":"n","-12":"p","-15":"f","-18":"a","-21":"z","-24":"y"},J=/%\)?$/,Z=/^\(r(0[2-9]|[12]\d|3[0-6])\)/i,Q=/^\(oct\)/i,ee=/^\(dec\)/i,te=/^\(hex\)/i,re=/^\(bin\)/i,ne=/^\(rom\)/i,oe=/^(\(rom\)|\(bin\)|\(hex\)|\(dec\)|\(oct\)|\(r(0[2-9]|[12]\d|3[0-6])\))/i,ie=/#|0/g;function ae(e,t,r,n){return e=e.toString(t),r[1]===r[1].toUpperCase()&&(e=e.toUpperCase()),e.length-e.indexOf(".")>10&&(e=e.slice(0,e.indexOf(".")+11)),e.replace(".",n||".")}function se(e,t,r){let n;return Z.test(t)?e=ae(e,Number(/\d{2}/.exec(t)[0]),t,r):Q.test(t)?e=ae(e,8,t,r):ee.test(t)?e=ae(e,10,t,r):te.test(t)?e=ae(e,16,t,r):re.test(t)?e=ae(e,2,t,r):ne.test(t)&&(n="",e<0&&(n="-",e=-e),e=0===(e=Math.floor(e))?"0":e<=5e5?n+(e=function(e,t){let r,n="",o=Number(String(e).slice(-3)),i=(e-o)/1e3,a=[0,1,4,5,9,10,40,50,90,100,400,500,900].reverse(),s=["0","I","IV","V","IX","X","XL","L","XC","C","CD","D","CM"].reverse();for(;o>0;)for(r=0;r<a.length;r++)if(a[r]<=o){n+=s[r],o-=a[r];break}for(r=0;r<i;r++)n="M".concat(n);return t[1]!==t[1].toUpperCase()&&(n=n.toLowerCase()),n}(e,t)):t+n+e.toExponential(0)),e}function le(e,t,r){const n=K(e);return r?n:new RegExp(n||"",t)}function ue(e,t,r,n){let o,i,a,s,l,u,c,d,p,f=e.pattern;n&&(e.abbreviate=!0),p=function(e,t){return t&&(t=K(t)),e&&(e=K(e)),new RegExp("(?:[#0]+".concat(e,")?[#0]+(?:").concat(t,"[#0]+)?"))}(t,r),a=f.match(p),a=a?a[0]:"",s=a?f.substr(0,f.indexOf(a)):f,l=a?f.substring(f.indexOf(a)+a.length):"",a||(a=f?"#":"##########"),t&&t===r&&(o=a.split(r),i=o.pop(),a=o.join("")+r+i,t=""),u=t,t=/,/.test(r)?"¤":",",u&&(a=a.replace(le(u,"g"),t)),c=r,r=".",c&&(a=a.replace(le(c,"g"),r)),d=a.match(/#/g),d=d?d.length:0;const h=f.split(c);let m;h[1]&&(m=h[1].match(ie)),e.prefix=s||"",e.postfix=l||"",e.pattern=f,e.maxPrecision=m?m.length:2,e.percentage=J.test(f),e.numericPattern=a||"",e.numericRegex=new RegExp("".concat(le(t,null,!0),"|").concat(le(r,null,!0)),"g"),e.groupTemp=u,e.decTemp=c,e.t=t,e.d=r,e.temp=d}class ce{constructor(e,t,r,n,o){this.localeInfo=e,this.pattern=t,this.thousandDelimiter=r||",",this.decimalDelimiter=n||".",this.type=o||"numeric",this.patternSeparator=";",this.abbreviations=function(e,t){if(!e||!e.qNumericalAbbreviation)return X;const r={};return e.qNumericalAbbreviation.split(t).forEach((e=>{let t=e.split(":");2===t.length&&(r[t[0]]=t[1])})),r}(e,this.patternSeparator),this.prepare()}clone(){const e=new ce(this.localeInfo,this.pattern,this.thousandDelimiter,this.decimalDelimiter,this.type);return e.subtype=this.subtype,e}format(e,t,r,n){return this.prepare(t,r,n),this.formatValue(e)}prepare(e,t,r){let n;if(void 0===e&&(e=this.pattern),void 0===t&&(t=this.thousandDelimiter),void 0===r&&(r=this.decimalDelimiter),!e)return void(this._prepared={pattern:!1});this._prepared={positive:{d:r,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},negative:{d:r,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""},zero:{d:r,t:t,abbreviate:!1,isFunctional:!1,prefix:"",postfix:""}},n=this._prepared,e=e.split(this.patternSeparator),n.positive.pattern=e[0],n.negative.pattern=e[1],n.zero.pattern=e[2],oe.test(e[0])&&(n.positive.isFunctional=!0),e[1]?oe.test(e[1])&&(n.negative.isFunctional=!0):n.negative=!1,e[2]?oe.test(e[2])&&(n.zero.isFunctional=!0):n.zero=!1;const o="U"===this.type;n.positive.isFunctional||ue(n.positive,t,r,o),n.negative&&!n.negative.isFunctional&&ue(n.negative,t,r,o),n.zero&&!n.zero.isFunctional&&ue(n.zero,t,r,o)}formatValue(e){let t,r,n,o,i,a,s,l,u,c=this._prepared,d="",p="",f=e;if(isNaN(e))return"".concat(f);if(e=+e,!1===c.pattern)return e.toString();if(0===e&&c.zero)return c=c.zero,c.pattern;if(e<0&&c.negative?(c=c.negative,e=-e):c=c.positive,i=c.d,a=c.t,c.isFunctional)e=se(e,c.pattern,i);else{if(c.percentage&&(e*=100),c.abbreviate){const t=Object.keys(this.abbreviations).map((e=>parseInt(e,10))).sort(((e,t)=>e-t));let n,o,i=t[0];for(s=0,r=Number(Number(e).toExponential().split("e")[1]);i<=r&&s<t.length;)s++,i=t[s];s>0&&(n=t[s-1]),n&&r>0&&n>0?o=n:(r<0&&n<0||!n)&&(i<0&&i-r<=c.maxPrecision?o=i:n<=r&&!(i>0&&-r<=c.maxPrecision)&&(o=n)),o&&(d=this.abbreviations[o],e/=10**o)}if(n=Math.abs(e),t=c.temp,l=c.numericPattern,u=l.split(i)[1],"I"===this.type&&(e=Math.round(e)),o=e,u||"#"!==l.slice(-1)[0])if(n>=1e15||n>0&&n<=1e-14)e=n?n.toExponential(15).replace(/\.?0+(?=e)/,""):"0";else{const t=Number((e+1e-15*(e<0?-1:1)).toFixed(Math.min(20,u?u.length:0)).split(".")[0]);let r=l.split(i)[0];if(r+=i,e=Y(r,t)||"0",u){const t=Math.max(0,Math.min(14,u.length)),r=u.replace(/#+$/,"").length;let o=("I"===this.type?0:n%1+1e-15).toFixed(t).slice(2).replace(/0+$/,"");for(s=o.length;s<r;s++)o+="0";o&&(e+=i+o)}else 0===t&&(o=0)}else if(n>=10**t||n<1||n<1e-4)0===e?e="0":n<1e-4||n>=1e20?(e=(e=o.toExponential(Math.max(1,Math.min(14,t))-1)).replace(/\.?0+(?=e)/,""),p=""):(e=e.toPrecision(Math.max(1,Math.min(14,t)))).indexOf(".")>=0&&(e=(e=e.replace(e.indexOf("e")<0?/0+$/:/\.?0+(?=e)/,"")).replace(".",i));else{for(l+=i,t=Math.max(0,Math.min(20,t-Math.ceil(Math.log(n)/Math.log(10)))),s=0;s<t;s++)l+="#";e=Y(l,e)}e=e.replace(c.numericRegex,(e=>e===a?c.groupTemp:e===i?c.decTemp:"")),o<0&&!/^-/.test(e)&&(e="-".concat(e))}return c.prefix+e+p+d+c.postfix}static getStaticFormatter(){return{prepare(){},formatValue:e=>"".concat(e)}}}function de(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{size:r=5e3,multipleArguments:n=!1,toKey:o=e=>e}=t;let i,a,s=Object.create(null),l=Object.create(null),u=0,c=0;return i=n?function(){return a=o(...arguments),i.has(a)?i.get(a):i.set(a,e(...arguments))}:t=>(a=o(t),i.has(a)?i.get(a):i.set(a,e(t))),i.set=(e,t)=>(u>=r&&(delete s[l[c]],delete l[c],u--,c++),s[e]=t,l[u]=e,u++,t),i.get=e=>s[e],i.has=e=>e in s,i.clear=()=>{s=Object.create(null),l=Object.create(null),u=0,c=0},i.size=()=>u,i}function pe(e,t,r,n,o){const i=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new ce(...t)}(o,e,t,r,n),a=de(i.formatValue.bind(i),{toKey:e=>isNaN(e)?e:+e});function s(e){return a(e)}return s.format=function(e,t,r,n){return a.clear(),i.format(t,e,r,n)},s.pattern=function(e){return e&&(a.clear(),i.pattern=e,i.prepare()),i.pattern},s}const fe="D",he="T",me="TS",ge="IV",be=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ve=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],ye=["January","February","March","April","May","June","July","August","September","October","November","December"],xe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Se(e,t){for(let r=e.length;r<t;r++)e="0".concat(e);return e}function Ce(e){let t=e.toString().split(".");return t[1]?(t=Number("0.".concat(t[1])),t):0}function Ee(e,t){let r,n=function(e){const t=e,r=24*Ce(t),n=60*Ce(r),o=60*Ce(n),i=1e3*Ce(o);return{d:Math.floor(t),h:Math.floor(r),m:Math.floor(n),s:Math.floor(o),f:Math.round(i)}}(e),o=n.d,i=n.h,a=n.m,s=n.s,l=n.f,u=0;/w+|t+/gi.test(t)&&(r=new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,Math.round(86400*(e-Math.floor(e))))),isNaN(r.getTime())&&(r=null)),/D+/gi.test(t)||(i+=24*o),/h+/gi.test(t)||(a+=60*i),/m+/gi.test(t)||(s+=60*a),/w+/gi.test(t)&&(u=r?r.getDay()-1:0,u<0&&(u=6));let c="";return r&&(c=r.getUTCHours()>=12?"pm":"am"),{year:0,month:0,day:u,date:o,h:i,m:a,s:s,f:l,t:c}}class we{constructor(e,t,r){const n=e||{};n.qCalendarStrings||(n.qCalendarStrings={qLongDayNames:be,qDayNames:ve,qLongMonthNames:ye,qMonthNames:xe}),this.localeInfo=n,this.locale_days=n.qCalendarStrings.qLongDayNames.slice(),this.locale_days_abbr=n.qCalendarStrings.qDayNames.slice(),this.locale_months=n.qCalendarStrings.qLongMonthNames.slice(),this.locale_months_abbr=n.qCalendarStrings.qMonthNames.slice(),t||(t={[he]:n.qTimeFmt||"hh:mm:ss",[fe]:n.qDateFmt||"YYYY-MM-DD",[me]:n.qTimestampFmt||"YYYY-MM-DD hh:mm:ss"}[r]),this.pattern=t}clone(){const e=new we(this.localeInfo,this.pattern);return e.subtype=this.subtype,e}format(e,t){t||(t=this.pattern?this.pattern:"YYYY-MM-DD hh:mm:ss"),t=t.replace(/\[.+]|\[|]/g,"");const r=/t+/gi.test(t);let n;e instanceof Date?n=function(e,t){let r=e.getUTCHours(),n=e.getUTCDay()-1;return t&&(r%=12,r||(r=12)),n<0&&(n=6),{year:e.getUTCFullYear(),month:e.getUTCMonth(),day:n,date:e.getUTCDate(),h:r,m:e.getUTCMinutes(),s:e.getUTCSeconds(),f:e.getUTCMilliseconds(),t:e.getUTCHours()>=12?"pm":"am"}}(e,r):(e<0&&(e=-e,t="-".concat(t)),n=Ee(e,t));const o=function(e,t){return{"Y+|y+":{Y:"".concat(Number("".concat(t.year).slice(-2))),YY:Se("".concat(t.year).slice(-2),2),YYY:Se("".concat(t.year).slice(-3),3),def:e=>Se("".concat(t.year),e.length)},"M+":{M:t.month+1,MM:Se("".concat(t.month+1),2),MMM:e.locale_months_abbr[t.month],def:e.locale_months[t.month]},"W+|w+":{W:t.day,WW:Se("".concat(t.day),2),WWW:e.locale_days_abbr[t.day],def:e.locale_days[t.day]},"D+|d+":{D:t.date,def:e=>Se("".concat(t.date),e.length)},"h+|H+":{h:t.h,def:e=>Se("".concat(t.h),e.length)},"m+":{m:t.m,def:e=>Se("".concat(t.m),e.length)},"s+|S+":{s:t.s,def:e=>Se("".concat(t.s),e.length)},"f+|F+":{def(e){let r="".concat(t.f),n=e.length-r.length;if(n>0)for(let e=0;e<n;e++)r+="0";else n<0&&(r=r.slice(0,e.length));return r}},"t{1,2}|T{1,2}":{def(e){let r=t.t;return e[0].toUpperCase()===e[0]&&(r=r.toUpperCase()),r=r.slice(0,e.length),r}}}}(this,n),i=[];for(const e in o)Object.prototype.hasOwnProperty.call(o,e)&&i.push(e);const a=new RegExp(i.join("|"),"g");return t.replace(a,(e=>{let t,r,n;for(r in o)if(Object.prototype.hasOwnProperty.call(o,r)&&(t=new RegExp(r),t.test(e)))break;if(!t)return"";for(const t in o[r])if(t===e||t.toLowerCase()===e){n=o[r][t],void 0===n&&(n=o[r][t.toLowerCase()]);break}return void 0===n&&(n=o[r].def),"function"==typeof n&&(n=n(e)),n}))}}function Re(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new we(...t)}function Ae(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"TS",r=Re(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e,t),n=de(r.format.bind(r),{toKey:e=>"object"==typeof e&&"function"==typeof e.getTime?e.getTime():e});function o(e){return t!==ge?function(e){return new Date(Date.UTC(1899,11,30+Math.floor(e),0,0,0,Math.round(864e5*(e-Math.floor(e)))))}(e):e}function i(e){return e=o(e),n(e)}return i.format=function(e,t){return n.clear(),t=o(t),r.format(t,e)},i.locale=function(o){return r=Re(o,e,t),n=de(r.format.bind(r),{toKey:e=>"object"==typeof e?e.getTime():e}),this},i.qtype=function(e){return void 0!==e&&(t=e,n.clear()),t},i}function Me(){let e,{meta:t,id:r,key:n,localeInfo:o,fieldExtractor:i,value:a,type:s,sourceField:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const u=a||("dimension"===s?e=>null==e?void 0:e.qElemNo:e=>null==e?void 0:e.qValue),c="dimension"===s?"first":"avg",d=function(e,t){if(e&&e.qNumFormat&&-1!==["D","T","TS","IV"].indexOf(e.qNumFormat.qType))return Ae(e.qNumFormat.qFmt,e.qNumFormat.qType,t);let r="#",n=t&&void 0!==t.qThousandSep?t.qThousandSep:",",o=t&&void 0!==t.qDecimalSep?t.qDecimalSep:".",i="U",a=e&&!!e.qIsAutoFormat;return e&&e.qNumFormat?(r=e.qNumFormat.qFmt||r,n=e.qNumFormat.qThou||n,o=e.qNumFormat.qDec||o,i=e.qNumFormat.qType||i,a=a&&-1===["M"].indexOf(e.qNumFormat.qType)):a=!0,(a||"U"===i)&&(r="#".concat(o,"##"),i="U"),pe(r,n,o,i,t)}(t,o),p={id:()=>r,key:()=>n,raw:()=>t,title:()=>t.qFallbackTitle||t.label,type:()=>s,origin:()=>l,items:()=>(e||(e=i(p)),e),min:()=>t.qMin,max:()=>t.qMax,value:u,label:e=>(null==e?void 0:e.qText)||"",reduce:c,reduceLabel:"dimension"===s?"first":(e,t)=>d(t),formatter:()=>d,tags:()=>t.qTags};return p}function Ie(e,t,r,n,o){return(t[e]||[]).map(((t,i)=>{const a="".concat(n?"".concat(n,"/"):"").concat(e,"/").concat(i),s={instance:Me(d({id:"".concat(r?"".concat(r,"/"):"").concat(a),key:a,meta:t},o))};return s.attrDims=Ie("qAttrDimInfo",t,r,a,d({},o,{value:e=>null==e?void 0:e.qElemNo,type:"dimension"})),s.attrExps=Ie("qAttrExprInfo",t,r,a,d({},o,{value:e=>null==e?void 0:e.qNum,type:"measure"})),s.measures=Ie("qMeasureInfo",t,r,a,d({},o,{value:e=>null==e?void 0:e.qValue,type:"measure"})),s}))}function Pe(){let{key:e,data:t,config:n={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o={fields:[],wrappedFields:[],allFields:[],virtualFields:[]},i=t;if(!i)throw new Error('Missing "data" input');if(!i.qDimensionInfo)throw new Error('The "data" input is not recognized as a hypercube');const a=Pe.util,s={cache:o,cube:i,localeInfo:n.localeInfo,fieldExtractor:null,pages:null,hierarchy:()=>null,virtualFields:n.virtualFields},l={key:()=>e,raw:()=>i,field:e=>function(e,t){let{cache:r}=t;if("number"==typeof e)return r.fields[e];const n=r.allFields;if("function"==typeof e){for(let t=0;t<n.length;t++)if(e(n[t]))return n[t];return!1}if("string"==typeof e){for(let t=0;t<n.length;t++)if(n[t].key()===e||n[t].title()===e)return n[t]}else if(e&&-1!==n.indexOf(e))return e;throw Error("Field not found: ".concat(e))}(e,s),fields:()=>o.fields.slice(),extract:e=>s.extractor(e,l,o,a),hierarchy:e=>s.hierarchy(e,l,o,a),_cache:()=>o};"K"===i.qMode||"T"===i.qMode||!i.qMode&&i.qNodesOnDim?(s.extractor=U,s.hierarchy=W,s.pages="K"===i.qMode?i.qStackedDataPages:i.qTreeDataPages):"S"===i.qMode?(s.extractor=m,s.pages=i.qDataPages,s.hierarchy=W):s.extractor=()=>[],s.fieldExtractor=e=>s.extractor({field:e},l,o,a);const u="S"===i.qMode?e=>e.qElemNumber:void 0,c="S"===i.qMode?e=>e.qNum:void 0;o.wrappedFields.push(...Ie("qDimensionInfo",i,e,"",d({},s,{value:u,type:"dimension"}))),o.wrappedFields.push(...Ie("qMeasureInfo",i,e,"",d({},s,{value:c,type:"measure"}))),o.fields=o.wrappedFields.map((e=>e.instance));const p=e=>{e.forEach((e=>{o.allFields.push(e.instance),p(e.measures),p(e.attrDims),p(e.attrExps)}))};return p(o.wrappedFields),(n.virtualFields||[]).forEach((t=>{const n=l.field(t.from),i=Me(r({meta:n.raw(),id:"".concat(e,"/").concat(t.key),sourceField:n,fieldExtractor:e=>s.extractor({field:e},l,o,a),key:t.key,type:n.type(),localeInfo:s.localeInfo,value:n.value},t.override||{}));o.virtualFields.push(i)})),o.allFields.push(...o.virtualFields),l}const ke=[["qHyperCube","qHyperCubeDef"],["qTreeData","qTreeDataDef"],["qDimensionInfo","qDimensions"],["qMeasureInfo","qMeasures"],["qAttrDimInfo","qAttributeDimensions"],["qAttrExprInfo","qAttributeExpressions"]],Le=/\/qDimensionInfo(?:\/(\d+))?/,_e=/\/qMeasureInfo\/(\d+)/,De=/\/qAttrDimInfo\/(\d+)(?:\/(\d+))?/,Te=/\/qAttrExprInfo\/(\d+)/,qe=/\/?qHyperCube/,Oe=/\/?qTreeData/,Ne=e=>"".concat(e.substr(0,e.indexOf("/qHyperCubeDef")+14)),je=e=>"".concat(e.substr(0,e.indexOf("/qTreeDataDef")+13));function ze(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;const n=t.byCells,o=t.primarySource,i=[],a={},s=e.isActive();let l=!1;return e.brushes().forEach((e=>{const t=function(e,t){let r=e,n=-1,o=-1,i="",a=e=>e;qe.test(e)?(i="".concat(r.substr(0,r.indexOf("qHyperCube")+10)),a=Ne):Oe.test(e)&&(i="".concat(r.substr(0,r.indexOf("qTreeData")+9)),a=je);let s=!0;if(Le.test(e)&&(n=+Le.exec(e)[1]),_e.test(e)&&(o=+_e.exec(e)[1]),De.test(e)){o=-1,n=0;const e=+De.exec(r)[2];isNaN(e)||(n=e,r=r.replace(/\/\d+$/,"")),s=!1}if(Te.test(e)){const e=o;if(t){o=0;const a=_(i,t);o+=(a.qMeasureInfo||[]).length,n>-1?(o=a.qDimensionInfo.slice(0,n).reduce(((e,t)=>e+t.qAttrExprInfo.length),o),n=-1):(o=a.qDimensionInfo.reduce(((e,t)=>e+t.qAttrExprInfo.length),o),o=a.qMeasureInfo.slice(0,e).reduce(((e,t)=>e+t.qAttrExprInfo.length),o)),o+=+Te.exec(r)[1]}else n>-1?(n=-1,o=+Te.exec(r)[1]):o+=+Te.exec(r)[1]+1}return ke.forEach((e=>{let[t,n]=e;r=r.replace(t,n)})),s&&(r=a(r)),r&&"/"!==r[0]&&(r="/".concat(r)),{measureIdx:o,dimensionIdx:n,path:r}}(e.id,r);if("range"===e.type&&t.measureIdx>-1&&t.dimensionIdx>-1){const r=e.brush.ranges();r.length&&(l=!0,a.multiRangeSelectTreeDataValues||(a.multiRangeSelectTreeDataValues={path:t.path,ranges:[]}),r.forEach((e=>a.multiRangeSelectTreeDataValues.ranges.push({qMeasureIx:t.measureIdx,qDimensionIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}else{if("range"===e.type&&t.measureIdx>-1){const r=e.brush.ranges();r.length&&(l=!0,a.rangeSelectHyperCubeValues||(a.rangeSelectHyperCubeValues={path:t.path,ranges:[]}),r.forEach((e=>a.rangeSelectHyperCubeValues.ranges.push({qMeasureIx:t.measureIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!0}}))))}if("range"===e.type&&t.dimensionIdx>-1){const r=e.brush.ranges();r.length&&(l=!0,a.selectHyperCubeContinuousRange||(a.selectHyperCubeContinuousRange={path:t.path,ranges:[]}),r.forEach((e=>a.selectHyperCubeContinuousRange.ranges.push({qDimIx:t.dimensionIdx,qRange:{qMin:e.min,qMax:e.max,qMinInclEq:!0,qMaxInclEq:!1}}))))}if("value"===e.type&&t.dimensionIdx>-1)if(n)if(r&&r.qHyperCube&&("P"===r.qHyperCube.qMode||"T"===r.qHyperCube.qMode||"K"===r.qHyperCube.qMode)){const n=r.qHyperCube,i=n.qNoOfLeftDims,s=n.qEffectiveInterColumnSortOrder.indexOf(t.dimensionIdx);if(a.selectPivotCells||(a.selectPivotCells={path:t.path,cells:[]}),e.id===o||!o){const r=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));(0===i||s>=i)&&i>-1?r.forEach((e=>{a.selectPivotCells.cells.push({qType:"T",qCol:e,qRow:s-i})})):r.forEach((e=>{a.selectPivotCells.cells.push({qType:"L",qCol:t.dimensionIdx,qRow:e})})),l=!!a.selectPivotCells.cells.length}}else a.selectHyperCubeCells||(a.selectHyperCubeCells={path:t.path,cols:[]}),a.selectHyperCubeCells.cols.push(t.dimensionIdx),e.id!==o&&(o||a.selectHyperCubeCells.values)||(a.selectHyperCubeCells.values=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e))),l=!!a.selectHyperCubeCells.values.length);else{const r=e.brush.values().map((e=>+e)).filter((e=>!isNaN(e)));l=!!r.length,i.push({params:[t.path,t.dimensionIdx,r,!1],method:"selectHyperCubeValues"})}}})),!l&&s?[{method:"resetMadeSelections",params:[]}]:(a.rangeSelectHyperCubeValues&&i.push({method:"rangeSelectHyperCubeValues",params:[a.rangeSelectHyperCubeValues.path,a.rangeSelectHyperCubeValues.ranges,[],null===(u=t.orMode)||void 0===u||u]}),a.selectHyperCubeContinuousRange&&i.push({method:"selectHyperCubeContinuousRange",params:[a.selectHyperCubeContinuousRange.path,a.selectHyperCubeContinuousRange.ranges]}),a.selectHyperCubeCells&&i.push({method:"selectHyperCubeCells",params:[a.selectHyperCubeCells.path,a.selectHyperCubeCells.values,a.selectHyperCubeCells.cols]}),a.selectPivotCells&&i.push({method:"selectPivotCells",params:[a.selectPivotCells.path,a.selectPivotCells.cells]}),a.multiRangeSelectTreeDataValues&&i.push({method:"multiRangeSelectTreeDataValues",params:[a.multiRangeSelectTreeDataValues.path,a.multiRangeSelectTreeDataValues.ranges]}),i);var u}function Fe(e){Pe.util=e.data("matrix").util,e.data("q",Pe),e.formatter("q-number",pe),e.formatter("q-time",Ae)}return Fe.qBrushHelper=ze,Fe.selections=ze,Fe}());pC(IE);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,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&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(h,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,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&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(h,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:()=>Le});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 h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(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),h(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=h(0),m=h(1),g=v(d,f),b=v(p,m);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 C={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=h(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=h(0),p=h(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:m,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return m(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=h(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:h,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 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={},M=Array.isArray;function I(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function P(e){return void 0===e}function k(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function L(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]=P(e[r||t])?i:e[t],e=e[r||t]}})),e}function _(e,t){var r=!0;if(I(e)&&I(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){_(e[n],t[n])||(r=!1)})),r);if(M(e)&&M(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}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);_(i,a)||k(t,o)||(P(a)?n.push({op:"add",path:s,value:i}):I(i)&&I(a)?n=n.concat(A.generate(a,i,s)):M(i)&&M(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&P(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(!P(t[0])&&P(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){P(t[o])&&!k(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=L(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(M(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(M(a)&&M(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(I(a)&&I(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!k(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=L(e,t.from);M(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(M(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 D=A,T=function(e,r,n){if(!e)return Promise.resolve();var o=D.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 q="accumulation";function O(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===q)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===q)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var j={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:C.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return C.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=C.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=C.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=C.getNumStepComp(r,l),p=C.getAboveComp(r,l,c,d),f=C.getRangeComp("RangeSum",p);if(C.needDimension({modifier:r,properties:n,layout:o})){var h=C.getDimComp(u,1),m=C.getDimComp(u,0),g=C.getAggrComp(f,h,m);f=r.showExcludedValues?C.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:C.extractInputExpression,initModifier:function(e){C.initModifier(e,j)},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!C.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 C.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=O(t,e);return i&&!i.disabled}};return r}};var F="movingAverage";function $(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===F)return r[n]}function H(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===F)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const G={translationKey:"properties.modifier.movingAverage",needDimension:C.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return C.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=C.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=C.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=C.getNumStepComp(n,u),h=C.getAboveComp(n,u,p,f);if(n.nullSuppression)t=C.getRangeComp("RangeAvg",h);else{var m=C.getRangeComp("RangeSum",h),g=function(e,t){var r=C.getRowNoComp(e,t);if(!C.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(m," / ").concat(g)}var b=t;if(C.needDimension({modifier:n,properties:o,layout:a})){var v=C.getDimComp(c,1),y=C.getDimComp(c,0),x=C.getAggrComp(b,v,y);b=n.showExcludedValues?C.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:C.extractInputExpression,initModifier:function(e){C.initModifier(e,B)},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!C.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(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(H(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(H(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(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(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=$(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return C.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=$(t,e);return i&&!i.disabled}};return r}};var V="timeSeriesDecomposition";function W(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===V)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===V)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:C.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return C.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?C.generateTSDExpression(r,t,n):t},extractInputExpression:C.extractInputExpression,initModifier:function(e,t){C.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=C.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!C.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 C.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(V))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:C.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return C.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:C.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=C.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=C.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=C.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(C.needDimension({modifier:r,properties:n,layout:o})){var f=C.getDimComp(u,1),h=C.getDimComp(u,0),m=C.getAggrComp(p,f,h);p=r.showExcludedValues?C.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}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!C.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 C.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(C.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(C.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return C.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:C.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=C.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=C.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]=C.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!C.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 C.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",he="qLibraryId",me="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,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},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",Ce="qDef.qLabelExpression",Ee="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Me={initBase:function(e,t){(t||Me.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ee,i(e,Se)),r(e,we,i(e,Ce)))},restoreBase:function(e){Me.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ee)),r(e,Ce,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 Ie=Me;function Pe(e){return Pe="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},Pe(e)}var ke={accumulation:z,movingAverage:G,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Le={modifiers:ke,apply:De,applyModifiers:Te,cleanUpMeasure:qe,destroy:function(e){e&&_e[e.id]&&_e[e.id].masterItemSubscriber&&(_e[e.id].masterItemSubscriber&&_e[e.id].masterItemSubscriber.unsubscribe(),delete _e[e.id])},hasActiveModifiers:Oe,getActiveModifier:Ne,initBase:Ie.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return ke[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return ke[e]&&ke[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=Fe(e);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:je};var _e={};function De(){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;_e[r.id]=_e[r.id]||{isFirstTime:!0};var u=_e[r.id].isFirstTime;if(_e[r.id].isFirstTime=!1,n&&"object"===Pe(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=_e[r.id].lastReloadTime;if(_e[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),Oe({measures:p,layout:c})){var h=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 h||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:Fe(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);He(n);var o=Qe(n);return Ye({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return h&&function(e){var t=e.properties;ze(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"===Pe(e)&&!e.disabled){if(r++,"object"!==Pe(ke[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=ke[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ge(t)&&C.simplifyExpression(t.qDef.base.qDef)!==C.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"===Pe(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 ze(n).forEach((function(e){return qe(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),He(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=ze(n)),!r.length)return Promise.resolve();if(!Oe({measures:r,properties:n}))return r.forEach((function(e){return qe(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;Ie.isValid(r)||Ie.initBase(r,!0);var l=r.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Pe(e)&&!e.disabled){if(s++,"object"!==Pe(ke[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)");ke[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:ke[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 ke[n.type].updateModifier&&ke[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:ke[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||je(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&je(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}),Be(r)):qe(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 qe(e){!function(e){var t=Fe(e);return Array.isArray(t)&&t.some((function(e){return"object"===Pe(e)&&!e.disabled&&!ke[e.type]}))}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(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:Fe(e),properties:r,layout:n})}))}function Ne(e){var t=Fe(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(ke[n.type]&&!n.disabled)return n}}function je(e){var t=Ne(e);return!t||ke[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Fe(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function He(e){ze(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&$e(r)!==e.qDef.qDef?delete e.qDef.base:!Ie.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function Be(e){var t=Fe(e);Array.isArray(t)&&t.forEach((function(t){"object"===Pe(t)&&(t.disabled||!ke[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ge(e){return e.base||e.qDef&&e.qDef.base}function Ve(e){var t=Ge(e);return e.qLibraryId||t&&t.qLibraryId}function We(e){var t=e.measure,r=e.properties,n=e.layout;return!Ve(t)&&Ue({modifiers:Fe(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"!==Pe(e)||e.disabled||!ke[e.type])&&(void 0===o[e.type]&&(o[e.type]=ke[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"===Pe(e)&&!e.disabled&&ke[e.type]&&ke[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=ze(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=Fe(t);if(Ue({modifiers:n,properties:e})){var i=Ve(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)?(_e[t.id].masterItemSubscriber=_e[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 De({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),_e[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:()=>He});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 h=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))},m=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),C=r.n(S);function E(e,t){var r=C()(!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 C()(!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 M(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 I(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 P=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},k=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},L=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},_=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}}},D=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)}},q=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))},j=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=C()(!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=C()(!0,{},r,o)).components&&(o.components=[]),o},z=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},F=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=[]))},$=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 M(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 M(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)?M(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)}))}},H=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 I(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 I(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)?I(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)}))}},B=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 G(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 V={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=[]),h({exportFormat:o,qHyperCubeDef:l}),m({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,h=void 0===f||f,m={qChildren:[]},g=j({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,C=y.maxMeasures,E=y.minMeasures,w=l.defaultDimension,R=void 0===w?_():w,A=l.defaultMeasure,M=void 0===A?D():A;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:C,minMeasures:E})&&F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:C,minMeasures:E,newHyperCubeDef:v}),T({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),q({exportFormat:t,maxMeasures:C,minMeasures:E,newHyperCubeDef:v,defaultMeasure:M}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),k("qMaxStackedCells",b,v),k("qNoOfLeftDims",b,v),L("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),L("qMode",b,v,"S"),L("qReductionMode",b,v,"N"),L("qSortbyYValue",b,v),L("qIndentMode",b,v),L("qShowTotalsAbove",b,v),P(g,t,n),m.qProperty=g;var I=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:I}),p&&G(m.qProperty,"storedFilters"),"S"===v.qMode&&h&&G(m.qProperty,"dynamicScript"),m}};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},he=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)},me=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=V.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=V.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",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:b,properties:d})&&he(d):me(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?G(r,"unsupportedAutoMinMax")||C()(r.measureAxis,t.measureAxis):G(r,"supportedAutoMinMax")||C()(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]&&C()(s,r.properties.measureAxes[t[0].axis])):C()(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}}},Ce={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 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=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 Ae="qHyperCubeDef.qMeasures",Me="conditionalColoring",Ie="measures",Pe="qDef.conditionalColoring";const ke={quarantine:function(e){we({properties:e,arrayPath:Ae,quarantineName:Me,arrayName:Ie,itemPath:Pe})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Pe,arrayName:Ie,quarantineName:Me})}};var Le="qHyperCubeDef.qMeasures",_e="measures",De="qHyperCubeDef.qDimensions",Te="dimensions",qe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Oe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",je="alternativeDimensions",ze="qCalcCondition",Fe="conditionalShowHide";const $e={quarantine:function(e){we({properties:e,arrayPath:Le,quarantineName:Fe,arrayName:_e,itemPath:ze}),we({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Le,quarantineName:Fe,arrayName:_e,itemPath:ze}),Re({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze})},quarantineAlternative:function(e){we({properties:e,arrayPath:qe,quarantineName:Fe,arrayName:Oe,itemPath:ze}),we({properties:e,arrayPath:Ne,quarantineName:Fe,arrayName:je,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:qe,quarantineName:Fe,arrayName:Oe,itemPath:ze}),Re({properties:e,arrayPath:Ne,quarantineName:Fe,arrayName:je,itemPath:ze})}},He={hypercube:V,colorChart:be,axisChart:Ce,quarantineProperty:x,unquarantineProperty:G,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:ke,conditionalShow:$e}})(),n.default})()}(PE);var kE=wt(PE.exports);const LE="qHyperCubeDef.qMeasures",_E="measures",DE="qHyperCubeDef.qDimensions",TE="dimensions",qE="qDef.representation",OE="tableRepresentation",NE="qDef.conditionalColoring",jE="conditionalColoring",zE="qMiniChartDef",FE="miniChartDef",$E=(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:rC.PixelsDefault:-1})(r,e,t)));return o},HE=({propertyTree:e,hyperCubePath:t})=>{const r=kE.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:n,qDimensions:o,qMeasures:i}}=r.properties,a=$E(o,i,n);return RE(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),kE.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),kE.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),kE.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{kE.quarantineArrayProp({properties:e,arrayPath:DE,itemPath:qE,arrayName:TE,quarantineName:OE}),kE.quarantineArrayProp({properties:e,arrayPath:LE,itemPath:qE,arrayName:_E,quarantineName:OE}),kE.quarantineArrayProp({properties:e,arrayPath:LE,itemPath:NE,arrayName:_E,quarantineName:jE}),kE.quarantineArrayProp({properties:e,arrayPath:LE,itemPath:zE,arrayName:_E,quarantineName:FE})})(r.properties),r};const BE=/^q[A-Z]/,GE=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],VE=e=>"object"==typeof e&&null!==e,WE=(e,t)=>(Object.entries(e).forEach((([r,n])=>{const o=void 0===t?r:`${t}.${r}`;((e,t)=>!BE.test(e)&&!GE.some((e=>e.test(t))))(r,o)?delete e[r]:Array.isArray(n)?e[r]=n.map(((e,t)=>VE(e)?WE(e,`${o}.${t}`):e)):VE(n)&&(e[r]=WE(n,o))})),e),UE=(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:nC.Pixels,pixels:e}:{type:nC.FitToContent}}return i},YE=({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)}WE(e.properties)}const a=kE.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(kE.conditionalShow.unquarantine(a.qProperty),i)RE(a,"qProperty.totals.show",!1),RE(a,"qProperty.usePagination",!0);else{kE.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{kE.unquarantineArrayProp({properties:e,arrayPath:DE,itemPath:qE,arrayName:TE,quarantineName:OE}),kE.unquarantineArrayProp({properties:e,arrayPath:LE,itemPath:qE,arrayName:_E,quarantineName:OE}),kE.unquarantineArrayProp({properties:e,arrayPath:LE,itemPath:NE,arrayName:_E,quarantineName:jE}),kE.unquarantineArrayProp({properties:e,arrayPath:LE,itemPath:zE,arrayName:_E,quarantineName:FE})})(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=>UE(e,t,n))),measures:a.filter((e=>e>=o)).map((e=>UE(t,e,n,o)))}})(e,t,r,n);Array.isArray(n)&&n.length>0&&(RE(a,"qProperty.qHyperCubeDef.qDimensions",o),RE(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 XE(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function JE(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 ZE(e){return e>0?0:1}function QE(e){return e.translator.get("Visualizations.Descriptions.Column")}function ew(e){return{measures:{min:ZE,max:1e3,description:()=>QE(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;XE(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties;JE(o,(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n)}},dimensions:{min:ZE,max:1e3,description:()=>QE(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return XE(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(null!=e&&e.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;JE(o,n)}}}}let tw=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}({}),rw=function(e){return e.Attribute="attribute",e.Dimension="dimension",e.Measure="measure",e}({});const nw=e=>{switch(null==e?void 0:e.type){case"url":return tw.Link;case"image":return tw.Image;case"indicator":return tw.Indicator;case"miniChart":return tw.MiniChart;default:return tw.Text}},ow=({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}}},iw=(e,t)=>{if(e||t)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>nw(e.qDef.representation)===tw.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}}}}}}},aw=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:ow({isImagesEnabled:a,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:i}}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>nw(e.qDef.representation)===tw.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>{var t;return nw(e.qDef.representation)===tw.Link&&(null===(t=e.qDef.representation)||void 0===t?void 0:t.urlPosition)===rw.Dimension}},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>{var t;return nw(e.qDef.representation)===tw.Link&&(null===(t=e.qDef.representation)||void 0===t?void 0:t.urlPosition)===rw.Attribute}},...iw(a,i)}},sw=(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[tw.Image],a=!(null!=o&&o("qMiniChartDef"))&&t[tw.MiniChart],s=!(null!=o&&o("tableIndicators"))&&t[tw.Indicator],l=i&&t[tw.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=>nw(e.qDef.representation)===tw.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 lw={};!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,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&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(h,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 h(e){return!(!e.fullAccumulation&&!e.fullRange)}function m(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 C(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),h=b(1),m=S(c,p),g=S(d,h);return"".concat(a,"({1<").concat(m,",").concat(g,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function E(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:h,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=C({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:m,getNumStepComp:function(e,t){if(!h(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return m(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:C,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 M(e){return M="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},M(e)}var I=a().bind(null,!0),P={},k=Array.isArray;function L(e){return null!=e&&!Array.isArray(e)&&"object"===M(e)}function _(e){return void 0===e}function D(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]=_(e[r||t])?i:e[t],e=e[r||t]}})),e}function q(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){q(e[n],t[n])||(r=!1)})),r);if(k(e)&&k(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!q(e[n],t[n]))return!1;return!0}return e===t}P.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?I({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);q(i,a)||D(t,o)||(_(a)?n.push({op:"add",path:s,value:i}):L(i)&&L(a)?n=n.concat(P.generate(a,i,s)):k(i)&&k(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&_(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(q(t,o))return n;if(!_(t[0])&&_(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(P.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){_(t[o])&&!D(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},P.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(k(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(k(a)&&k(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(L(a)&&L(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!D(r,e)&&delete r[e]})),I(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);k(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(k(o)?o.splice(+i,1):delete o[i])}))},P.clone=function(e){return I({},e)},P.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},P.updateObject=function(e,t){Object.keys(e).length?P.apply(e,P.generate(e,t)):I(e,t)};const O=P,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 j="accumulation";function z(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===j)return r[n]}function F(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===j)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var $={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const H={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 h=R.getDimComp(u,1),m=R.getDimComp(u,0),g=R.getAggrComp(f,h,m);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,$)},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(F(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(F(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(F(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(F(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=z(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=z(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(F(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(j))return!1;var i=z(t,e);return i&&!i.disabled}}}};var B="movingAverage";function G(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===B)return r[n]}function V(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===B)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),h=R.getAboveComp(n,u,p,f);if(n.nullSuppression)t=R.getRangeComp("RangeAvg",h);else{var m=R.getRangeComp("RangeSum",h),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(m," / ").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(V(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(V(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(V(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(V(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=G(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=G(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(V(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(V(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return R.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(B))return!1;var i=G(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),h=R.getDimComp(u,0),m=R.getAggrComp(p,f,h);p=r.showExcludedValues?R.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,funcComp:"Only",valueComp:m}):m}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 he(e){return 2===e?"{1}":""}function me(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=he(t),l=me(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:he,getFieldSelectionComp:me,getTotalComp:ge,getSelectedDimComp:be};var ye="library id deleted",xe="qDef.qDef",Se="qDef.base.qDef",Ce="qLibraryId",Ee="qDef.base.qLibraryId",we="qDef.qLabel",Re="qDef.qLabelExpression",Ae="qDef.base.qLabel",Me="qDef.base.qLabelExpression",Ie="qDef.qAggrFunc",Pe="qDef.base.qAggrFunc",ke="qDef.base";const Le={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:Ce},getLibraryId:function(e){return l(e,Ee)||l(e,Ce)},getLabelRef:function(e){return l(e,ke)?Ae:we},getLabelExpressionRef:function(e){return l(e,ke)?Me:Re}};var _e={initBase:function(e,t){(t||_e.isValid(e))&&(s(e,Se,l(e,xe)),s(e,Ee,l(e,Ce)),s(e,Ae,l(e,we)),s(e,Me,l(e,Re)))},restoreBase:function(e){_e.isValid(e)&&(s(e,xe,l(e,Se)),s(e,Ce,l(e,Ee)),s(e,we,l(e,Ae)),s(e,Re,l(e,Me)),l(e,Ie)&&l(e,Pe)&&s(e,Ie,l(e,Pe)),delete e.qDef.base)},isValid:function(e){var t=l(e,Se),r=l(e,Ee);return void 0!==t||void 0!==r}};const De=_e;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 qe={accumulation:H,movingAverage:U,difference:re,normalization:ve,timeSeriesDecomposition:Z};const Oe={modifiers:qe,apply:je,applyModifiers:ze,cleanUpMeasure:Fe,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:$e,getActiveModifier:He,initBase:De.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:Le,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=Ve(e);Ze({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||nt({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Be};var Ne={};function je(){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"===Te(r))return ze({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"),$e({measures:p,layout:c})){var h=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 h||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:Ve(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 h&&function(e){var t=e.properties;Ge(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(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&&Ke(t)&&R.simplifyExpression(t.qDef.base.qDef)!==R.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:r}),ze({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 Ge(r).forEach((function(e){return Fe(e)})),rt({oldProperties:e,newProperties:r,model:t})}))}({model:t,properties:e})})):Promise.resolve(s)}function ze(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=Ge(r)),!t.length)return Promise.resolve();if(!o&&!$e({measures:t,properties:r}))return t.forEach((function(e){return Fe(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;De.isValid(t)||De.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(qe[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)");qe[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:qe[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 qe[r.type].updateModifier&&qe[r.type].updateModifier(r,n.qHyperCubeDef);var i=Le.getExpression(t),s=""===i?i:qe[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||Be(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Be(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)):Fe(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 Fe(e){!function(e){var t=Ve(e);return Array.isArray(t)&&t.some((function(e){return"object"===Te(e)&&!e.disabled&&!qe[e.type]}))}(e)?De.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ye(e)}function $e(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ze({modifiers:Ve(e),properties:r,layout:n})}))}function He(e){var t=Ve(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 Be(e){var t=He(e);return!t||qe[t.type].enableTotalsFunction(e)}function Ge(e){return l(e,"qHyperCubeDef.qMeasures",[]).concat(l(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Ve(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function We(e){return l(e,"outputExpression.qValueExpression.qExpr")||l(e,"outputExpression")}function Ue(e){Ge(e).forEach((function(e){return function(e){var t=He(e);t&&(void 0!==t.outputExpression&&We(t)!==e.qDef.qDef?delete e.qDef.base:!De.isValid(e)&&t.base&&(e.qDef.base=a()(!0,{},t.base)))}(e)}))}function Ye(e){var t=Ve(e);Array.isArray(t)&&t.forEach((function(t){"object"===Te(t)&&(t.disabled||!qe[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:Ve(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||!qe[e.type])&&(void 0===o[e.type]&&(o[e.type]=qe[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"===Te(e)&&!e.disabled&&qe[e.type]&&qe[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function ot(e){var t=Ge(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=Ve(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 je({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})})()}(lw);var uw=wt(lw);const cw={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},dw={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}},pw=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)=>(!uw.hasActiveModifiers({measures:[e],properties:t.properties})||uw.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"))}},fw={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:nC.Auto,translation:"Common.Auto"},{value:nC.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:nC.Pixels,translation:"Object.Table.Column.Pixels"},{value:nC.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:nC.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)===nC.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(rC.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)===nC.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(rC.PercentageMax,e.qDef.columnWidth.percentage)))}}},hw=()=>({...cw,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}]},...dw,...fw}),mw={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"}},gw=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:pw(e)}},bw=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:mw},presentation:{type:"items",translation:"properties.presentation",items:{...hw(),...aw(e)}}}}}),vw=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:gw(e)},presentation:{type:"items",translation:"properties.presentation",items:{...hw(),...sw(e,{[tw.Image]:e.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[tw.Indicator]:!0,[tw.MiniChart]:!0})}}}}}),yw=e=>({...bw(e),...vw(e)}),xw=e=>({type:"items",translation:"Common.Data",component:"data-assets-panel",items:{...yw(e)}}),Sw=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...yw(e)}},filters:{type:"items",component:"filters-assets-panel",ref:"filters",tabName:"SimpleProperties.Filters.Filters",items:{filter:{type:"object",component:"filter-item-react",ref:"filter"}}}}}),Cw={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}},Ew=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"))}},ww=(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}}}),Rw=(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},Aw=({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=>Rw(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=>Rw(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),Mw=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],Iw=({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=>Rw(e,!1)))],l=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...Mw.filter((e=>!a.includes(e))).map((e=>Rw(e,!1)))];return[...s,...l.length>1?l:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),Pw=({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:Aw({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:Iw({ref:`${e}.fontSize`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontSize"))&&void 0!==r?r:t.fontSize},translator:r}),fontColor:ww(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=o(t,e,"color"))&&void 0!==r?r:t.color}))}},background:ww(`${e}.background`,"properties.background",((t,r)=>{var n;const i=r?CS.WHITE:CS.TRANSPARENT;return null!==(n=o(t,e,"backgroundColor"))&&void 0!==n?n:i}),a)}}}}),kw=({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:ww(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=n(t,e,"color"))&&void 0!==r?r:t.color}))}},background:ww(`${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"}))}}}}),Lw=(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}},_w=e=>{var t;return null===(t=e.grid)||void 0===t||null===(t=t.zebraStripes)||void 0===t?void 0:t.show},Dw={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)}},Tw=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"),...Dw},border:ww("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:CS.BORDER_MEDIUM})),divider:ww("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:CS.BORDER_HEAVY}))}}}}),qw=e=>{var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},Ow={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:qw,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:qw,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},Nw=(e,t,{properties:r})=>"sn-table"===r.visualization&&!0===r.usePagination,jw=({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:Pw({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:Lw,disableNoneCallback:Nw}),dimensionValueSection:Pw({section:"dimensionValues",translator:t,flags:e,getThemeValue:Lw}),measureValueSection:Pw({section:"measureValues",translator:t,flags:e,getThemeValue:Lw}),totalRowSection:Pw({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:Lw,disableNoneCallback:Nw}),nullValues:kw({section:"nullValues",fallbackBackground:CS.NULL_VALUE_BACKGROUND,getThemeValue:Lw}),grid:Tw(e),hoverEffectSection:Ow,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:_w,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:_w,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:_w,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:_w,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),zw=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[jw(e),Ew(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:"-"}]},...Cw}}),Fw={uses:"sorting"},$w={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},Hw=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?Sw(e):xw(e),sorting:Fw,addOns:$w,settings:zw(e)}}};function Bw(e){var t,r;return{definition:Hw(e),exploration:KE,data:ew(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 YE({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:i,viewDataMode:o})},exportProperties:(e,t)=>HE({propertyTree:e,hyperCubePath:t})}}const Gw=(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]),Vw=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),Ww=[];for(let e=0;e<256;++e)Ww.push((e+256).toString(16).slice(1));let Uw;const Yw=new Uint8Array(16);var Kw={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Xw(e,t,r){var n,o,i,a;if(Kw.randomUUID&&!e)return Kw.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(!Uw){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Uw=crypto.getRandomValues.bind(crypto)}return Uw(Yw)}();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(Ww[e[t+0]]+Ww[e[t+1]]+Ww[e[t+2]]+Ww[e[t+3]]+"-"+Ww[e[t+4]]+Ww[e[t+5]]+"-"+Ww[e[t+6]]+Ww[e[t+7]]+"-"+Ww[e[t+8]]+Ww[e[t+9]]+"-"+Ww[e[t+10]]+Ww[e[t+11]]+Ww[e[t+12]]+Ww[e[t+13]]+Ww[e[t+14]]+Ww[e[t+15]]).toLowerCase()}(s)}const Jw=()=>{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:Xw()},Zw=({qLibraryId:e,cId:t})=>{var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:Jw()},Qw=e=>"number"==typeof e&&!Number.isNaN(+e),eR=e=>Qw(e.qNum),tR=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e);function rR(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 nR(e,t,r){return t=sR(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,uR()?Reflect.construct(t,r||[],sR(e).constructor):t.apply(e,r))}function oR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iR(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,pR(n.key),n)}}function aR(e,t,r){return t&&iR(e.prototype,t),r&&iR(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function sR(e){return sR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sR(e)}function lR(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&&cR(e,t)}function uR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(uR=function(){return!!e})()}function cR(e,t){return cR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cR(e,t)}function dR(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 rR(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)?rR(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 pR(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 fR(e){return fR="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},fR(e)}var hR={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:mR(e),value:mR(t),useEqualSign:r}}(r,o,i))}})),t}};function mR(e){try{return decodeURIComponent(e)}catch(t){return e}}function gR(e){if(!(this instanceof gR))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 hR.fromSearchString(t.search)}}})}function bR(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}gR.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},gR.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=bR((t=e[n]).key),t.value?r+="=".concat(bR(t.value)):r+=t.useEqualSign?"=":"";return r};var vR,yR=function(){return aR((function e(t){oR(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}}])}(),xR=function(){return aR((function e(){oR(this,e)}),[{key:"decode",value:function(e){for(var t,r="",n=new yR(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}])}(),SR=function(e){return e>=0&&e<=1114111},CR=function(e){return e.match(/[\s]/)},ER=function(e){function t(){return oR(this,t),nR(this,t,arguments)}return lR(t,e),aR(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())&&!CR(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return SR(a)?String.fromCharCode(a):"�"}}])}(xR),wR=function(){function e(t,r){oR(this,e),this._key=t,this._value=r}return aR(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}}])}(),RR=function(){function e(){oR(this,e)}return aR(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 wR.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return wR.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||wR.newInstanceIfNeeded(e,t,this._value)}}])}(),AR=function(){return aR((function e(){oR(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 RR);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}])}(),MR=function(){var e,t,r,n=[],o=[],i=new AR;for(e in n["""]="34",n["&"]="38",n["<"]="60",n[">"]="62",n[" "]="160",n["¡"]="161",n["¢"]="162",n["£"]="163",n["¤"]="164",n["¥"]="165",n["¦"]="166",n["§"]="167",n["¨"]="168",n["©"]="169",n["ª"]="170",n["«"]="171",n["¬"]="172",n["­"]="173",n["®"]="174",n["¯"]="175",n["°"]="176",n["±"]="177",n["²"]="178",n["³"]="179",n["´"]="180",n["µ"]="181",n["¶"]="182",n["·"]="183",n["¸"]="184",n["¹"]="185",n["º"]="186",n["»"]="187",n["¼"]="188",n["½"]="189",n["¾"]="190",n["¿"]="191",n["À"]="192",n["Á"]="193",n["Â"]="194",n["Ã"]="195",n["Ä"]="196",n["Å"]="197",n["Æ"]="198",n["Ç"]="199",n["È"]="200",n["É"]="201",n["Ê"]="202",n["Ë"]="203",n["Ì"]="204",n["Í"]="205",n["Î"]="206",n["Ï"]="207",n["Ð"]="208",n["Ñ"]="209",n["Ò"]="210",n["Ó"]="211",n["Ô"]="212",n["Õ"]="213",n["Ö"]="214",n["×"]="215",n["Ø"]="216",n["Ù"]="217",n["Ú"]="218",n["Û"]="219",n["Ü"]="220",n["Ý"]="221",n["Þ"]="222",n["ß"]="223",n["à"]="224",n["á"]="225",n["â"]="226",n["ã"]="227",n["ä"]="228",n["å"]="229",n["æ"]="230",n["ç"]="231",n["è"]="232",n["é"]="233",n["ê"]="234",n["ë"]="235",n["ì"]="236",n["í"]="237",n["î"]="238",n["ï"]="239",n["ð"]="240",n["ñ"]="241",n["ò"]="242",n["ó"]="243",n["ô"]="244",n["õ"]="245",n["ö"]="246",n["÷"]="247",n["ø"]="248",n["ù"]="249",n["ú"]="250",n["û"]="251",n["ü"]="252",n["ý"]="253",n["þ"]="254",n["ÿ"]="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["¬in"]="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}(),IR=function(e){function t(){return oR(this,t),nR(this,t,arguments)}return lR(t,e),aR(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,MR.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=MR.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)&&SR(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)&&SR(n)?String.fromCharCode(n):null}}])}(xR),PR=function(e){function t(){return oR(this,t),nR(this,t,arguments)}return lR(t,e),aR(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),SR(o))?String.fromCharCode(o):(e.reset(),null)}}])}(xR),kR=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(vR=document.createElement("div"));var LR=Array.prototype.indexOf,_R=[",",".","_"," "],DR=[",",".","-","_"," "],TR={width:["%"],height:["%"]},qR={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},OR={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":qR.image,"background-color":qR.color,"border-color":qR.color,"border-image":qR.image,color:qR.color,icon:qR.image,"list-style-image":qR.image,"outline-color":qR.color},NR={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function jR(e,t,r){var n;if(t){if(LR)return LR.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 zR(e){if(null==e)return"";var t,r=document.createTextNode(e);return vR.appendChild(r),t=vR.innerHTML,vR.removeChild(r),t}function FR(e,t,r){var n,o,i,a,s,l,u,c,d;for(e=HR(e).toLowerCase(),t=HR(t),i=0;i<NR.attr_name.length;i++)if(e.match(NR.attr_name[i]))throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<NR.attr_val.length;i++)if(t.toLowerCase().match(NR.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=TR[e])||(n=DR),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]/)&&jR(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function $R(e,t,r){var n,o,i,a,s,l,u,c,d,p;if(e=HR(e).toLowerCase(),t=HR(t),jR(e,NR.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<NR.css_val.length;n++)if(t.toLowerCase().indexOf(NR.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=OR[e])||(o=qR.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]/)&&jR(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function HR(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var s=[new IR,new PR,new ER];!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 BR=[],GR=0;GR<255;GR++)BR[GR]=GR>=48&&GR<=57||GR>=65&&GR<=90||GR>=97&&GR<=122?null:GR.toString(16);var VR=function(e){return zR(e.unsafe)},WR=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]=$R(t,r[t],!0),i+=$R(t,r[t],!0),o[t]=n[t]);return e.map?o:i},UR=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]=FR(i,t[i],!0),o+=FR(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function YR(e,t){throw new Error(t)}var KR={canonicalize:HR,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===fR(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?VR(e):"css"===e.context?(null!=e.map&&"object"!==fR(e.map)&&YR(this,"Invalid parameter type"),WR(e)):"attr"===e.context?(null!=e.map&&"object"!==fR(e.map)&&YR(this,"Invalid parameter type"),UR(e)):void YR(this,"Invalid parameter type")},encodeForAttr:FR,encodeForAttr2:function(e){return FR("nonsens",e,!0)},encodeForCSS:$R,encodeForHref:function(e){HR(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new gR(e),r=gR.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+gR.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=_R),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),jR(o,t)>=0||null==BR[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:zR,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=HR(t).toLowerCase():YR(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=dR(null!==(t=kR.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 XR=(e,t)=>{var r;return null===(r=t.qAttrExps)||void 0===r||null===(r=r.qValues)||void 0===r?void 0:r[e]},JR=(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"}}},ZR=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>n&&t&&!t.toLowerCase().includes("javascript:")&&KR.isSafeDataURL(t)?{type:tw.Image,url:t,text:e,imageSize:r,resolvedImagePosition:JR(n,a),labelStructure:o,imageBox:i}:{type:tw.Text,url:void 0,text:e,labelStructure:o},QR=(e,t,r,n)=>{if(!e.qMiniChart||null==t||!t.miniChart||!r)return{type:tw.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:tw.MiniChart,text:n,miniChart:a}},eA=(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)===rw.Attribute||null==r?void 0:r.urlLabel},tA=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:tw.Link,url:KR.encodeForHref(r),text:t,labelStructure:e}}catch(r){return{type:tw.Text,url:void 0,text:t,labelStructure:e}}},rA=({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,h,m;const g=nw(t),b=s(e);return g!==tw.Image||!u[tw.Image]||null!==(c=n.anything.sense)&&void 0!==c&&null!==(d=c.isUnsupportedFeature)&&void 0!==d&&d.call(c,"tableImages")?g===tw.Link?((e,t,r,n,o)=>{const{urlPosition:i}=null!=t?t:{};if(i===rw.Attribute){var a;const i=eA(null!==(a=r.url)&&void 0!==a?a:-1,e,t);return tA({labelStructure:n,text:o||i||"",url:i})}if(i===rw.Dimension){var s,l;const i=eA(null!==(s=r.urlLabel)&&void 0!==s?s:-1,e,t)||o;return n&&(n.maskedValue=i),tA({text:i,labelStructure:n,url:null!==(l=null==n?void 0:n.originalValue)&&void 0!==l?l:o})}return{type:tw.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,b):g!==tw.Indicator||!u[tw.Indicator]||null!==(p=n.anything.sense)&&void 0!==p&&null!==(f=p.isUnsupportedFeature)&&void 0!==f&&f.call(p,"tableIndicators")?g!==tw.MiniChart||!u[tw.MiniChart]||null!==(h=n.anything.sense)&&void 0!==h&&null!==(m=h.isUnsupportedFeature)&&void 0!==m&&m.call(h,"qMiniChartDef")?{type:tw.Text,url:void 0,text:b,labelStructure:a}:QR(e,t,i,b):((e,t,r)=>{const{indicator:n}=null!=e?e:{};return{type:tw.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=XR(null!==(p=r.imageUrl)&&void 0!==p?p:-1,e))||void 0===d?void 0:d.qText;return i&&(i.maskedValue=null!=t?t:""),ZR({text:n,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}if("label"===l){var f,h,m;const t=i?i.originalValue:n;if(-1===r.imageLabel)return ZR({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=null!==(f=null===(h=XR(null!==(m=r.imageLabel)&&void 0!==m?m:-1,e))||void 0===h?void 0:h.qText)&&void 0!==f?f:n;return ZR({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:tw.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,b,l,a)},nA=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,oA=(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:"-"},iA=1e4;function aA(e,t){return[...t].reverse().find((t=>t*e<=iA))||Math.floor(iA/e)}function sA(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 lA(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 uA(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return Qw(null==r?void 0:r.qNum)}function cA(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 dA=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right";const pA=(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===aC.Cyclic,f=t===l[0];let h,m,g="",b=!1,v=-1,y=0,x=[];const{representation:S,conditionalColoring:C}=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:h}=e)}else({qMiniChart:m}=d);const{qFallbackTitle:w,textAlign:R,qAttrExprInfo:A,qSortIndicator:M,qReverseSort:I,qApprMaxGlyphCount:P,columnWidth:k,qLibraryId:L}=d;return{isDim:c,isCyclic:p,isLocked:b,fieldId:g,colIdx:t,qLibraryId:L,pageColIdx:r,qApprMaxGlyphCount:P,qReverseSort:I,columnWidth:null!=k?k:{type:nC.Auto},selectionColIdx:v,isActivelySorted:f,id:Zw(d),label:w,groupDimensionPos:y,groupDimensionLabels:x,qAttrExprInfoIDs:A.map((e=>e.id)),qAttrExprInfoIndex:Vw(d),sortDirection:M&&"N"!==M?M:"A",totalInfo:lA(e,c,r,n),...!c&&{isTotalNumeric:uA(e,n)},...cA(R,h,c,o,i),representation:S,conditionalColoring:c?void 0:C,qMiniChart:m}}(e,n,o,u[n],t,r)))};const fA=(e,t)=>{var r;return!!(e.snapshotData||null!==(r=t.viewState)&&void 0!==r&&r.visibleHeight)},hA=(e,t)=>{var r;return void 0!==(null===(r=t.viewState)||void 0===r?void 0:r.usePagination)?t.viewState.usePagination:!1!==e.usePagination||fA(e,t)};var mA={exports:{}};
|
|
103
103
|
/*!
|
|
104
104
|
* CSSJanus. https://github.com/cssjanus/cssjanus
|
|
105
105
|
*
|
|
@@ -118,4 +118,4 @@ function fp(e,t){let r;return r=t?lp(e).withConfig({displayName:t.label,shouldFo
|
|
|
118
118
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
119
119
|
* See the License for the specific language governing permissions and
|
|
120
120
|
* limitations under the License.
|
|
121
|
-
*/!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")}}}));
|
|
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.,%-]+\\))",h="(?:[!#$%&*-~]|"+r+"|"+u+")*?",m="(?![a-zA-Z])",g="(?!("+c+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",b="(?!"+h+a+"\\))",v="(?="+h+a+"\\))",y="(\\s*(?:!important\\s*)?[;}])",x=/`TMP`/g,S=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),C=new RegExp("("+l+g+"[^;}]+;?)","gi"),E=new RegExp("("+l+"[^\\}]*?})","gi"),w=new RegExp("("+i+")ltr","gi"),R=new RegExp("("+i+")rtl","gi"),A=new RegExp(s+"(left)"+m+b+g,"gi"),M=new RegExp(s+"(right)"+m+b+g,"gi"),I=new RegExp(s+"(left)"+v,"gi"),P=new RegExp(s+"(right)"+v,"gi"),k=new RegExp(s+"(ltr)"+v,"gi"),L=new RegExp(s+"(rtl)"+v,"gi"),_=new RegExp(s+"([ns]?)e-resize","gi"),D=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"),q=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"),j=new RegExp("(border-radius\\s*:\\s*)"+p+"(?:(?:\\s+"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?)?(?:(?:(?:\\s*\\/\\s*)"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?(?:\\s+"+p+")?)?"+y,"gi"),z=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+p,"gi"),F=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+f,"gi"),$=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+p,"gi"),H=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),B=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),G=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+p+"((?:\\s*,\\s*"+p+"){0,2}\\s*\\))","gi");function V(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(C,"`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(k,"$1"+e).replace(L,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(r=r.replace(I,"$1"+e).replace(P,"$1left").replace(x,"right")),r=r.replace(w,"$1"+e).replace(R,"$1ltr").replace(x,"rtl").replace(A,"$1"+e).replace(M,"$1left").replace(x,"right").replace(_,"$1$2"+e).replace(D,"$1$2e-resize").replace(x,"w-resize").replace(j,U).replace(z,K).replace(F,J).replace($,J).replace(H,K).replace(B,X).replace(G,X).replace(T,"$1$2$3$8$5$6$7$4$9").replace(q,"$1$2$3$8$5$6$7$4$9").replace(O,V).replace(N,V),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)}(mA,mA.exports);var gA=wt(mA.exports),bA="comm",vA="rule",yA="decl",xA=Math.abs,SA=String.fromCharCode;function CA(e){return e.trim()}function EA(e,t,r){return e.replace(t,r)}function wA(e,t,r){return e.indexOf(t,r)}function RA(e,t){return 0|e.charCodeAt(t)}function AA(e,t,r){return e.slice(t,r)}function MA(e){return e.length}function IA(e,t){return t.push(e),e}var PA,kA,LA,_A,DA=1,TA=1,qA=0,OA=0,NA=0,jA="";function zA(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:DA,column:TA,length:a,return:"",siblings:s}}function FA(){return NA=OA>0?RA(jA,--OA):0,TA--,10===NA&&(TA=1,DA--),NA}function $A(){return NA=OA<qA?RA(jA,OA++):0,TA++,10===NA&&(TA=1,DA++),NA}function HA(){return RA(jA,OA)}function BA(){return OA}function GA(e,t){return AA(jA,e,t)}function VA(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 WA(e){return CA(GA(OA-1,KA(91===e?e+2:40===e?e+1:e)))}function UA(e){for(;(NA=HA())&&NA<33;)$A();return VA(e)>2||VA(NA)>3?"":" "}function YA(e,t){for(;--t&&$A()&&!(NA<48||NA>102||NA>57&&NA<65||NA>70&&NA<97););return GA(e,BA()+(t<6&&32==HA()&&32==$A()))}function KA(e){for(;$A();)switch(NA){case e:return OA;case 34:case 39:34!==e&&39!==e&&KA(NA);break;case 40:41===e&&KA(e);break;case 92:$A()}return OA}function XA(e,t){for(;$A()&&e+NA!==57&&(e+NA!==84||47!==HA()););return"/*"+GA(t,OA-1)+"*"+SA(47===e?e:$A())}function JA(e){for(;!VA(HA());)$A();return GA(e,OA)}function ZA(e){return function(e){return jA="",e}(QA("",null,null,null,[""],e=function(e){return DA=TA=1,qA=MA(jA=e),OA=0,[]}(e),0,[0],e))}function QA(e,t,r,n,o,i,a,s,l){for(var u=0,c=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y="",x=o,S=i,C=n,E=y;g;)switch(h=v,v=$A()){case 40:if(108!=h&&58==RA(E,d-1)){-1!=wA(E+=EA(WA(v),"&","&\f"),"&\f",xA(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:E+=WA(v);break;case 9:case 10:case 13:case 32:E+=UA(h);break;case 92:E+=YA(BA()-1,7);continue;case 47:switch(HA()){case 42:case 47:IA(tM(XA($A(),BA()),t,r,l),l),5!=VA(h||1)&&5!=VA(HA()||1)||!MA(E)||" "===AA(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*m:s[u++]=MA(E)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(E=EA(E,/\f/g,"")),f>0&&(MA(E)-d||0===m&&47===h)&&IA(f>32?rM(E+";",n,r,d-1,l):rM(EA(E," ","")+";",n,r,d-2,l),l);break;case 59:E+=";";default:if(IA(C=eM(E,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)QA(E,t,C,C,x,i,d,s,S);else{switch(p){case 99:if(110===RA(E,3))break;case 108:if(97===RA(E,2))break;default:c=0;case 100:case 109:case 115:}c?QA(e,C,C,n&&IA(eM(e,C,C,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S):QA(E,C,C,C,[""],S,0,s,S)}}u=c=f=0,m=b=1,y=E="",d=a;break;case 58:d=1+MA(E),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==FA())continue;switch(E+=SA(v),v*m){case 38:b=c>0?1:(E+="\f",-1);break;case 44:s[u++]=(MA(E)-1)*b,b=1;break;case 64:45===HA()&&(E+=WA($A())),p=HA(),c=d=MA(y=E+=JA(BA())),v++;break;case 45:45===h&&2==MA(E)&&(m=0)}}return i}function eM(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=function(e){return e.length}(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=AA(e,p+1,p=xA(g=a[m])),x=e;v<h;++v)(x=CA(g>0?f[v]+" "+y:EA(y,/&\f/g,f[v])))&&(l[b++]=x);return zA(e,t,r,0===o?vA:s,l,u,c,d)}function tM(e,t,r,n){return zA(e,t,r,bA,SA(NA),AA(e,2,-2),0,n)}function rM(e,t,r,n,o){return zA(e,t,r,yA,AA(e,0,n),AA(e,n+1,-1),n,o)}function nM(e,t,r){switch(e.type){case"@import":case yA:case bA:return e.return=e.return||e.value;case vA:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===bA&&(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),nM);return MA(n)?e.return=e.value+"{"+n+"}":""}function oM(e,t,r,n){if("@keyframes"===e.type||"@supports"===e.type||e.type===vA&&(!e.parent||"@media"===e.parent.type||e.parent.type===vA)){var o=gA.transform(nM(e));e.children=o?ZA(o)[0].children:[],e.return=""}}Object.defineProperty(oM,"name",{value:"stylisRTLPlugin"}),function(e){e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive"}(PA||(PA={})),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"}(kA||(kA={})),function(e){e.A="ascending",e.D="descending"}(LA||(LA={})),function(e){e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2"}(_A||(_A={}));const iM=[0,0],aM={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)"},sM=12,lM=14,uM=16,cM=24,dM=3,pM=300,fM=400,hM=600,mM=700,gM={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};var bM='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 vM(e){return Al.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Al.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}var yM=function({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Al.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 xM(e={}){return Al.jsx(yM,{...e,children:Al.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[Al.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Al.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 SM(e={}){return Al.jsx(yM,{fontSize:"medium",...e,children:Al.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Al.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Al.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 CM(e){return Al.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:Al.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"})})}function EM(e={}){return Al.jsx(yM,{...e,children:Al.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Al.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[Al.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Al.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function wM(e={}){return Al.jsx(yM,{fontSize:"medium",...e,children:Al.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Al.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:Al.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function RM({className:e}){return Al.jsx(yM,{fontSize:"small",className:e,children:Al.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:Al.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Al.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:Al.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[Al.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"}),Al.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 AM(e={}){return Al.jsx(yM,{...e,children:Al.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:Al.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:Al.jsx("rect",{stroke:aM.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const MM={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:dM,"& > 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 IM=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:aM.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:aM.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Al.jsx(vM,{"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 ${aM.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:aM.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${aM.MISC_FOCUS_BORDER}`,borderRadius:dM,backgroundColor:aM.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 ${aM.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:aM.WHITE,color:aM.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:dM},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${aM.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:aM.GREYSCALE_0_15,backgroundColor:aM.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:aM.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${aM.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:aM.GREEN_PALE},"&:active":{backgroundColor:aM.GREEN_DARK},"&.Mui-focusVisible":{borderColor:aM.GREEN_PALE,boxShadow:`0 0 0 3px ${fh(aM.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:aM.BLUE_PALE},"&:active":{backgroundColor:aM.BLUE_DARK},"&.Mui-focusVisible":{borderColor:aM.BLUE_PALE,boxShadow:`0 0 0 3px ${fh(aM.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:dM,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:aM.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${aM.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:aM.GREYSCALE_0_15,backgroundColor:aM.GREYSCALE_100_60,"&:active":{backgroundColor:aM.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:aM.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${aM.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:aM.PURPLE,"&.Mui-focusVisible":{borderColor:aM.PURPLE,boxShadow:`0 0 0 3px ${fh(aM.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:aM.GREEN,"&.Mui-focusVisible":{borderColor:aM.GREEN,boxShadow:`0 0 0 3px ${fh(aM.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:aM.BLUE,"&.Mui-focusVisible":{borderColor:aM.BLUE,boxShadow:`0 0 0 3px ${fh(aM.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:aM.ORANGE,"&.Mui-focusVisible":{borderColor:aM.ORANGE,boxShadow:`0 0 0 3px ${fh(aM.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:aM.RED,"&.Mui-focusVisible":{borderColor:aM.RED,boxShadow:`0 0 0 3px ${fh(aM.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:aM.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:aM.PURPLE_PALE},"&:active":{backgroundColor:aM.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:aM.PURPLE_PALE,boxShadow:`0 0 0 3px ${fh(aM.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:aM.GREEN_PALE},"&:active":{backgroundColor:aM.GREEN_DARK},"&.Mui-focusVisible":{borderColor:aM.GREEN_PALE,boxShadow:`0 0 0 3px ${fh(aM.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:aM.BLUE_PALE},"&:active":{backgroundColor:aM.BLUE_DARK},"&.Mui-focusVisible":{borderColor:aM.BLUE_PALE,boxShadow:`0 0 0 3px ${fh(aM.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:aM.ORANGE_PALE},"&:active":{backgroundColor:aM.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:aM.ORANGE_PALE,boxShadow:`0 0 0 3px ${fh(aM.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:aM.RED_PALE},"&:active":{backgroundColor:aM.RED_DARK},"&.Mui-focusVisible":{borderColor:aM.RED_PALE,boxShadow:`0 0 0 3px ${fh(aM.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:aM.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:aM.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:dM,boxShadow:`inset 0 0 0 2px ${aM.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Al.jsx(CM,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:sM,borderRadius:dM,color:aM.TEXT_PRIMARY,backgroundColor:aM.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:aM.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${aM.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:aM.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:aM.GREYSCALE_0_05,color:aM.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:aM.GREEN,borderColor:aM.GREEN},"&.MuiChip-outlinedInfo":{color:aM.BLUE,borderColor:aM.BLUE},"&.MuiChip-outlinedWarning":{color:aM.ORANGE,borderColor:aM.ORANGE},"&.MuiChip-outlinedError":{color:aM.RED,borderColor:aM.RED}},outlined:{border:`solid 1px ${aM.GREYSCALE_0_15}`,backgroundColor:aM.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:dM,boxShadow:"none",backgroundColor:aM.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:aM.GREEN,borderColor:aM.GREEN},outlinedSecondary:{color:aM.BLUE,borderColor:aM.BLUE},label:{fontFamily:gM.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Al.jsx(CM,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Al.jsx(vM,{"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:dM},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:dM,fontSize:lM,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:aM.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${aM.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:aM.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:aM.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:aM.GREYSCALE_0_05}}},popupIndicator:{borderRadius:dM,border:`solid 1px ${aM.GREYSCALE_0_15}`,color:aM.GREYSCALE_0_60,marginRight:0,width:cM,height:cM},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${aM.GREYSCALE_0_15}`},clearIndicator:{borderRadius:dM,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:aM.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:lM}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:sM,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:aM.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:aM.GREYSCALE_25,fontSize:sM,fontFamily:gM.FONT_FAMILY,fontWeight:hM,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:aM.TEXT_PRIMARY},"&.Mui-error":{color:aM.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:aM.TEXT_SECONDARY,content:"'(optional)'",fontWeight:fM,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:aM.TEXT_SECONDARY,content:"'(required)'",fontWeight:fM,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:lM,lineHeight:"16px",backgroundColor:aM.WHITE,borderRadius:dM,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${aM.GREYSCALE_0_05}`,borderColor:aM.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${aM.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${aM.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${aM.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${aM.RED}`,boxShadow:`0px 0px 0px 1px ${aM.RED}, inset 0 2px 0 0 ${aM.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${aM.GREYSCALE_0_10}`,borderColor:aM.GREYSCALE_0_10,backgroundColor:aM.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:aM.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:aM.GREYSCALE_0_15,borderRadius:dM,boxShadow:`inset 0 2px 0 0 ${aM.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Al.jsx(vM,{...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:aM.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:aM.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:aM.GREYSCALE_0_03},"&:active":{backgroundColor:aM.GREYSCALE_0_10},"&:focus":{backgroundColor:aM.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${aM.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${aM.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:aM.GREYSCALE_0_30,"&:hover":{backgroundColor:aM.GREYSCALE_0_0,borderColor:aM.GREYSCALE_0_15},"& ~svg":{color:aM.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${aM.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:dM}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:aM.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${aM.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:aM.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:lM,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:sM,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:sM,fontWeight:hM,color:aM.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:hM}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${aM.GREYSCALE_0_15}, 0px 0px 0px 1px ${aM.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Al.jsx(wM,{}),checkedIcon:Al.jsx(SM,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:aM.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${aM.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:aM.GREEN_PALE,boxShadow:`0 0 0 3px ${fh(aM.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:aM.BLUE_PALE,boxShadow:`0 0 0 3px ${fh(aM.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:aM.GREYSCALE_0_20}},"&.Mui-disabled":{fill:aM.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Al.jsx(AM,{}),checkedIcon:Al.jsx(xM,{}),indeterminateIcon:Al.jsx(EM,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:dM,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:aM.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:aM.GREYSCALE_0_55,color:aM.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:aM.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:aM.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:aM.GREYSCALE_0_55,"&:hover":{color:aM.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:aM.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:aM.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:lM,color:aM.TEXT_PRIMARY,lineHeight:"16px",fontWeight:hM},secondary:{fontSize:sM,color:aM.GREYSCALE_45,fontWeight:fM,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:lM,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:lM,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:aM.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:sM,borderBottom:`solid 1px ${aM.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:lM,color:aM.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:aM.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:aM.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:aM.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:`url('${bM}')`,fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:aM.RED}}},"&.Mui-focusVisible":{backgroundColor:aM.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:aM.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:aM.GREEN,height:"24px","&.Mui-disabled":{color:aM.GREYSCALE_0_15}},rail:{backgroundColor:aM.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${aM.GREYSCALE_0_05}`,borderRadius:dM,boxShadow:`inset 0px 0px 0px 1px ${aM.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${aM.GREYSCALE_0_05}`,borderRadius:dM},thumb:{height:"16px",width:"16px",borderRadius:dM,backgroundColor:aM.WHITE,boxShadow:`0px 1px 2px 0px ${aM.GREYSCALE_0_15}, 0px 0px 0px 1px ${aM.GREYSCALE_0_05}`,"&:hover":{borderRadius:dM,boxShadow:`0 2px 4px 0 ${aM.GREYSCALE_0_30}, 0 0 0 1px ${aM.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${aM.GREYSCALE_0_15}, 0 0 0 1px ${aM.GREYSCALE_0_06}, 0 0 0 2px ${aM.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${aM.GREYSCALE_0_15}, 0 0 0 1px ${aM.GREYSCALE_0_06}, 0 0 0 2px ${aM.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:aM.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:aM.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:aM.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:aM.GREYSCALE_0_15},markLabel:{color:aM.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:aM.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:aM.WHITE,color:aM.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:aM.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:aM.GREEN_PALE,boxShadow:`0 0 0 3px ${fh(aM.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:aM.BLUE_PALE,boxShadow:`0 0 0 3px ${fh(aM.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:aM.GREYSCALE_0_15,borderRadius:dM},thumb:{height:"16px",width:"16px",borderRadius:dM,backgroundColor:aM.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:lM,fontWeight:hM,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${aM.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${aM.MISC_FOCUS_BORDER}`,backgroundColor:aM.GREYSCALE_0_03,borderRadius:dM},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:aM.GREYSCALE_25,"&.Mui-selected":{color:aM.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:lM,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:dM,"&:hover":{backgroundColor:aM.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 ${aM.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${aM.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:dM,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:aM.GREYSCALE_0_05},"&:hover":{backgroundColor:aM.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${aM.GREYSCALE_85}`,borderRight:`1px solid ${aM.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:hM,backgroundColor:aM.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:aM.GREYSCALE_98,borderBottom:`1px solid ${aM.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${aM.GREYSCALE_85}`,borderTop:`1px solid ${aM.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:aM.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:aM.GREYSCALE_0_05,"&:hover":{backgroundColor:aM.GREYSCALE_0_03}},"&&:hover":{backgroundColor:aM.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Al.jsx(RM,{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 ${aM.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:lM,borderRadius:dM,padding:"7px 16px",border:`1px solid ${aM.GREYSCALE_0_15}`,backgroundColor:aM.GREYSCALE_100_60,color:aM.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:aM.GREYSCALE_0_10,border:`1px solid ${aM.GREYSCALE_0_30}`},"&:hover":{backgroundColor:aM.GREYSCALE_0_03,border:`1px solid ${aM.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:aM.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${aM.MISC_FOCUS_BORDER}`,border:`1px solid ${aM.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:aM.GREYSCALE_25,backgroundColor:aM.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:aM.GREYSCALE_0_10,border:`1px solid ${aM.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:sM,height:24,width:24,padding:7},sizeLarge:{fontSize:uM,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:lM,borderRadius:dM}}},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:aM.GREYSCALE_20},tooltip:{backgroundColor:aM.GREYSCALE_20,fontSize:sM,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...MM}:{}});var PM=()=>({mode:"light",primary:{ultraLight:aM.GREEN_ULTRA_LIGHT,light:aM.GREEN_PALE,main:aM.GREEN,dark:aM.GREEN_DARK,extraDark:aM.GREEN_EXTRA_DARK,contrastText:aM.WHITE},secondary:{ultraLight:aM.BLUE_ULTRA_LIGHT,light:aM.BLUE_PALE,main:aM.BLUE,dark:aM.BLUE_DARK,extraDark:aM.BLUE_EXTRA_DARK,contrastText:aM.WHITE},error:{ultraLight:aM.RED_ULTRA_LIGHT,light:aM.RED_PALE,main:aM.RED,dark:aM.RED_DARK,extraDark:aM.RED_EXTRA_DARK,contrastText:aM.WHITE},warning:{ultraLight:aM.ORANGE_ULTRA_LIGHT,light:aM.ORANGE_PALE,main:aM.ORANGE,dark:aM.ORANGE_DARK,extraDark:aM.ORANGE_EXTRA_DARK,contrastText:aM.WHITE},success:{ultraLight:aM.GREEN_ULTRA_LIGHT,light:aM.GREEN_PALE,main:aM.GREEN,dark:aM.GREEN_DARK,extraDark:aM.GREEN_EXTRA_DARK,contrastText:aM.WHITE},info:{ultraLight:aM.BLUE_ULTRA_LIGHT,light:aM.BLUE_PALE,main:aM.BLUE,dark:aM.BLUE_DARK,extraDark:aM.BLUE_EXTRA_DARK,contrastText:aM.WHITE},text:{primary:aM.TEXT_PRIMARY,secondary:aM.TEXT_SECONDARY,disabled:aM.GREYSCALE_0_30},action:{hover:aM.GREYSCALE_0_03,hoverOpacity:.03,selected:aM.GREYSCALE_0_05,selectedOpacity:.05,focus:aM.MISC_FOCUS_BORDER},amethyst:{ultraLight:aM.WHITE,main:aM.PURPLE,light:aM.PURPLE_PALE,dark:aM.PURPLE_DARK,extraDark:aM.GREYSCALE_0_0,contrastText:aM.WHITE},background:{paper:aM.WHITE,default:aM.GREYSCALE_95},divider:aM.GREYSCALE_0_15});var kM=e=>PM();var LM=(e,t=!1)=>{const r=((e,t)=>IM(t))(0,t);return{components:r,palette:kM(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:lM,fontWeightLight:pM,fontWeightRegular:fM,fontWeightMedium:hM,fontWeightBold:mM,htmlFontSize:lM,fontFamily:gM.FONT_FAMILY,button:{fontWeight:hM,fontSize:lM,textTransform:"none"},body1:{fontSize:uM,lineHeight:"24px"},body2:{fontSize:lM,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:cM,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:uM,fontWeight:hM,lineHeight:"16px"},h6:{fontSize:lM,fontWeight:hM,lineHeight:"16px"},caption:{color:aM.TEXT_SECONDARY},subtitle1:{fontSize:lM,color:aM.TEXT_SECONDARY},subtitle2:{fontSize:sM,color:aM.TEXT_SECONDARY}},shape:{borderRadius:dM}}},_M={},DM={exports:{}},TM={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}(TM);var qM=TM.exports;!function(e){var t=qM.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}(DM);var OM=DM.exports,NM={},jM=Rt(br);Object.defineProperty(NM,"__esModule",{value:!0}),NM.hexToRgb=$M,NM.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=BM(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(""))},NM.hslToRgb=HM,NM.decomposeColor=BM,NM.recomposeColor=GM,NM.getContrastRatio=function(e,t){var r=VM(e),n=VM(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},NM.getLuminance=VM,NM.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return VM(e)>.5?UM(e,t):YM(e,t)},NM.fade=function(e,t){return WM(e,t)},NM.alpha=WM,NM.darken=UM,NM.lighten=YM;var zM=jM;function FM(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 $M(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 HM(e){var t=(e=BM(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])),GM({type:s,values:l})}function BM(e){if(e.type)return e;if("#"===e.charAt(0))return BM($M(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,zM.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 GM(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 VM(e){var t="hsl"===(e=BM(e)).type?BM(HM(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 WM(e,t){return e=BM(e),t=FM(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,GM(e)}function UM(e,t){if(e=BM(e),t=FM(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 GM(e)}function YM(e,t){if(e=BM(e),t=FM(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 GM(e)}var KM,XM,JM,ZM={},QM={exports:{}},eI={exports:{}},tI={exports:{}};function rI(){return KM||(KM=1,function(e){var t=qM.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}(tI)),tI.exports}function nI(){return XM||(XM=1,function(e){var t=qM.default,r=rI();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(eI)),eI.exports}function oI(){return JM||(JM=1,function(e){var t=nI();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}(QM)),QM.exports}var iI,aI={exports:{}};function sI(){return iI||(iI=1,function(e){var t=og();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}(aI)),aI.exports}var lI,uI={};var cI,dI={};var pI,fI={},hI={};var mI,gI={};var bI,vI={};var yI,xI={};var SI,CI={};var EI,wI={};var RI,AI={};var MI,II,PI={};function kI(){if(II)return fI;II=1;var e=um;Object.defineProperty(fI,"__esModule",{value:!0}),fI.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,C=e.warning,E=void 0===C?{light:u.default[300],main:u.default[500],dark:u.default[700]}:C,w=e.info,R=void 0===w?{light:c.default[300],main:c.default[500],dark:c.default[700]}:w,A=e.success,M=void 0===A?{light:d.default[300],main:d.default[500],dark:d.default[700]}:A,I=e.type,P=void 0===I?"light":I,k=e.contrastThreshold,L=void 0===k?3:k,_=e.tonalOffset,D=void 0===_?.2:_,T=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function q(e){return(0,p.getContrastRatio)(e,h.text.primary)>=L?h.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 m(e,"light",o,D),m(e,"dark",i,D),e.contrastText||(e.contrastText=q(e.main)),e},N={dark:h,light:f},j=(0,n.deepmerge)((0,t.default)({common:o.default,type:P,primary:O(b),secondary:O(y,"A400","A200","A700"),error:O(S),warning:O(E),info:O(R),success:O(M),grey:i.default,contrastThreshold:L,getContrastText:q,augmentColor:O,tonalOffset:D},N[P]),T);return j},fI.dark=fI.light=void 0;var t=e(tg()),r=e(sI()),n=jM,o=e(function(){if(pI)return hI;pI=1,Object.defineProperty(hI,"__esModule",{value:!0}),hI.default=void 0;var e={black:"#000",white:"#fff"};return hI.default=e,hI}()),i=e(function(){if(mI)return gI;mI=1,Object.defineProperty(gI,"__esModule",{value:!0}),gI.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 gI.default=e,gI}()),a=e(function(){if(bI)return vI;bI=1,Object.defineProperty(vI,"__esModule",{value:!0}),vI.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 vI.default=e,vI}()),s=e(function(){if(yI)return xI;yI=1,Object.defineProperty(xI,"__esModule",{value:!0}),xI.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 xI.default=e,xI}()),l=e(function(){if(SI)return CI;SI=1,Object.defineProperty(CI,"__esModule",{value:!0}),CI.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 CI.default=e,CI}()),u=e(function(){if(EI)return wI;EI=1,Object.defineProperty(wI,"__esModule",{value:!0}),wI.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 wI.default=e,wI}()),c=e(function(){if(RI)return AI;RI=1,Object.defineProperty(AI,"__esModule",{value:!0}),AI.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 AI.default=e,AI}()),d=e(function(){if(MI)return PI;MI=1,Object.defineProperty(PI,"__esModule",{value:!0}),PI.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 PI.default=e,PI}()),p=NM,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}};fI.light=f;var h={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 m(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 fI.dark=h,fI}var LI,_I={};var DI,TI={};var qI,OI={};var NI,jI={},zI=Rt(no);var FI,$I={};function HI(){if(FI)return $I;FI=1;var e=um;Object.defineProperty($I,"__esModule",{value:!0}),$I.default=$I.duration=$I.easing=void 0;var t=e(sI()),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)"};$I.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")}$I.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 $I.default=i,$I}var BI,GI,VI={};function WI(){if(GI)return ZM;GI=1;var e=um;Object.defineProperty(ZM,"__esModule",{value:!0}),ZM.createMuiTheme=function(){return p.apply(void 0,arguments)},ZM.default=void 0,e(oI());var t=e(sI()),r=jM,n=e(function(){if(lI)return uI;lI=1;var e=um;Object.defineProperty(uI,"__esModule",{value:!0}),uI.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)},uI.keys=void 0;var t=e(tg()),r=e(sI()),n=["xs","sm","md","lg","xl"];return uI.keys=n,uI}()),o=e(function(){if(cI)return dI;cI=1;var e=um;Object.defineProperty(dI,"__esModule",{value:!0}),dI.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(oI()),r=e(tg());return dI}()),i=e(kI()),a=e(function(){if(LI)return _I;LI=1;var e=um;Object.defineProperty(_I,"__esModule",{value:!0}),_I.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,h=u.fontWeightLight,m=void 0===h?300:h,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,C=u.htmlFontSize,E=void 0===C?16:C,w=u.allVariants,R=u.pxToRem,A=(0,r.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),M=f/14,I=R||function(e){return"".concat(e/E*M,"rem")},P=function(e,r,n,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:I(r),lineHeight:n},d===s?{letterSpacing:"".concat(o(i/r),"em")}:{},a,w)},k={h1:P(m,96,1.167,-1.5),h2:P(m,60,1.2,-.5),h3:P(b,48,1.167,0),h4:P(b,34,1.235,.25),h5:P(b,24,1.334,0),h6:P(y,20,1.6,.15),subtitle1:P(b,16,1.75,.15),subtitle2:P(y,14,1.57,.1),body1:P(b,16,1.5,.15),body2:P(b,14,1.43,.15),button:P(y,14,1.75,.4,a),caption:P(b,12,1.66,.4),overline:P(b,12,2.66,1,a)};return(0,n.deepmerge)((0,t.default)({htmlFontSize:E,pxToRem:I,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:b,fontWeightMedium:y,fontWeightBold:S},k),A,{clone:!1})};var t=e(tg()),r=e(sI()),n=jM;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 _I}()),s=e(function(){if(DI)return TI;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(",")}DI=1,Object.defineProperty(TI,"__esModule",{value:!0}),TI.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 TI.default=t,TI}()),l=e(function(){if(qI)return OI;qI=1,Object.defineProperty(OI,"__esModule",{value:!0}),OI.default=void 0;var e={borderRadius:4};return OI.default=e,OI}()),u=e(function(){if(NI)return jI;NI=1,Object.defineProperty(jI,"__esModule",{value:!0}),jI.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=zI;return jI}()),c=e(HI()),d=e(function(){if(BI)return VI;BI=1,Object.defineProperty(VI,"__esModule",{value:!0}),VI.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return VI.default=e,VI}());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,h=e.mixins,m=void 0===h?{}:h,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"]),C=(0,i.default)(b),E=(0,n.default)(f),w=(0,u.default)(v),R=(0,r.deepmerge)({breakpoints:E,direction:"ltr",mixins:(0,o.default)(E,w,m),overrides:{},palette:C,props:{},shadows:s.default,typography:(0,a.default)(C,x),spacing:w,shape:l.default,transitions:c.default,zIndex:d.default},S),A=arguments.length,M=new Array(A>1?A-1:0),I=1;I<A;I++)M[I-1]=arguments[I];return R=M.reduce((function(e,t){return(0,r.deepmerge)(e,t)}),R)}var f=p;return ZM.default=f,ZM}var UI,YI={};var KI,XI={},JI=Rt(nl);var ZI,QI,eP={},tP={};function rP(){if(ZI)return tP;ZI=1;var e=um;Object.defineProperty(tP,"__esModule",{value:!0}),tP.default=void 0;var t=(0,e(WI()).default)();return tP.default=t,tP}var nP,oP,iP={},aP={};function sP(){if(oP)return iP;oP=1;var e=um;Object.defineProperty(iP,"__esModule",{value:!0}),iP.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 h=f.typography,m=(0,n.convertLength)(h.htmlFontSize),g=a.map((function(e){return f.breakpoints.values[e]}));return p.forEach((function(e){var o=h[e],i=parseFloat(m(o.fontSize,"rem"));if(!(i<=1)){var a=i,s=1+(a-1)/c,u=o.lineHeight;if(!(0,n.isUnitless)(u)&&!l)throw new Error((0,r.formatMuiErrorMessage)(6));(0,n.isUnitless)(u)||(u=parseFloat(m(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:h.htmlFontSize})})}),h[e]=(0,t.default)({},o,(0,n.responsiveProperty)({cssProperty:"fontSize",min:s,max:a,unit:"rem",breakpoints:g,transform:d}))}})),f};var t=e(tg()),r=jM,n=function(){if(nP)return aP;nP=1;var e=um;Object.defineProperty(aP,"__esModule",{value:!0}),aP.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},aP.getUnit=r,aP.toUnitless=n,aP.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}},aP.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},aP.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},aP.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(oI());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return aP}();return iP}var lP,uP={};var cP,dP={};var pP,fP={};var hP,mP={};!function(e){var t=um,r=OM;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 h.default}}),Object.defineProperty(e,"createGenerateClassName",{enumerable:!0,get:function(){return m.createGenerateClassName}}),Object.defineProperty(e,"jssPreset",{enumerable:!0,get:function(){return m.jssPreset}}),Object.defineProperty(e,"ServerStyleSheets",{enumerable:!0,get:function(){return m.ServerStyleSheets}}),Object.defineProperty(e,"StylesProvider",{enumerable:!0,get:function(){return m.StylesProvider}}),Object.defineProperty(e,"MuiThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}}),Object.defineProperty(e,"ThemeProvider",{enumerable:!0,get:function(){return m.ThemeProvider}});var o=NM;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(WI()),a=t(function(){if(UI)return YI;UI=1;var e=um;Object.defineProperty(YI,"__esModule",{value:!0}),YI.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=jM,r=e(WI());return YI}()),s=t(function(){if(KI)return XI;KI=1,Object.defineProperty(XI,"__esModule",{value:!0}),XI.default=function(t){return(0,e.createStyles)(t)};var e=JI;return XI}()),l=t(function(){if(QI)return eP;QI=1;var e=um;Object.defineProperty(eP,"__esModule",{value:!0}),eP.default=void 0;var t=e(tg()),r=JI,n=e(rP()),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 eP.default=o,eP}()),u=t(sP()),c=t(function(){if(lP)return uP;lP=1;var e=um;Object.defineProperty(uP,"__esModule",{value:!0}),uP.default=void 0;var t=e(tg()),r=JI,n=e(rP()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return uP.default=o,uP}()),d=HI();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(cP)return dP;cP=1;var e=um;Object.defineProperty(dP,"__esModule",{value:!0}),dP.default=function(){return(0,t.useTheme)()||r.default};var t=JI;e(x);var r=e(rP());return dP}()),f=t(function(){if(pP)return fP;pP=1;var e=um;Object.defineProperty(fP,"__esModule",{value:!0}),fP.default=void 0;var t=e(tg()),r=JI,n=e(rP()),o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return fP.default=o,fP}()),h=t(function(){if(hP)return mP;hP=1;var e=um;Object.defineProperty(mP,"__esModule",{value:!0}),mP.default=void 0;var t=JI,r=e(rP()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return mP.default=n,mP}()),m=JI}(_M);var gP=Object.defineProperty,bP=(e,t)=>{for(var r in t)gP(e,r,{get:t[r],enumerable:!0})};bP({},{light:()=>vP});const vP={root:{backgroundColor:aM.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&$expanded":{margin:"0px"}}};bP({},{light:()=>yP});const yP={root:{backgroundColor:aM.WHITE}};bP({},{light:()=>xP});const xP={root:{padding:"0px 16px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${aM.GREYSCALE_0_15}`,"&$focused":{borderColor:aM.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${aM.MISC_FOCUS_BORDER}`,borderRadius:dM,backgroundColor:aM.GREYSCALE_0_03},"&$expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis"}};bP({},{light:()=>SP});const SP={root:{flex:"0 0 48px",flexDirection:"row",boxShadow:`inset 0 -1px 0 0 ${aM.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:aM.WHITE,color:aM.TEXT_PRIMARY}};bP({},{light:()=>CP});const CP={inputRoot:{boxSizing:"border-box",borderRadius:dM,"&&":{padding:0},"&&& input":{padding:"8px 4px"},"&&& $endAdornment":{right:4}},listbox:{paddingTop:0,paddingBottom:0},option:{fontSize:lM,height:"32px",'&[data-focus="true"]':{backgroundColor:aM.GREYSCALE_0_03}},endAdornment:{top:"auto",bottom:"4px",position:"absolute"},popupIndicator:{borderRadius:dM,border:`solid 1px ${aM.GREYSCALE_0_15}`,color:aM.GREYSCALE_0_60,marginRight:0,width:cM,height:cM,"& svg":{fontSize:"0.7em"},"& i":{lineHeight:"1 !important"}},paper:{marginTop:"5px",boxShadow:`0px 2px 4px 0px ${aM.GREYSCALE_0_15}`},clearIndicator:{"& svg":{fontSize:"0.5em",position:"absolute"},color:aM.GREYSCALE_25,width:uM,height:cM,borderRadius:dM,backgroundColor:"unset",marginRight:"4px","&&&&:hover":{backgroundColor:_M.alpha(aM.GREYSCALE_0,.05)}},popupIndicatorOpen:{backgroundColor:aM.GREYSCALE_0_10}};bP({},{light:()=>EP});const EP={badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}};bP({},{light:()=>wP});const wP={root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:dM,"& > $label > i:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:aM.GREYSCALE_0_10},"&$focusVisible":{boxShadow:`0 0 0 2px ${aM.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:aM.GREYSCALE_0_15,backgroundColor:aM.GREYSCALE_100_60,"&:active":{backgroundColor:aM.GREYSCALE_0_10},"&$focusVisible":{borderColor:aM.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${aM.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},containedPrimary:{"&:hover":{backgroundColor:aM.GREEN_PALE},"&:active":{backgroundColor:aM.GREEN_DARK},"&$focusVisible":{borderColor:aM.GREEN_PALE,boxShadow:`0 0 0 3px ${_M.alpha(aM.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:aM.BLUE_PALE},"&:active":{backgroundColor:aM.BLUE_DARK},"&$focusVisible":{borderColor:aM.BLUE_PALE,boxShadow:`0 0 0 3px ${_M.alpha(aM.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"}};bP({},{light:()=>RP});const RP={root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:dM},groupedText:{padding:"8px 16px","&:active":{backgroundColor:aM.GREYSCALE_0_10},"&$focusVisible":{boxShadow:`0 0 0 2px ${aM.MISC_FOCUS_BORDER}`}},groupedOutlined:{padding:"7px 16px",borderColor:aM.GREYSCALE_0_15,backgroundColor:aM.GREYSCALE_100_60,"&:active":{backgroundColor:aM.GREYSCALE_0_10},"&$focusVisible":{borderColor:aM.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${aM.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:aM.GREEN_PALE},"&:active":{backgroundColor:aM.GREEN_DARK},"&$focusVisible":{borderColor:aM.GREEN_PALE,boxShadow:`0 0 0 3px ${_M.alpha(aM.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:aM.BLUE_PALE},"&:active":{backgroundColor:aM.BLUE_DARK},"&$focusVisible":{borderColor:aM.BLUE_PALE,boxShadow:`0 0 0 3px ${_M.alpha(aM.BLUE_PALE,.5)}`}}};bP({},{light:()=>AP});const AP={root:{height:"100%","& $focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:aM.GREYSCALE_0_03,"& $focusHighlight":{opacity:0}},"&:active":{backgroundColor:aM.GREYSCALE_95,boxShadow:"none"},"&$focusVisible":{borderRadius:dM,boxShadow:`inset 0 0 0 2px ${aM.MISC_FOCUS_BORDER}`,"& $focusHighlight":{opacity:0}}}};bP({},{light:()=>MP});const MP={root:{borderWidth:1,"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:3},"&:not($disabled)":{"&:not($checked)":{"&:not($indeterminate)":{"& span":{color:aM.WHITE}}}},"&$disabled":{"& span":{pointerEvents:"auto",cursor:"not-allowed",color:aM.GREYSCALE_0_25}}},colorPrimary:{"&.sprout-focus-visible i":{borderColor:aM.GREEN_PALE,boxShadow:`0 0 0 3px ${_M.alpha(aM.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible i":{borderColor:aM.BLUE_PALE,boxShadow:`0 0 0 3px ${_M.alpha(aM.BLUE_PALE,.5)}`}}};bP({},{light:()=>IP});const IP={root:{height:"24px",fontSize:sM,borderRadius:dM,color:aM.TEXT_PRIMARY,backgroundColor:aM.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:aM.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${aM.MISC_FOCUS_BORDER}`},"&$disabled":{backgroundColor:aM.GREYSCALE_0_05,color:aM.GREYSCALE_0_30,border:"none",opacity:1}},outlined:{border:`solid 1px ${aM.GREYSCALE_0_15}`,backgroundColor:aM.GREYSCALE_100_15,"$clickable&:active ":{boxSizing:"border-box",borderRadius:dM,boxShadow:"none",backgroundColor:aM.GREYSCALE_0_10},"& $deleteIconSmall":{height:13,color:"inherit"}},label:{fontFamily:gM.FONT_FAMILY,lineHeight:"16px"}};bP({},{light:()=>PP});const PP={root:{padding:"8px",backgroundColor:aM.GREYSCALE_98,borderTop:`1px ${aM.GREYSCALE_0_15} solid`}};bP({},{light:()=>kP});const kP={root:{padding:"24px"}};bP({},{light:()=>LP});const LP={root:{marginBottom:0}};bP({},{light:()=>_P});const _P={root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",height:"24px",padding:"12px 8px 12px 24px",fontSize:"16px",lineHeight:"24px",backgroundColor:aM.GREYSCALE_98,borderBottom:`1px ${aM.GREYSCALE_0_15} solid`}};bP({},{light:()=>DP});const DP={middle:{margin:"4px 8px"}};bP({},{light:()=>TP});const TP={root:{marginLeft:"-10px"},label:{fontSize:lM}};bP({},{light:()=>qP});const qP={root:{fontSize:sM,lineHeight:"16px",margin:"4px 0 0 0","&$error":{color:aM.RED}},contained:{marginLeft:0,marginRight:0}};bP({},{light:()=>OP});const OP={root:{color:aM.GREYSCALE_25,fontSize:sM,fontFamily:gM.FONT_FAMILY,fontWeight:hM,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&$focused":{color:aM.TEXT_PRIMARY},"&$error":{color:aM.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:aM.TEXT_SECONDARY,position:"absolute",content:"'(optional)'",fontWeight:fM,marginLeft:"4px"}}},asterisk:{visibility:"hidden",display:"inline-flex","&::after":{visibility:"visible",color:aM.TEXT_SECONDARY,position:"absolute",content:"'(required)'",fontWeight:fM,marginLeft:"4px"}}};bP({},{light:()=>NP});const NP={root:{padding:7,borderRadius:dM,border:"1px solid transparent","&.sprout-focus-visible":{borderColor:aM.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${aM.MISC_FOCUS_BORDER}`},"&&&:hover":{backgroundColor:"transparent"}}};bP({},{light:()=>jP});const jP={root:{padding:"4px 8px",color:aM.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}};bP({},{light:()=>zP});const zP={input:{padding:"8px 12px",lineHeight:"16px"}};bP({},{light:()=>FP});const FP={outlined:{fontSize:`${sM}px`,fontWeight:hM,color:aM.GREYSCALE_25,"&$shrink":{transform:"translate(0px, -8px)",fontWeight:hM}}};bP({},{light:()=>$P});const $P={root:{color:aM.MISC_FOCUS_BORDER}};bP({},{light:()=>HP});const HP={padding:{paddingTop:"0px",paddingBottom:"0px"}};bP({},{light:()=>BP});const BP={root:{minHeight:"32px",fontSize:lM,"&$selected":{backgroundColor:"unset","&:not($disabled)":{"&::after":{content:`url('${bM}')`,fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:aM.RED}}}},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:aM.GREYSCALE_0_03},"&:active":{backgroundColor:aM.GREYSCALE_0_05}}};bP({},{light:()=>GP});const GP={root:{color:aM.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}};bP({},{light:()=>VP});const VP={root:{fontSize:"12px"},primary:{fontSize:lM,color:aM.TEXT_PRIMARY,lineHeight:"16px"},secondary:{fontSize:sM,fontWeight:pM,lineHeight:"16px",color:aM.TEXT_SECONDARY}};bP({},{light:()=>WP});const WP={root:{'&[role="option"]':{color:aM.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:sM,borderBottom:`solid 1px ${aM.GREYSCALE_0_15}`,pointerEvents:"none"}}};bP({},{light:()=>UP});const UP={list:{paddingTop:4,paddingBottom:4},paper:{marginTop:4,marginBottom:4,background:aM.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15)",borderRadius:"2px"}};bP({},{light:()=>YP});const YP={root:{fontSize:lM,height:"32px",'[class*="MuiListSubheader-root"] ~ &[role="option"]':{paddingLeft:"20px"},"& div i":{color:aM.GREYSCALE_25}}};bP({},{light:()=>KP});const KP={root:{fontSize:lM,lineHeight:"16px",backgroundColor:aM.WHITE,borderRadius:dM,"&:not($focused):not($error):not($disabled):hover $notchedOutline":{border:`solid 1px ${aM.GREYSCALE_0_05}`,borderColor:aM.GREYSCALE_0_30},"&$focused:not($error) $notchedOutline":{border:`solid 1px ${aM.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${aM.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${aM.GREYSCALE_0_05}`},"&$focused$error $notchedOutline":{border:`solid 1px ${aM.RED}`,boxShadow:`0px 0px 0px 1px ${aM.RED}, inset 0 2px 0 0 ${aM.GREYSCALE_0_05}`},"&$disabled":{backgroundColor:"transparent"},"&$disabled $notchedOutline":{border:`solid 1px ${aM.GREYSCALE_0_10}`,borderColor:aM.GREYSCALE_0_10,backgroundColor:aM.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:aM.TEXT_PRIMARY,padding:"8px 12px","&$disabled":{opacity:.45}},notchedOutline:{borderColor:aM.GREYSCALE_0_15,borderRadius:dM,boxShadow:`inset 0 2px 0 0 ${aM.GREYSCALE_0_05}`},multiline:{padding:"8px 12px"}};bP({},{light:()=>XP});const XP={day:{"&&&:hover":{backgroundColor:aM.GREYSCALE_0_03}},daySelected:{"&&&:hover":{backgroundColor:aM.GREEN}}};bP({},{light:()=>JP});const JP={paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${aM.GREYSCALE_0_15}, 0px 0px 0px 1px ${aM.GREYSCALE_0_05}`}};bP({},{light:()=>ZP});const ZP={root:{fill:aM.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${aM.MISC_FOCUS_BORDER}`},"&$checked":{"&$colorPrimary":{"&.sprout-focus-visible i":{borderColor:aM.GREEN_PALE,boxShadow:`0 0 0 3px ${_M.alpha(aM.GREEN_PALE,.5)}`}},"&$colorSecondary":{"&.sprout-focus-visible i":{borderColor:aM.BLUE_PALE,boxShadow:`0 0 0 3px ${_M.alpha(aM.BLUE_PALE,.5)}`}},"&$disabled":{color:aM.GREYSCALE_0_20}},"&$disabled":{fill:aM.GREYSCALE_0_20,stroke:"none"}}};bP({},{light:()=>QP});const QP={root:{height:"32px",zIndex:1,borderRadius:"3px !important","& em":{color:aM.TEXT_SECONDARY,WebkitFontSmoothing:"antialiased","&::after":{content:""}},"& ~svg":{position:"absolute",top:"unset",right:"12px"},"&[aria-expanded=true]":{backgroundColor:aM.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:aM.GREYSCALE_0_03},"&:active":{backgroundColor:aM.GREYSCALE_0_10},"&:focus":{backgroundColor:aM.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${aM.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${aM.MISC_FOCUS_BORDER}`},"&$disabled":{opacity:"unset",color:aM.GREYSCALE_0_30,"&:hover":{backgroundColor:aM.GREYSCALE_0_0,borderColor:aM.GREYSCALE_0_15},"& ~svg":{color:aM.GREYSCALE_0_30}}},selectMenu:{height:"14px"},outlined:{border:`solid 1px ${aM.GREYSCALE_0_15}`}};bP({},{light:()=>ek});const ek={root:{color:aM.GREEN,height:"24px","&$disabled":{color:aM.GREYSCALE_0_15}},rail:{backgroundColor:aM.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${aM.GREYSCALE_0_05}`,borderRadius:dM,boxShadow:`inset 0px 0px 0px 1px ${aM.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${aM.GREYSCALE_0_05}`,borderRadius:dM},thumb:{height:"16px",width:"16px",borderRadius:dM,backgroundColor:aM.WHITE,boxShadow:`0px 1px 2px 0px ${aM.GREYSCALE_0_15}, 0px 0px 0px 1px ${aM.GREYSCALE_0_05}`,"&:hover":{borderRadius:dM,boxShadow:`0 2px 4px 0 ${aM.GREYSCALE_0_30}, 0 0 0 1px ${aM.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${aM.GREYSCALE_0_15}, 0 0 0 1px ${aM.GREYSCALE_0_06}, 0 0 0 2px ${aM.MISC_FOCUS_BORDER}`},"&$disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:aM.GREYSCALE_90},"& .bar":{height:"8px",width:"1px",backgroundColor:aM.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:aM.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:aM.GREYSCALE_0_15},markLabel:{color:aM.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:aM.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},active:{}};bP({},{light:()=>tk});const tk={root:{backgroundColor:aM.WHITE,color:aM.GREYSCALE_25}};bP({},{light:()=>rk});const rk={root:{padding:"10px",width:"60px",height:"40px"},switchBase:{padding:"11px","&$disabled":{"& $thumb":{backgroundColor:aM.GREYSCALE_100_50}},"&$checked + $track":{opacity:1},"&$disabled + $track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + $track":{borderColor:aM.GREEN_PALE,boxShadow:`0 0 0 3px ${_M.alpha(aM.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + $track":{borderColor:aM.BLUE_PALE,boxShadow:`0 0 0 3px ${_M.alpha(aM.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:aM.GREYSCALE_0_15,borderRadius:dM},thumb:{height:"16px",width:"16px",borderRadius:dM,backgroundColor:aM.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& $thumb":{height:"12px",width:"12px"},"& $switchBase":{padding:"9px 11px"}}};bP({},{light:()=>nk});const nk={root:{fontSize:lM,fontWeight:hM,textTransform:"none",minWidth:"auto",boxSizing:"border-box","&:hover":{borderBottom:`2px solid ${aM.GREYSCALE_80}`,paddingBottom:"4px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${aM.MISC_FOCUS_BORDER}`,paddingTop:"4px",backgroundColor:aM.GREYSCALE_0_03,borderRadius:dM,minHeight:"44px",paddingBottom:"4px",border:"none"},"&$disabled":{opacity:.3}},textColorPrimary:{color:aM.GREYSCALE_25,"&$selected":{color:aM.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"}}};bP({},{light:()=>ok});const ok={root:{borderLeft:`1px solid ${aM.GREYSCALE_85}`}};bP({},{light:()=>ik});const ik={root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${aM.GREYSCALE_85}`,borderRight:`1px solid ${aM.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:hM,backgroundColor:aM.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&$head":{height:"31px"},"&$paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:aM.GREYSCALE_98,borderBottom:`1px solid ${aM.GREYSCALE_85}`}};bP({},{light:()=>ak});const ak={root:{borderBottom:`1px solid ${aM.GREYSCALE_85}`,borderTop:`1px solid ${aM.GREYSCALE_85}`}};bP({},{light:()=>sk});const sk={root:{backgroundColor:aM.GREYSCALE_98}};bP({},{light:()=>lk});const lk={hover:{"&$selected":{backgroundColor:aM.GREYSCALE_0_05,"&:hover":{backgroundColor:aM.GREYSCALE_0_03}},"&&:hover":{backgroundColor:aM.GREYSCALE_0_03}}};bP({},{light:()=>uk});const uk={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)"}};bP({},{light:()=>ck});const ck={scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},root:{fontSize:lM,fontWeight:"bold"},indicator:{height:2}};bP({},{light:()=>dk});const dk={root:{height:32,lineHeight:16,width:32,fontSize:lM,borderRadius:dM,padding:"7px 16px",border:`1px solid ${aM.GREYSCALE_0_15}`,backgroundColor:aM.GREYSCALE_100_60,color:aM.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:aM.GREYSCALE_0_10,border:`1px solid ${aM.GREYSCALE_0_30}`},"&:hover":{backgroundColor:aM.GREYSCALE_0_03,border:`1px solid ${aM.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:aM.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${aM.MISC_FOCUS_BORDER}`,border:`1px solid ${aM.MISC_FOCUS_BORDER}`,zIndex:2},"&$selected":{color:aM.GREYSCALE_25,backgroundColor:aM.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:aM.GREYSCALE_0_10,border:`1px solid ${aM.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:sM,height:24,width:24,padding:7},sizeLarge:{fontSize:uM,height:40,width:40,lineHeight:20}};bP({},{light:()=>pk});const pk={root:{height:"32px",lineHeight:"16px",fontSize:lM,borderRadius:dM}};bP({},{light:()=>fk});const fk={root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}};bP({},{light:()=>hk});const hk={arrow:{color:aM.GREYSCALE_20},tooltip:{backgroundColor:aM.GREYSCALE_20,fontSize:sM,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}},mk=(e="light",t=!1)=>LM(e,t),gk=(mk().palette.primary.light,PA.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)"),bk=4/3,vk="12px",yk="600",xk="Source Sans Pro, sans-serif",Sk={height:"auto",fontSize:vk,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"}},Ck={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:yk},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},Ek=25e4,wk=(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 h=0;const m=()=>{n[a]=Math.min(rC.PixelsMax,Math.max(rC.PixelsMin,h)),i-=n[a]};switch(l){case nC.Pixels:h=u||rC.PixelsDefault,m();break;case nC.Percentage:h=(c||rC.PercentageDefault)/100*t,m();break;case nC.FitToContent:(null===(s=e.representation)||void 0===s?void 0:s.type)===tw.Image?o.push(a):(h=r(d,f,p,e.isLocked,e.isActivelySorted,e.isDim),m());break;case nC.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(rC.AutoMinTable,e)}))}return n},Rk=(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"]})},Ak=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},Mk=e=>e.ctrlKey||e.metaKey,Ik=e=>e.shiftKey&&Mk(e),Pk=e=>[eC.Left,eC.Right,eC.Up,eC.Down].includes(e),kk=e=>e.shiftKey&&Pk(e.key),Lk=e=>(e=>Pk(e)||[eC.Home,eC.End,eC.PageUp,eC.PageDown].includes(e))(e.key)&&!Ik(e),_k=(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),Rk(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})},Dk=(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&&kk(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&&kk(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===eC.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 Rk(u,o,d),{...e,rows:d,colIdx:null!==(r=null==s?void 0:s.selectionColIdx)&&void 0!==r?r:l.selectionColIdx,isSelectMultiValues:!0}},Tk=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}},qk=(e,t)=>{var r;switch(t.type){case kA.Select:return _k(e,t.payload);case kA.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 kA.SelectMouseUp:return((e,t)=>Tk(e.isSelectMultiValues||e.firstCell!==t.cell?e:_k(e,t)))(e,t.payload);case kA.SelectMultiAdd:return Dk(e,t.payload);case kA.SelectMultiEnd:return Tk(e);case kA.Reset:return null!==(r=e.api)&&void 0!==r&&r.isModal()?e:{...e,rows:new Map,colIdx:-1};case kA.Clear:return e.rows.size?{...e,rows:new Map}:e;case kA.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},Ok=4/3,Nk=e=>!(null==e||!e.color)||"number"==typeof(null==e?void 0:e.index)&&e.index>-1;function jk(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const zk=(e,t)=>e?{borderBottomColor:CS.DARK_MODE_BORDER,borderRightColor:CS.DARK_MODE_BORDER,borderLeftColor:CS.DARK_MODE_BORDER,borderTopColor:CS.DARK_MODE_BORDER}:{borderLeftColor:CS.BORDER_MEDIUM,borderRightColor:CS.BORDER_MEDIUM,borderTopColor:CS.BORDER_HEAVY,borderBottomColor:t?CS.BORDER_HEAVY:CS.BORDER_LIGHT},Fk=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*Ok+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},$k=e=>{var t;return null===(t=e.components)||void 0===t?void 0:t.find((e=>"theme"===e.key))},Hk=(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:Nk(null==r?void 0:r.fontColor)?jk(CS.TEXT,t,null==r?void 0:r.fontColor):i||CS.TEXT,fontSize:(null==r?void 0:r.fontSize)&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...zk(t.background.isDark,n)};return Object.keys(s).forEach((e=>{const t=e;null==s[t]&&delete s[t]})),s};function Bk(e,t,r){var n,o,i;const a=null===(n=$k(e))||void 0===n?void 0:n.header,s=Hk("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=RS(null!==(o=s.background)&&void 0!==o?o:CS.WHITE,oC),s.activeBackground=RS(null!==(i=s.background)&&void 0!==i?i:CS.WHITE,iC),s}const Gk=(e,t)=>{var r;const n=null!==(r=e.toLowerCase().match(/<[^>]+>/g))&&void 0!==r?r:[];return n.forEach((e=>(e=>e in Ck)(e)&&Object.assign(t,Ck[e]))),t};function Vk(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&&IS(n);a&&"none"!==a&&(o[r[t]]=a),i=n?Gk(n,i):i})),o.cellBackgroundColor&&!o.cellForegroundColor&&(o.cellForegroundColor=ES(o.cellBackgroundColor)),{...e,...o,color:o.cellForegroundColor||e.color,background:o.cellBackgroundColor||e.background,fontStyle:i.fontStyle,fontWeight:i.fontWeight,textDecoration:i.textDecoration}}const Wk=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},Uk=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=Wk(e,null==t?void 0:t.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},Yk=(e,t,r,n=CS.WHITE)=>{var o;const{backgroundColor:i,backgroundFromStyling:a,sheetColorFromCSS:s}=Uk(e,t,r);return null!==(o=_S(a,i,s,n))&&void 0!==o?o:n},Kk=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return vk}},Xk=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",Jk=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?yk:"normal",Zk=e=>!1===e?1:3,Qk=e=>parseInt(null!=e?e:Sk.fontSize,10)*bk,eL=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",tL=(e,t,r,n,o)=>{var i,a,s,l,u,c,d,p,f,h,m,g,b,v,y,x,S,C,E,w,R,A,M,I,P,k,L,_,D,T,q,O,N,j,z,F,$,H,B,G,V,W,U,Y,K,X,J,Z,Q,ee,te,re,ne,oe,ie,ae,se,le,ue,ce,de,pe,fe,he,me,ge,be,ve,ye;const{header:xe,dimensionValues:Se,measureValues:Ce,totalValues:Ee,nullValues:we,grid:Re,content:Ae}=null!==(i=$k(t))&&void 0!==i?i:{},Me=!0===t.usePagination?CS.WHITE:CS.TRANSPARENT,Ie=Yk(n,xe,"object.straightTableV2.dimension.label.name.backgroundColor",Me),Pe=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"),ke={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:xk,fontSize:Kk(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:Xk(null==xe?void 0:xe.fontStyle),fontWeight:Jk(null==xe?void 0:xe.fontStyle,yk),textDecoration:eL(null==xe?void 0:xe.fontStyle),color:null!==(h=null!==(m=null!==(g=Wk(n,null==xe?void 0:xe.fontColor))&&void 0!==g?g:n.getStyle("object.straightTableV2.dimension","label.name","color"))&&void 0!==m?m:r.head.color)&&void 0!==h?h:CS.TEXT,background:Ie},headerMenuHoverBackground:RS(Ie,oC),headerMenuActiveBackground:RS(Ie,iC),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:xk,fontSize:Kk(null!==(x=null!==(S=null!==(C=null==Se?void 0:Se.fontSize)&&void 0!==C?C: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:Xk(null==Se?void 0:Se.fontStyle),fontWeight:Jk(null==Se?void 0:Se.fontStyle,"normal"),textDecoration:eL(null==Se?void 0:Se.fontStyle),color:null!==(E=null!==(w=null!==(R=null!==(A=Wk(n,null==Se?void 0:Se.fontColor))&&void 0!==A?A:Wk(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!==E?E:CS.TEXT,background:null!==(M=null!==(I=Uk(n,Se,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor)&&void 0!==I?I:r.body.background)&&void 0!==M?M:CS.TRANSPARENT}},measure:{values:{fontFamily:null!==(P=null!==(k=null!==(L=null==Ce?void 0:Ce.fontFamily)&&void 0!==L?L:n.getStyle("object.straightTableV2.measure","label.value","fontFamily"))&&void 0!==k?k:r.body.fontFamily)&&void 0!==P?P:xk,fontSize:Kk(null!==(_=null!==(D=null!==(T=null==Ce?void 0:Ce.fontSize)&&void 0!==T?T:null==Ae?void 0:Ae.fontSize)&&void 0!==D?D:n.getStyle("object.straightTableV2.measure","label.value","fontSize"))&&void 0!==_?_:r.body.fontSize),fontStyle:Xk(null==Ce?void 0:Ce.fontStyle),fontWeight:Jk(null==Ce?void 0:Ce.fontStyle,"normal"),textDecoration:eL(null==Ce?void 0:Ce.fontStyle),color:null!==(q=null!==(O=null!==(N=null!==(j=Wk(n,null==Ce?void 0:Ce.fontColor))&&void 0!==j?j:Wk(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!==q?q:CS.TEXT,background:null!==(z=null!==(F=Uk(n,Ce,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor)&&void 0!==F?F:r.body.background)&&void 0!==z?z:CS.TRANSPARENT}},totalRow:{fontFamily:null!==($=null!==(H=null!==(B=null==Ee?void 0:Ee.fontFamily)&&void 0!==B?B:n.getStyle("object.straightTableV2.total","label.value","fontFamily"))&&void 0!==H?H:r.totals.fontFamily)&&void 0!==$?$:xk,fontSize:Kk(null!==(G=null!==(V=null!==(W=null==Ee?void 0:Ee.fontSize)&&void 0!==W?W:null==Ae?void 0:Ae.fontSize)&&void 0!==V?V:n.getStyle("object.straightTableV2.total","label.value","fontSize"))&&void 0!==G?G:r.totals.fontSize),fontStyle:Xk(null==Ee?void 0:Ee.fontStyle),fontWeight:Jk(null==Ee?void 0:Ee.fontStyle,yk),textDecoration:eL(null==Ee?void 0:Ee.fontStyle),color:null!==(U=null!==(Y=null!==(K=null!==(X=Wk(n,null==Ee?void 0:Ee.fontColor))&&void 0!==X?X:Wk(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:CS.TEXT,background:Yk(n,Ee,"object.straightTableV2.total.label.value.backgroundColor",Me)},nullValues:{fontStyle:Xk(null==we?void 0:we.fontStyle),fontWeight:Jk(null==we?void 0:we.fontStyle,"normal"),textDecoration:eL(null==we?void 0:we.fontStyle),color:null!==(J=null!==(Z=null!==(Q=null!==(ee=Wk(n,null==we?void 0:we.fontColor))&&void 0!==ee?ee:Wk(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:CS.TEXT,background:null!==(te=null!==(re=Wk(n,null==we?void 0:we.background))&&void 0!==re?re:n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor"))&&void 0!==te?te:CS.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:null!=Pe?Pe:Zk(null===(ne=t.multiline)||void 0===ne?void 0:ne.wrapTextInCells),headerLineClamp:Zk(null===(oe=t.multiline)||void 0===oe?void 0:oe.wrapTextInHeaders),border:null!==(ie=null!==(ae=Wk(n,null==Re?void 0:Re.border))&&void 0!==ae?ae:n.getStyle("object.straightTableV2","grid","borderColor"))&&void 0!==ie?ie:n.background.isDark?CS.DARK_MODE_BORDER:CS.BORDER_MEDIUM,divider:null!==(se=null!==(le=Wk(n,null==Re?void 0:Re.divider))&&void 0!==le?le:n.getStyle("object.straightTableV2.grid","","divider.borderColor"))&&void 0!==se?se:CS.BORDER_HEAVY,hoverColors:{color:null!==(ue=null!==(ce=Wk(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=Wk(n,null==Ae?void 0:Ae.hoverColor))&&void 0!==fe?fe:n.getStyle("object.straightTableV2","","grid.hover.backgroundColor"))&&void 0!==pe?pe:null===(he=r.body.hoverColors)||void 0===he?void 0:he.background},zebraStripes:{show:!(null==Re||null===(me=Re.zebraStripes)||void 0===me||!me.show),odd:{color:Wk(n,null==Re||null===(ge=Re.zebraStripes)||void 0===ge||null===(ge=ge.color)||void 0===ge?void 0:ge.odd),background:Wk(n,null==Re||null===(be=Re.zebraStripes)||void 0===be||null===(be=be.background)||void 0===be?void 0:be.odd)},even:{color:Wk(n,null==Re||null===(ve=Re.zebraStripes)||void 0===ve||null===(ve=ve.color)||void 0===ve?void 0:ve.even),background:Wk(n,null==Re||null===(ye=Re.zebraStripes)||void 0===ye||null===(ye=ye.background)||void 0===ye?void 0:ye.even)},overrideNullValueBackground:void 0===Wk(n,null==we?void 0:we.background),overrideNullValueColor:void 0===Wk(n,null==we?void 0:we.fontColor)},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:wS(n),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:Pe},{headerMinRowHeight:Le,totalRowLineHeight:_e,totalRowMinHeight:De,contentLineHeight:Te,contentMinRowHeight:qe}=(e=>{const t=Math.max(Qk(e.header.fontSize)+8,32),r=Qk(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(Qk(e.dimension.values.fontSize),Qk(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)}})(ke);return ke.headerMinRowHeight=Le,ke.totalRowLineHeight=_e,ke.totalRowMinHeight=De,ke.contentLineHeight=Te,ke.contentMinRowHeight=qe,ke},rL=(e,t,r,n)=>{const o=w((()=>{const o=r.totalsPosition.atTop,i=function(e,t,r,n){var o;const i=null===(o=$k(e))||void 0===o?void 0:o.content,a=Hk("content",t,i);a.background=t.background.color;const s=Fk(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=Nk(u)||!!d,f=Nk(l)||!!c,h=p||f;let m;m=Nk(l)?jk(CS.HOVER,t,l):c||(p?"":CS.HOVER);const g=h?jk(ES(m),t,u):"";return{...a,lastRowBottomBorder:s,hoverColors:{background:m,color:g}}}(e,t,r.rows.length,n),a=Bk(e,t,!o),s=function(e,t,r){var n;const o=null===(n=$k(e))||void 0===n?void 0:n.content,i=Hk("content",t,o),{borderBottomColor:a,borderTopColor:s,background:l}=Bk(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},nL=new Map;const oL=L({}),iL=function(e){const t=L([()=>{},new Set]);return nL.set(e,t),({children:r,value:n})=>{const o=_(n),i=_(new Set);R((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=D((()=>o.current),[o]),s=w((()=>[a,i.current]),[a]);return Al.jsx(e.Provider,{value:n,children:Al.jsx(t.Provider,{value:s,children:r})})}}(oL),aL={rows:[],columns:[],totalsPosition:{}},sL=({app:e,children:t,tableData:r=aL,selectionsAPI:n,cellCoordMock:o,layout:i,model:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:h,setPage:m,pageInfo:g,initialDataPages:b,rect:v,viewService:y,downloadService:x,env:S,direction:C})=>{const[R,A]=E(0),[M,I]=E(o||iM),[P,L]=((e,t)=>{const[r,n]=k(qk,{pageRows:e,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(r.rows,n),[_,D]=E(-1),T=rL(i,u,r,d),q=((e,t,r,n,o)=>w((()=>tL(0,t,r,n,o)),[t,r,e,n,o]))(S,i,T,u,y),[O,N,j,z]=((e,t,r,n)=>{const o=t.atBottom||t.atTop,i=zS({...n.header,fontWeight:yk},{maxNbrLinesOfText:3}).measureText,a=zS({...n.totalRow,fontWeight:yk},{maxNbrLinesOfText:3}).measureText,{estimateWidth:s}=zS(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:l}=zS(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]=E(0),[p,f]=E((()=>wk(e,r,u)));GS((()=>{f(wk(e,r-c,u))}),[e,r,c,u]);const h=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,h]})(r.columns,r.totalsPosition,v.width,q),F=w((()=>({app:e,selectionsAPI:n,layout:i,model:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:h,rect:v,viewService:y,styleService:q,direction:C,downloadService:x})),[e,n,i,a,s,l,u,c.active,d,p,f,h,v,y,q,C,x]);return Al.jsx(iL,{value:{headRowHeight:R,setHeadRowHeight:A,focusedCellCoord:M,setFocusedCellCoord:I,selectionState:P,selectionDispatch:L,hoverIndex:_,setHoverIndex:D,columnWidths:O,setColumnWidths:N,baseProps:F,tableData:r,setYScrollbarWidth:j,setPage:m,pageInfo:g,initialDataPages:b,showRightBorder:z,env:S},children:t})};function lL(e,t){const r=function(e){return nL.get(e)}(e),[n,o]=C(r),[,i]=k((e=>e+1),0),a=_(t),s=_(),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 uL(e){var t;const r=mk();return null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),Km({...r,direction:e})}const cL={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},dL={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},pL=Lg("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":{...cL},"&::-moz-range-track":{...cL},"&::-ms-track":{...cL},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...dL},"&::-moz-range-thumb":{...dL},"&::-ms-thumb":{...dL},"&: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"}}))),fL=({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=WS({translator:c.translator}),f=_({initWidth:e,columnWidth:e,initX:0}),h=r?0:1,m=n&&!u,g=()=>m?f.current.columnWidth-h:"100%",b={left:"rtl"!==d?g():void 0,right:"rtl"===d?g():void 0},v=t=>{f.current={initWidth:e,columnWidth:e,initX:null!=t?t:f.current.initX}};GS((()=>{m&&v()}),[e]);const y=e=>{const t=Math.max(e,rC.PixelsMin);f.current.columnWidth=t,i(t)},S=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:nC.Pixels,pixels:f.current.columnWidth};a(e)}else null==l||l(!1)},C=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=>{kS(e),document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",E),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=>{kS(e),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",R),S()},A=!n&&s?e=>{if(e.key===eC.Left||e.key===eC.Right){kS(e);const t=5,r=e.key===eC.Left?t:-t,n="rtl"===d?r:-r;y(f.current.columnWidth+n)}else e.key===eC.Space||e.key===eC.Enter?(kS(e),s(e),S()):e.key===eC.Esc&&(kS(e),s(e),y(f.current.initWidth))}:void 0,M=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return x.createElement(pL,{style:b,key:t,hoverColor:o,isLastColumn:r,className:tC,"data-testid":tC,onMouseDown:e=>{kS(e),document.addEventListener("mousemove",C),document.addEventListener("mouseup",E),null==l||l(!0),v(e.clientX)},onDoubleClick:()=>{a({type:nC.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(kS(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:rC.PixelsMax,"aria-label":M,"aria-valuemin":rC.PixelsMin,"aria-valuemax":rC.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d})},hL=T(((e,t)=>Al.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:Al.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})));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)}const gL=Lg(mv,{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"}))),bL=Lg(hL,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),vL=Lg(Xy)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),yL=Lg(Uv)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),xL=Lg(tx)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),SL=Lg(tx,{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"}))),CL=Lg("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"}))),EL=Lg("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),wL=Lg(Lb)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),RL=Lg(Ey,{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}))),AL=T(((e,t)=>Al.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:Al.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),ML=e=>{const t=e.nextElementSibling;var r;return t?"HR"===t.tagName?ML(t):t:null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[0]},IL=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?IL(t):t},PL=e=>{var t;const{key:r,currentTarget:n}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:n;if(r===eC.Down||r===eC.Up){const t=e=>r===eC.Down?ML(e):IL(e);e.preventDefault(),e.stopPropagation();let n=t(o);for(;n;){if("true"!==n.ariaDisabled){n.focus();break}n=t(n)}}},kL=(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 LL={};const _L=({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=_(null),h=D((e=>{e.stopPropagation(),p(!1)}),[p]);return x.createElement(x.Fragment,null,x.createElement(SL,{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),LL={}),null!=a&&a.length&&(p(!0),LL[n]=p))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:PL},l?x.createElement(CL,{direction:u,isPagination:c}):null,x.createElement(EL,null,x.createElement(RL,{direction:u,isPagination:c},x.createElement(o,null)),x.createElement(wL,{variant:"body2"},n)),null!=a&&a.length?x.createElement(AL,null):null),null!=a&&a.length?x.createElement(qL,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:kL(a,LL),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null)},DL=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&x.createElement(xL,{key:e.groupHeading,disabled:!0,style:{opacity:1}},e.groupHeading),e.items.map((e=>x.createElement(_L,mL({key:e.id},e,{isSubMenu:t,direction:r,isPagination:n}))))].filter(Boolean)])),TL={appear:0,enter:0,exit:0},qL=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?x.createElement(vL,mL({className:JS,open:t,anchorEl:e,onClose:r,transitionDuration:TL,MenuListProps:{id:ZS}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{},{dir:s}),(({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[DL({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?x.createElement(yL,{"data-testid":"group-divider",variant:"middle"}):void 0])))({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})):null,OL=(e,t)=>e.some((e=>t[e]>0)),NL={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},jL=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=E(null),[a,s]=E(NL);return GS((()=>{e||(s(NL),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:h}=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),h&&s((e=>({canSelectAll:OL(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:OL(["qSelected"],e),canSelectPossible:OL(["qOption"],e),canSelectAlternative:OL(["qAlternative"],e),canSelectExcluded:OL(["qAlternative","qExcluded"],e)}))(h)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},zL=T(((e,t)=>Al.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:Al.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"})}))),FL=T(((e,t)=>Al.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:Al.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"})}))),$L=T(((e,t)=>Al.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:Al.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"})}))),HL=T(((e,t)=>Al.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:Al.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"})}))),BL=T(((e,t)=>Al.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:Al.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"})}))),GL=T(((e,t)=>Al.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:Al.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"})}))),VL=T(((e,t)=>Al.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:Al.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"})}))),WL=T(((e,t)=>Al.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:Al.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"})}))),UL=T(((e,t)=>Al.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:Al.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"})}))),YL=T(((e,t)=>Al.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:Al.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"})}))),KL=T(((e,t)=>Al.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:Al.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"})}))),XL=T(((e,t)=>Al.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:Al.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"})}))),JL=T(((e,t)=>Al.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:Al.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"})}))),ZL=T(((e,t)=>Al.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:Al.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 QL=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const e_="/qListObjectDef",t_=({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[QL.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:zL,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:HL,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:WL,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:BL,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&null!=i&&i.select){const e=[];r[QL.Searching]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:UL,enabled:!0}]}]),r[QL.Selections]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:ZL,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(e_))},icon:YL,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(e_))},icon:JL,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(e_))},icon:KL,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(e_))},icon:XL,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(e_))},icon:FL,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:VL,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:GL,enabled:!0}]}]),e.length>0&&f.push(...e)}return r[QL.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:$L,enabled:!0}]}]),f},r_=({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:h="ltr",isPagination:m})=>{var g;const b=WS({translator:o}),{qLibraryId:v,fieldId:y,headTextAlign:S}=n,C=null==c?void 0:c.app,{fieldInstance:E,selectionActionsEnabledStatus:w}=jL({open:e,headerData:n,app:C,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=D((()=>{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"===h?"right":"left"},sortCriteria:u.sortCriteria,stateName:null==c?void 0:c.qStateName,direction:h})}}),[v,y,u,null==c?void 0:c.qStateName,h]),M=D((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?x.createElement(gL,{rightAligned:"right"===S,shouldShowMenuIcon:s,className:XS},s?x.createElement(bL,{height:YS,className:KS,"data-testid":KS,isInteractionsActive:null!==(g=i.active)&&void 0!==g&&g},x.createElement(hL,null)):null,x.createElement(qL,{open:e,anchorEl:r.current,onClose:M,menuGroups:t_({headerData:n,translator:b,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:A,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:w,anchorRef:r,focusColumnAdjuster:null==d?void 0:d.focusColumnAdjuster,setActiveFieldCallback:R,expandOrCollapseArgs:p}),direction:h,isPagination:m})):null},n_=e=>e.isDark?{background:e.color,borderColor:CS.DARK_MODE_BORDER,color:CS.DARK_MODE_TEXT,disabledColor:CS.DARK_MODE_DISABLED,iconColor:CS.DARK_MODE_TEXT}:{background:e.color,borderColor:CS.BORDER_MEDIUM,color:CS.TEXT,disabledColor:CS.DISABLED},o_=Lg(mv,{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}`}))),i_=Lg(qx,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),a_=Lg(Rv,{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)}))),s_=Lg(Lb)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),l_=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=w((()=>n_(n.background)),[n]);if(!r.active)return null;const a=o?x.createElement(o_,{footerStyle:i},e):null;return t?F.createPortal(e,t):a},u_=L({}),c_=()=>C(u_),d_=({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:h,layout:m})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=w((()=>n_(p.background)),[p]),v=o?o.getBoundingClientRect().width:h.width,y=WS({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:h,layout:m,footerStyle:b,tabIndex:g,width:v})),[t,r,n,o,i,a,s,l,u,c,y,p,f,h,m,b,g,v]);return x.createElement(u_.Provider,{value:S},e)};let p_=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),f_=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 h_=T(((e,t)=>Al.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:Al.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),m_=T(((e,t)=>Al.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:Al.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),g_=T(((e,t)=>Al.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:Al.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),b_={FirstPage:m_,PreviousPage:h_,NextPage:AL,LastPage:g_,FirstPageRTL:g_,PreviousPageRTL:AL,NextPageRTL:h_,LastPageRTL:m_},v_=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=c_(),u=r.concat("rtl"===n?"RTL":""),c=b_[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}},y_=()=>{const{pageInfo:e,width:t}=c_(),r=0===e.page,{IconComponent:n,styledProps:o}=v_({type:p_.FirstPage,disabledCondition:r,pageNumber:0});return t<=f_.FirstPage?null:x.createElement(a_,o,x.createElement(n,{height:YS}))},x_=(e,t,r=!1)=>{r&&e.key===eC.Tab&&!e.shiftKey&&(kS(e),PS(e.target,t,!1))},S_=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=c_(),i=e.page>=r-1,{IconComponent:a,styledProps:s}=v_({type:p_.LastPage,disabledCondition:i,pageNumber:r-1}),l=t.enabled?e=>{x_(e,t,n)}:void 0;return o<=f_.LastPage?null:x.createElement(a_,mL({},s,{onKeyDown:l}),x.createElement(a,{height:YS}))},C_=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=c_(),i=e.page>=r-1,{IconComponent:a,styledProps:s}=v_({type:p_.NextPage,disabledCondition:i,pageNumber:e.page+1}),l=!(o>f_.FirstPage&&o>f_.LastPage)&&t.enabled?e=>{x_(e,t,n)}:void 0;return x.createElement(a_,mL({},s,{onKeyDown:l}),x.createElement(a,{height:YS}))},E_=()=>{const{pageInfo:e}=c_(),t=0===e.page,{IconComponent:r,styledProps:n}=v_({type:p_.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return x.createElement(a_,n,x.createElement(r,{height:YS}))},w_=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=c_(),{page:o,rowsPerPage:i}=r;if(t<=f_.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return x.createElement(s_,{variant:"caption",dir:"ltr"},a)},R_=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s}=c_(),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(s_,{variant:"caption",id:d},u,":"),x.createElement(i_,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:p},r))},A_=()=>{var e;const{pageInfo:t,isSelectionMode:r,totalColumnCount:n,width:o,handleChangeRowsPerPage:i}=c_();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!r&&o>f_.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(R_,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},M_=1e3,I_="…",P_=({totalPages:e,page:t})=>{const r=Math.min(e,M_),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-M_):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:I_,disabled:!0},I_)),o<e-1&&a.push(x.createElement("option",{key:"endMoreOptions",value:I_,disabled:!0},I_)),x.createElement(x.Fragment,null,a)},k_=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=c_(),{page:o}=e;if(t<=f_.SelectPage)return null;const i=x.createElement(P_,{totalPages:r,page:o});return x.createElement(R_,{name:"SelectPage",value:o,options:i,handleChange:e=>{n(+e.target.value)}})};var L_=q((e=>x.createElement(d_,e,x.createElement(A_,null),x.createElement(k_,null),x.createElement(w_,null),x.createElement(y_,null),x.createElement(E_,null),x.createElement(C_,null),x.createElement(S_,null))));const __=e=>x.createElement(l_,e,x.createElement(L_,e)),D_={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},T_=Lg(mv,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.color}))),q_=Lg("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?{...D_,whiteSpace:"nowrap",display:r?"block":void 0}:{...D_,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}));function O_(e,t){const r=_(!1);R((()=>{r.current?e():r.current=!0}),t)}const N_=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),j_=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),z_=e=>e.atTop?2:1,F_=(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]]},$_=e=>null==e?void 0:e.setAttribute("tabIndex","0"),H_=e=>null==e?void 0:e.setAttribute("tabIndex","-1"),B_=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(H_)},G_=e=>{null==e||e.focus(),$_(e)},V_=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(`.${tC}`);G_(r)}),0)},W_=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{B_(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 eC.Down:u<s&&u++;break;case eC.Up:u>a&&u--;break;case eC.Right:if(i)break;[u,c]="rtl"===n?N_({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):j_({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case eC.Left:if(i)break;[u,c]="rtl"===n?j_({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):N_({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case eC.Home:(Mk(e)||i)&&(u=a),i||(c=0);break;case eC.End:(Mk(e)||i)&&(u=s),i||(c=l);break;case eC.PageDown:u=Math.min(s,u+10);break;case eC.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=F_(t,a);return G_(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}},U_=(e,t,r,n)=>{var o;(B_(t),r(e),n.enabled&&!n.active)?null===(o=n.focus)||void 0===o||o.call(n):G_(F_(t,e))},Y_=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!(null==n||!n.contains(o)),a=null==o?void 0:o.closest(`.${JS}`);var s;!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${_A.First}`),r=e.querySelector(`.${_A.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),null===(s=r.blur)||void 0===s||s.call(r,!1))},K_=()=>{const{downloadService:e}=lL(oL,(e=>e.baseProps));R((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))},X_=(e,t,r)=>{const{rootElement:n,keyboard:o}=lL(oL,(e=>e.baseProps)),{totalColumnCount:i,totalRowCount:a,rows:s,totalsPosition:l}=lL(oL,(e=>e.tableData)),u=lL(oL,(e=>e.focusedCellCoord)),c=lL(oL,(e=>e.setFocusedCellCoord)),d=lL(oL,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()}));O_((()=>{const r=((e,t,r=!1)=>{const n=[z_(t),e[1]];return r?n:iM})(u,l,d);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(B_(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=F_(t,e);var l;r.current?(G_(s),r.current=!1):$_(s),n&&(a({keys:[null!==(l=null==s?void 0:s.textContent)&&void 0!==l?l:""]}),Ak(a,s,n))})({resetCellCoord:r,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:d,keyboard:o,announce:t})}),[s.length,a,i,r])},J_=(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])},Z_=e=>{kS(e),Mk(e)&&uC(e.currentTarget)},Q_=e=>{Lk(e.evt)&&(kS(e.evt),W_(e))},eD=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!Lk(t))return;kS(t);const i=((e,t)=>[e.pageRowIdx+z_(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?z_(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=W_({...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:kA.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):Ak(o,a,i)})({...e,nextCell:s})},tD=e=>{const{evt:t}=e;Ik(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{kS(e);const a=Math.ceil(t/r)-1;e.key===eC.Right&&n<a?(o(),i(n+1)):e.key===eC.Left&&n>0&&(o(),i(n-1))})(e):t.key===eC.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{var n;t.enabled&&!r&&(kS(e),null===(n=t.blur)||void 0===n||n.call(t,!0))})(e):Pk(t.key)&&kS(t)},rD=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(PA.Disabled))return void kS(t);const n={...e,isSelectionMode:!(null==r||!r.isModal())};switch(t.key){case eC.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{kS(e),t.isSelectable&&r&&n({type:kA.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case eC.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{kS(r),e&&(null==t||t.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case eC.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(kS(r),null==t||t.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case eC.C:Z_(t);break;case eC.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(kS(e),PS(e.currentTarget,t,e.shiftKey))})(n);break;default:eD(n)}},nD=e=>{const{layout:t,rect:r,theme:n}=lL(oL,(e=>e.baseProps)),[o,i]=E(0),[a,s]=E(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}},oD=Lg("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),iD=Lg(nS,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"}))),aD=Lg($x,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),sD=()=>Al.jsxs(Al.Fragment,{children:[Al.jsx(oD,{className:_A.First,"data-testid":_A.First,"aria-live":"polite","aria-atomic":"true"}),Al.jsx(oD,{className:_A.Second,"data-testid":_A.Second,"aria-live":"polite","aria-atomic":"true"})]}),lD=e=>{const t=_(new Map),r=_(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=D(((e,n)=>{var o;t.current.set(e,n),null===(o=r.current)||void 0===o||o.observe(e)}),[t,r]),o=D((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])},uD=e=>new ResizeObserver((t=>{t.forEach((t=>{const r=e.get(t.target);null==r||r(t)}))})),cD=()=>lD(uD),dD=({selectionsAPI:e,selectionDispatch:t,updateShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{R((()=>{const i=()=>{t({type:kA.Reset})},a=()=>{t({type:kA.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])},pD=e=>{e.stopPropagation()},fD=({href:e,text:t,interactions:r,color:n})=>x.createElement(fy,(({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:pD,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 hD,mD;const gD=null!==(hD=window.requestIdleCallback)&&void 0!==hD?hD:e=>setTimeout((()=>{e({})}),0),bD=null!==(mD=window.cancelIdleCallback)&&void 0!==mD?mD:e=>{clearTimeout(e)},vD="qDimensionInfo/0",yD="qMeasureInfo/0",xD="x",SD="y",CD=e=>({key:"bars",type:"box",data:{extract:{field:vD,props:{start:0,end:{field:yD}}}},settings:{major:{scale:xD},minor:{scale:SD},box:{maxWidthPx:8,fill:{fn:e}}}}),ED=e=>({key:"p",type:"point",data:{extract:{field:vD,props:{y:{field:yD}}}},settings:{x:{scale:xD},y:{scale:SD},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),wD=({qNum:e})=>void 0===e?0:Math.sign(e),RD=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=MS(e,null==t?void 0:t.negative,r),a=MS(e,null==t?void 0:t.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:vD,props:{start:0,end:{field:yD,value:wD}}}},settings:{major:{scale:xD},minor:{scale:SD},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}}}}},AD=(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=MS(e,null==t?void 0:t.main,o),l=MS(e,null==t?void 0:t.max,s),u=MS(e,null==t?void 0:t.min,s),c=MS(e,null==t?void 0:t.first,s),d=MS(e,null==t?void 0:t.last,s);return e=>{const t=SD in e.datum?SD:"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[CD(a)];case"dots":return[ED(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:vD,props:{v:{field:yD}}}},settings:{coordinates:{major:{scale:xD},minor:{scale:SD,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(MS(e,null==n?void 0:n.main,e.getDataColorSpecials().primary));return r?[t,ED(a)]:[t]}case"posNeg":return[RD(e,n)];default:return[]}},MD=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"}),ID=(e,t,r,n)=>({y:{data:{field:yD},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:vD}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),PD=B();PD.use(H),PD.renderer.prio(["canvas"]);const kD={resolve:()=>{},promise:{}},LD=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=_(e.isDownloadedAsPDForImage?mt():kD);return{addChartPromiseToQueue:D((()=>{e.waitForPromise(t.current.promise)}),[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:D((()=>{if(null===t.current||null!==e.current)return;u();r.current=gD((()=>{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 PD.chart({element:e,data:{type:"q",key:"qHyperCube",data:MD(s)},settings:{scales:ID(a,l,u,i),components:AD(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:D((()=>{null!==r.current&&bD(r.current),r.current=null,l()}),[r,l])}},_D=e=>{const t=_(null),r=_(!1);return D((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&&(bD(e.current),e.current=null)})(t),r.current?0!==a?null!==e.current&&(t.current=gD((()=>{var t;null===(t=e.current)||void 0===t||t.update()}),{timeout:2e3})):r.current=!1:r.current=!0}),[e])},DD=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=_(null),l=_(null),u=_(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=LD({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=D((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=_D(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},TD=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=DD({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"}})},qD="cell-text",OD=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const{styleService:a}=lL(oL,(e=>e.baseProps));return o?Al.jsx(q_,{"data-testid":qD,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,children:e}):Al.jsx(q_,{"data-testid":qD,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:null!=i?i:a.grid.contentLineClamp,isPagination:n,children:e})},ND=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),jD=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},zD=(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=>!Qw(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||!Qw(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)},FD=(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)},$D=(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:ND(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:jD(n,t,r)})))),n},HD=(e,t,r,n)=>{const o=$D(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=FD(e,a,t);break}n=i}return r})(o,t);return a},BD=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=zD(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||!Qw(t))return 0;let a=r&&Qw(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}},GD=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=BD(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 jD(o,r.limitPaletteColorIndex,n);const a=ND(r.limitRange,t);return HD(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}},VD=(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},WD=(e,t)=>e.representation.type===tw.Image&&"fitHeight"===e.representation.imageSize?VD(t,e.representation):e.align,UD=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",YD=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},KD=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,XD=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",JD=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",ZD=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}`},QD=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},eT=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{direction:o}=lL(oL,(e=>e.baseProps)),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=Al.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:QD(s),objectPosition:ZD(l),overflow:"hidden"}});return n?Al.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?VD(o,e):void 0},children:c}):c},tT=T(((e,t)=>Al.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:Al.jsx("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})}))),rT=T(((e,t)=>Al.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:Al.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"})}))),nT=T(((e,t)=>Al.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:[Al.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"}),Al.jsx("use",{fillRule:"evenodd"})]}))),oT=T(((e,t)=>Al.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:Al.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"})}))),iT=T(((e,t)=>Al.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:Al.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"})}))),aT=T(((e,t)=>Al.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:Al.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"})}))),sT=T(((e,t)=>Al.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:Al.jsx("path",{d:"M2 7h12v2H2z"})}))),lT=T(((e,t)=>Al.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:Al.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"})}))),uT=T(((e,t)=>Al.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:Al.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"})}))),cT=T(((e,t)=>Al.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:Al.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"})}))),dT=T(((e,t)=>Al.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:Al.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"})}))),pT=T(((e,t)=>Al.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:Al.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),fT=T(((e,t)=>Al.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:Al.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"})}))),hT=T(((e,t)=>Al.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:Al.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"})}))),mT=T(((e,t)=>Al.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:Al.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"})}))),gT={m:pT,"ï":cT,R:T(((e,t)=>Al.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:Al.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:fT,T:hT,U:mT,P:uT,Q:aT,"è":T(((e,t)=>Al.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:Al.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"})}))),"¢":oT,"©":nT,"23F4":iT,2013:dT,"&":lT,add:tT,"minus-2":sT,dot:rT},bT=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&gT[t];return o&&x.createElement("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n}},x.createElement(o,{style:{height:e}}))},vT=({representation:e,cellValue:t,paginationCellAlign:r})=>{const{styleService:n,theme:o,direction:i}=lL(oL,(e=>e.baseProps)),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=null!=s?s:{},c=GD(e,t,i,o),d=(e=>parseInt(e||vk,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=c||{};return l?Al.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"===h&&bT({size:d,iconKey:f,color:p}),Al.jsx(OD,{isNumeric:!0,children:a}),"right"===h&&bT({size:d,iconKey:f,color:p})]}):bT({size:d,iconKey:f,color:p})},yT=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(null!=t?t:e.grid.contentLineClamp):e.contentLineHeight,xT=({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}=lL(oL,(e=>e.baseProps)),h=lL(oL,(e=>{var t;return null===(t=e.selectionState.api)||void 0===t?void 0:t.isActive()}));let m=t.representation.text;if(t.representation.type!==tw.Link||h||(m=Al.jsx(fD,{href:t.representation.url,text:t.representation.text,interactions:l,color:r.cellForegroundColor})),t.representation.type===tw.Image)return Al.jsx(eT,{representation:t.representation,textStyle:r,maxImageHeight:yT(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!==tw.Indicator||Number.isNaN(g)?t.representation.type===tw.MiniChart&&t.representation.miniChart&&!t.isNull?Al.jsx(TD,{height:yT(u,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:c,isSnapshot:!!d.snapshotData,direction:f,downloadService:p}):Al.jsx(OD,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:m}):Al.jsx(vT,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:s})},ST=(e,t,r,n)=>({handleMouseDown:n=>{null==e||e(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:kA.SelectMultiEnd})};r({type:kA.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:kA.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:kA.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),CT=(e,t)=>{const{paginationNeeded:r,totalsPosition:n}=lL(oL,(e=>e.tableData)),{selectionsAPI:o,rootElement:i,keyboard:a,interactions:s,direction:l}=lL(oL,(e=>e.baseProps)),u=lL(oL,(e=>e.setFocusedCellCoord)),c=lL(oL,(e=>e.selectionDispatch)),d=!!s.active&&!!s.select,p=s=>{rD({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===eC.Shift&&t({type:kA.SelectMultiEnd})})(e,c)},h=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;U_([s,a],t,r,n)})(e,i,u,a,n)};if(!d)return{onKeyDown:p,onKeyUp:f,onMouseDown:h};const{handleMouseDown:m,handleMouseOver:g,handleMouseUp:b}=ST(h,e,c,t);return{onKeyDown:p,onKeyUp:f,onMouseDown:m,onMouseUp:b,onMouseOver:g}},ET=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=PA.Inactive;return null!=o&&o.isModal()&&(i=r!==e.selectionColIdx?PA.Disabled:n.has(e.qElemNumber)?PA.Selected:PA.Possible),i},wT=(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},RT=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},AT=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return RT(t,e,n?"even":"odd")}return e},MT=(e,t)=>{const{styleService:r}=lL(oL,(e=>e.baseProps)),n=lL(oL,(t=>ET(e,t.selectionState)));let o=t.isDim?r.dimension.values:r.measure.values;o=AT(o,r,e),o=wT(o,r,e);const i=Vk(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===PA.Selected?{...e,...r}:t===PA.Disabled?{...e,background:`${gk}, ${e.background}`}:e}(w((()=>e.isNull?o:Vk(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}},IT=Lg(Yx,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),PT=Lg(mS,{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}}}))),kT=Lg(Qx,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...Sk,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}))),LT=Lg(Qx,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...Sk,...e,fontWeight:yk,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}))),_T=({cell:e,announce:t,column:r,columnIndex:n,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i})=>{const{interactions:a,direction:s}=lL(oL,(e=>e.baseProps)),{onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p}=CT(e,t),{cellStyle:f,representationStyle:h,cellSelectionState:m}=MT(e,r);return Al.jsx(kT,{cellStyle:f,scope:0===n?"row":void 0,component:0===n?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${m} ${QS}`,title:a.passive?e.representation.text:void 0,onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p,children:Al.jsx(xT,{cell:e,style:h,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i,paginationCellAlign:KD(s,e.align)})})},DT=(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}),TT=()=>{const{columns:e,totalsPosition:t,rows:r}=lL(oL,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,styleService:a,interactions:s,direction:l}=lL(oL,(e=>e.baseProps)),u=lL(oL,(e=>e.headRowHeight)),c=lL(oL,(e=>e.setFocusedCellCoord)),d=!(null==o||!o.isModal()),p=!!s.active;return Al.jsx(mS,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,o)=>{const f=[t.atTop?1:r.length+1,o];return Al.jsx(LT,{totalsStyle:{...a.totalRow,...DT(a,t,!1)},headRowHeight:u,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${QS}`,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 eC.C:Z_(r);break;case eC.Space:r.preventDefault();break;default:Q_(e)}else kS(r)})({evt:e,rootElement:n,cellCoord:f,setFocusedCellCoord:c,isSelectionMode:d,isInteractionEnabled:p,direction:l})},onMouseDown:()=>{U_(f,n,c,i)},children:Al.jsx(OD,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)}))})};var qT=q(TT);const OT=({updateShouldRefocus:e,tableWrapperRef:t,announce:r})=>{var n;const{rows:o,columns:i,totalsPosition:a}=lL(oL,(e=>e.tableData)),{selectionsAPI:s,keyboard:l,layout:u,styleService:c}=lL(oL,(e=>e.baseProps)),d=lL(oL,(e=>e.selectionDispatch)),p=!(null===(n=$k(u))||void 0===n||null===(n=n.content)||void 0===n||!n.hoverEffect);dD({keyboard:l,selectionDispatch:d,selectionsAPI:s,updateShouldRefocus:e,tableWrapperRef:t});const f=(e=>{const t=D((t=>new IntersectionObserver((e=>{e.forEach((e=>{const r=t.get(e.target);null==r||r(e)}))}),{root:e.current})),[e]);return lD(t)})(t),h=cD();return Al.jsxs(IT,{lastRowBottomBorder:c.grid.lastRowBottomBorder,children:[a.atTop?Al.jsx(qT,{}):void 0,o.map(((e,t)=>Al.jsx(PT,{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 Al.jsx(_T,{columnIndex:n,cell:i,column:t,announce:r,intersectionObserverTaskScheduler:f,resizeObserverTaskScheduler:h},o)}))},`row-${t}`))),a.atBottom?Al.jsx(qT,{}):void 0]})};var NT=q(OT);const jT=(e,t)=>{var r;return!(null===(r=e.viewState)||void 0===r||!r.skipHeader)||!!t.hideHeader},zT=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:s,translator:l,direction:u}=lL(oL,(e=>e.baseProps)),c=lL(oL,(e=>e.columnWidths)),d=lL(oL,(e=>e.setColumnWidths));if(!s.active)return null;return Al.jsx(fL,{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=>{H_(e);const t=e.closest(".sn-table-cell");G_(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:l,columnLabel:i},direction:u})},FT=T(((e,t)=>Al.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:Al.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"})}))),$T=T(((e,t)=>Al.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:Al.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"})}))),HT=T(((e,t)=>Al.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:[Al.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"}),Al.jsx("use",{fillRule:"evenodd"})]}))),BT=Lg("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0}))),GT=Lg(mv,{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?UD(e,n):void 0})));Lg("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1});const VT=Lg(mv,{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},[`& .${XS}`]:{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"},[`& .${XS}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),WT=Lg(mv,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})));Lg(mv,{shouldForwardProp:e=>"isVisible"!==e&&"rightAligned"!==e})((({rightAligned:e})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:"24px",display:"flex"}))),Lg(tx)((({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"}}))),Lg("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),Lg(Ey)((({theme:e})=>({marginRight:e.spacing(1.5),lineHeight:0}))),Lg("div")((({theme:e})=>({height:"350px",boxSizing:"border-box",background:e.palette.common.white})));const UT=Lg(Qx,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...Sk,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom","&&:focus-visible, &&:hover":{background:t.active?r:n}})));Lg("div")({display:"flex",alignItems:"center"});const YT=Lg("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})((({align:e,dir:t})=>({minWidth:vk,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),KT=({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:h}=lL(oL,(e=>e.baseProps)),m=lL(oL,(t=>t.columnWidths[e.pageColIdx])),g=lL(oL,(e=>e.baseProps.model)),b=_(null),v=_(null),y=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=zS({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:yk});return D((()=>{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:m}),x=y(),{StartIcon:S,EndIcon:C,LockIcon:E}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?Al.jsx(FT,{height:vk,"data-testid":"head-cell-sort-ascending-icon"}):Al.jsx($T,{height:vk,"data-testid":"head-cell-sort-descending-icon"}),a=r?Al.jsx(YT,{align:t,dir:o,children:i}):void 0,s=n?Al.jsx(WT,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:Al.jsx(HT,{height:vk,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(e,x,h);o&&(o.current[e.pageColIdx]=x);return Al.jsxs(VT,{shouldShowMenuIcon:x.shouldShowMenuIcon,shouldShowLockIcon:x.shouldShowLockIcon,alignment:YD(e,i,h),children:[E,Al.jsxs(GT,{className:"sn-table-head-label",textAlign:e.headTextAlign,direction:h,isPagination:i,children:[S,Al.jsx(OD,{forwardRef:a,isPagination:i,isHeadCell:!0,children:e.label}),C]}),t?Al.jsxs(Al.Fragment,{children:[Al.jsx(r_,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:s,anchorRef:b,menuAvailabilityFlags:{[QL.Sorting]:!0,[QL.Searching]:!0,[QL.Selections]:!0,[QL.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:V_},shouldShowMenuIcon:x.shouldShowMenuIcon,model:g,direction:h,isPagination:i}),Al.jsx(BT,{ref:v,direction:h,isPagination:i}),Al.jsx(BT,{ref:b,direction:h})]}):null]})},XT=({isInteractionEnabled:e,columnsData:t})=>{const[r,n]=E(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=(e=>{const[t,r]=E(!1);return GS((()=>{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(tC)})(t)||o||n(!0)},setIsAdjustingWidth:i}},JT=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a,direction:s}=lL(oL,(e=>e.baseProps)),{columns:l,totalsPosition:u}=lL(oL,(e=>e.tableData)),c=lL(oL,(e=>e.columnWidths[t])),d=lL(oL,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),p=lL(oL,(e=>e.setFocusedCellCoord)),f=lL(oL,(({focusedCellCoord:[e,r]})=>0===e&&r===t)),h=!!n.active&&!d,{open:m,setOpen:g,handleOpenMenu:b,setIsAdjustingWidth:v}=XT({isInteractionEnabled:h,columnsData:l}),y=e.isActivelySorted?LA[e.sortDirection]:void 0,x=m?ZS:void 0,S=m?"true":void 0,C=t===r-1,E=[0,e.pageColIdx],w={width:c-(C?8:9),zIndex:l.length-t},R=f&&0===t&&!i.enabled&&h?0:-1;return Al.jsxs(UT,{headerStyle:{...a.header,...DT(a,u,!0)},background:m?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:n,style:w,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${QS}`,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 eC.C:Z_(r);break;case eC.Enter:case eC.Space:null==n||n(r);break;default:Q_(e)}else kS(r)})({evt:e,rootElement:o,cellCoord:E,setFocusedCellCoord:p,isInteractionEnabled:h,handleOpenMenu:b,direction:s})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&U_(r,t,n,o)})({evt:e,rootElement:o,cellCoord:E,setFocusedCellCoord:p,keyboard:i,isInteractionEnabled:h})},onClick:b,"aria-sort":y,"aria-controls":x,"aria-expanded":S,"aria-haspopup":"true",children:[Al.jsx(KT,{column:e,isInteractionEnabled:h,open:m,setOpen:g,isPagination:!0}),Al.jsx(zT,{column:e,isLastColumn:C,setIsAdjustingWidth:v})]},e.id)},ZT=()=>{const{columns:e}=lL(oL,(e=>e.tableData)),{styleService:t,viewService:r,layout:n}=lL(oL,(e=>e.baseProps)),o=lL(oL,(e=>e.setHeadRowHeight)),i=lL(oL,(e=>e.columnWidths)),a=_(null),s=jT(r,n);return R((()=>{a.current&&o(a.current.getBoundingClientRect().height)}),[t.header.fontSize,i,o,s]),Al.jsx(uS,{style:{visibility:s?"collapse":void 0},children:Al.jsx(mS,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map(((t,r)=>Al.jsx(JT,{column:t,columnIndex:r,columnsLength:e.length},t.id)))})})};var QT=q(ZT);const eq=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:h}=lL(oL,(e=>e.tableData)),{rootElement:m,keyboard:g,translator:b,theme:v,interactions:y,styleService:x,viewService:S,layout:C,rect:E,direction:w}=lL(oL,(e=>e.baseProps)),A=lL(oL,(e=>e.setYScrollbarWidth)),M=lL(oL,(e=>e.showRightBorder)),I=lL(oL,(e=>e.selectionDispatch)),P=lL(oL,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),k=_(!1),L=_(null),T=_(null),{yScrollbarWidth:q}=nD(L),O=`${b.get("SNTable.Accessibility.RowsAndColumns",[String(f.length),String(h.length)])} ${b.get("SNTable.Accessibility.NavigationInstructions")}`,N=fA(C,S),j=N&&null!==(t=S.scrollLeft)&&void 0!==t?t:0,z=N&&null!==(r=S.rowPartialHeight)&&void 0!==r?r:0,F=D((()=>{k.current=m.getElementsByTagName("table")[0].contains(document.activeElement)}),[m]),$=D((e=>{o({...n,page:e}),a({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),d.toString()]],politeness:"assertive"})}),[n,o,d,a]),H=D((e=>{o({...n,page:0,rowsPerPage:e}),a({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[a,n,o]);return J_(L,w,S),((e,t)=>{const{keyboard:r}=lL(oL,(e=>e.baseProps));R((()=>{const n=e.current;if(!n)return;const o=e=>{Y_(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(T,k),(()=>{const{rootElement:e,keyboard:t}=lL(oL,(e=>e.baseProps)),r=lL(oL,(e=>e.focusedCellCoord));GS((()=>{const n=F_(e,r);t.active?G_(n):(null==n||n.blur(),B_(e))}),[t.active,e])})(),X_(k,a,s),R((()=>{const e=L.current;e&&(e.scrollLeft=j,e.scrollTop=z)}),[n,c,j,z]),O_((()=>{A(q)}),[q]),O_((()=>{I({type:kA.UpdatePageRows,payload:{pageRows:f}})}),[f]),K_(),Al.jsxs(T_,{ref:T,background:v.background,dir:w,onKeyDown:e=>{tD({evt:e,totalRowCount:c,page:s,rowsPerPage:l,handleChangePage:$,updateShouldRefocus:F,keyboard:g,isSelectionMode:P})},"data-testid":"sn-table",children:[Al.jsx(sD,{}),Al.jsx(iD,{ref:L,className:"sn-table-container",fullHeight:!!i||!y.active||!p,interactions:y,tabIndex:-1,role:"application","data-testid":"table-container",children:Al.jsxs(aD,{stickyHeader:!0,"aria-label":O,borderRight:M?`1px solid ${x.grid.border}`:void 0,children:[Al.jsx(QT,{}),Al.jsx(NT,{...e,updateShouldRefocus:F,tableWrapperRef:T})]})}),Al.jsx(__,{footerContainer:i,pageInfo:n,paginationNeeded:p,theme:v,totalRowCount:c,totalColumnCount:u,totalPages:d,keyboard:g,translator:b,interactions:y,rect:E,layout:C,handleChangePage:$,handleChangeRowsPerPage:H,isSelectionMode:P,direction:w})]})};var tq=q(eq),rq=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function nq(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||rq(n)&&rq(o)))return!1;var n,o;return!0}function oq(e,t){var r;void 0===t&&(t=nq);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 iq="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function aq(e){cancelAnimationFrame(e.id)}function sq(e,t){var r=iq();var n={id:requestAnimationFrame((function o(){iq()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var lq=-1;function uq(e){if(void 0===e&&(e=!1),-1===lq||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),lq=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return lq}var cq=null;function dq(e){if(void 0===e&&(e=!1),null===cq||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?cq="positive-descending":(t.scrollLeft=1,cq=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),cq}return cq}var pq=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function fq(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,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=h(n.props,ho(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:ho(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=oq((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=oq((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(m&&s,m&&l,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=r(n.props,t,n._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h: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=oq((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(dq()){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&&aq(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=sq(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}fo(t,e),t.getDerivedStateFromProps=function(e,t){return hq(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,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=uq();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,m,this._instanceProps,x):m,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(dq()){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&&aq(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?pq:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),C=S[0],E=S[1],w=this._getVerticalRangeToRender(),R=w[0],M=w[1],I=[];if(n>0&&g)for(var P=R;P<=M;P++)for(var k=C;k<=E;k++)I.push(A(t,{columnIndex:k,data:d,isScrolling:v?x:void 0,key:f({columnIndex:k,data:d,rowIndex:P}),rowIndex:P,style:this._getItemStyle(P,k)}));var L=a(this.props,this._instanceProps),_=s(this.props,this._instanceProps);return A(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:xt({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},A(u||c||"div",{children:I,ref:l,style:{height:L,pointerEvents:x?"none":void 0,width:_}}))},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],h=c[3];this._callOnItemsRendered(a,s,d,p,l,u,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,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),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,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),h=f(this.props,d,u,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,c),g=s&&"forward"!==l?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(N),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var hq=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},mq=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},gq=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},bq=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]},vq=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?yq(e,t,r,i,0,n):xq(e,t,r,Math.max(0,i),n)},yq=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=bq(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},xq=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&bq(e,t,n,r).offset<o;)n+=a,a*=2;return yq(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},Sq=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=bq(e,t,r,i),u="column"===e?gq(t,i):mq(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}},Cq=fq({getColumnOffset:function(e,t,r){return bq("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return vq("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=bq("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=bq("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:mq,getEstimatedTotalWidth:gq,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return Sq("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return Sq("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return bq("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return vq("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=bq("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=bq("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}}),Eq=function(e,t){return e};function wq(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,ho(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:ho(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=oq((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=oq((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,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=oq((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(dq()){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&&aq(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=sq(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}fo(t,e),t.getDerivedStateFromProps=function(e,t){return Rq(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?uq():0:l.scrollHeight>l.clientHeight?uq():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(dq()){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&&aq(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?Eq:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],w=C[1],R=[];if(u>0)for(var M=E;M<=w;M++)R.push(A(t,{data:c,key:p(M,c),index:M,isScrolling:b?y:void 0,style:this._getItemStyle(M)}));var I=n(this.props,this._instanceProps);return A(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:xt({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%":I,pointerEvents:y?"none":void 0,width:x?I:"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 Rq=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Aq=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]},Mq=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=Aq(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},Iq=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&Aq(e,r,t).offset<n;)r+=i,i*=2;return Mq(e,t,Math.min(r,o-1),Math.floor(r/2),n)},Pq=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},kq=wq({getItemOffset:function(e,t,r){return Aq(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:Pq,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=Aq(e,t,o),p=Pq(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=h-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return n>=h&&n<=f?n:n<h?h: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?Mq(e,t,o,0,r):Iq(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=Aq(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=Aq(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 Lq(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 _q=["style"],Dq=["style"];function Tq(e,t){var r=e.style,n=xr(e,_q),o=t.style,i=xr(t,Dq);return!Lq(r,o)&&!Lq(n,i)}const qq=({style:e})=>Al.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var Oq=x.memo(qq,Tq);const Nq=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},jq=(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])},zq=()=>{},Fq=e=>{e.preventDefault()};const $q=({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=lL(oL,(e=>e.hoverIndex===t)),f=lL(oL,(e=>e.setHoverIndex)),{interactions:h,styleService:m,direction:g}=lL(oL,(e=>e.baseProps)),b=lL(oL,(e=>e.showRightBorder)),v=null===(o=a[t])||void 0===o?void 0:o[e],{handleMouseDown:y,handleMouseOver:x,handleMouseUp:S,cellSelectionState:C}=function(e){const{interactions:t}=lL(oL,(e=>e.baseProps)),r=lL(oL,(e=>e.selectionDispatch)),n="object"==typeof e,o=lL(oL,(t=>n?ET(e,t.selectionState):PA.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=ST(Fq,e,r,zq);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(v),E=((e,t,r,n)=>{const o=_(null),i=r&&!r.isNumeric,a=D((r=>{const o=Nq(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return jq(o,a),o})(t,e,v,u),w=null!==(i=s[e])&&void 0!==i&&i.isDim?m.dimension.values:m.measure.values;if("object"==typeof v){const n=((e,t,r,n,o,i)=>{let a=AT(o,i,e);a=wT(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?Vk(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===PA.Selected?{...s,...i.selectedColors}:n===PA.Disabled?{...s,color:r?null===(l=i.grid.hoverColors)||void 0===l?void 0:l.color:s.color,background:`${gk}, ${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,C,w,m),o={rowindex:t,columnindex:e};return Al.jsx("div",{className:`sn-table-cell ${C} ${QS}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:m.grid.border,borderTop:"0px",borderBottomWidth:v.isLastRow?"0px":"1px",borderRightWidth:XD(g,v.isLastColumn,b),borderLeftWidth:JD(g,v.isLastColumn,b),justifyContent:WD(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:h.passive?v.representation.text:void 0,...o,children:Al.jsx(xT,{forwardRef:m.contentStaticLineCount||1===c?void 0:E,cell:v,style:n,lineClamp:c,virtualizedCell:!0,resizeObserverTaskScheduler:d})})}return Al.jsx(Oq,{style:{...r,...w,borderColor:m.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var Hq=q($q,Tq);const Bq=e=>{const t=_(e);return t.current=e,t},Gq=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,Vq=(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},Wq=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!e[t]))},Uq=(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,h=null!==(c=e[f])&&void 0!==c?c:[];return t.forEach(((e,t)=>{const r=t+n.qLeft;if(h.at(r))return;const{colIdx:o,isDim:c,isLocked:m,bodyTextAlign:g,selectionColIdx:b,qAttrExprInfoIndex:v,representation:y,conditionalColoring:x,qMiniChart:S}=i[r],C=oA(c,e,a),E=!c&&e.qIsNull,w=E?tR(C):eR(e);h[r]={id:Jw(),...e,align:dA(w,g,u),rowIdx:p,colIdx:o,isSelectable:c&&!m,pageRowIdx:f,pageColIdx:r,selectionColIdx:b,isLastRow:p===d.qcy-1,isLastColumn:r===d.qcx-1,isNumeric:w,isNull:(!E||!w)&&nA(e,c),representation:rA({cell:e,representationProperties:y,attrExprInfoIndex:v,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>E?C:e.qText,direction:u,enabledFeatures:{[tw.Image]:s.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[tw.Indicator]:!0,[tw.MiniChart]:!0}})},l(h[r],p,r)})),{row:h,pageRowIdx:f}})(r,l,u,e.qArea,c,n,o,i,a,s);r[p]=d}))}))},Yq=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:s,columns:l,gridState:u,setEstimatedCellHeight:c})=>{const d=lL(oL,(e=>e.env)),{direction:p}=lL(oL,(e=>e.baseProps)),f=_([]),h=D(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return Uq(t,o,n,l,e,d,c,p),f.current=n,n}),[i,o,l,e,d,c,p]),[m,g]=E((()=>h(null!=n?n:[])));GS((()=>{g(h(null!=n?n:[]))}),[n,p]);const b=((e,t)=>{const r=_(new Set),n=_(new Set),o=_(new Set),i=Bq(e),a=Bq(t),s=w((()=>({enqueue:e=>{const t=Gq(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(Gq(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=>h(e,t)))})),v=D(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(Wq(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}}),[f,b]),y=D(((e,t,r,n)=>{for(let i=t;i<t+n;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(Vq(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:m,loadRows:y,loadColumns:v}},Kq=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},Xq=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,Jq=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=lL(oL,(e=>e.baseProps.styleService)),i=lL(oL,(e=>e.columnWidths)),{estimateLineCount:a}=zS(o.dimension.values),s=Qk(o.dimension.values.fontSize),l=e||t||1===r;return D(((e,t,o)=>{if(l||e.representation.type===tw.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])},Zq=({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]),Qq=({rowCount:e,isSnapshot:t,viewService:r,gridRef:n,pageInfo:o})=>{const{styleService:i}=lL(oL,(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))),h=(({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}=lL(oL,(e=>e.baseProps)),a=lL(oL,(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;GS((()=>{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]),GS((()=>{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 m=(({setState:e,maxCellHeight:t,minRowHeight:r,gridRef:n})=>D(((o,i,a)=>{j((()=>{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(!Xq(d.get(a),c))return e;const p={...e};return d.set(a,c),p.rowHeights.set(i,Kq(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})=>D(((o,i,a)=>{e||t||1===r||n(o,i,a)}),[e,t,r,n]))({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:m});return{setMeasuredCellHeight:g,setEstimatedCellHeight:Jq({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:m}),getRowHeight:D((e=>{var t;return c?h:null!==(t=a.rowHeights.get(e))&&void 0!==t?t:u}),[c,u,a.rowHeights,h]),totalRowHeight:Zq({isStaticNbrOfLines:c,minRowHeight:u,state:a,staticRowHeight:h,rowCount:e,viewService:r}),lineClamp:f}},eO=(e,t)=>{O((()=>()=>{t(0)}),[e,t]);const r=D((e=>{const r=Nq(e);void 0!==r&&t(r)}),[t]);jq(e,r)};var tO;!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(tO||(tO={}));const rO=({layout:e,loadRows:t,loadColumns:r,rowCount:n,pageInfo:o,gridState:i,viewService:a})=>D((({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:h})=>{const{verticalScrollDirection:m,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o=tO.None,i=tO.None;return o=n>t?tO.Down:n<t?tO.Up:tO.None,i=r>e?tO.Right:r<e?tO.Left:tO.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=h-f+1,a.page=o.page,a.rowsPerPage=o.rowsPerPage,m===tO.Down){const e=x+25;t(b,v,y,u+e>n?n-u:e)}else if(m===tO.Up){const e=x+25,r=o.page*o.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(g===tO.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(g===tO.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]),nO={enabled:!1},oO=()=>{},iO={current:null};const aO=(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}},sO=({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}`},lO={overflow:"hidden",willChange:"auto"};var uO=q(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}=lL(oL,(e=>e.baseProps)),h=lL(oL,(e=>e.columnWidths)),m=lL(oL,(e=>e.initialDataPages)),g=_(null),b=_(null),v=_({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),y=_(0),x=!(null===(r=$k(l))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect),{rowCount:S,visibleRowCount:C,visibleColumnCount:E}=aO(l,i,n,h,p.contentMinRowHeight),{setMeasuredCellHeight:A,setEstimatedCellHeight:M,getRowHeight:I,lineClamp:P,totalRowHeight:k}=Qq({rowCount:S,isSnapshot:!!l.snapshotData,viewService:d,gridRef:g,pageInfo:i}),{rowsInPage:L,loadRows:D,loadColumns:T}=Yq({layout:l,model:u,theme:c,initialDataPages:m,pageInfo:i,rowCount:S,visibleRowCount:C,visibleColumnCount:E,columns:o,gridState:v,setEstimatedCellHeight:M}),q=rO({layout:l,loadRows:D,loadColumns:T,rowCount:S,pageInfo:i,gridState:v,viewService:d}),N=cD(),j=w((()=>({rowsInPage:L,columns:o,isHoverEnabled:x,lineClamp:P,setMeasuredCellHeight:A,resizeObserverTaskScheduler:N})),[L,o,x,P,A,N]),F=((e,t,r)=>Math.min(e.height-t,r))(n,a,k);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}=lL(oL,(e=>e.baseProps)),r=lL(oL,(e=>e.selectionDispatch));R((()=>{r({type:kA.UpdatePageRows,payload:{pageRows:e}})}),[r,e]),dD({selectionsAPI:t,selectionDispatch:r,updateShouldRefocus:oO,keyboard:nO,tableWrapperRef:iO})}(L),z(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:F)-F,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,F,S]),eO(b,s),Al.jsx(Cq,{"data-key":"body",ref:g,innerRef:b,style:lO,columnCount:l.qHyperCube.qSize.qcx,columnWidth:e=>h[e],height:F,rowCount:S,rowHeight:I,estimatedRowHeight:d.estimatedRowHeight,width:n.width,itemData:j,onItemsRendered:q,itemKey:sO,className:"sn-table-body",direction:f,children:Hq})})));const cO=({width:e,height:t,children:r})=>Al.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),dO=(e,t)=>{const r=_(null),n=lL(oL,(e=>e.columnWidths));O((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=D((r=>{const n=Nq(r);n&&t(n+9,e)}),[e,t]);return jq(r,o),r},pO=Lg("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}}))),fO=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,allColumnsIconVisibilityStatusRef:i,setMeasuredCellHeight:a}=r,{interactions:s,styleService:l,direction:u}=lL(oL,(e=>e.baseProps)),c=lL(oL,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),d=lL(oL,(e=>e.showRightBorder)),p=lL(oL,(e=>e.tableData.totalsPosition)),f=!!s.active&&!c,{open:h,setOpen:m,handleOpenMenu:g,setIsAdjustingWidth:b}=XT({isInteractionEnabled:f,columnsData:n}),v=dO(e,a),y=n[e],x=n.length-1===e;return Al.jsxs(pO,{className:`sn-table-cell ${QS}`,title:s.passive?y.label:void 0,onClick:g,applicableStyle:{...l.header,...DT(l,p,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:XD(u,x,d),borderLeftWidth:JD(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:h?l.headerMenuActiveBackground:l.header.background,children:[Al.jsx(KT,{forwardRef:v,column:y,isInteractionEnabled:f,open:h,setOpen:m,allColumnsIconVisibilityStatusRef:i}),Al.jsx(zT,{column:y,isLastColumn:x,onColumnResize:o,setIsAdjustingWidth:b})]})},hO=e=>{const[t,r]=E(new Map);GS((()=>{r(new Map)}),[e.length]);const n=D(((e,t)=>{r((r=>Xq(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:w((()=>Kq(t)),[t]),setMeasuredCellHeight:n}},mO=(e,t)=>{z(e,(()=>({scrollTo:e=>{var r;return null===(r=t.current)||void 0===r?void 0:r.scrollTo(e)}})),[t])},gO=(e,t,r,n,o)=>{GS((()=>{var t;null===(t=e.current)||void 0===t||t.resetAfterIndex(0,!1)}),[t,r,e,n,o])},bO={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},vO=T(((e,t)=>{const{rect:r,columns:n,pageInfo:o,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a,setHeaderRowHeight:s}=e,l=_(null),u=_(null),{layout:c,theme:d,styleService:p,direction:f,viewService:h}=lL(oL,(e=>e.baseProps)),m=lL(oL,(e=>e.columnWidths)),{rowHeight:g,setMeasuredCellHeight:b}=hO(n),v=jT(h,c);return mO(t,l),gO(l,c,o,m,d),eO(u,s),Al.jsx(kq,{ref:l,outerRef:u,layout:"horizontal",style:{...bO,...v?{display:"none"}:void 0},itemCount:c.qHyperCube.qSize.qcx,itemSize:e=>m[e],height:Math.max(g+8,p.headerMinRowHeight),width:r.width,itemData:{columns:n,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a,setMeasuredCellHeight:b},direction:f,children:fO})}));var yO=q(vO);const xO=T(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a,direction:s}=lL(oL,(e=>e.baseProps));return Al.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.scroll?"auto":"hidden",width:n,height:o},onScroll:i,dir:s,children:r})})),SO=({children:e,rect:t})=>{const{direction:r}=lL(oL,(e=>e.baseProps));return Al.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})},CO=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,{layout:a,interactions:s,styleService:l,direction:u}=lL(oL,(e=>e.baseProps)),c=lL(oL,(e=>e.showRightBorder)),d=dO(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:h}=n[e],m=a.qHyperCube.qSize.qcx-1===e;return Al.jsx("div",{className:`sn-table-cell ${QS}`,title:s.passive?p:void 0,style:{...t,...l.totalRow,...DT(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:XD(u,m,c),borderLeftWidth:JD(u,m,c),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:f,textAlign:f,boxSizing:"border-box",cursor:"default"},children:Al.jsx(OD,{forwardRef:h?void 0:d,isNumeric:h,children:p})})},EO=T(((e,t)=>{const{rect:r,pageInfo:n,totals:o,columns:i,setTotalsRowHeight:a}=e,s=_(null),l=_(null),{layout:u,theme:c,styleService:d,direction:p}=lL(oL,(e=>e.baseProps)),f=lL(oL,(e=>e.columnWidths)),{rowHeight:h,setMeasuredCellHeight:m}=hO(i);return mO(t,s),gO(s,u,n,f,c),eO(l,a),Al.jsx(kq,{ref:s,outerRef:l,layout:"horizontal",style:bO,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>f[e],height:Math.max(h,d.totalRowMinHeight),width:r.width,itemData:{columns:i,totals:o,setMeasuredCellHeight:m},direction:p,children:CO})}));var wO=q(EO);const RO=(e,t,r,n,o)=>D((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]),AO=e=>{const{pageInfo:t}=e,{totalsPosition:r,columns:n,paginationNeeded:o}=lL(oL,(e=>e.tableData)),{layout:i,theme:a,rect:s,viewService:l,direction:u}=lL(oL,(e=>e.baseProps)),c=lL(oL,(e=>e.columnWidths)),d=lL(oL,(e=>e.setYScrollbarWidth)),p=_(null),f=_(null),h=_(null),m=_(null),{xScrollbarWidth:g,yScrollbarWidth:b}=nD(p),v=_([]),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}=aO(i,t,x,c,0),{headerAndTotalsHeight:C,innerBodyHeight:R,setHeaderRowHeight:A,setTotalsRowHeight:M,setInnerBodyHeight:I}=(()=>{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:P,height:k}=(({innerBodyHeight:e,headerAndTotalsHeight:t,rowCount:r,stickyContainerRect:n,columnWidths:o})=>{const{styleService:i}=lL(oL,(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:C,rowCount:S,stickyContainerRect:x,columnWidths:c}),L=RO(f,h,m,l,u),T=D((()=>{p.current&&(p.current.scrollTop=0)}),[p]);K_(),O((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[n.length]),O((()=>{p.current&&(p.current.scrollTop=0)}),[t,S,a]),O_((()=>{d(b)}),[b]);const q=Al.jsx(wO,{rect:x,pageInfo:t,columns:n,ref:h,totals:r,setTotalsRowHeight:M},"totals");return Al.jsx(xO,{ref:p,width:y.width,height:y.height,onScroll:L,children:Al.jsx(cO,{width:P,height:k,children:Al.jsxs(SO,{rect:x,children:[Al.jsx(yO,{rect:x,pageInfo:t,columns:n,ref:f,columResizeHandler:T,allColumnsIconVisibilityStatusRef:v,setHeaderRowHeight:A}),r.atTop?q:null,Al.jsx(uO,{ref:m,rect:x,pageInfo:t,columns:n,headerAndTotalsHeight:C,setInnerBodyHeight:I}),r.atBottom?q:null]})})})};var MO=q(AO);const IO=()=>{const{theme:e,keyboard:t,translator:r,interactions:n,rect:o,layout:i}=lL(oL,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:s,totalColumnCount:l,totalPages:u}=lL(oL,(e=>e.tableData)),c=lL(oL,(e=>e.pageInfo)),d=lL(oL,(e=>e.setPage));return Al.jsxs(T_,{"data-testid":"sn-table",background:e.background,children:[Al.jsx(MO,{pageInfo:c}),Al.jsx(__,{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 PO=q(IO);var kO={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 LO=(e,r)=>t((()=>(function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(kO).forEach((t=>{e.add(kO[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(`.${_A.First}`),s=e.querySelector(`.${_A.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;r===_A.First?(l=s,r=_A.Second):(l=a,r=_A.First),l.innerHTML=l.innerHTML.endsWith(" ")?i:`${i} `,l.setAttribute("aria-live",o)}})(e,r))),[e,r.language()]),_O={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},DO=e=>{const{app:t,model:n,rootElement:a,layout:s,translator:l,reactRoot:u,isFontLoaded:c,viewService:d,env:p}=e,{direction:f,footerContainer:h}=r(),m=hA(s,d),g=LO(a,l),[b,v]=o(((e,t)=>fA(e,t)?{page:t.page||_O.page,rowsPerPage:t.rowsPerPage||_O.rowsPerPage,rowsPerPageOptions:_O.rowsPerPageOptions}:_O)(s,d)),[y,x]=o(!0);y||x(!0);const[S,C]=OS((async()=>m?async function(e,t,r,n,o,i,a,s){var l,u,c,d;const{page:p,rowsPerPage:f,rowsPerPageOptions:h}=r,m=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*m>iA)return n({...r,rowsPerPage:aA(m,h),page:0}),null;const x=g>10,S=sA(t,o),C=pA(t,a,s),E=!!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:m});E||(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 C.forEach(((o,l)=>{const u=e[l],c=oA(o.isDim,u,t),d=!o.isDim&&u.qIsNull,p=d?tR(c):eR(u);n[l]={id:Jw(),...u,align:dA(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)&&nA(u,o.isDim),representation:rA({cell:u,representationProperties:o.representation,attrExprInfoIndex:o.qAttrExprInfoIndex,env:i,conditionalColoring:o.conditionalColoring,miniChartOnMeasure:o.qMiniChart,getText:()=>d?c:u.qText,direction:s,enabledFeatures:{[tw.Image]:i.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),[tw.Indicator]:!0,[tw.MiniChart]:!0}})}})),n})))&&void 0!==c?c:[];return{totalColumnCount:m,totalRowCount:g,totalPages:b,paginationNeeded:x,totalsPosition:S,columns:C,rows:R}}(n,s,b,v,d,p,y,f):null),[s,b,n,m,f]);i((()=>{m&&e.model&&e.changeSortOrder&&S&&c&&!C&&function(e,t){const{direction:r,...n}=e,o=uL(r);t.render(Al.jsx(Hd,{stylisPlugins:"rtl"===r?[oM]:void 0,children:Al.jsx(Dg,{theme:o,children:Al.jsx(sL,{...e,children:Al.jsx(tq,{...n})})})}))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:S,pageInfo:b,setPageInfo:v,direction:f,footerContainer:h,announce:g},u)}),[g,t,f,h,c,b,u,e,m,S,C])},TO=e=>{const r=t((()=>FS(e)),[e]);return i((()=>()=>{r.unmount()}),[r]),r},qO=(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 h;const e=null===(h=c.qHyperCubeDef.qMeasures.at(u))||void 0===h?void 0:h.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 OO=({model:e,layout:t,shouldRender:r,page:n})=>{const[o,i]=OS((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(Ek,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}},NO=e=>{const{layout:r,model:n,keyboard:a,interactions:s,reactRoot:l,isFontLoaded:u,viewService:c,direction:d}=e,p=!hA(r,c),[f,h]=o(!1);f&&h(!1);const m=t((()=>function(e,t,r,n,o){const i=pA(e,o,n),a=sA(e,r),s=e.qHyperCube.qSize.qcy,l=Math.min(Ek,s),u=s>Ek&&!!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(Ek,e.qHyperCube.qSize.qcy),s=t((()=>({page:n,rowsPerPage:a,rowsPerPageOptions:[]})),[a,n]);if(r){const t=Math.floor(e.qHyperCube.qSize.qcy/Ek);t<n&&i(t)}return{pageInfo:s,setPage:i}})(r,p),{initialDataPages:v,isLoading:y}=OO({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=uL(r);t.render(Al.jsx(x.StrictMode,{children:Al.jsx(Dg,{theme:n,children:Al.jsx(sL,{...e,children:Al.jsx(PO,{})})})}))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:m,pageInfo:g,setPage:b,initialDataPages:v},l)}),[v,u,y,g,l,e,b,p,m])},jO={version:JSON.stringify("4.8.4"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals",label:"Totals"},usePagination:!1,components:[]};var zO=e=>({properties:{initial:jO},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>YE({...e}),exportProperties:HE,exploration:KE});function FO(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),h=((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:h}}const $O=(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]}},HO=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const BO=(e,t,r,n)=>{var o;if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||_O.rowsPerPage,s=null!==(o=n.viewState)&&void 0!==o&&o.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},GO=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=sA(e,t);if(hA(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=FO(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:BO(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=$O(d,o),h=null==f?void 0:f.getBoundingClientRect();if(!f||!h)return{};const m=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(h.y>=m-4?0:1)+c,visibleRowEndIndex:p+c};const g=n.y+n.height,b=(HO(h,m,g)?d:d+1)+c;let v=p+c;const y=$O(p,o),x=null==y?void 0:y.getBoundingClientRect();return y&&x&&(HO(x,m,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:BO(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},VO=({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:h}=GO(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:h,size:{width:o.width,height:o.height},estimatedRowHeight:t.estimatedRowHeight}}return a})),c((()=>({getViewState:()=>GO(e,t,n)})),[e,t,n])},WO=e=>{const{viewState:n}=r();return t((()=>((e,t)=>{var r,n,o,i,a,s,l,u,c,d,p,f,h,m,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===(h=t.content)||void 0===h?void 0:h.rowsPerPage)&&void 0!==f?f:null==e?void 0:e.rowsPerPage,page:null!==(m=null==t||null===(g=t.content)||void 0===g?void 0:g.page)&&void 0!==m?m: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])},UO=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),YO=e=>e.getStyle("object","straightTableV2","backgroundColor")}}}));
|