@nebula.js/sn-table 6.5.7 → 6.5.8
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 +13 -13
- package/dist/sn-table.systemjs.js +11 -11
- package/package.json +8 -8
- package/sn-table-ext/dist/sn-table.js +13 -13
- package/sn-table-ext/sn-table.qext +1 -1
package/core/esm/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-table v6.5.
|
|
2
|
+
* @nebula.js/sn-table v6.5.8
|
|
3
3
|
* Copyright (c) 2026 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import{useMemo as e,useOptions as t,usePromise as r,useState as n,useEffect as o,useTheme as i,useInteractionState as a,onContextMenu as s,onTakeSnapshot as l,useImperativeHandle as u,useElement as c,useStaleLayout as d,useApp as p,useModel as f,useTranslator as h,useSelections as m,useKeyboard as g,useRect as b,useEmbed as v}from"@nebula.js/stardust";import*as y from"react";import x,{createElement as S,isValidElement as w,cloneElement as C,Children as E,useMemo as R,useState as P,useRef as A,createContext as I,useReducer as M,useEffect as k,useDebugValue as D,useContext as T,useCallback as O,useLayoutEffect as L,forwardRef as q,memo as N,useInsertionEffect as j,startTransition as _,useImperativeHandle as z,PureComponent as F}from"react";import*as H from"react-dom";import $,{flushSync as W}from"react-dom";import B from"picasso-plugin-q";import V from"picasso.js";function U(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&&U(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}const Y={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 K(...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(U(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 Y}(e)){const t=Y[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 X(e){let t,r,n=0;const o="string"==typeof e?K(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 J(e){let t,r,n=0;const o="string"==typeof e?K(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 Z(e){if(U(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 Q(e,t){return U(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:Q(K(e))}function ee(e){return U(e)?1===e.a?Z(e):Q(e):ee(K(e))}const te=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function re(e){return.2126*te(e.r)+.7152*te(e.g)+.0722*te(e.b)}function ne(...e){const t=K(...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=X(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=K(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=K(...e);return t.invalid||re(t)<.4}(r),getRGB:()=>(r.spaces.rgb||(r.spaces.rgb=Z(r)),r.spaces.rgb),getRGBA:()=>(r.spaces.rgba||(r.spaces.rgba=Q(r)),r.spaces.rgba),getString:()=>(r.spaces.string||(r.spaces.string=ee(r)),r.spaces.string),getHex:()=>(r.spaces.hex||(r.spaces.hex=function(e){let t,r,n;if(U(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?K(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}=X(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}=J(e);return`hsv(${t}, ${r}, ${n})`}(r)),r.spaces.hsv),getHSVObject:()=>(r.spaces.hsvObject||(r.spaces.hsvObject=J(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)=>ne(o(18*e)),getDarkenedColor:(e=1)=>ne(o(18*-e))}}function oe(e,t){if(!e||!t)return;const r=re(e),n=re(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}function ie(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ae,se="top",le="top-right",ue="right",ce="bottom-right",de="bottom",pe="bottom-left",fe="left",he="top-left";ie(ie(ie(ie(ie(ie(ie(ie(ie(ie(ae={},"equal-equal",[se,de]),"equal-higher",[de,ce]),"equal-lower",[se,le]),"equal-void",[se,de]),"higher-equal",[fe,pe,se,le]),"higher-higher-acute",[de,pe,fe,le]),"higher-higher-obtuse",[de,se]),"higher-lower-negative",[se,le,ue]),"higher-lower-positive",[de,pe,fe]),"higher-void",[se]),ie(ie(ie(ie(ie(ie(ie(ie(ie(ie(ae,"lower-equal",[se]),"lower-higher-negative",[se,he]),"lower-higher-positive",[ce]),"lower-lower-acute",[se,he,fe,le,ue]),"lower-lower-obtuse",[se,de]),"lower-void",[se]),"void-equal",[se]),"void-higher",[se,de]),"void-lower",[se,de,fe]),"void-void",[se]),ie(ae,"unclassified",[se,de,ue,fe,le,ce,pe,he]);var me,ge,be=["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"],ve=["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 ye(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?ve:be}var xe=function(){if(ge)return me;ge=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 me=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},me}();function Se(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function we(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Ce(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(xe);var Ee=1/.7,Re="\\s*([+-]?\\d+)\\s*",Pe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ae="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ie=/^#([0-9a-f]{3,8})$/,Me=new RegExp(`^rgb\\(${Re},${Re},${Re}\\)$`),ke=new RegExp(`^rgb\\(${Ae},${Ae},${Ae}\\)$`),De=new RegExp(`^rgba\\(${Re},${Re},${Re},${Pe}\\)$`),Te=new RegExp(`^rgba\\(${Ae},${Ae},${Ae},${Pe}\\)$`),Oe=new RegExp(`^hsl\\(${Pe},${Ae},${Ae}\\)$`),Le=new RegExp(`^hsla\\(${Pe},${Ae},${Ae},${Pe}\\)$`),qe={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 Ne(){return this.rgb().formatHex()}function je(){return this.rgb().formatRgb()}function _e(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Ie.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?ze(t):3===r?new We(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Fe(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Fe(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=Me.exec(e))?new We(t[1],t[2],t[3],1):(t=ke.exec(e))?new We(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=De.exec(e))?Fe(t[1],t[2],t[3],t[4]):(t=Te.exec(e))?Fe(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Oe.exec(e))?Ke(t[1],t[2]/100,t[3]/100,1):(t=Le.exec(e))?Ke(t[1],t[2]/100,t[3]/100,t[4]):qe.hasOwnProperty(e)?ze(qe[e]):"transparent"===e?new We(NaN,NaN,NaN,0):null}function ze(e){return new We(e>>16&255,e>>8&255,255&e,1)}function Fe(e,t,r,n){return n<=0&&(e=t=r=NaN),new We(e,t,r,n)}function He(e){return e instanceof Ce||(e=_e(e)),e?new We((e=e.rgb()).r,e.g,e.b,e.opacity):new We}function $e(e,t,r,n){return 1===arguments.length?He(e):new We(e,t,r,null==n?1:n)}function We(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Be(){return`#${Ye(this.r)}${Ye(this.g)}${Ye(this.b)}`}function Ve(){const e=Ue(this.opacity);return`${1===e?"rgb(":"rgba("}${Ge(this.r)}, ${Ge(this.g)}, ${Ge(this.b)}${1===e?")":`, ${e})`}`}function Ue(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ge(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ye(e){return((e=Ge(e))<16?"0":"")+e.toString(16)}function Ke(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 Xe(e){if(e instanceof Je)return new Je(e.h,e.s,e.l,e.opacity);if(e instanceof Ce||(e=_e(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 Qe(e){return Math.max(0,Math.min(1,e||0))}function et(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Se(Ce,_e,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ne,formatHex:Ne,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Xe(this).formatHsl()},formatRgb:je,toString:je}),Se(We,$e,we(Ce,{brighter(e){return e=null==e?Ee:Math.pow(Ee,e),new We(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new We(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new We(Ge(this.r),Ge(this.g),Ge(this.b),Ue(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:Be,formatHex:Be,formatHex8:function(){return`#${Ye(this.r)}${Ye(this.g)}${Ye(this.b)}${Ye(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ve,toString:Ve})),Se(Je,(function(e,t,r,n){return 1===arguments.length?Xe(e):new Je(e,t,r,null==n?1:n)}),we(Ce,{brighter(e){return e=null==e?Ee:Math.pow(Ee,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 We(et(e>=240?e-240:e+120,o,n),et(e,o,n),et(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Je(Ze(this.h),Qe(this.s),Qe(this.l),Ue(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=Ue(this.opacity);return`${1===e?"hsl(":"hsla("}${Ze(this.h)}, ${100*Qe(this.s)}%, ${100*Qe(this.l)}%${1===e?")":`, ${e})`}`}}));const tt=Math.PI/180,rt=180/Math.PI,nt=4/29,ot=6/29,it=3*ot*ot;function at(e){if(e instanceof st)return new st(e.l,e.a,e.b,e.opacity);if(e instanceof pt)return ft(e);e instanceof We||(e=He(e));var t,r,n=dt(e.r),o=dt(e.g),i=dt(e.b),a=lt((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=lt((.4360747*n+.3850649*o+.1430804*i)/.96422),r=lt((.0139322*n+.0971045*o+.7141733*i)/.82521)),new st(116*a-16,500*(t-a),200*(a-r),e.opacity)}function st(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function lt(e){return e>.008856451679035631?Math.pow(e,1/3):e/it+nt}function ut(e){return e>ot?e*e*e:it*(e-nt)}function ct(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function dt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function pt(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function ft(e){if(isNaN(e.h))return new st(e.l,0,0,e.opacity);var t=e.h*tt;return new st(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Se(st,(function(e,t,r,n){return 1===arguments.length?at(e):new st(e,t,r,null==n?1:n)}),we(Ce,{brighter(e){return new st(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new st(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 We(ct(3.1338561*(t=.96422*ut(t))-1.6168667*(e=1*ut(e))-.4906146*(r=.82521*ut(r))),ct(-.9787684*t+1.9161415*e+.033454*r),ct(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Se(pt,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof pt)return new pt(e.h,e.c,e.l,e.opacity);if(e instanceof st||(e=at(e)),0===e.a&&0===e.b)return new pt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*rt;return new pt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new pt(e,t,r,null==n?1:n)}),we(Ce,{brighter(e){return new pt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new pt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ft(this).rgb()}}));var ht=e=>()=>e;function mt(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):ht(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?mt: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):ht(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=$e(e)).r,(t=$e(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=mt(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 gt="center",bt="bottom";[{key:"NoDataExist",alignment:gt,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:gt,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:gt,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:gt},{key:"DataRangeIncludingZero",alignment:bt},{key:"LimitedData",alignment:bt},{key:"NegativeOrZeroValues",alignment:bt}].reduce((function(e,t){return e[t.key]=t,e}),{});var vt,yt=["__proto__","constructor"];function xt(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!yt.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 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 wt(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 Ct(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Rt)):void 0===t&&(t=Et);for(var r,n,o,i,a,s=new It(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 It(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(At)}function Et(e){return e.children}function Rt(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 At(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function It(e){this.data=e,this.depth=this.height=0,this.parent=null}It.prototype=Ct.prototype={constructor:It,count:function(){return this.eachAfter(wt)},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 Ct(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)}},vt=function(e){
|
|
7
|
+
import{useMemo as e,useOptions as t,usePromise as r,useState as n,useEffect as o,useTheme as i,onContextMenu as a,onTakeSnapshot as s,useImperativeHandle as l,useElement as u,useStaleLayout as c,useApp as d,useModel as p,useInteractionState as f,useTranslator as h,useSelections as m,useKeyboard as g,useRect as b,useEmbed as v}from"@nebula.js/stardust";import*as y from"react";import x,{createElement as S,isValidElement as w,cloneElement as C,Children as E,useMemo as R,useState as P,useRef as A,createContext as I,useReducer as M,useEffect as k,useDebugValue as D,useContext as T,useCallback as O,useLayoutEffect as L,forwardRef as q,memo as N,useInsertionEffect as j,startTransition as _,useImperativeHandle as z,PureComponent as F}from"react";import*as H from"react-dom";import $,{flushSync as W}from"react-dom";import B from"picasso-plugin-q";import V from"picasso.js";function U(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&&U(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}const Y={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 K(...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(U(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 Y}(e)){const t=Y[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 X(e){let t,r,n=0;const o="string"==typeof e?K(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 J(e){let t,r,n=0;const o="string"==typeof e?K(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 Z(e){if(U(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 Q(e,t){return U(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:Q(K(e))}function ee(e){return U(e)?1===e.a?Z(e):Q(e):ee(K(e))}const te=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function re(e){return.2126*te(e.r)+.7152*te(e.g)+.0722*te(e.b)}function ne(...e){const t=K(...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=X(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=K(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=K(...e);return t.invalid||re(t)<.4}(r),getRGB:()=>(r.spaces.rgb||(r.spaces.rgb=Z(r)),r.spaces.rgb),getRGBA:()=>(r.spaces.rgba||(r.spaces.rgba=Q(r)),r.spaces.rgba),getString:()=>(r.spaces.string||(r.spaces.string=ee(r)),r.spaces.string),getHex:()=>(r.spaces.hex||(r.spaces.hex=function(e){let t,r,n;if(U(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?K(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}=X(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}=J(e);return`hsv(${t}, ${r}, ${n})`}(r)),r.spaces.hsv),getHSVObject:()=>(r.spaces.hsvObject||(r.spaces.hsvObject=J(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)=>ne(o(18*e)),getDarkenedColor:(e=1)=>ne(o(18*-e))}}function oe(e,t){if(!e||!t)return;const r=re(e),n=re(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}function ie(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ae,se="top",le="top-right",ue="right",ce="bottom-right",de="bottom",pe="bottom-left",fe="left",he="top-left";ie(ie(ie(ie(ie(ie(ie(ie(ie(ie(ae={},"equal-equal",[se,de]),"equal-higher",[de,ce]),"equal-lower",[se,le]),"equal-void",[se,de]),"higher-equal",[fe,pe,se,le]),"higher-higher-acute",[de,pe,fe,le]),"higher-higher-obtuse",[de,se]),"higher-lower-negative",[se,le,ue]),"higher-lower-positive",[de,pe,fe]),"higher-void",[se]),ie(ie(ie(ie(ie(ie(ie(ie(ie(ie(ae,"lower-equal",[se]),"lower-higher-negative",[se,he]),"lower-higher-positive",[ce]),"lower-lower-acute",[se,he,fe,le,ue]),"lower-lower-obtuse",[se,de]),"lower-void",[se]),"void-equal",[se]),"void-higher",[se,de]),"void-lower",[se,de,fe]),"void-void",[se]),ie(ae,"unclassified",[se,de,ue,fe,le,ce,pe,he]);var me,ge,be=["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"],ve=["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 ye(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?ve:be}var xe=function(){if(ge)return me;ge=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 me=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},me}();function Se(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function we(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Ce(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(xe);var Ee=1/.7,Re="\\s*([+-]?\\d+)\\s*",Pe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ae="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ie=/^#([0-9a-f]{3,8})$/,Me=new RegExp(`^rgb\\(${Re},${Re},${Re}\\)$`),ke=new RegExp(`^rgb\\(${Ae},${Ae},${Ae}\\)$`),De=new RegExp(`^rgba\\(${Re},${Re},${Re},${Pe}\\)$`),Te=new RegExp(`^rgba\\(${Ae},${Ae},${Ae},${Pe}\\)$`),Oe=new RegExp(`^hsl\\(${Pe},${Ae},${Ae}\\)$`),Le=new RegExp(`^hsla\\(${Pe},${Ae},${Ae},${Pe}\\)$`),qe={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 Ne(){return this.rgb().formatHex()}function je(){return this.rgb().formatRgb()}function _e(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Ie.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?ze(t):3===r?new We(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Fe(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Fe(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=Me.exec(e))?new We(t[1],t[2],t[3],1):(t=ke.exec(e))?new We(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=De.exec(e))?Fe(t[1],t[2],t[3],t[4]):(t=Te.exec(e))?Fe(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Oe.exec(e))?Ke(t[1],t[2]/100,t[3]/100,1):(t=Le.exec(e))?Ke(t[1],t[2]/100,t[3]/100,t[4]):qe.hasOwnProperty(e)?ze(qe[e]):"transparent"===e?new We(NaN,NaN,NaN,0):null}function ze(e){return new We(e>>16&255,e>>8&255,255&e,1)}function Fe(e,t,r,n){return n<=0&&(e=t=r=NaN),new We(e,t,r,n)}function He(e){return e instanceof Ce||(e=_e(e)),e?new We((e=e.rgb()).r,e.g,e.b,e.opacity):new We}function $e(e,t,r,n){return 1===arguments.length?He(e):new We(e,t,r,null==n?1:n)}function We(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Be(){return`#${Ye(this.r)}${Ye(this.g)}${Ye(this.b)}`}function Ve(){const e=Ue(this.opacity);return`${1===e?"rgb(":"rgba("}${Ge(this.r)}, ${Ge(this.g)}, ${Ge(this.b)}${1===e?")":`, ${e})`}`}function Ue(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ge(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ye(e){return((e=Ge(e))<16?"0":"")+e.toString(16)}function Ke(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 Xe(e){if(e instanceof Je)return new Je(e.h,e.s,e.l,e.opacity);if(e instanceof Ce||(e=_e(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 Qe(e){return Math.max(0,Math.min(1,e||0))}function et(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Se(Ce,_e,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ne,formatHex:Ne,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Xe(this).formatHsl()},formatRgb:je,toString:je}),Se(We,$e,we(Ce,{brighter(e){return e=null==e?Ee:Math.pow(Ee,e),new We(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new We(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new We(Ge(this.r),Ge(this.g),Ge(this.b),Ue(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:Be,formatHex:Be,formatHex8:function(){return`#${Ye(this.r)}${Ye(this.g)}${Ye(this.b)}${Ye(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ve,toString:Ve})),Se(Je,(function(e,t,r,n){return 1===arguments.length?Xe(e):new Je(e,t,r,null==n?1:n)}),we(Ce,{brighter(e){return e=null==e?Ee:Math.pow(Ee,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 We(et(e>=240?e-240:e+120,o,n),et(e,o,n),et(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Je(Ze(this.h),Qe(this.s),Qe(this.l),Ue(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=Ue(this.opacity);return`${1===e?"hsl(":"hsla("}${Ze(this.h)}, ${100*Qe(this.s)}%, ${100*Qe(this.l)}%${1===e?")":`, ${e})`}`}}));const tt=Math.PI/180,rt=180/Math.PI,nt=4/29,ot=6/29,it=3*ot*ot;function at(e){if(e instanceof st)return new st(e.l,e.a,e.b,e.opacity);if(e instanceof pt)return ft(e);e instanceof We||(e=He(e));var t,r,n=dt(e.r),o=dt(e.g),i=dt(e.b),a=lt((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=lt((.4360747*n+.3850649*o+.1430804*i)/.96422),r=lt((.0139322*n+.0971045*o+.7141733*i)/.82521)),new st(116*a-16,500*(t-a),200*(a-r),e.opacity)}function st(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function lt(e){return e>.008856451679035631?Math.pow(e,1/3):e/it+nt}function ut(e){return e>ot?e*e*e:it*(e-nt)}function ct(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function dt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function pt(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function ft(e){if(isNaN(e.h))return new st(e.l,0,0,e.opacity);var t=e.h*tt;return new st(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Se(st,(function(e,t,r,n){return 1===arguments.length?at(e):new st(e,t,r,null==n?1:n)}),we(Ce,{brighter(e){return new st(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new st(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 We(ct(3.1338561*(t=.96422*ut(t))-1.6168667*(e=1*ut(e))-.4906146*(r=.82521*ut(r))),ct(-.9787684*t+1.9161415*e+.033454*r),ct(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Se(pt,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof pt)return new pt(e.h,e.c,e.l,e.opacity);if(e instanceof st||(e=at(e)),0===e.a&&0===e.b)return new pt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*rt;return new pt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new pt(e,t,r,null==n?1:n)}),we(Ce,{brighter(e){return new pt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new pt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ft(this).rgb()}}));var ht=e=>()=>e;function mt(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):ht(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?mt: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):ht(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=$e(e)).r,(t=$e(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=mt(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 gt="center",bt="bottom";[{key:"NoDataExist",alignment:gt,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:gt,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:gt,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:gt},{key:"DataRangeIncludingZero",alignment:bt},{key:"LimitedData",alignment:bt},{key:"NegativeOrZeroValues",alignment:bt}].reduce((function(e,t){return e[t.key]=t,e}),{});var vt,yt=["__proto__","constructor"];function xt(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!yt.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 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 wt(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 Ct(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Rt)):void 0===t&&(t=Et);for(var r,n,o,i,a,s=new It(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 It(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(At)}function Et(e){return e.children}function Rt(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 At(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function It(e){this.data=e,this.depth=this.height=0,this.parent=null}It.prototype=Ct.prototype={constructor:It,count:function(){return this.eachAfter(wt)},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 Ct(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)}},vt=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\-\+#]/),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}},vt({exports:{}});const Mt=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function kt(t,r){return e((()=>t),r)}const Dt={},Tt=()=>{const{viewState:n}=t(),o=(t=>{const r=e((()=>({current:Dt})),[]);return r.current=r.current===Dt?t:r.current,r})(new Set),i=void 0!==window.qlikprinting,{promise:a,resolve:s}=e((()=>Mt()),[]),l=kt((e=>{o.current.add(e)}),[o]),u=kt(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 r((async()=>{await a}),[a]),e((()=>({viewState:n,isDownloadedAsPDForImage:i,notifyIsDoneRendering:u,waitForPromise:l})),[u,i,n,l])},Ot={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"},Lt={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",...Ot,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},qt=12,Nt=14,jt=16,_t=24,zt=3,Ft=300,Ht=400,$t=600,Wt=700,Bt={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Vt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ut(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 Gt={exports:{}},Yt={},Kt=x,Xt=Symbol.for("react.element"),Jt=Symbol.for("react.fragment"),Zt=Object.prototype.hasOwnProperty,Qt=Kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,er={key:!0,ref:!0,__self:!0,__source:!0};function tr(e,t,r){var n,o={},i=null,a=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Zt.call(t,n)&&!er.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:Xt,type:e,key:i,ref:a,props:o,_owner:Qt.current}}Yt.Fragment=Jt,Yt.jsx=tr,Yt.jsxs=tr,Gt.exports=Yt;var rr=Gt.exports;const nr={black:"#000",white:"#fff"},or="#e57373",ir="#ef5350",ar="#f44336",sr="#d32f2f",lr="#c62828",ur="#f3e5f5",cr="#ce93d8",dr="#ba68c8",pr="#ab47bc",fr="#9c27b0",hr="#7b1fa2",mr="#e3f2fd",gr="#90caf9",br="#42a5f5",vr="#1976d2",yr="#1565c0",xr="#4fc3f7",Sr="#29b6f6",wr="#03a9f4",Cr="#0288d1",Er="#01579b",Rr="#81c784",Pr="#66bb6a",Ar="#4caf50",Ir="#388e3c",Mr="#2e7d32",kr="#1b5e20",Dr="#ffb74d",Tr="#ffa726",Or="#ff9800",Lr="#f57c00",qr="#e65100",Nr={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 jr(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 _r=Object.freeze({__proto__:null,default:jr}),zr="$$material";function Fr(){return Fr=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},Fr.apply(null,arguments)}function Hr(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}var $r=function(){return $r=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},$r.apply(this,arguments)};function Wr(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 Br="-ms-",Vr="-moz-",Ur="-webkit-",Gr="comm",Yr="rule",Kr="decl",Xr="@import",Jr="@keyframes",Zr=Math.abs,Qr=String.fromCharCode,en=Object.assign;function tn(e){return e.trim()}function rn(e,t){return(e=t.exec(e))?e[0]:e}function nn(e,t,r){return e.replace(t,r)}function on(e,t,r){return e.indexOf(t,r)}function an(e,t){return 0|e.charCodeAt(t)}function sn(e,t,r){return e.slice(t,r)}function ln(e){return e.length}function un(e){return e.length}function cn(e,t){return t.push(e),e}function dn(e,t){return e.filter((function(e){return!rn(e,t)}))}var pn=1,fn=1,hn=0,mn=0,gn=0,bn="";function vn(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:pn,column:fn,length:a,return:"",siblings:s}}function yn(e,t){return en(vn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function xn(e){for(;e.root;)e=yn(e.root,{children:[e]});cn(e,e.siblings)}function Sn(){return gn=mn>0?an(bn,--mn):0,fn--,10===gn&&(fn=1,pn--),gn}function wn(){return gn=mn<hn?an(bn,mn++):0,fn++,10===gn&&(fn=1,pn++),gn}function Cn(){return an(bn,mn)}function En(){return mn}function Rn(e,t){return sn(bn,e,t)}function Pn(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 An(e){return tn(Rn(mn-1,kn(91===e?e+2:40===e?e+1:e)))}function In(e){for(;(gn=Cn())&&gn<33;)wn();return Pn(e)>2||Pn(gn)>3?"":" "}function Mn(e,t){for(;--t&&wn()&&!(gn<48||gn>102||gn>57&&gn<65||gn>70&&gn<97););return Rn(e,En()+(t<6&&32==Cn()&&32==wn()))}function kn(e){for(;wn();)switch(gn){case e:return mn;case 34:case 39:34!==e&&39!==e&&kn(gn);break;case 40:41===e&&kn(e);break;case 92:wn()}return mn}function Dn(e,t){for(;wn()&&e+gn!==57&&(e+gn!==84||47!==Cn()););return"/*"+Rn(t,mn-1)+"*"+Qr(47===e?e:wn())}function Tn(e){for(;!Pn(Cn());)wn();return Rn(e,mn)}function On(e){return function(e){return bn="",e}(Ln("",null,null,null,[""],e=function(e){return pn=fn=1,hn=ln(bn=e),mn=0,[]}(e),0,[0],e))}function Ln(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,w=n,C=y;g;)switch(h=v,v=wn()){case 40:if(108!=h&&58==an(C,d-1)){-1!=on(C+=nn(An(v),"&","&\f"),"&\f",Zr(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=An(v);break;case 9:case 10:case 13:case 32:C+=In(h);break;case 92:C+=Mn(En()-1,7);continue;case 47:switch(Cn()){case 42:case 47:cn(Nn(Dn(wn(),En()),t,r,l),l),5!=Pn(h||1)&&5!=Pn(Cn()||1)||!ln(C)||" "===sn(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[u++]=ln(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=nn(C,/\f/g,"")),f>0&&(ln(C)-d||0===m&&47===h)&&cn(f>32?jn(C+";",n,r,d-1,l):jn(nn(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(cn(w=qn(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)Ln(C,t,w,w,x,i,d,s,S);else{switch(p){case 99:if(110===an(C,3))break;case 108:if(97===an(C,2))break;default:c=0;case 100:case 109:case 115:}c?Ln(e,w,w,n&&cn(qn(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S):Ln(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+ln(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==Sn())continue;switch(C+=Qr(v),v*m){case 38:b=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(ln(C)-1)*b,b=1;break;case 64:45===Cn()&&(C+=An(wn())),p=Cn(),c=d=ln(y=C+=Tn(En())),v++;break;case 45:45===h&&2==ln(C)&&(m=0)}}return i}function qn(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=un(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=sn(e,p+1,p=Zr(g=a[m])),x=e;v<h;++v)(x=tn(g>0?f[v]+" "+y:nn(y,/&\f/g,f[v])))&&(l[b++]=x);return vn(e,t,r,0===o?Yr:s,l,u,c,d)}function Nn(e,t,r,n){return vn(e,t,r,Gr,Qr(gn),sn(e,2,-2),0,n)}function jn(e,t,r,n,o){return vn(e,t,r,Kr,sn(e,0,n),sn(e,n+1,-1),n,o)}function _n(e,t,r){switch(function(e,t){return 45^an(e,0)?(((t<<2^an(e,0))<<2^an(e,1))<<2^an(e,2))<<2^an(e,3):0}(e,t)){case 5103:return Ur+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Ur+e+e;case 4855:return Ur+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Vr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ur+e+Vr+e+Br+e+e;case 5936:switch(an(e,t+11)){case 114:return Ur+e+Br+nn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ur+e+Br+nn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ur+e+Br+nn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Ur+e+Br+e+e;case 6165:return Ur+e+Br+"flex-"+e+e;case 5187:return Ur+e+nn(e,/(\w+).+(:[^]+)/,Ur+"box-$1$2"+Br+"flex-$1$2")+e;case 5443:return Ur+e+Br+"flex-item-"+nn(e,/flex-|-self/g,"")+(rn(e,/flex-|baseline/)?"":Br+"grid-row-"+nn(e,/flex-|-self/g,""))+e;case 4675:return Ur+e+Br+"flex-line-pack"+nn(e,/align-content|flex-|-self/g,"")+e;case 5548:return Ur+e+Br+nn(e,"shrink","negative")+e;case 5292:return Ur+e+Br+nn(e,"basis","preferred-size")+e;case 6060:return Ur+"box-"+nn(e,"-grow","")+Ur+e+Br+nn(e,"grow","positive")+e;case 4554:return Ur+nn(e,/([^-])(transform)/g,"$1"+Ur+"$2")+e;case 6187:return nn(nn(nn(e,/(zoom-|grab)/,Ur+"$1"),/(image-set)/,Ur+"$1"),e,"")+e;case 5495:case 3959:return nn(e,/(image-set\([^]*)/,Ur+"$1$`$1");case 4968:return nn(nn(e,/(.+:)(flex-)?(.*)/,Ur+"box-pack:$3"+Br+"flex-pack:$3"),/space-between/,"justify")+Ur+e+e;case 4200:if(!rn(e,/flex-|baseline/))return Br+"grid-column-align"+sn(e,t)+e;break;case 2592:case 3360:return Br+nn(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,rn(e.props,/grid-\w+-end/)}))?~on(e+(r=r[t].value),"span",0)?e:Br+nn(e,"-start","")+e+Br+"grid-row-span:"+(~on(r,"span",0)?rn(r,/\d+/):+rn(r,/\d+/)-+rn(e,/\d+/))+";":Br+nn(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return rn(e.props,/grid-\w+-start/)}))?e:Br+nn(nn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return nn(e,/(.+)-inline(.+)/,Ur+"$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(ln(e)-1-t>6)switch(an(e,t+1)){case 109:if(45!==an(e,t+4))break;case 102:return nn(e,/(.+:)(.+)-([^]+)/,"$1"+Ur+"$2-$3$1"+Vr+(108==an(e,t+3)?"$3":"$2-$3"))+e;case 115:return~on(e,"stretch",0)?_n(nn(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return nn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,s){return Br+r+":"+n+s+(o?Br+r+"-span:"+(i?a:+a-+n)+s:"")+e}));case 4949:if(121===an(e,t+6))return nn(e,":",":"+Ur)+e;break;case 6444:switch(an(e,45===an(e,14)?18:11)){case 120:return nn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ur+(45===an(e,14)?"inline-":"")+"box$3$1"+Ur+"$2$3$1"+Br+"$2box$3")+e;case 100:return nn(e,":",":"+Br)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return nn(e,"scroll-","scroll-snap-")+e}return e}function zn(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Fn(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case Xr:case"@namespace":case Kr:return e.return=e.return||e.value;case Gr:return"";case Jr:return e.return=e.value+"{"+zn(e.children,n)+"}";case Yr:if(!ln(e.value=e.props.join(",")))return""}return ln(r=zn(e.children,n))?e.return=e.value+"{"+r+"}":""}function Hn(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Kr:return void(e.return=_n(e.value,e.length,r));case Jr:return zn([yn(e,{value:nn(e.value,"@","@"+Ur)})],n);case Yr:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(rn(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":xn(yn(e,{props:[nn(t,/:(read-\w+)/,":-moz-$1")]})),xn(yn(e,{props:[t]})),en(e,{props:dn(r,n)});break;case"::placeholder":xn(yn(e,{props:[nn(t,/:(plac\w+)/,":"+Ur+"input-$1")]})),xn(yn(e,{props:[nn(t,/:(plac\w+)/,":-moz-$1")]})),xn(yn(e,{props:[nn(t,/:(plac\w+)/,Br+"input-$1")]})),xn(yn(e,{props:[t]})),en(e,{props:dn(r,n)})}return""}))}}var $n={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,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Wn="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Bn="active",Vn="data-styled-version",Un="6.3.9",Gn="/*!sc*/\n",Yn="undefined"!=typeof window&&"undefined"!=typeof document,Kn=void 0===x.createContext,Xn=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)),Jn={},Zn=Object.freeze([]),Qn=Object.freeze({});function eo(e,t,r){return void 0===r&&(r=Qn),e.theme!==r.theme&&e.theme||t||r.theme}var to=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),ro=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,no=/(^-|-$)/g;function oo(e){return e.replace(ro,"-").replace(no,"")}var io=/(a)(d)/gi,ao=function(e){return String.fromCharCode(e+(e>25?39:97))};function so(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=ao(t%52)+r;return(ao(t%52)+r).replace(io,"$1-$2")}var lo,uo=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},co=function(e){return uo(5381,e)};function po(e){return so(co(e)>>>0)}function fo(e){return"string"==typeof e&&!0}var ho="function"==typeof Symbol&&Symbol.for,mo=ho?Symbol.for("react.memo"):60115,go=ho?Symbol.for("react.forward_ref"):60112,bo={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},vo={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},yo={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},xo=((lo={})[go]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},lo[mo]=yo,lo);function So(e){return("type"in(t=e)&&t.type.$$typeof)===mo?yo:"$$typeof"in e?xo[e.$$typeof]:bo;var t}var wo=Object.defineProperty,Co=Object.getOwnPropertyNames,Eo=Object.getOwnPropertySymbols,Ro=Object.getOwnPropertyDescriptor,Po=Object.getPrototypeOf,Ao=Object.prototype;function Io(e,t,r){if("string"!=typeof t){if(Ao){var n=Po(t);n&&n!==Ao&&Io(e,n,r)}var o=Co(t);Eo&&(o=o.concat(Eo(t)));for(var i=So(e),a=So(t),s=0;s<o.length;++s){var l=o[s];if(!(l in vo||r&&r[l]||a&&l in a||i&&l in i)){var u=Ro(t,l);try{wo(e,l,u)}catch(e){}}}}return e}function Mo(e){return"function"==typeof e}function ko(e){return"object"==typeof e&&"styledComponentId"in e}function Do(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function To(e,t){return e.join("")}function Oo(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Lo(e,t,r){if(void 0===r&&(r=!1),!r&&!Oo(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Lo(e[n],t[n]);else if(Oo(t))for(var n in t)e[n]=Lo(e[n],t[n]);return e}function qo(e,t){Object.defineProperty(e,"toString",{value:t})}function No(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 jo=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}return e.prototype.indexOfGroup=function(e){if(e===this._cGroup)return this._cIndex;var t=this._cIndex;if(e>this._cGroup)for(var r=this._cGroup;r<e;r++)t+=this.groupSizes[r];else for(r=this._cGroup-1;r>=e;r--)t-=this.groupSizes[r];return this._cGroup=e,this._cIndex=t,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 No(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=0,l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++,s++);s>0&&this._cGroup>e&&(this._cIndex+=s)},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);t>0&&this._cGroup>e&&(this._cIndex-=t)}},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+=this.tag.getRule(i)+Gn;return t},e}(),_o=new Map,zo=new Map,Fo=1,Ho=function(e){if(_o.has(e))return _o.get(e);for(;zo.has(Fo);)Fo++;var t=Fo++;return _o.set(e,t),zo.set(t,e),t},$o=function(e,t){Fo=t+1,_o.set(e,t),zo.set(t,e)},Wo="style[".concat(Wn,"][").concat(Vn,'="').concat(Un,'"]'),Bo=new RegExp("^".concat(Wn,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Vo=function(e){return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType},Uo=function(e){if(!e)return document;if(Vo(e))return e;if("getRootNode"in e){var t=e.getRootNode();if(Vo(t))return t}return document},Go=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)},Yo=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Gn),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var l=s.match(Bo);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&($o(c,u),Go(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},Ko=function(e){for(var t=Uo(e.options.target).querySelectorAll(Wo),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Wn)!==Bn&&(Yo(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Xo=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Wn,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Wn,Bn),n.setAttribute(Vn,Un);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Jo=function(){function e(e){this.element=Xo(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){var t;if(e.sheet)return e.sheet;for(var r=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets,n=0,o=r.length;n<o;n++){var i=r[n];if(i.ownerNode===e)return i}throw No(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}(),Zo=function(){function e(e){this.element=Xo(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}(),Qo=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(e===this.length?this.rules.push(t):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}(),ei=Yn,ti={isServer:!Yn,useCSSOMInjection:!Xn},ri=function(){function e(e,t,r){void 0===e&&(e=Qn),void 0===t&&(t={});var n=this;this.options=$r($r({},ti),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Yn&&ei&&(ei=!1,Ko(this)),qo(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return zo.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o);if(void 0===i||!i.size)return"continue";var a=t.getGroup(r);if(0===a.length)return"continue";var s=Wn+".g"+r+'[id="'+o+'"]',l="";i.forEach((function(e){e.length>0&&(l+=e+",")})),n+=a+s+'{content:"'+l+'"}'+Gn},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return Ho(e)},e.prototype.rehydrate=function(){!this.server&&Yn&&Ko(this)},e.prototype.reconstructWithOptions=function(t,r){void 0===r&&(r=!0);var n=new e($r($r({},this.options),t),this.gs,r&&this.names||void 0);return!this.server&&Yn&&t.target!==this.options.target&&Uo(this.options.target)!==Uo(t.target)&&Ko(n),n},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 Qo(r):t?new Jo(r):new Zo(r)}(this.options),new jo(e)));var e},e.prototype.hasNameForId=function(e,t){var r,n;return null!==(n=null===(r=this.names.get(e))||void 0===r?void 0:r.has(t))&&void 0!==n&&n},e.prototype.registerName=function(e,t){Ho(e);var r=this.names.get(e);r?r.add(t):this.names.set(e,new Set([t]))},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(Ho(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Ho(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),ni=/&/g,oi=47,ii=42;function ai(e){if(-1===e.indexOf("}"))return!1;for(var t=e.length,r=0,n=0,o=!1,i=0;i<t;i++){var a=e.charCodeAt(i);if(0!==n||o||a!==oi||e.charCodeAt(i+1)!==ii)if(o)a===ii&&e.charCodeAt(i+1)===oi&&(o=!1,i++);else if(34!==a&&39!==a||0!==i&&92===e.charCodeAt(i-1)){if(0===n)if(123===a)r++;else if(125===a&&--r<0)return!0}else 0===n?n=a:n===a&&(n=0);else o=!0,i++}return 0!==r||0!==n}function si(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=si(e.children,t)),e}))}function li(e){var t,r,n,o=void 0===e?Qn:e,i=o.options,a=void 0===i?Qn:i,s=o.plugins,l=void 0===s?Zn: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===Yr&&e.value.includes("&")&&(n||(n=new RegExp("\\".concat(r,"\\b"),"g")),e.props[0]=e.props[0].replace(ni,r).replace(n,u))})),a.prefix&&c.push(Hn),c.push(Fn);var d,p=[],f=function(e){var t=un(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)}))),h=function(e,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,r=o,n=void 0;var l=function(e){if(!ai(e))return e;for(var t=e.length,r="",n=0,o=0,i=0,a=!1,s=0;s<t;s++){var l=e.charCodeAt(s);if(0!==i||a||l!==oi||e.charCodeAt(s+1)!==ii)if(a)l===ii&&e.charCodeAt(s+1)===oi&&(a=!1,s++);else if(34!==l&&39!==l||0!==s&&92===e.charCodeAt(s-1)){if(0===i)if(123===l)o++;else if(125===l){if(--o<0){for(var u=s+1;u<t;){var c=e.charCodeAt(u);if(59===c||10===c)break;u++}u<t&&59===e.charCodeAt(u)&&u++,o=0,s=u-1,n=u;continue}0===o&&(r+=e.substring(n,s+1),n=s+1)}else 59===l&&0===o&&(r+=e.substring(n,s+1),n=s+1)}else 0===i?i=l:i===l&&(i=0);else a=!0,s++}if(n<t){var d=e.substring(n);ai(d)||(r+=d)}return r}(function(e){if(-1===e.indexOf("//"))return e;for(var t=e.length,r=[],n=0,o=0,i=0,a=0;o<t;){var s=e.charCodeAt(o);if(34!==s&&39!==s||0!==o&&92===e.charCodeAt(o-1))if(0===i)if(s===oi&&o+1<t&&e.charCodeAt(o+1)===ii){for(o+=2;o+1<t&&(e.charCodeAt(o)!==ii||e.charCodeAt(o+1)!==oi);)o++;o+=2}else if(40===s&&o>=3&&108==(32|e.charCodeAt(o-1))&&114==(32|e.charCodeAt(o-2))&&117==(32|e.charCodeAt(o-3)))a=1,o++;else if(a>0)41===s?a--:40===s&&a++,o++;else if(s===ii&&o+1<t&&e.charCodeAt(o+1)===oi)o>n&&r.push(e.substring(n,o)),n=o+=2;else if(s===oi&&o+1<t&&e.charCodeAt(o+1)===oi){for(o>n&&r.push(e.substring(n,o));o<t&&10!==e.charCodeAt(o);)o++;n=o}else o++;else o++;else 0===i?i=s:i===s&&(i=0),o++}return 0===n?e:(n<t&&r.push(e.substring(n)),r.join(""))}(e)),u=On(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);return a.namespace&&(u=si(u,a.namespace)),p=[],zn(u,f),p};return h.hash=l.length?l.reduce((function(e,t){return t.name||No(15),uo(e,t.name)}),5381).toString():"",h}var ui=new ri,ci=li(),di={shouldForwardProp:void 0,styleSheet:ui,stylis:ci},pi=Kn?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(di)}}:x.createContext(di);pi.Consumer;var fi=Kn?{Provider:function(e){return e.children}}:x.createContext(void 0);function hi(){return Kn?di:x.useContext(pi)}function mi(e){if(Kn||!x.useMemo)return e.children;var t=hi().styleSheet,r=x.useMemo((function(){var r=t;return e.sheet?r=e.sheet:e.target&&(r=r.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(r=r.reconstructWithOptions({useCSSOMInjection:!1})),r}),[e.disableCSSOMInjection,e.sheet,e.target,t]),n=x.useMemo((function(){return li({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:e.stylisPlugins})}),[e.enableVendorPrefixes,e.namespace,e.stylisPlugins]),o=x.useMemo((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:r,stylis:n}}),[e.shouldForwardProp,r,n]);return x.createElement(pi.Provider,{value:o},x.createElement(fi.Provider,{value:n},e.children))}var gi=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=ci);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,qo(this,(function(){throw No(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=ci),this.name+e.hash},e}();function bi(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in $n||e.startsWith("--")?String(t).trim():"".concat(t,"px")}var vi=function(e){return e>="A"&&e<="Z"};function yi(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;vi(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var xi=function(e){return null==e||!1===e||""===e},Si=function(e){var t=[];for(var r in e){var n=e[r];e.hasOwnProperty(r)&&!xi(n)&&(Array.isArray(n)&&n.isCss||Mo(n)?t.push("".concat(yi(r),":"),n,";"):Oo(n)?t.push.apply(t,Wr(Wr(["".concat(r," {")],Si(n),!1),["}"],!1)):t.push("".concat(yi(r),": ").concat(bi(r,n),";")))}return t};function wi(e,t,r,n,o){if(void 0===o&&(o=[]),"string"==typeof e)return e&&o.push(e),o;if(xi(e))return o;if(ko(e))return o.push(".".concat(e.styledComponentId)),o;var i;if(Mo(e))return!Mo(i=e)||i.prototype&&i.prototype.isReactComponent||!t?(o.push(e),o):wi(e(t),t,r,n,o);if(e instanceof gi)return r?(e.inject(r,n),o.push(e.getName(n))):o.push(e),o;if(Oo(e)){for(var a=Si(e),s=0;s<a.length;s++)o.push(a[s]);return o}if(!Array.isArray(e))return o.push(e.toString()),o;for(s=0;s<e.length;s++)wi(e[s],t,r,n,o);return o}function Ci(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Mo(r)&&!ko(r))return!1}return!0}var Ei=co(Un),Ri=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Ci(e),this.componentId=t,this.baseHash=uo(Ei,t),this.baseStyle=r,ri.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r).className:"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=Do(n,this.staticRulesId);else{var o=To(wi(this.rules,e,t,r)),i=so(uo(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=Do(n,i),this.staticRulesId=i}else{for(var s=uo(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=To(wi(c,e,t,r));s=uo(uo(s,String(u)),d),l+=d}}if(l){var p=so(s>>>0);if(!t.hasNameForId(this.componentId,p)){var f=r(l,".".concat(p),void 0,this.componentId);t.insertRules(this.componentId,p,f)}n=Do(n,p)}}return{className:n,css:"undefined"==typeof window?t.getTag().getGroup(Ho(this.componentId)):""}},e}(),Pi=Kn?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:x.createContext(void 0);Pi.Consumer;var Ai={};function Ii(e,t,r){var n=ko(e),o=e,i=!fo(e),a=t.attrs,s=void 0===a?Zn:a,l=t.componentId,u=void 0===l?function(e,t){var r="string"!=typeof e?"sc":oo(e);Ai[r]=(Ai[r]||0)+1;var n="".concat(r,"-").concat(po(Un+r+Ai[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):l,c=t.displayName,d=void 0===c?function(e){return fo(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(oo(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 Ri(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=Kn?void 0:x.useContext(Pi),c=hi(),d=e.shouldForwardProp||c.shouldForwardProp,p=eo(t,u,i)||(Kn?void 0:Qn),f=function(e,t,r){for(var n,o=$r($r({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=Mo(n=e[i])?n(o):n;for(var s in a)"className"===s?o.className=Do(o.className,a[s]):"style"===s?o.style=$r($r({},o.style),a[s]):o[s]=a[s]}return"className"in t&&"string"==typeof t.className&&(o.className=Do(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=hi();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=b.className,y=b.css,w=Do(a,s);v&&(w+=" "+v),f.className&&(w+=" "+f.className),m[fo(h)&&!to.has(h)?"class":"className"]=w,r&&(m.ref=r);var C=S(h,m);return Kn&&y?x.createElement(x.Fragment,null,x.createElement("style",{precedence:"styled-components",href:"sc-".concat(s,"-").concat(v),children:y}),C):C}(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?Do(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++)Lo(e,o[n],!0);return e}({},o.defaultProps,e):e}}),qo(y,(function(){return".".concat(y.styledComponentId)})),i&&Io(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function Mi(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 ki=function(e){return Object.assign(e,{isCss:!0})};function Di(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Mo(e)||Oo(e))return ki(wi(Mi(Zn,Wr([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?wi(n):ki(wi(Mi(n,t)))}function Ti(e,t,r){if(void 0===r&&(r=Qn),!t)throw No(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,Di.apply(void 0,Wr([n],o,!1)))};return n.attrs=function(n){return Ti(e,t,$r($r({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return Ti(e,t,$r($r({},r),n))},n}var Oi=function(e){return Ti(Ii,e)},Li=Oi;to.forEach((function(e){Li[e]=Oi(e)}));var qi=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Ci(e),ri.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(To(wi(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&&ri.registerId(this.componentId+e);var o=this.componentId+e;this.isStatic?r.hasNameForId(o,o)||this.createStyles(e,t,r,n):(this.removeStyles(e,r),this.createStyles(e,t,r,n))},e}();function Ni(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=To(Di.apply(void 0,Wr([e],t,!1))),o=po(n);return new gi(o,n)}var ji={exports:{}};function _i(){}function zi(){}zi.resetWarningCache=_i;ji.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:zi,resetWarningCache:_i};return r.PropTypes=r,r}();var Fi=Vt(ji.exports);function Hi(e){const{injectFirst:t,children:r}=e;if(t&&"undefined"!=typeof window){const e=document.head;if(!e.querySelector('[data-styled="active"]')){const t=document.createElement("style");t.setAttribute("data-styled","active"),e.insertBefore(t,e.firstChild)}}return r}Hi.propTypes={children:Fi.node,injectFirst:Fi.bool};const $i=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Di.apply(void 0,Wr([e],t,!1)),o="sc-global-".concat(po(JSON.stringify(n))),i=new qi(n,o),a=new WeakMap,s=function(e){var t=hi(),r=Kn?void 0:x.useContext(Pi),n=a.get(t.styleSheet);if(void 0===n&&(n=t.styleSheet.allocateGSInstance(o),a.set(t.styleSheet,n)),("undefined"==typeof window||!t.styleSheet.server)&&l(n,e,t.styleSheet,r,t.stylis),Kn||x.useLayoutEffect((function(){return t.styleSheet.server||l(n,e,t.styleSheet,r,t.stylis),function(){var e;i.removeStyles(n,t.styleSheet),e=t.styleSheet.options.target,"undefined"!=typeof document&&(null!=e?e:document).querySelectorAll('style[data-styled-global="'.concat(o,'"]')).forEach((function(e){return e.remove()}))}}),[n,e,t.styleSheet,r,t.stylis]),Kn){var s=o+n,u="undefined"==typeof window?t.styleSheet.getTag().getGroup(Ho(s)):"";if(u)return x.createElement("style",{key:"".concat(o,"-").concat(n),"data-styled-global":o,children:u})}return null};function l(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,Jn,r,o);else{var a=$r($r({},t),{theme:eo(t,n,s.defaultProps)});i.renderStyles(e,a,r,o)}}return x.memo(s)}((e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n}));
|
|
9
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),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}},vt({exports:{}});const Mt=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function kt(t,r){return e((()=>t),r)}const Dt={},Tt=()=>{const{viewState:n}=t(),o=(t=>{const r=e((()=>({current:Dt})),[]);return r.current=r.current===Dt?t:r.current,r})(new Set),i=void 0!==window.qlikprinting,{promise:a,resolve:s}=e((()=>Mt()),[]),l=kt((e=>{o.current.add(e)}),[o]),u=kt(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 r((async()=>{await a}),[a]),e((()=>({viewState:n,isDownloadedAsPDForImage:i,notifyIsDoneRendering:u,waitForPromise:l})),[u,i,n,l])},Ot={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"},Lt={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",...Ot,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},qt=12,Nt=14,jt=16,_t=24,zt=3,Ft=300,Ht=400,$t=600,Wt=700,Bt={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Vt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ut(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 Gt={exports:{}},Yt={},Kt=x,Xt=Symbol.for("react.element"),Jt=Symbol.for("react.fragment"),Zt=Object.prototype.hasOwnProperty,Qt=Kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,er={key:!0,ref:!0,__self:!0,__source:!0};function tr(e,t,r){var n,o={},i=null,a=null;for(n in void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Zt.call(t,n)&&!er.hasOwnProperty(n)&&(o[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===o[n]&&(o[n]=t[n]);return{$$typeof:Xt,type:e,key:i,ref:a,props:o,_owner:Qt.current}}Yt.Fragment=Jt,Yt.jsx=tr,Yt.jsxs=tr,Gt.exports=Yt;var rr=Gt.exports;const nr={black:"#000",white:"#fff"},or="#e57373",ir="#ef5350",ar="#f44336",sr="#d32f2f",lr="#c62828",ur="#f3e5f5",cr="#ce93d8",dr="#ba68c8",pr="#ab47bc",fr="#9c27b0",hr="#7b1fa2",mr="#e3f2fd",gr="#90caf9",br="#42a5f5",vr="#1976d2",yr="#1565c0",xr="#4fc3f7",Sr="#29b6f6",wr="#03a9f4",Cr="#0288d1",Er="#01579b",Rr="#81c784",Pr="#66bb6a",Ar="#4caf50",Ir="#388e3c",Mr="#2e7d32",kr="#1b5e20",Dr="#ffb74d",Tr="#ffa726",Or="#ff9800",Lr="#f57c00",qr="#e65100",Nr={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 jr(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 _r=Object.freeze({__proto__:null,default:jr}),zr="$$material";function Fr(){return Fr=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},Fr.apply(null,arguments)}function Hr(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}var $r=function(){return $r=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},$r.apply(this,arguments)};function Wr(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 Br="-ms-",Vr="-moz-",Ur="-webkit-",Gr="comm",Yr="rule",Kr="decl",Xr="@import",Jr="@keyframes",Zr=Math.abs,Qr=String.fromCharCode,en=Object.assign;function tn(e){return e.trim()}function rn(e,t){return(e=t.exec(e))?e[0]:e}function nn(e,t,r){return e.replace(t,r)}function on(e,t,r){return e.indexOf(t,r)}function an(e,t){return 0|e.charCodeAt(t)}function sn(e,t,r){return e.slice(t,r)}function ln(e){return e.length}function un(e){return e.length}function cn(e,t){return t.push(e),e}function dn(e,t){return e.filter((function(e){return!rn(e,t)}))}var pn=1,fn=1,hn=0,mn=0,gn=0,bn="";function vn(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:pn,column:fn,length:a,return:"",siblings:s}}function yn(e,t){return en(vn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function xn(e){for(;e.root;)e=yn(e.root,{children:[e]});cn(e,e.siblings)}function Sn(){return gn=mn>0?an(bn,--mn):0,fn--,10===gn&&(fn=1,pn--),gn}function wn(){return gn=mn<hn?an(bn,mn++):0,fn++,10===gn&&(fn=1,pn++),gn}function Cn(){return an(bn,mn)}function En(){return mn}function Rn(e,t){return sn(bn,e,t)}function Pn(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 An(e){return tn(Rn(mn-1,kn(91===e?e+2:40===e?e+1:e)))}function In(e){for(;(gn=Cn())&&gn<33;)wn();return Pn(e)>2||Pn(gn)>3?"":" "}function Mn(e,t){for(;--t&&wn()&&!(gn<48||gn>102||gn>57&&gn<65||gn>70&&gn<97););return Rn(e,En()+(t<6&&32==Cn()&&32==wn()))}function kn(e){for(;wn();)switch(gn){case e:return mn;case 34:case 39:34!==e&&39!==e&&kn(gn);break;case 40:41===e&&kn(e);break;case 92:wn()}return mn}function Dn(e,t){for(;wn()&&e+gn!==57&&(e+gn!==84||47!==Cn()););return"/*"+Rn(t,mn-1)+"*"+Qr(47===e?e:wn())}function Tn(e){for(;!Pn(Cn());)wn();return Rn(e,mn)}function On(e){return function(e){return bn="",e}(Ln("",null,null,null,[""],e=function(e){return pn=fn=1,hn=ln(bn=e),mn=0,[]}(e),0,[0],e))}function Ln(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,w=n,C=y;g;)switch(h=v,v=wn()){case 40:if(108!=h&&58==an(C,d-1)){-1!=on(C+=nn(An(v),"&","&\f"),"&\f",Zr(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=An(v);break;case 9:case 10:case 13:case 32:C+=In(h);break;case 92:C+=Mn(En()-1,7);continue;case 47:switch(Cn()){case 42:case 47:cn(Nn(Dn(wn(),En()),t,r,l),l),5!=Pn(h||1)&&5!=Pn(Cn()||1)||!ln(C)||" "===sn(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[u++]=ln(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=nn(C,/\f/g,"")),f>0&&(ln(C)-d||0===m&&47===h)&&cn(f>32?jn(C+";",n,r,d-1,l):jn(nn(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(cn(w=qn(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)Ln(C,t,w,w,x,i,d,s,S);else{switch(p){case 99:if(110===an(C,3))break;case 108:if(97===an(C,2))break;default:c=0;case 100:case 109:case 115:}c?Ln(e,w,w,n&&cn(qn(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S):Ln(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+ln(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==Sn())continue;switch(C+=Qr(v),v*m){case 38:b=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(ln(C)-1)*b,b=1;break;case 64:45===Cn()&&(C+=An(wn())),p=Cn(),c=d=ln(y=C+=Tn(En())),v++;break;case 45:45===h&&2==ln(C)&&(m=0)}}return i}function qn(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=un(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=sn(e,p+1,p=Zr(g=a[m])),x=e;v<h;++v)(x=tn(g>0?f[v]+" "+y:nn(y,/&\f/g,f[v])))&&(l[b++]=x);return vn(e,t,r,0===o?Yr:s,l,u,c,d)}function Nn(e,t,r,n){return vn(e,t,r,Gr,Qr(gn),sn(e,2,-2),0,n)}function jn(e,t,r,n,o){return vn(e,t,r,Kr,sn(e,0,n),sn(e,n+1,-1),n,o)}function _n(e,t,r){switch(function(e,t){return 45^an(e,0)?(((t<<2^an(e,0))<<2^an(e,1))<<2^an(e,2))<<2^an(e,3):0}(e,t)){case 5103:return Ur+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return Ur+e+e;case 4855:return Ur+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Vr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ur+e+Vr+e+Br+e+e;case 5936:switch(an(e,t+11)){case 114:return Ur+e+Br+nn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ur+e+Br+nn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ur+e+Br+nn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Ur+e+Br+e+e;case 6165:return Ur+e+Br+"flex-"+e+e;case 5187:return Ur+e+nn(e,/(\w+).+(:[^]+)/,Ur+"box-$1$2"+Br+"flex-$1$2")+e;case 5443:return Ur+e+Br+"flex-item-"+nn(e,/flex-|-self/g,"")+(rn(e,/flex-|baseline/)?"":Br+"grid-row-"+nn(e,/flex-|-self/g,""))+e;case 4675:return Ur+e+Br+"flex-line-pack"+nn(e,/align-content|flex-|-self/g,"")+e;case 5548:return Ur+e+Br+nn(e,"shrink","negative")+e;case 5292:return Ur+e+Br+nn(e,"basis","preferred-size")+e;case 6060:return Ur+"box-"+nn(e,"-grow","")+Ur+e+Br+nn(e,"grow","positive")+e;case 4554:return Ur+nn(e,/([^-])(transform)/g,"$1"+Ur+"$2")+e;case 6187:return nn(nn(nn(e,/(zoom-|grab)/,Ur+"$1"),/(image-set)/,Ur+"$1"),e,"")+e;case 5495:case 3959:return nn(e,/(image-set\([^]*)/,Ur+"$1$`$1");case 4968:return nn(nn(e,/(.+:)(flex-)?(.*)/,Ur+"box-pack:$3"+Br+"flex-pack:$3"),/space-between/,"justify")+Ur+e+e;case 4200:if(!rn(e,/flex-|baseline/))return Br+"grid-column-align"+sn(e,t)+e;break;case 2592:case 3360:return Br+nn(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,rn(e.props,/grid-\w+-end/)}))?~on(e+(r=r[t].value),"span",0)?e:Br+nn(e,"-start","")+e+Br+"grid-row-span:"+(~on(r,"span",0)?rn(r,/\d+/):+rn(r,/\d+/)-+rn(e,/\d+/))+";":Br+nn(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return rn(e.props,/grid-\w+-start/)}))?e:Br+nn(nn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return nn(e,/(.+)-inline(.+)/,Ur+"$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(ln(e)-1-t>6)switch(an(e,t+1)){case 109:if(45!==an(e,t+4))break;case 102:return nn(e,/(.+:)(.+)-([^]+)/,"$1"+Ur+"$2-$3$1"+Vr+(108==an(e,t+3)?"$3":"$2-$3"))+e;case 115:return~on(e,"stretch",0)?_n(nn(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return nn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,s){return Br+r+":"+n+s+(o?Br+r+"-span:"+(i?a:+a-+n)+s:"")+e}));case 4949:if(121===an(e,t+6))return nn(e,":",":"+Ur)+e;break;case 6444:switch(an(e,45===an(e,14)?18:11)){case 120:return nn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ur+(45===an(e,14)?"inline-":"")+"box$3$1"+Ur+"$2$3$1"+Br+"$2box$3")+e;case 100:return nn(e,":",":"+Br)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return nn(e,"scroll-","scroll-snap-")+e}return e}function zn(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Fn(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case Xr:case"@namespace":case Kr:return e.return=e.return||e.value;case Gr:return"";case Jr:return e.return=e.value+"{"+zn(e.children,n)+"}";case Yr:if(!ln(e.value=e.props.join(",")))return""}return ln(r=zn(e.children,n))?e.return=e.value+"{"+r+"}":""}function Hn(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Kr:return void(e.return=_n(e.value,e.length,r));case Jr:return zn([yn(e,{value:nn(e.value,"@","@"+Ur)})],n);case Yr:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(rn(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":xn(yn(e,{props:[nn(t,/:(read-\w+)/,":-moz-$1")]})),xn(yn(e,{props:[t]})),en(e,{props:dn(r,n)});break;case"::placeholder":xn(yn(e,{props:[nn(t,/:(plac\w+)/,":"+Ur+"input-$1")]})),xn(yn(e,{props:[nn(t,/:(plac\w+)/,":-moz-$1")]})),xn(yn(e,{props:[nn(t,/:(plac\w+)/,Br+"input-$1")]})),xn(yn(e,{props:[t]})),en(e,{props:dn(r,n)})}return""}))}}var $n={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,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Wn="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Bn="active",Vn="data-styled-version",Un="6.3.11",Gn="/*!sc*/\n",Yn="undefined"!=typeof window&&"undefined"!=typeof document,Kn=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)),Xn={};function Jn(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 Zn=new Map,Qn=new Map,eo=1,to=function(e){if(Zn.has(e))return Zn.get(e);for(;Qn.has(eo);)eo++;var t=eo++;return Zn.set(e,t),Qn.set(t,e),t},ro=function(e,t){eo=t+1,Zn.set(e,t),Qn.set(t,e)},no=Object.freeze([]),oo=Object.freeze({});function io(e,t,r){return void 0===r&&(r=oo),e.theme!==r.theme&&e.theme||t||r.theme}var ao=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),so=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,lo=/(^-|-$)/g;function uo(e){return e.replace(so,"-").replace(lo,"")}var co=/(a)(d)/gi,po=function(e){return String.fromCharCode(e+(e>25?39:97))};function fo(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=po(t%52)+r;return(po(t%52)+r).replace(co,"$1-$2")}var ho,mo=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},go=function(e){return mo(5381,e)};function bo(e){return fo(go(e)>>>0)}function vo(e){return"string"==typeof e&&!0}var yo="function"==typeof Symbol&&Symbol.for,xo=yo?Symbol.for("react.memo"):60115,So=yo?Symbol.for("react.forward_ref"):60112,wo={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Co={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Eo={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ro=((ho={})[So]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ho[xo]=Eo,ho);function Po(e){return("type"in(t=e)&&t.type.$$typeof)===xo?Eo:"$$typeof"in e?Ro[e.$$typeof]:wo;var t}var Ao=Object.defineProperty,Io=Object.getOwnPropertyNames,Mo=Object.getOwnPropertySymbols,ko=Object.getOwnPropertyDescriptor,Do=Object.getPrototypeOf,To=Object.prototype;function Oo(e,t,r){if("string"!=typeof t){if(To){var n=Do(t);n&&n!==To&&Oo(e,n,r)}var o=Io(t);Mo&&(o=o.concat(Mo(t)));for(var i=Po(e),a=Po(t),s=0;s<o.length;++s){var l=o[s];if(!(l in Co||r&&r[l]||a&&l in a||i&&l in i)){var u=ko(t,l);try{Ao(e,l,u)}catch(e){}}}}return e}function Lo(e){return"function"==typeof e}function qo(e){return"object"==typeof e&&"styledComponentId"in e}function No(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function jo(e,t){return e.join("")}function _o(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function zo(e,t,r){if(void 0===r&&(r=!1),!r&&!_o(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=zo(e[n],t[n]);else if(_o(t))for(var n in t)e[n]=zo(e[n],t[n]);return e}function Fo(e,t){Object.defineProperty(e,"toString",{value:t})}var Ho=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}return e.prototype.indexOfGroup=function(e){if(e===this._cGroup)return this._cIndex;var t=this._cIndex;if(e>this._cGroup)for(var r=this._cGroup;r<e;r++)t+=this.groupSizes[r];else for(r=this._cGroup-1;r>=e;r--)t-=this.groupSizes[r];return this._cGroup=e,this._cIndex=t,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 Jn(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=0,l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++,s++);s>0&&this._cGroup>e&&(this._cIndex+=s)},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);t>0&&this._cGroup>e&&(this._cIndex-=t)}},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+=this.tag.getRule(i)+Gn;return t},e}(),$o="style[".concat(Wn,"][").concat(Vn,'="').concat(Un,'"]'),Wo=new RegExp("^".concat(Wn,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Bo=function(e){return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType},Vo=function(e){if(!e)return document;if(Bo(e))return e;if("getRootNode"in e){var t=e.getRootNode();if(Bo(t))return t}return document},Uo=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)},Go=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Gn),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var l=s.match(Wo);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(ro(c,u),Uo(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},Yo=function(e){for(var t=Vo(e.options.target).querySelectorAll($o),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Wn)!==Bn&&(Go(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Ko=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Wn,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Wn,Bn),n.setAttribute(Vn,Un);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Xo=function(){function e(e){this.element=Ko(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){var t;if(e.sheet)return e.sheet;for(var r=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets,n=0,o=r.length;n<o;n++){var i=r[n];if(i.ownerNode===e)return i}throw Jn(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}(),Jo=function(){function e(e){this.element=Ko(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}(),Zo=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(e===this.length?this.rules.push(t):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}(),Qo=Yn,ei={isServer:!Yn,useCSSOMInjection:!Kn},ti=function(){function e(e,t,r){void 0===e&&(e=oo),void 0===t&&(t={});var n=this;this.options=$r($r({},ei),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Yn&&Qo&&(Qo=!1,Yo(this)),Fo(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return Qn.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o);if(void 0===i||!i.size)return"continue";var a=t.getGroup(r);if(0===a.length)return"continue";var s=Wn+".g"+r+'[id="'+o+'"]',l="";i.forEach((function(e){e.length>0&&(l+=e+",")})),n+=a+s+'{content:"'+l+'"}'+Gn},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return to(e)},e.prototype.rehydrate=function(){!this.server&&Yn&&Yo(this)},e.prototype.reconstructWithOptions=function(t,r){void 0===r&&(r=!0);var n=new e($r($r({},this.options),t),this.gs,r&&this.names||void 0);return!this.server&&Yn&&t.target!==this.options.target&&Vo(this.options.target)!==Vo(t.target)&&Yo(n),n},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 Zo(r):t?new Xo(r):new Jo(r)}(this.options),new Ho(e)));var e},e.prototype.hasNameForId=function(e,t){var r,n;return null!==(n=null===(r=this.names.get(e))||void 0===r?void 0:r.has(t))&&void 0!==n&&n},e.prototype.registerName=function(e,t){to(e);var r=this.names.get(e);r?r.add(t):this.names.set(e,new Set([t]))},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(to(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(to(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),ri=/&/g,ni=47,oi=42;function ii(e){if(-1===e.indexOf("}"))return!1;for(var t=e.length,r=0,n=0,o=!1,i=0;i<t;i++){var a=e.charCodeAt(i);if(0!==n||o||a!==ni||e.charCodeAt(i+1)!==oi)if(o)a===oi&&e.charCodeAt(i+1)===ni&&(o=!1,i++);else if(34!==a&&39!==a||0!==i&&92===e.charCodeAt(i-1)){if(0===n)if(123===a)r++;else if(125===a&&--r<0)return!0}else 0===n?n=a:n===a&&(n=0);else o=!0,i++}return 0!==r||0!==n}function ai(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=ai(e.children,t)),e}))}function si(e){var t,r,n,o=void 0===e?oo:e,i=o.options,a=void 0===i?oo:i,s=o.plugins,l=void 0===s?no: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===Yr&&e.value.includes("&")&&(n||(n=new RegExp("\\".concat(r,"\\b"),"g")),e.props[0]=e.props[0].replace(ri,r).replace(n,u))})),a.prefix&&c.push(Hn),c.push(Fn);var d,p=[],f=function(e){var t=un(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)}))),h=function(e,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,r=o,n=void 0;var l=function(e){if(!ii(e))return e;for(var t=e.length,r="",n=0,o=0,i=0,a=!1,s=0;s<t;s++){var l=e.charCodeAt(s);if(0!==i||a||l!==ni||e.charCodeAt(s+1)!==oi)if(a)l===oi&&e.charCodeAt(s+1)===ni&&(a=!1,s++);else if(34!==l&&39!==l||0!==s&&92===e.charCodeAt(s-1)){if(0===i)if(123===l)o++;else if(125===l){if(--o<0){for(var u=s+1;u<t;){var c=e.charCodeAt(u);if(59===c||10===c)break;u++}u<t&&59===e.charCodeAt(u)&&u++,o=0,s=u-1,n=u;continue}0===o&&(r+=e.substring(n,s+1),n=s+1)}else 59===l&&0===o&&(r+=e.substring(n,s+1),n=s+1)}else 0===i?i=l:i===l&&(i=0);else a=!0,s++}if(n<t){var d=e.substring(n);ii(d)||(r+=d)}return r}(function(e){if(-1===e.indexOf("//"))return e;for(var t=e.length,r=[],n=0,o=0,i=0,a=0;o<t;){var s=e.charCodeAt(o);if(34!==s&&39!==s||0!==o&&92===e.charCodeAt(o-1))if(0===i)if(s===ni&&o+1<t&&e.charCodeAt(o+1)===oi){for(o+=2;o+1<t&&(e.charCodeAt(o)!==oi||e.charCodeAt(o+1)!==ni);)o++;o+=2}else if(40===s&&o>=3&&108==(32|e.charCodeAt(o-1))&&114==(32|e.charCodeAt(o-2))&&117==(32|e.charCodeAt(o-3)))a=1,o++;else if(a>0)41===s?a--:40===s&&a++,o++;else if(s===oi&&o+1<t&&e.charCodeAt(o+1)===ni)o>n&&r.push(e.substring(n,o)),n=o+=2;else if(s===ni&&o+1<t&&e.charCodeAt(o+1)===ni){for(o>n&&r.push(e.substring(n,o));o<t&&10!==e.charCodeAt(o);)o++;n=o}else o++;else o++;else 0===i?i=s:i===s&&(i=0),o++}return 0===n?e:(n<t&&r.push(e.substring(n)),r.join(""))}(e)),u=On(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);return a.namespace&&(u=ai(u,a.namespace)),p=[],zn(u,f),p};return h.hash=l.length?l.reduce((function(e,t){return t.name||Jn(15),mo(e,t.name)}),5381).toString():"",h}var li=new ti,ui=si(),ci=x.createContext({shouldForwardProp:void 0,styleSheet:li,stylis:ui});ci.Consumer;var di=x.createContext(void 0);function pi(){return x.useContext(ci)}function fi(e){if(!x.useMemo)return e.children;var t=pi().styleSheet,r=x.useMemo((function(){var r=t;return e.sheet?r=e.sheet:e.target&&(r=r.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(r=r.reconstructWithOptions({useCSSOMInjection:!1})),r}),[e.disableCSSOMInjection,e.sheet,e.target,t]),n=x.useMemo((function(){return si({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:e.stylisPlugins})}),[e.enableVendorPrefixes,e.namespace,e.stylisPlugins]),o=x.useMemo((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:r,stylis:n}}),[e.shouldForwardProp,r,n]);return x.createElement(ci.Provider,{value:o},x.createElement(di.Provider,{value:n},e.children))}var hi=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=ui);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,Fo(this,(function(){throw Jn(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=ui),this.name+e.hash},e}();function mi(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in $n||e.startsWith("--")?String(t).trim():"".concat(t,"px")}var gi=function(e){return e>="A"&&e<="Z"};function bi(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;gi(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var vi=function(e){return null==e||!1===e||""===e},yi=function(e){var t=[];for(var r in e){var n=e[r];e.hasOwnProperty(r)&&!vi(n)&&(Array.isArray(n)&&n.isCss||Lo(n)?t.push("".concat(bi(r),":"),n,";"):_o(n)?t.push.apply(t,Wr(Wr(["".concat(r," {")],yi(n),!1),["}"],!1)):t.push("".concat(bi(r),": ").concat(mi(r,n),";")))}return t};function xi(e,t,r,n,o){if(void 0===o&&(o=[]),"string"==typeof e)return e&&o.push(e),o;if(vi(e))return o;if(qo(e))return o.push(".".concat(e.styledComponentId)),o;var i;if(Lo(e))return!Lo(i=e)||i.prototype&&i.prototype.isReactComponent||!t?(o.push(e),o):xi(e(t),t,r,n,o);if(e instanceof hi)return r?(e.inject(r,n),o.push(e.getName(n))):o.push(e),o;if(_o(e)){for(var a=yi(e),s=0;s<a.length;s++)o.push(a[s]);return o}if(!Array.isArray(e))return o.push(e.toString()),o;for(s=0;s<e.length;s++)xi(e[s],t,r,n,o);return o}function Si(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Lo(r)&&!qo(r))return!1}return!0}var wi=go(Un),Ci=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Si(e),this.componentId=t,this.baseHash=mo(wi,t),this.baseStyle=r,ti.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r).className:"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=No(n,this.staticRulesId);else{var o=jo(xi(this.rules,e,t,r)),i=fo(mo(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=No(n,i),this.staticRulesId=i}else{for(var s=mo(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=jo(xi(c,e,t,r));s=mo(mo(s,String(u)),d),l+=d}}if(l){var p=fo(s>>>0);if(!t.hasNameForId(this.componentId,p)){var f=r(l,".".concat(p),void 0,this.componentId);t.insertRules(this.componentId,p,f)}n=No(n,p)}}return{className:n,css:"undefined"==typeof window?t.getTag().getGroup(to(this.componentId)):""}},e}(),Ei=x.createContext(void 0);Ei.Consumer;var Ri={};function Pi(e,t,r){var n=qo(e),o=e,i=!vo(e),a=t.attrs,s=void 0===a?no:a,l=t.componentId,u=void 0===l?function(e,t){var r="string"!=typeof e?"sc":uo(e);Ri[r]=(Ri[r]||0)+1;var n="".concat(r,"-").concat(bo(Un+r+Ri[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):l,c=t.displayName,d=void 0===c?function(e){return vo(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(uo(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 Ci(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(Ei),c=pi(),d=e.shouldForwardProp||c.shouldForwardProp,p=io(t,u,i)||oo,f=function(e,t,r){for(var n,o=$r($r({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=Lo(n=e[i])?n(o):n;for(var s in a)"className"===s?o.className=No(o.className,a[s]):"style"===s?o.style=$r($r({},o.style),a[s]):o[s]=a[s]}return"className"in t&&"string"==typeof t.className&&(o.className=No(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=pi();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=b.className,y=No(a,s);return v&&(y+=" "+v),f.className&&(y+=" "+f.className),m[vo(h)&&!ao.has(h)?"class":"className"]=y,r&&(m.ref=r),S(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?No(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++)zo(e,o[n],!0);return e}({},o.defaultProps,e):e}}),Fo(y,(function(){return".".concat(y.styledComponentId)})),i&&Oo(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function Ai(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 Ii=function(e){return Object.assign(e,{isCss:!0})};function Mi(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Lo(e)||_o(e))return Ii(xi(Ai(no,Wr([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?xi(n):Ii(xi(Ai(n,t)))}function ki(e,t,r){if(void 0===r&&(r=oo),!t)throw Jn(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,Mi.apply(void 0,Wr([n],o,!1)))};return n.attrs=function(n){return ki(e,t,$r($r({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return ki(e,t,$r($r({},r),n))},n}var Di=function(e){return ki(Pi,e)},Ti=Di;ao.forEach((function(e){Ti[e]=Di(e)}));var Oi=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Si(e),ti.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(jo(xi(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&&ti.registerId(this.componentId+e);var o=this.componentId+e;this.isStatic?r.hasNameForId(o,o)||this.createStyles(e,t,r,n):(this.removeStyles(e,r),this.createStyles(e,t,r,n))},e}();function Li(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=jo(Mi.apply(void 0,Wr([e],t,!1))),o=bo(n);return new hi(o,n)}var qi={exports:{}};function Ni(){}function ji(){}ji.resetWarningCache=Ni;qi.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:ji,resetWarningCache:Ni};return r.PropTypes=r,r}();var _i=Vt(qi.exports);function zi(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}zi.propTypes={children:_i.node,injectFirst:_i.bool};const Fi=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Mi.apply(void 0,Wr([e],t,!1)),o="sc-global-".concat(bo(JSON.stringify(n))),i=new Oi(n,o),a=new WeakMap,s=function(e){var t=pi(),r=x.useContext(Ei),n=a.get(t.styleSheet);return void 0===n&&(n=t.styleSheet.allocateGSInstance(o),a.set(t.styleSheet,n)),("undefined"==typeof window||!t.styleSheet.server)&&l(n,e,t.styleSheet,r,t.stylis),x.useLayoutEffect((function(){return t.styleSheet.server||l(n,e,t.styleSheet,r,t.stylis),function(){var e;i.removeStyles(n,t.styleSheet),e=t.styleSheet.options.target,"undefined"!=typeof document&&(null!=e?e:document).querySelectorAll('style[data-styled-global="'.concat(o,'"]')).forEach((function(e){return e.remove()}))}}),[n,e,t.styleSheet,r,t.stylis]),null};function l(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,Xn,r,o);else{var a=$r($r({},t),{theme:io(t,n,s.defaultProps)});i.renderStyles(e,a,r,o)}}return x.memo(s)}((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}));
|
|
10
10
|
/**
|
|
11
11
|
* @mui/styled-engine-sc v6.4.3
|
|
12
12
|
*
|
|
@@ -14,7 +14,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
|
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/
|
|
17
|
-
function Wi(e,t){let r;return r=t?Li(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Li(e),r}function Bi(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function Vi(e){return e}$i.propTypes={defaultTheme:Fi.object,styles:Fi.oneOfType([Fi.array,Fi.string,Fi.object,Fi.func])};var Ui=Object.freeze({__proto__:null,GlobalStyles:$i,StyledEngineProvider:Hi,ThemeContext:Pi,css:Di,default:Wi,internal_mutateStyles:Bi,internal_processStyles:function(e,t){return Bi(e,t)},internal_serializeStyles:Vi,keyframes:Ni});function Gi(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Yi(e){if(y.isValidElement(e)||!Gi(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Yi(e[r])})),t}function Ki(e,t,r={clone:!0}){const n=r.clone?Fr({},e):e;return Gi(e)&&Gi(t)&&Object.keys(t).forEach((o=>{y.isValidElement(t[o])?n[o]=t[o]:Gi(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Gi(e[o])?n[o]=Ki(e[o],t[o],r):r.clone?n[o]=Gi(t[o])?Yi(t[o]):t[o]:n[o]=t[o]})),n}var Xi=Object.freeze({__proto__:null,default:Ki,isPlainObject:Gi});const Ji=["values","unit","step"];function Zi(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Hr(e,Ji),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)=>Fr({},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 Fr({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 Qi={borderRadius:4};function ea(e,t){return t?Ki(e,t,{clone:!1}):e}const ta={xs:0,sm:600,md:900,lg:1200,xl:1536},ra={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ta[e]}px)`};function na(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||ra;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||ra;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||ta).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function oa(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function ia(e){if("string"!=typeof e)throw new Error(jr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var aa=Object.freeze({__proto__:null,default:ia});function sa(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 la(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:sa(e,r)||n,t&&(o=t(o,n,e)),o}function ua(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=sa(e.theme,n)||{};return na(e,i,(e=>{let n=la(a,o,e);return e===n&&"string"==typeof e&&(n=la(a,o,`${t}${"default"===e?"":ia(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const ca={m:"margin",p:"padding"},da={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},pa={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},fa=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!pa[e])return[e];e=pa[e]}const[t,r]=e.split(""),n=ca[t],o=da[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),ha=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ma=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function ga(e,t,r,n){var o;const i=null!=(o=sa(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 ba(e){return ga(e,"spacing",8)}function va(e,t){if("string"==typeof t||null==t)return t;const r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function ya(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=va(t,r),e)),{})}(fa(r),n);return na(e,e[r],o)}function xa(e,t){const r=ba(e.theme);return Object.keys(e).map((n=>ya(e,t,n,r))).reduce(ea,{})}function Sa(e){return xa(e,ha)}function wa(e){return xa(e,ma)}function Ca(...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]?ea(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Ea(e){return"number"!=typeof e?e:`${e}px solid`}function Ra(e,t){return ua({prop:e,themeKey:"borders",transform:t})}Sa.propTypes={},Sa.filterProps=ha,wa.propTypes={},wa.filterProps=ma;const Pa=Ra("border",Ea),Aa=Ra("borderTop",Ea),Ia=Ra("borderRight",Ea),Ma=Ra("borderBottom",Ea),ka=Ra("borderLeft",Ea),Da=Ra("borderColor"),Ta=Ra("borderTopColor"),Oa=Ra("borderRightColor"),La=Ra("borderBottomColor"),qa=Ra("borderLeftColor"),Na=Ra("outline",Ea),ja=Ra("outlineColor"),_a=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=ga(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:va(t,e)});return na(e,e.borderRadius,r)}return null};_a.propTypes={},_a.filterProps=["borderRadius"],Ca(Pa,Aa,Ia,Ma,ka,Da,Ta,Oa,La,qa,_a,Na,ja);const za=e=>{if(void 0!==e.gap&&null!==e.gap){const t=ga(e.theme,"spacing",8),r=e=>({gap:va(t,e)});return na(e,e.gap,r)}return null};za.propTypes={},za.filterProps=["gap"];const Fa=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=ga(e.theme,"spacing",8),r=e=>({columnGap:va(t,e)});return na(e,e.columnGap,r)}return null};Fa.propTypes={},Fa.filterProps=["columnGap"];const Ha=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=ga(e.theme,"spacing",8),r=e=>({rowGap:va(t,e)});return na(e,e.rowGap,r)}return null};Ha.propTypes={},Ha.filterProps=["rowGap"];function $a(e,t){return"grey"===t?t:e}Ca(za,Fa,Ha,ua({prop:"gridColumn"}),ua({prop:"gridRow"}),ua({prop:"gridAutoFlow"}),ua({prop:"gridAutoColumns"}),ua({prop:"gridAutoRows"}),ua({prop:"gridTemplateColumns"}),ua({prop:"gridTemplateRows"}),ua({prop:"gridTemplateAreas"}),ua({prop:"gridArea"}));function Wa(e){return e<=1&&0!==e?100*e+"%":e}Ca(ua({prop:"color",themeKey:"palette",transform:$a}),ua({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:$a}),ua({prop:"backgroundColor",themeKey:"palette",transform:$a}));const Ba=ua({prop:"width",transform:Wa}),Va=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])||ta[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:Wa(t)}};return na(e,e.maxWidth,t)}return null};Va.filterProps=["maxWidth"];const Ua=ua({prop:"minWidth",transform:Wa}),Ga=ua({prop:"height",transform:Wa}),Ya=ua({prop:"maxHeight",transform:Wa}),Ka=ua({prop:"minHeight",transform:Wa});ua({prop:"size",cssProperty:"width",transform:Wa}),ua({prop:"size",cssProperty:"height",transform:Wa});Ca(Ba,Va,Ua,Ga,Ya,Ka,ua({prop:"boxSizing"}));const Xa={border:{themeKey:"borders",transform:Ea},borderTop:{themeKey:"borders",transform:Ea},borderRight:{themeKey:"borders",transform:Ea},borderBottom:{themeKey:"borders",transform:Ea},borderLeft:{themeKey:"borders",transform:Ea},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ea},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:_a},color:{themeKey:"palette",transform:$a},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:$a},backgroundColor:{themeKey:"palette",transform:$a},p:{style:wa},pt:{style:wa},pr:{style:wa},pb:{style:wa},pl:{style:wa},px:{style:wa},py:{style:wa},padding:{style:wa},paddingTop:{style:wa},paddingRight:{style:wa},paddingBottom:{style:wa},paddingLeft:{style:wa},paddingX:{style:wa},paddingY:{style:wa},paddingInline:{style:wa},paddingInlineStart:{style:wa},paddingInlineEnd:{style:wa},paddingBlock:{style:wa},paddingBlockStart:{style:wa},paddingBlockEnd:{style:wa},m:{style:Sa},mt:{style:Sa},mr:{style:Sa},mb:{style:Sa},ml:{style:Sa},mx:{style:Sa},my:{style:Sa},margin:{style:Sa},marginTop:{style:Sa},marginRight:{style:Sa},marginBottom:{style:Sa},marginLeft:{style:Sa},marginX:{style:Sa},marginY:{style:Sa},marginInline:{style:Sa},marginInlineStart:{style:Sa},marginInlineEnd:{style:Sa},marginBlock:{style:Sa},marginBlockStart:{style:Sa},marginBlockEnd:{style:Sa},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:za},rowGap:{style:Ha},columnGap:{style:Fa},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Wa},maxWidth:{style:Va},minWidth:{transform:Wa},height:{transform:Wa},maxHeight:{transform:Wa},minHeight:{transform:Wa},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Ja(){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=sa(r,s)||{};if(u)return u(o);return na(o,t,(t=>{let r=la(c,l,t);return t===r&&"string"==typeof t&&(r=la(c,l,`${e}${"default"===t?"":ia(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={},nested:a}=r||{};if(!o)return null;const s=null!=(n=i.unstable_sxConfig)?n:Xa;function l(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),l=Object.keys(o);let u=o;return Object.keys(n).forEach((r=>{const o=(a=n[r],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[r])u=ea(u,e(r,o,i,s));else{const e=na({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)?u=ea(u,e):u[r]=t({sx:o,theme:i,nested:!0})}else u=ea(u,e(r,o,i,s))})),!a&&i.modularCssLayers?{"@layer sx":oa(l,u)}:oa(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const Za=Ja();function Qa(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:{}}Za.filterProps=["sx"];const es=["breakpoints","palette","spacing","shape"];function ts(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Hr(e,es),s=Zi(r),l=function(e=8){if(e.mui)return e;const t=ba({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map((e=>{const r=t(e);return"number"==typeof r?`${r}px`:r})).join(" ");return r.mui=!0,r}(o);let u=Ki({breakpoints:s,direction:"ltr",components:{},palette:Fr({mode:"light"},n),spacing:l,shape:Fr({},Qi,i)},a);return u.applyStyles=Qa,u=t.reduce(((e,t)=>Ki(e,t)),u),u.unstable_sxConfig=Fr({},Xa,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Za({sx:e,theme:this})},u}var rs=Object.freeze({__proto__:null,default:ts,private_createBreakpoints:Zi,unstable_applyStyles:Qa});function ns(e=null){const t=y.useContext(Pi);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const os=ts();function is(e=os){return ns(e)}function as(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function ss({styles:e,themeId:t,defaultTheme:r={}}){const n=is(r),o=t&&n[t]||n;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map((e=>as("function"==typeof e?e(o):e))):as(i)),rr.jsx($i,{styles:i})}const ls=["sx"];function us(e){const{sx:t}=e,r=Hr(e,ls),{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:Xa;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 Gi(r)?Fr({},n,r):n}:Fr({},n,t),Fr({},o,{sx:i})}var cs=Object.freeze({__proto__:null,default:Za,extendSxProp:us,unstable_createStyleFunctionSx:Ja,unstable_defaultSxConfig:Xa});const ds=e=>e,ps=(()=>{let e=ds;return{configure(t){e=t},generate:t=>e(t),reset(){e=ds}}})();function fs(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=fs(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function hs(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=fs(e))&&(n&&(n+=" "),n+=t);return n}const ms=["className","component"];const gs={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 bs(e,t,r="Mui"){const n=gs[t];return n?`${r}-${n}`:`${ps.generate(e)}-${t}`}function vs(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=bs(e,t,r)})),n}var ys={exports:{}},xs={},Ss=Symbol.for("react.transitional.element"),ws=Symbol.for("react.portal"),Cs=Symbol.for("react.fragment"),Es=Symbol.for("react.strict_mode"),Rs=Symbol.for("react.profiler"),Ps=Symbol.for("react.consumer"),As=Symbol.for("react.context"),Is=Symbol.for("react.forward_ref"),Ms=Symbol.for("react.suspense"),ks=Symbol.for("react.suspense_list"),Ds=Symbol.for("react.memo"),Ts=Symbol.for("react.lazy"),Os=Symbol.for("react.offscreen"),Ls=Symbol.for("react.client.reference");function qs(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ss:switch(e=e.type){case Cs:case Rs:case Es:case Ms:case ks:return e;default:switch(e=e&&e.$$typeof){case As:case Is:case Ts:case Ds:case Ps:return e;default:return t}}case ws:return t}}}xs.ContextConsumer=Ps,xs.ContextProvider=As,xs.Element=Ss,xs.ForwardRef=Is,xs.Fragment=Cs,xs.Lazy=Ts,xs.Memo=Ds,xs.Portal=ws,xs.Profiler=Rs,xs.StrictMode=Es,xs.Suspense=Ms,xs.SuspenseList=ks,xs.isContextConsumer=function(e){return qs(e)===Ps},xs.isContextProvider=function(e){return qs(e)===As},xs.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ss},xs.isForwardRef=function(e){return qs(e)===Is},xs.isFragment=function(e){return qs(e)===Cs},xs.isLazy=function(e){return qs(e)===Ts},xs.isMemo=function(e){return qs(e)===Ds},xs.isPortal=function(e){return qs(e)===ws},xs.isProfiler=function(e){return qs(e)===Rs},xs.isStrictMode=function(e){return qs(e)===Es},xs.isSuspense=function(e){return qs(e)===Ms},xs.isSuspenseList=function(e){return qs(e)===ks},xs.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Cs||e===Rs||e===Es||e===Ms||e===ks||e===Os||"object"==typeof e&&null!==e&&(e.$$typeof===Ts||e.$$typeof===Ds||e.$$typeof===As||e.$$typeof===Ps||e.$$typeof===Is||e.$$typeof===Ls||void 0!==e.getModuleId)},xs.typeOf=qs,ys.exports=xs;var Ns=ys.exports;const js=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function _s(e){const t=`${e}`.match(js);return t&&t[1]||""}function zs(e,t=""){return e.displayName||e.name||_s(e)||t}function Fs(e,t,r){const n=zs(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var Hs=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return zs(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Ns.ForwardRef:return Fs(e,e.render,"ForwardRef");case Ns.Memo:return Fs(e,e.type,"memo");default:return}}},getFunctionName:_s});function $s(e,t){const r=Fr({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=Fr({},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]=Fr({},i),Object.keys(o).forEach((e=>{r[n][e]=$s(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const Ws="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function Bs(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var Vs=Object.freeze({__proto__:null,default:Bs});function Us(e){if(e.type)return e;if("#"===e.charAt(0))return Us(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(jr(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(jr(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Gs(e,t){return e=Us(e),t=function(e,t=0,r=1){return Bs(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 Ys(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function Ks(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function Xs(e){return e&&e.ownerDocument||document}function Js(e){return Xs(e).defaultView||window}function Zs(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Qs=0;const el=y["useId".toString()];function tl(e){if(void 0!==el){return el()}return function(e){const[t,r]=y.useState(e),n=t;return y.useEffect((()=>{null==t&&(Qs+=1,r(`mui-${Qs}`))}),[t]),n}(e)}function rl({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=y.useRef(void 0!==e),[i,a]=y.useState(t);return[o?e:i,y.useCallback((e=>{o||a(e)}),[])]}function nl(e){const t=y.useRef(e);return Ws((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function ol(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Zs(e,t)}))}),e)}const il={};const al=[];class sl{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new sl}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function ll(){const e=function(e,t){const r=y.useRef(il);return r.current===il&&(r.current=e(t)),r}(sl.create).current;return function(e){y.useEffect(e,al)}(e.disposeEffect),e}let ul=!0,cl=!1;const dl=new sl,pl={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 fl(e){e.metaKey||e.altKey||e.ctrlKey||(ul=!0)}function hl(){ul=!1}function ml(){"hidden"===this.visibilityState&&cl&&(ul=!0)}function gl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return ul||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!pl[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function bl(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",fl,!0),t.addEventListener("mousedown",hl,!0),t.addEventListener("pointerdown",hl,!0),t.addEventListener("touchstart",hl,!0),t.addEventListener("visibilitychange",ml,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!gl(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(cl=!0,dl.start(100,(()=>{cl=!1})),t.current=!1,!0)},ref:e}}function vl(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function yl(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 xl(e){return"string"==typeof e}function Sl(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 wl(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 Cl=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function El(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Hr(e,Cl),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=hs(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=Fr({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=Fr({},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=Sl(Fr({},o,n)),s=wl(n),l=wl(o),u=t(a),c=hs(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=Fr({},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=Fr({},u,r,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Fr({},a,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||xl(e)?t:Fr({},t,{ownerState:Fr({},t.ownerState,r)})}(r,Fr({},l,{ref:ol(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function Rl(e){var t;return parseInt(y.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Pl=y.createContext(null);function Al(){return y.useContext(Pl)}var Il="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Ml(e){const{children:t,theme:r}=e,n=Al(),o=y.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return Fr({},e,t)}(n,r);return null!=e&&(e[Il]=null!==n),e}),[r,n]);return rr.jsx(Pl.Provider,{value:o,children:t})}const kl=["value"],Dl=y.createContext();function Tl(e){let{value:t}=e,r=Hr(e,kl);return rr.jsx(Dl.Provider,Fr({value:null==t||t},r))}const Ol=y.createContext(void 0);function Ll({value:e,children:t}){return rr.jsx(Ol.Provider,{value:e,children:t})}function ql({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?$s(o.defaultProps,n):o.styleOverrides||o.variants?n:$s(o,n)}({props:e,name:t,theme:{components:y.useContext(Ol)}})}const Nl={};function jl(e,t,r,n=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?Fr({},t,{[e]:i}):i;return n?()=>a:a}return Fr({},t,e?{[e]:r}:r)}),[e,t,r,n])}function _l(e){const{children:t,theme:r,themeId:n}=e,o=ns(Nl),i=Al()||Nl,a=jl(n,o,r),s=jl(n,i,r,!0),l="rtl"===a.direction,u=function(e){const t=ns(),r=tl()||"",{modularCssLayers:n}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=n&&null===t?"string"==typeof n?n.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",Ws((()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var n;if(t&&null!=(n=t.hasAttribute)&&n.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===r)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",r),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${r}"]`))||i.remove()}}),[o,r]),o?rr.jsx(ss,{styles:o}):null}(a);return rr.jsx(Ml,{theme:s,children:rr.jsx(Pi.Provider,{value:a,children:rr.jsx(Tl,{value:l,children:rr.jsxs(Ll,{value:null==a?void 0:a.components,children:[u,t]})})})})}function zl(e){return zl="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},zl(e)}function Fl(e){var t=function(e,t){if("object"!=zl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=zl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==zl(t)?t:t+""}function Hl(e,t){return Fr({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var $l,Wl={},Bl={exports:{}};($l=Bl).exports=function(e){return e&&e.__esModule?e:{default:e}},$l.exports.__esModule=!0,$l.exports.default=$l.exports;var Vl=Bl.exports,Ul=Ut(_r),Gl=Ut(Vs),Yl=Vl;Object.defineProperty(Wl,"__esModule",{value:!0});var Kl=Wl.alpha=lu;Wl.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=nu(e),a=nu(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return iu({type:"rgb",values:s})},Wl.colorChannel=void 0;var Xl=Wl.darken=uu;Wl.decomposeColor=nu,Wl.emphasize=du;var Jl=Wl.getContrastRatio=function(e,t){const r=su(e),n=su(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};Wl.getLuminance=su,Wl.hexToRgb=ru,Wl.hslToRgb=au;var Zl=Wl.lighten=cu;Wl.private_safeAlpha=function(e,t,r){try{return lu(e,t)}catch(t){return e}},Wl.private_safeColorChannel=void 0,Wl.private_safeDarken=function(e,t,r){try{return uu(e,t)}catch(t){return e}},Wl.private_safeEmphasize=function(e,t,r){try{return du(e,t)}catch(t){return e}},Wl.private_safeLighten=function(e,t,r){try{return cu(e,t)}catch(t){return e}},Wl.recomposeColor=iu,Wl.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=nu(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 Ql=Yl(Ul),eu=Yl(Gl);function tu(e,t=0,r=1){return(0,eu.default)(e,t,r)}function ru(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 nu(e){if(e.type)return e;if("#"===e.charAt(0))return nu(ru(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,Ql.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,Ql.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const ou=e=>{const t=nu(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};Wl.colorChannel=ou;function iu(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 au(e){e=nu(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])),iu({type:s,values:l})}function su(e){let t="hsl"===(e=nu(e)).type||"hsla"===e.type?nu(au(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 lu(e,t){return e=nu(e),t=tu(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,iu(e)}function uu(e,t){if(e=nu(e),t=tu(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 iu(e)}function cu(e,t){if(e=nu(e),t=tu(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 iu(e)}function du(e,t=.15){return su(e)>.5?uu(e,t):cu(e,t)}Wl.private_safeColorChannel=(e,t)=>{try{return ou(e)}catch(t){return e}};const pu=["mode","contrastThreshold","tonalOffset"],fu={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:nr.white,default:nr.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}},hu={text:{primary:nr.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:nr.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 mu(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=Zl(e.main,o):"dark"===t&&(e.dark=Xl(e.main,i)))}function gu(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Hr(e,pu),i=e.primary||function(e="light"){return"dark"===e?{main:gr,light:mr,dark:br}:{main:vr,light:br,dark:yr}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:cr,light:ur,dark:pr}:{main:fr,light:dr,dark:hr}}(t),s=e.error||function(e="light"){return"dark"===e?{main:ar,light:or,dark:sr}:{main:sr,light:ir,dark:lr}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Sr,light:xr,dark:Cr}:{main:Cr,light:wr,dark:Er}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Pr,light:Rr,dark:Ir}:{main:Mr,light:Ar,dark:kr}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Tr,light:Dr,dark:Lr}:{main:"#ed6c02",light:Or,dark:qr}}(t);function d(e){return Jl(e,hu.text.primary)>=r?hu.text.primary:fu.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Fr({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(jr(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(jr(12,t?` (${t})`:"",JSON.stringify(e.main)));return mu(e,"light",o,n),mu(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:hu,light:fu};return Ki(Fr({common:Fr({},nr),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:Nr,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const bu=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const vu={textTransform:"uppercase"},yu='"Roboto", "Helvetica", "Arial", sans-serif';function xu(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=yu,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Hr(r,bu),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return Fr({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===yu?{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,vu),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,vu),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ki(Fr({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function Su(...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 wu=["none",Su(0,2,1,-1,0,1,1,0,0,1,3,0),Su(0,3,1,-2,0,2,2,0,0,1,5,0),Su(0,3,3,-2,0,3,4,0,0,1,8,0),Su(0,2,4,-1,0,4,5,0,0,1,10,0),Su(0,3,5,-1,0,5,8,0,0,1,14,0),Su(0,3,5,-1,0,6,10,0,0,1,18,0),Su(0,4,5,-2,0,7,10,1,0,2,16,1),Su(0,5,5,-3,0,8,10,1,0,3,14,2),Su(0,5,6,-3,0,9,12,1,0,3,16,2),Su(0,6,6,-3,0,10,14,1,0,4,18,3),Su(0,6,7,-4,0,11,15,1,0,4,20,3),Su(0,7,8,-4,0,12,17,2,0,5,22,4),Su(0,7,8,-4,0,13,19,2,0,5,24,4),Su(0,7,9,-4,0,14,21,2,0,5,26,4),Su(0,8,9,-5,0,15,22,2,0,6,28,5),Su(0,8,10,-5,0,16,24,2,0,6,30,5),Su(0,8,11,-5,0,17,26,2,0,6,32,5),Su(0,9,11,-5,0,18,28,2,0,7,34,6),Su(0,9,12,-6,0,19,29,2,0,7,36,6),Su(0,10,13,-6,0,20,31,3,0,8,38,7),Su(0,10,13,-6,0,21,33,3,0,8,40,7),Su(0,10,14,-6,0,22,35,3,0,8,42,7),Su(0,11,14,-7,0,23,36,3,0,9,44,8),Su(0,11,15,-7,0,24,38,3,0,9,46,8)],Cu=["duration","easing","delay"],Eu={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)"},Ru={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Pu(e){return`${Math.round(e)}ms`}function Au(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Iu(e){const t=Fr({},Eu,e.easing),r=Fr({},Ru,e.duration);return Fr({getAutoHeightDuration:Au,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Hr(n,Cu),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Pu(o)} ${i} ${"string"==typeof a?a:Pu(a)}`)).join(",")}},e,{easing:t,duration:r})}const Mu={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},ku=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Du(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Hr(e,ku);if(e.vars&&void 0===e.generateCssVars)throw new Error(jr(18));const s=gu(n),l=ts(e);let u=Ki(l,{mixins:Hl(l.breakpoints,r),palette:s,shadows:wu.slice(),typography:xu(s,i),transitions:Iu(o),zIndex:Fr({},Mu)});return u=Ki(u,a),u=t.reduce(((e,t)=>Ki(e,t)),u),u.unstable_sxConfig=Fr({},Xa,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Za({sx:e,theme:this})},u}const Tu=Du();function Ou(){const e=is(Tu);return e[zr]||e}var Lu,qu={},Nu={exports:{}};function ju(){return Lu||(Lu=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}(Nu)),Nu.exports}var _u,zu={exports:{}};function Fu(){return _u||(_u=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(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(zu)),zu.exports}var Hu=Ut(Ui),$u=Ut(Xi),Wu=Ut(aa),Bu=Ut(Hs),Vu=Ut(rs),Uu=Ut(cs),Gu=Vl;Object.defineProperty(qu,"__esModule",{value:!0});var Yu=qu.default=function(e={}){const{themeId:t,defaultTheme:r=sc,rootShouldForwardProp:n=ic,slotShouldForwardProp:o=ic}=e,i=e=>(0,ec.default)((0,Ku.default)({},e,{theme:uc((0,Ku.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Ju.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=cc(lc(l))}=a,p=(0,Xu.default)(a,nc),f=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let g=ic;"Root"===l||"root"===l?g=n:l?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const b=(0,Ju.default)(e,(0,Ku.default)({shouldForwardProp:g,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Zu.isPlainObject)(e)?n=>{const o=uc({theme:n.theme,defaultTheme:r,themeId:t});return dc(e,(0,Ku.default)({},n,{theme:o}),o.modularCssLayers?f:void 0)}:e,y=(n,...o)=>{let a=v(n);const l=o?o.map(v):[];s&&d&&l.push((e=>{const n=uc((0,Ku.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]=dc(r,(0,Ku.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)})),d(e,i)})),s&&!h&&l.push((e=>{var n;const o=uc((0,Ku.default)({},e,{defaultTheme:r,themeId:t}));return dc({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,Ku.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)})),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=b(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return b.withConfig&&(y.withConfig=b.withConfig),y}};qu.shouldForwardProp=ic,qu.systemDefaultTheme=void 0;var Ku=Gu(ju()),Xu=Gu(Fu()),Ju=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=oc(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}(Hu),Zu=$u;Gu(Wu),Gu(Bu);var Qu=Gu(Vu),ec=Gu(Uu);const tc=["ownerState"],rc=["variants"],nc=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function oc(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(oc=function(e){return e?r:t})(e)}function ic(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function ac(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const sc=qu.systemDefaultTheme=(0,Qu.default)(),lc=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function uc({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function cc(e){return e?(t,r)=>r[e]:null}function dc(e,t,r){let{ownerState:n}=t,o=(0,Xu.default)(t,tc);const i="function"==typeof e?e((0,Ku.default)({ownerState:n},o)):e;if(Array.isArray(i))return i.flatMap((e=>dc(e,(0,Ku.default)({ownerState:n},o),r)));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,Xu.default)(i,rc);return e.forEach((e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,Ku.default)({ownerState:n},o,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)})),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style((0,Ku.default)({ownerState:n},o,n)):e.style;t.push(r?ac((0,Ju.internal_serializeStyles)(i),r):i)}})),t}return r?ac((0,Ju.internal_serializeStyles)(i),r):i}function pc(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const fc=e=>pc(e)&&"classes"!==e,hc=Yu({themeId:zr,defaultTheme:Tu,rootShouldForwardProp:fc}),mc=["theme"];function gc(e){let{theme:t}=e,r=Hr(e,mc);const n=t[zr];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=Fr({},n,{vars:null}):t&&!t.vars&&(o=Fr({},t,{vars:null}))),rr.jsx(_l,Fr({},r,{themeId:n?zr:void 0,theme:o}))}const bc=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function vc(e){return ql(e)}function yc(e){return bs("MuiSvgIcon",e)}vs("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const xc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Sc=hc("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${ia(r.color)}`],t[`fontSize${ia(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]}})),wc=y.forwardRef((function(e,t){const r=vc({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=Hr(r,xc),f=y.isValidElement(n)&&"svg"===n.type,h=Fr({},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 yl({root:["root","inherit"!==t&&`color${ia(t)}`,`fontSize${ia(r)}`]},yc,n)})(h);return rr.jsxs(Sc,Fr({as:a,className:hs(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?rr.jsx("title",{children:c}):null]}))}));function Cc(e,t){return Cc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Cc(e,t)}function Ec(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Cc(e,t)}wc.muiName="SvgIcon";var Rc=!1,Pc=x.createContext(null),Ac="unmounted",Ic="exited",Mc="entering",kc="entered",Dc="exiting",Tc=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=Ic,n.appearStatus=Mc):o=kc:o=t.unmountOnExit||t.mountOnEnter?Ac:Ic,n.state={status:o},n.nextCallback=null,n}Ec(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ac?{status:Ic}: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!==Mc&&r!==kc&&(t=Mc):r!==Mc&&r!==kc||(t=Dc)}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===Mc){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:$.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ic&&this.setState({status:Ac})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[$.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||Rc?this.safeSetState({status:kc},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Mc},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:kc},(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:$.findDOMNode(this);t&&!Rc?(this.props.onExit(n),this.safeSetState({status:Dc},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Ic},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Ic},(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:$.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Ac)return null;var t=this.props,r=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var n=Hr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(Pc.Provider,{value:null},"function"==typeof r?r(e,n):x.cloneElement(x.Children.only(r),n))},t}(x.Component);function Oc(){}function Lc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qc(e,t){var r=Object.create(null);return e&&E.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&w(e)?t(e):e}(e)})),r}function Nc(e,t,r){return null!=r[t]?r[t]:e.props[t]}function jc(e,t,r){var n=qc(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(w(a)){var s=i in t,l=i in n,u=t[i],c=w(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&w(u)&&(o[i]=C(a,{onExited:r.bind(null,a),in:u.props.in,exit:Nc(a,"exit",e),enter:Nc(a,"enter",e)})):o[i]=C(a,{in:!1}):o[i]=C(a,{onExited:r.bind(null,a),in:!0,exit:Nc(a,"exit",e),enter:Nc(a,"enter",e)})}})),o}Tc.contextType=Pc,Tc.propTypes={},Tc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Oc,onEntering:Oc,onEntered:Oc,onExit:Oc,onExiting:Oc,onExited:Oc},Tc.UNMOUNTED=Ac,Tc.EXITED=Ic,Tc.ENTERING=Mc,Tc.ENTERED=kc,Tc.EXITING=Dc;var _c=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},zc=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(Lc(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}Ec(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,qc(r.children,(function(e){return C(e,{onExited:n.bind(null,e),in:!0,appear:Nc(e,"appear",r),enter:Nc(e,"enter",r),exit:Nc(e,"exit",r)})}))):jc(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=qc(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=Fr({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=Hr(e,["component","childFactory"]),o=this.state.contextValue,i=_c(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?x.createElement(Pc.Provider,{value:o},i):x.createElement(Pc.Provider,{value:o},x.createElement(t,n,i))},t}(x.Component);zc.propTypes={},zc.defaultProps={component:"div",childFactory:function(e){return e}};const Fc=e=>e.scrollTop;function Hc(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 $c(e){return bs("MuiPaper",e)}vs("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 Wc=["className","component","elevation","square","variant"],Bc=hc("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 Fr({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&&Fr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Kl("#fff",bc(t.elevation))}, ${Kl("#fff",bc(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),Vc=y.forwardRef((function(e,t){const r=vc({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=Hr(r,Wc),u=Fr({},r,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return yl({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},$c,o)})(u);return rr.jsx(Bc,Fr({as:o,ownerState:u,className:hs(c.root,n),ref:t},l))}));const Uc=vs("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Gc=["center","classes","className"];let Yc,Kc,Xc,Jc,Zc=e=>e;const Qc=Ni(Yc||(Yc=Zc`
|
|
17
|
+
function Hi(e,t){let r;return r=t?Ti(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Ti(e),r}function $i(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function Wi(e){return e}Fi.propTypes={defaultTheme:_i.object,styles:_i.oneOfType([_i.array,_i.string,_i.object,_i.func])};var Bi=Object.freeze({__proto__:null,GlobalStyles:Fi,StyledEngineProvider:zi,ThemeContext:Ei,css:Mi,default:Hi,internal_mutateStyles:$i,internal_processStyles:function(e,t){return $i(e,t)},internal_serializeStyles:Wi,keyframes:Li});function Vi(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Ui(e){if(y.isValidElement(e)||!Vi(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Ui(e[r])})),t}function Gi(e,t,r={clone:!0}){const n=r.clone?Fr({},e):e;return Vi(e)&&Vi(t)&&Object.keys(t).forEach((o=>{y.isValidElement(t[o])?n[o]=t[o]:Vi(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Vi(e[o])?n[o]=Gi(e[o],t[o],r):r.clone?n[o]=Vi(t[o])?Ui(t[o]):t[o]:n[o]=t[o]})),n}var Yi=Object.freeze({__proto__:null,default:Gi,isPlainObject:Vi});const Ki=["values","unit","step"];function Xi(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Hr(e,Ki),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)=>Fr({},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 Fr({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 Ji={borderRadius:4};function Zi(e,t){return t?Gi(e,t,{clone:!1}):e}const Qi={xs:0,sm:600,md:900,lg:1200,xl:1536},ea={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Qi[e]}px)`};function ta(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||ea;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||ea;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Qi).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function ra(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function na(e){if("string"!=typeof e)throw new Error(jr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var oa=Object.freeze({__proto__:null,default:na});function ia(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 aa(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:ia(e,r)||n,t&&(o=t(o,n,e)),o}function sa(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=ia(e.theme,n)||{};return ta(e,i,(e=>{let n=aa(a,o,e);return e===n&&"string"==typeof e&&(n=aa(a,o,`${t}${"default"===e?"":na(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const la={m:"margin",p:"padding"},ua={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ca={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},da=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!ca[e])return[e];e=ca[e]}const[t,r]=e.split(""),n=la[t],o=ua[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),pa=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],fa=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function ha(e,t,r,n){var o;const i=null!=(o=ia(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 ma(e){return ha(e,"spacing",8)}function ga(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 ba(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=ga(t,r),e)),{})}(da(r),n);return ta(e,e[r],o)}function va(e,t){const r=ma(e.theme);return Object.keys(e).map((n=>ba(e,t,n,r))).reduce(Zi,{})}function ya(e){return va(e,pa)}function xa(e){return va(e,fa)}function Sa(...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]?Zi(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function wa(e){return"number"!=typeof e?e:`${e}px solid`}function Ca(e,t){return sa({prop:e,themeKey:"borders",transform:t})}ya.propTypes={},ya.filterProps=pa,xa.propTypes={},xa.filterProps=fa;const Ea=Ca("border",wa),Ra=Ca("borderTop",wa),Pa=Ca("borderRight",wa),Aa=Ca("borderBottom",wa),Ia=Ca("borderLeft",wa),Ma=Ca("borderColor"),ka=Ca("borderTopColor"),Da=Ca("borderRightColor"),Ta=Ca("borderBottomColor"),Oa=Ca("borderLeftColor"),La=Ca("outline",wa),qa=Ca("outlineColor"),Na=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=ha(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:ga(t,e)});return ta(e,e.borderRadius,r)}return null};Na.propTypes={},Na.filterProps=["borderRadius"],Sa(Ea,Ra,Pa,Aa,Ia,Ma,ka,Da,Ta,Oa,Na,La,qa);const ja=e=>{if(void 0!==e.gap&&null!==e.gap){const t=ha(e.theme,"spacing",8),r=e=>({gap:ga(t,e)});return ta(e,e.gap,r)}return null};ja.propTypes={},ja.filterProps=["gap"];const _a=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=ha(e.theme,"spacing",8),r=e=>({columnGap:ga(t,e)});return ta(e,e.columnGap,r)}return null};_a.propTypes={},_a.filterProps=["columnGap"];const za=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=ha(e.theme,"spacing",8),r=e=>({rowGap:ga(t,e)});return ta(e,e.rowGap,r)}return null};za.propTypes={},za.filterProps=["rowGap"];function Fa(e,t){return"grey"===t?t:e}Sa(ja,_a,za,sa({prop:"gridColumn"}),sa({prop:"gridRow"}),sa({prop:"gridAutoFlow"}),sa({prop:"gridAutoColumns"}),sa({prop:"gridAutoRows"}),sa({prop:"gridTemplateColumns"}),sa({prop:"gridTemplateRows"}),sa({prop:"gridTemplateAreas"}),sa({prop:"gridArea"}));function Ha(e){return e<=1&&0!==e?100*e+"%":e}Sa(sa({prop:"color",themeKey:"palette",transform:Fa}),sa({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Fa}),sa({prop:"backgroundColor",themeKey:"palette",transform:Fa}));const $a=sa({prop:"width",transform:Ha}),Wa=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])||Qi[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:Ha(t)}};return ta(e,e.maxWidth,t)}return null};Wa.filterProps=["maxWidth"];const Ba=sa({prop:"minWidth",transform:Ha}),Va=sa({prop:"height",transform:Ha}),Ua=sa({prop:"maxHeight",transform:Ha}),Ga=sa({prop:"minHeight",transform:Ha});sa({prop:"size",cssProperty:"width",transform:Ha}),sa({prop:"size",cssProperty:"height",transform:Ha});Sa($a,Wa,Ba,Va,Ua,Ga,sa({prop:"boxSizing"}));const Ya={border:{themeKey:"borders",transform:wa},borderTop:{themeKey:"borders",transform:wa},borderRight:{themeKey:"borders",transform:wa},borderBottom:{themeKey:"borders",transform:wa},borderLeft:{themeKey:"borders",transform:wa},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:wa},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Na},color:{themeKey:"palette",transform:Fa},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Fa},backgroundColor:{themeKey:"palette",transform:Fa},p:{style:xa},pt:{style:xa},pr:{style:xa},pb:{style:xa},pl:{style:xa},px:{style:xa},py:{style:xa},padding:{style:xa},paddingTop:{style:xa},paddingRight:{style:xa},paddingBottom:{style:xa},paddingLeft:{style:xa},paddingX:{style:xa},paddingY:{style:xa},paddingInline:{style:xa},paddingInlineStart:{style:xa},paddingInlineEnd:{style:xa},paddingBlock:{style:xa},paddingBlockStart:{style:xa},paddingBlockEnd:{style:xa},m:{style:ya},mt:{style:ya},mr:{style:ya},mb:{style:ya},ml:{style:ya},mx:{style:ya},my:{style:ya},margin:{style:ya},marginTop:{style:ya},marginRight:{style:ya},marginBottom:{style:ya},marginLeft:{style:ya},marginX:{style:ya},marginY:{style:ya},marginInline:{style:ya},marginInlineStart:{style:ya},marginInlineEnd:{style:ya},marginBlock:{style:ya},marginBlockStart:{style:ya},marginBlockEnd:{style:ya},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:ja},rowGap:{style:za},columnGap:{style:_a},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ha},maxWidth:{style:Wa},minWidth:{transform:Ha},height:{transform:Ha},maxHeight:{transform:Ha},minHeight:{transform:Ha},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Ka(){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=ia(r,s)||{};if(u)return u(o);return ta(o,t,(t=>{let r=aa(c,l,t);return t===r&&"string"==typeof t&&(r=aa(c,l,`${e}${"default"===t?"":na(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={},nested:a}=r||{};if(!o)return null;const s=null!=(n=i.unstable_sxConfig)?n:Ya;function l(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),l=Object.keys(o);let u=o;return Object.keys(n).forEach((r=>{const o=(a=n[r],l=i,"function"==typeof a?a(l):a);var a,l;if(null!=o)if("object"==typeof o)if(s[r])u=Zi(u,e(r,o,i,s));else{const e=ta({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)?u=Zi(u,e):u[r]=t({sx:o,theme:i,nested:!0})}else u=Zi(u,e(r,o,i,s))})),!a&&i.modularCssLayers?{"@layer sx":ra(l,u)}:ra(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const Xa=Ka();function Ja(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:{}}Xa.filterProps=["sx"];const Za=["breakpoints","palette","spacing","shape"];function Qa(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Hr(e,Za),s=Xi(r),l=function(e=8){if(e.mui)return e;const t=ma({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=Gi({breakpoints:s,direction:"ltr",components:{},palette:Fr({mode:"light"},n),spacing:l,shape:Fr({},Ji,i)},a);return u.applyStyles=Ja,u=t.reduce(((e,t)=>Gi(e,t)),u),u.unstable_sxConfig=Fr({},Ya,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Xa({sx:e,theme:this})},u}var es=Object.freeze({__proto__:null,default:Qa,private_createBreakpoints:Xi,unstable_applyStyles:Ja});function ts(e=null){const t=y.useContext(Ei);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const rs=Qa();function ns(e=rs){return ts(e)}function os(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function is({styles:e,themeId:t,defaultTheme:r={}}){const n=ns(r),o=t&&n[t]||n;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map((e=>os("function"==typeof e?e(o):e))):os(i)),rr.jsx(Fi,{styles:i})}const as=["sx"];function ss(e){const{sx:t}=e,r=Hr(e,as),{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:Ya;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 Vi(r)?Fr({},n,r):n}:Fr({},n,t),Fr({},o,{sx:i})}var ls=Object.freeze({__proto__:null,default:Xa,extendSxProp:ss,unstable_createStyleFunctionSx:Ka,unstable_defaultSxConfig:Ya});const us=e=>e,cs=(()=>{let e=us;return{configure(t){e=t},generate:t=>e(t),reset(){e=us}}})();function ds(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=ds(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ps(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=ds(e))&&(n&&(n+=" "),n+=t);return n}const fs=["className","component"];const hs={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 ms(e,t,r="Mui"){const n=hs[t];return n?`${r}-${n}`:`${cs.generate(e)}-${t}`}function gs(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=ms(e,t,r)})),n}var bs={exports:{}},vs={},ys=Symbol.for("react.transitional.element"),xs=Symbol.for("react.portal"),Ss=Symbol.for("react.fragment"),ws=Symbol.for("react.strict_mode"),Cs=Symbol.for("react.profiler"),Es=Symbol.for("react.consumer"),Rs=Symbol.for("react.context"),Ps=Symbol.for("react.forward_ref"),As=Symbol.for("react.suspense"),Is=Symbol.for("react.suspense_list"),Ms=Symbol.for("react.memo"),ks=Symbol.for("react.lazy"),Ds=Symbol.for("react.offscreen"),Ts=Symbol.for("react.client.reference");function Os(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ys:switch(e=e.type){case Ss:case Cs:case ws:case As:case Is:return e;default:switch(e=e&&e.$$typeof){case Rs:case Ps:case ks:case Ms:case Es:return e;default:return t}}case xs:return t}}}vs.ContextConsumer=Es,vs.ContextProvider=Rs,vs.Element=ys,vs.ForwardRef=Ps,vs.Fragment=Ss,vs.Lazy=ks,vs.Memo=Ms,vs.Portal=xs,vs.Profiler=Cs,vs.StrictMode=ws,vs.Suspense=As,vs.SuspenseList=Is,vs.isContextConsumer=function(e){return Os(e)===Es},vs.isContextProvider=function(e){return Os(e)===Rs},vs.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ys},vs.isForwardRef=function(e){return Os(e)===Ps},vs.isFragment=function(e){return Os(e)===Ss},vs.isLazy=function(e){return Os(e)===ks},vs.isMemo=function(e){return Os(e)===Ms},vs.isPortal=function(e){return Os(e)===xs},vs.isProfiler=function(e){return Os(e)===Cs},vs.isStrictMode=function(e){return Os(e)===ws},vs.isSuspense=function(e){return Os(e)===As},vs.isSuspenseList=function(e){return Os(e)===Is},vs.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ss||e===Cs||e===ws||e===As||e===Is||e===Ds||"object"==typeof e&&null!==e&&(e.$$typeof===ks||e.$$typeof===Ms||e.$$typeof===Rs||e.$$typeof===Es||e.$$typeof===Ps||e.$$typeof===Ts||void 0!==e.getModuleId)},vs.typeOf=Os,bs.exports=vs;var Ls=bs.exports;const qs=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ns(e){const t=`${e}`.match(qs);return t&&t[1]||""}function js(e,t=""){return e.displayName||e.name||Ns(e)||t}function _s(e,t,r){const n=js(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var zs=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return js(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Ls.ForwardRef:return _s(e,e.render,"ForwardRef");case Ls.Memo:return _s(e,e.type,"memo");default:return}}},getFunctionName:Ns});function Fs(e,t){const r=Fr({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=Fr({},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]=Fr({},i),Object.keys(o).forEach((e=>{r[n][e]=Fs(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const Hs="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function $s(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var Ws=Object.freeze({__proto__:null,default:$s});function Bs(e){if(e.type)return e;if("#"===e.charAt(0))return Bs(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(jr(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(jr(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Vs(e,t){return e=Bs(e),t=function(e,t=0,r=1){return $s(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 Us(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function Gs(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function Ys(e){return e&&e.ownerDocument||document}function Ks(e){return Ys(e).defaultView||window}function Xs(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Js=0;const Zs=y["useId".toString()];function Qs(e){if(void 0!==Zs){return Zs()}return function(e){const[t,r]=y.useState(e),n=t;return y.useEffect((()=>{null==t&&(Js+=1,r(`mui-${Js}`))}),[t]),n}(e)}function el({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=y.useRef(void 0!==e),[i,a]=y.useState(t);return[o?e:i,y.useCallback((e=>{o||a(e)}),[])]}function tl(e){const t=y.useRef(e);return Hs((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function rl(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Xs(e,t)}))}),e)}const nl={};const ol=[];class il{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new il}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function al(){const e=function(e,t){const r=y.useRef(nl);return r.current===nl&&(r.current=e(t)),r}(il.create).current;return function(e){y.useEffect(e,ol)}(e.disposeEffect),e}let sl=!0,ll=!1;const ul=new il,cl={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 dl(e){e.metaKey||e.altKey||e.ctrlKey||(sl=!0)}function pl(){sl=!1}function fl(){"hidden"===this.visibilityState&&ll&&(sl=!0)}function hl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return sl||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!cl[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function ml(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",dl,!0),t.addEventListener("mousedown",pl,!0),t.addEventListener("pointerdown",pl,!0),t.addEventListener("touchstart",pl,!0),t.addEventListener("visibilitychange",fl,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!hl(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(ll=!0,ul.start(100,(()=>{ll=!1})),t.current=!1,!0)},ref:e}}function gl(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function bl(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 vl(e){return"string"==typeof e}function yl(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 xl(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 Sl=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function wl(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Hr(e,Sl),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=ps(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=Fr({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=Fr({},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=yl(Fr({},o,n)),s=xl(n),l=xl(o),u=t(a),c=ps(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=Fr({},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=Fr({},u,r,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Fr({},a,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||vl(e)?t:Fr({},t,{ownerState:Fr({},t.ownerState,r)})}(r,Fr({},l,{ref:rl(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function Cl(e){var t;return parseInt(y.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const El=y.createContext(null);function Rl(){return y.useContext(El)}var Pl="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Al(e){const{children:t,theme:r}=e,n=Rl(),o=y.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return Fr({},e,t)}(n,r);return null!=e&&(e[Pl]=null!==n),e}),[r,n]);return rr.jsx(El.Provider,{value:o,children:t})}const Il=["value"],Ml=y.createContext();function kl(e){let{value:t}=e,r=Hr(e,Il);return rr.jsx(Ml.Provider,Fr({value:null==t||t},r))}const Dl=y.createContext(void 0);function Tl({value:e,children:t}){return rr.jsx(Dl.Provider,{value:e,children:t})}function Ol({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?Fs(o.defaultProps,n):o.styleOverrides||o.variants?n:Fs(o,n)}({props:e,name:t,theme:{components:y.useContext(Dl)}})}const Ll={};function ql(e,t,r,n=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?Fr({},t,{[e]:i}):i;return n?()=>a:a}return Fr({},t,e?{[e]:r}:r)}),[e,t,r,n])}function Nl(e){const{children:t,theme:r,themeId:n}=e,o=ts(Ll),i=Rl()||Ll,a=ql(n,o,r),s=ql(n,i,r,!0),l="rtl"===a.direction,u=function(e){const t=ts(),r=Qs()||"",{modularCssLayers:n}=e;let o="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return o=n&&null===t?"string"==typeof n?n.replace(/mui(?!\.)/g,o):`@layer ${o};`:"",Hs((()=>{const e=document.querySelector("head");if(!e)return;const t=e.firstChild;if(o){var n;if(t&&null!=(n=t.hasAttribute)&&n.call(t,"data-mui-layer-order")&&t.getAttribute("data-mui-layer-order")===r)return;const i=document.createElement("style");i.setAttribute("data-mui-layer-order",r),i.textContent=o,e.prepend(i)}else{var i;null==(i=e.querySelector(`style[data-mui-layer-order="${r}"]`))||i.remove()}}),[o,r]),o?rr.jsx(is,{styles:o}):null}(a);return rr.jsx(Al,{theme:s,children:rr.jsx(Ei.Provider,{value:a,children:rr.jsx(kl,{value:l,children:rr.jsxs(Tl,{value:null==a?void 0:a.components,children:[u,t]})})})})}function jl(e){return jl="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},jl(e)}function _l(e){var t=function(e,t){if("object"!=jl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=jl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==jl(t)?t:t+""}function zl(e,t){return Fr({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Fl,Hl={},$l={exports:{}};(Fl=$l).exports=function(e){return e&&e.__esModule?e:{default:e}},Fl.exports.__esModule=!0,Fl.exports.default=Fl.exports;var Wl=$l.exports,Bl=Ut(_r),Vl=Ut(Ws),Ul=Wl;Object.defineProperty(Hl,"__esModule",{value:!0});var Gl=Hl.alpha=au;Hl.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=tu(e),a=tu(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return nu({type:"rgb",values:s})},Hl.colorChannel=void 0;var Yl=Hl.darken=su;Hl.decomposeColor=tu,Hl.emphasize=uu;var Kl=Hl.getContrastRatio=function(e,t){const r=iu(e),n=iu(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};Hl.getLuminance=iu,Hl.hexToRgb=eu,Hl.hslToRgb=ou;var Xl=Hl.lighten=lu;Hl.private_safeAlpha=function(e,t,r){try{return au(e,t)}catch(t){return e}},Hl.private_safeColorChannel=void 0,Hl.private_safeDarken=function(e,t,r){try{return su(e,t)}catch(t){return e}},Hl.private_safeEmphasize=function(e,t,r){try{return uu(e,t)}catch(t){return e}},Hl.private_safeLighten=function(e,t,r){try{return lu(e,t)}catch(t){return e}},Hl.recomposeColor=nu,Hl.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=tu(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 Jl=Ul(Bl),Zl=Ul(Vl);function Ql(e,t=0,r=1){return(0,Zl.default)(e,t,r)}function eu(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 tu(e){if(e.type)return e;if("#"===e.charAt(0))return tu(eu(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,Jl.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,Jl.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const ru=e=>{const t=tu(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};Hl.colorChannel=ru;function nu(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 ou(e){e=tu(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])),nu({type:s,values:l})}function iu(e){let t="hsl"===(e=tu(e)).type||"hsla"===e.type?tu(ou(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 au(e,t){return e=tu(e),t=Ql(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,nu(e)}function su(e,t){if(e=tu(e),t=Ql(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 nu(e)}function lu(e,t){if(e=tu(e),t=Ql(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 nu(e)}function uu(e,t=.15){return iu(e)>.5?su(e,t):lu(e,t)}Hl.private_safeColorChannel=(e,t)=>{try{return ru(e)}catch(t){return e}};const cu=["mode","contrastThreshold","tonalOffset"],du={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:nr.white,default:nr.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}},pu={text:{primary:nr.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:nr.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 fu(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=Xl(e.main,o):"dark"===t&&(e.dark=Yl(e.main,i)))}function hu(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Hr(e,cu),i=e.primary||function(e="light"){return"dark"===e?{main:gr,light:mr,dark:br}:{main:vr,light:br,dark:yr}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:cr,light:ur,dark:pr}:{main:fr,light:dr,dark:hr}}(t),s=e.error||function(e="light"){return"dark"===e?{main:ar,light:or,dark:sr}:{main:sr,light:ir,dark:lr}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Sr,light:xr,dark:Cr}:{main:Cr,light:wr,dark:Er}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Pr,light:Rr,dark:Ir}:{main:Mr,light:Ar,dark:kr}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Tr,light:Dr,dark:Lr}:{main:"#ed6c02",light:Or,dark:qr}}(t);function d(e){return Kl(e,pu.text.primary)>=r?pu.text.primary:du.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Fr({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(jr(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(jr(12,t?` (${t})`:"",JSON.stringify(e.main)));return fu(e,"light",o,n),fu(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:pu,light:du};return Gi(Fr({common:Fr({},nr),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:Nr,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const mu=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const gu={textTransform:"uppercase"},bu='"Roboto", "Helvetica", "Arial", sans-serif';function vu(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=bu,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Hr(r,mu),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return Fr({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===bu?{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,gu),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,gu),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Gi(Fr({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function yu(...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 xu=["none",yu(0,2,1,-1,0,1,1,0,0,1,3,0),yu(0,3,1,-2,0,2,2,0,0,1,5,0),yu(0,3,3,-2,0,3,4,0,0,1,8,0),yu(0,2,4,-1,0,4,5,0,0,1,10,0),yu(0,3,5,-1,0,5,8,0,0,1,14,0),yu(0,3,5,-1,0,6,10,0,0,1,18,0),yu(0,4,5,-2,0,7,10,1,0,2,16,1),yu(0,5,5,-3,0,8,10,1,0,3,14,2),yu(0,5,6,-3,0,9,12,1,0,3,16,2),yu(0,6,6,-3,0,10,14,1,0,4,18,3),yu(0,6,7,-4,0,11,15,1,0,4,20,3),yu(0,7,8,-4,0,12,17,2,0,5,22,4),yu(0,7,8,-4,0,13,19,2,0,5,24,4),yu(0,7,9,-4,0,14,21,2,0,5,26,4),yu(0,8,9,-5,0,15,22,2,0,6,28,5),yu(0,8,10,-5,0,16,24,2,0,6,30,5),yu(0,8,11,-5,0,17,26,2,0,6,32,5),yu(0,9,11,-5,0,18,28,2,0,7,34,6),yu(0,9,12,-6,0,19,29,2,0,7,36,6),yu(0,10,13,-6,0,20,31,3,0,8,38,7),yu(0,10,13,-6,0,21,33,3,0,8,40,7),yu(0,10,14,-6,0,22,35,3,0,8,42,7),yu(0,11,14,-7,0,23,36,3,0,9,44,8),yu(0,11,15,-7,0,24,38,3,0,9,46,8)],Su=["duration","easing","delay"],wu={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)"},Cu={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Eu(e){return`${Math.round(e)}ms`}function Ru(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Pu(e){const t=Fr({},wu,e.easing),r=Fr({},Cu,e.duration);return Fr({getAutoHeightDuration:Ru,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Hr(n,Su),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Eu(o)} ${i} ${"string"==typeof a?a:Eu(a)}`)).join(",")}},e,{easing:t,duration:r})}const Au={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Iu=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Mu(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Hr(e,Iu);if(e.vars&&void 0===e.generateCssVars)throw new Error(jr(18));const s=hu(n),l=Qa(e);let u=Gi(l,{mixins:zl(l.breakpoints,r),palette:s,shadows:xu.slice(),typography:vu(s,i),transitions:Pu(o),zIndex:Fr({},Au)});return u=Gi(u,a),u=t.reduce(((e,t)=>Gi(e,t)),u),u.unstable_sxConfig=Fr({},Ya,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Xa({sx:e,theme:this})},u}const ku=Mu();function Du(){const e=ns(ku);return e[zr]||e}var Tu,Ou={},Lu={exports:{}};function qu(){return Tu||(Tu=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}(Lu)),Lu.exports}var Nu,ju={exports:{}};function _u(){return Nu||(Nu=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(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(ju)),ju.exports}var zu=Ut(Bi),Fu=Ut(Yi),Hu=Ut(oa),$u=Ut(zs),Wu=Ut(es),Bu=Ut(ls),Vu=Wl;Object.defineProperty(Ou,"__esModule",{value:!0});var Uu=Ou.default=function(e={}){const{themeId:t,defaultTheme:r=ic,rootShouldForwardProp:n=nc,slotShouldForwardProp:o=nc}=e,i=e=>(0,Zu.default)((0,Gu.default)({},e,{theme:sc((0,Gu.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Ku.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=lc(ac(l))}=a,p=(0,Yu.default)(a,tc),f=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let g=nc;"Root"===l||"root"===l?g=n:l?g=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);const b=(0,Ku.default)(e,(0,Gu.default)({shouldForwardProp:g,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Xu.isPlainObject)(e)?n=>{const o=sc({theme:n.theme,defaultTheme:r,themeId:t});return uc(e,(0,Gu.default)({},n,{theme:o}),o.modularCssLayers?f:void 0)}:e,y=(n,...o)=>{let a=v(n);const l=o?o.map(v):[];s&&d&&l.push((e=>{const n=sc((0,Gu.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]=uc(r,(0,Gu.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)})),d(e,i)})),s&&!h&&l.push((e=>{var n;const o=sc((0,Gu.default)({},e,{defaultTheme:r,themeId:t}));return uc({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,Gu.default)({},e,{theme:o}),o.modularCssLayers?"theme":void 0)})),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=b(a,...l);return e.muiName&&(c.muiName=e.muiName),c};return b.withConfig&&(y.withConfig=b.withConfig),y}};Ou.shouldForwardProp=nc,Ou.systemDefaultTheme=void 0;var Gu=Vu(qu()),Yu=Vu(_u()),Ku=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=rc(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}(zu),Xu=Fu;Vu(Hu),Vu($u);var Ju=Vu(Wu),Zu=Vu(Bu);const Qu=["ownerState"],ec=["variants"],tc=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function rc(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(rc=function(e){return e?r:t})(e)}function nc(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function oc(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const ic=Ou.systemDefaultTheme=(0,Ju.default)(),ac=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function sc({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function lc(e){return e?(t,r)=>r[e]:null}function uc(e,t,r){let{ownerState:n}=t,o=(0,Yu.default)(t,Qu);const i="function"==typeof e?e((0,Gu.default)({ownerState:n},o)):e;if(Array.isArray(i))return i.flatMap((e=>uc(e,(0,Gu.default)({ownerState:n},o),r)));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,Yu.default)(i,ec);return e.forEach((e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,Gu.default)({ownerState:n},o,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&o[t]!==e.props[t]&&(i=!1)})),i){Array.isArray(t)||(t=[t]);const i="function"==typeof e.style?e.style((0,Gu.default)({ownerState:n},o,n)):e.style;t.push(r?oc((0,Ku.internal_serializeStyles)(i),r):i)}})),t}return r?oc((0,Ku.internal_serializeStyles)(i),r):i}function cc(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const dc=e=>cc(e)&&"classes"!==e,pc=Uu({themeId:zr,defaultTheme:ku,rootShouldForwardProp:dc}),fc=["theme"];function hc(e){let{theme:t}=e,r=Hr(e,fc);const n=t[zr];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=Fr({},n,{vars:null}):t&&!t.vars&&(o=Fr({},t,{vars:null}))),rr.jsx(Nl,Fr({},r,{themeId:n?zr:void 0,theme:o}))}const mc=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function gc(e){return Ol(e)}function bc(e){return ms("MuiSvgIcon",e)}gs("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const vc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],yc=pc("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${na(r.color)}`],t[`fontSize${na(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]}})),xc=y.forwardRef((function(e,t){const r=gc({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=Hr(r,vc),f=y.isValidElement(n)&&"svg"===n.type,h=Fr({},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 bl({root:["root","inherit"!==t&&`color${na(t)}`,`fontSize${na(r)}`]},bc,n)})(h);return rr.jsxs(yc,Fr({as:a,className:ps(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?rr.jsx("title",{children:c}):null]}))}));function Sc(e,t){return Sc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Sc(e,t)}function wc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Sc(e,t)}xc.muiName="SvgIcon";var Cc=!1,Ec=x.createContext(null),Rc="unmounted",Pc="exited",Ac="entering",Ic="entered",Mc="exiting",kc=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=Pc,n.appearStatus=Ac):o=Ic:o=t.unmountOnExit||t.mountOnEnter?Rc:Pc,n.state={status:o},n.nextCallback=null,n}wc(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Rc?{status:Pc}: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!==Ac&&r!==Ic&&(t=Ac):r!==Ac&&r!==Ic||(t=Mc)}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===Ac){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:$.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Pc&&this.setState({status:Rc})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[$.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||Cc?this.safeSetState({status:Ic},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Ac},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Ic},(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:$.findDOMNode(this);t&&!Cc?(this.props.onExit(n),this.safeSetState({status:Mc},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Pc},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Pc},(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:$.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===Rc)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=Hr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(Ec.Provider,{value:null},"function"==typeof r?r(e,n):x.cloneElement(x.Children.only(r),n))},t}(x.Component);function Dc(){}function Tc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oc(e,t){var r=Object.create(null);return e&&E.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&w(e)?t(e):e}(e)})),r}function Lc(e,t,r){return null!=r[t]?r[t]:e.props[t]}function qc(e,t,r){var n=Oc(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(w(a)){var s=i in t,l=i in n,u=t[i],c=w(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&w(u)&&(o[i]=C(a,{onExited:r.bind(null,a),in:u.props.in,exit:Lc(a,"exit",e),enter:Lc(a,"enter",e)})):o[i]=C(a,{in:!1}):o[i]=C(a,{onExited:r.bind(null,a),in:!0,exit:Lc(a,"exit",e),enter:Lc(a,"enter",e)})}})),o}kc.contextType=Ec,kc.propTypes={},kc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Dc,onEntering:Dc,onEntered:Dc,onExit:Dc,onExiting:Dc,onExited:Dc},kc.UNMOUNTED=Rc,kc.EXITED=Pc,kc.ENTERING=Ac,kc.ENTERED=Ic,kc.EXITING=Mc;var Nc=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},jc=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(Tc(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}wc(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,Oc(r.children,(function(e){return C(e,{onExited:n.bind(null,e),in:!0,appear:Lc(e,"appear",r),enter:Lc(e,"enter",r),exit:Lc(e,"exit",r)})}))):qc(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=Oc(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=Fr({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=Hr(e,["component","childFactory"]),o=this.state.contextValue,i=Nc(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?x.createElement(Ec.Provider,{value:o},i):x.createElement(Ec.Provider,{value:o},x.createElement(t,n,i))},t}(x.Component);jc.propTypes={},jc.defaultProps={component:"div",childFactory:function(e){return e}};const _c=e=>e.scrollTop;function zc(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 Fc(e){return ms("MuiPaper",e)}gs("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 Hc=["className","component","elevation","square","variant"],$c=pc("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 Fr({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&&Fr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Gl("#fff",mc(t.elevation))}, ${Gl("#fff",mc(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),Wc=y.forwardRef((function(e,t){const r=gc({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=Hr(r,Hc),u=Fr({},r,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return bl({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Fc,o)})(u);return rr.jsx($c,Fr({as:o,ownerState:u,className:ps(c.root,n),ref:t},l))}));const Bc=gs("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Vc=["center","classes","className"];let Uc,Gc,Yc,Kc,Xc=e=>e;const Jc=Li(Uc||(Uc=Xc`
|
|
18
18
|
0% {
|
|
19
19
|
transform: scale(0);
|
|
20
20
|
opacity: 0.1;
|
|
@@ -24,7 +24,7 @@ function Wi(e,t){let r;return r=t?Li(e).withConfig({displayName:t.label,shouldFo
|
|
|
24
24
|
transform: scale(1);
|
|
25
25
|
opacity: 0.3;
|
|
26
26
|
}
|
|
27
|
-
`)),
|
|
27
|
+
`)),Zc=Li(Gc||(Gc=Xc`
|
|
28
28
|
0% {
|
|
29
29
|
opacity: 1;
|
|
30
30
|
}
|
|
@@ -32,7 +32,7 @@ function Wi(e,t){let r;return r=t?Li(e).withConfig({displayName:t.label,shouldFo
|
|
|
32
32
|
100% {
|
|
33
33
|
opacity: 0;
|
|
34
34
|
}
|
|
35
|
-
`)),
|
|
35
|
+
`)),Qc=Li(Yc||(Yc=Xc`
|
|
36
36
|
0% {
|
|
37
37
|
transform: scale(1);
|
|
38
38
|
}
|
|
@@ -44,7 +44,7 @@ function Wi(e,t){let r;return r=t?Li(e).withConfig({displayName:t.label,shouldFo
|
|
|
44
44
|
100% {
|
|
45
45
|
transform: scale(1);
|
|
46
46
|
}
|
|
47
|
-
`)),
|
|
47
|
+
`)),ed=pc("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),td=pc((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]=y.useState(!1),p=ps(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=ps(r.child,c&&r.childLeaving,n&&r.childPulsate);return s||c||d(!0),y.useEffect((()=>{if(!s&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}}),[l,s,u]),rr.jsx("span",{className:p,style:f,children:rr.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Kc||(Kc=Xc`
|
|
48
48
|
opacity: 0;
|
|
49
49
|
position: absolute;
|
|
50
50
|
|
|
@@ -87,19 +87,19 @@ function Wi(e,t){let r;return r=t?Li(e).withConfig({displayName:t.label,shouldFo
|
|
|
87
87
|
animation-iteration-count: infinite;
|
|
88
88
|
animation-delay: 200ms;
|
|
89
89
|
}
|
|
90
|
-
`),Uc.rippleVisible,Qc,550,(({theme:e})=>e.transitions.easing.easeInOut),Uc.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Uc.child,Uc.childLeaving,ed,550,(({theme:e})=>e.transitions.easing.easeInOut),Uc.childPulsate,td,(({theme:e})=>e.transitions.easing.easeInOut)),od=y.forwardRef((function(e,t){const r=vc({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Hr(r,Gc),[s,l]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=y.useRef(!1),p=ll(),f=y.useRef(null),h=y.useRef(null),m=y.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l((e=>[...e,rr.jsx(nd,{classes:{ripple:hs(o.ripple,Uc.ripple),rippleVisible:hs(o.rippleVisible,Uc.rippleVisible),ripplePulsate:hs(o.ripplePulsate,Uc.ripplePulsate),child:hs(o.child,Uc.child),childLeaving:hs(o.childLeaving,Uc.childLeaving),childPulsate:hs(o.childPulsate,Uc.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.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=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.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 y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),rr.jsx(rd,Fr({className:hs(Uc.root,o.root,i),ref:h},a,{children:rr.jsx(zc,{component:null,exit:!0,children:s})}))}));function id(e){return bs("MuiButtonBase",e)}const ad=vs("MuiButtonBase",["root","disabled","focusVisible"]),sd=["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"],ld=hc("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"},[`&.${ad.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ud=y.forwardRef((function(e,t){const r=vc({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:x,onKeyUp:S,onMouseDown:w,onMouseLeave:C,onMouseUp:E,onTouchEnd:R,onTouchMove:P,onTouchStart:A,tabIndex:I=0,TouchRippleProps:M,touchRippleRef:k,type:D}=r,T=Hr(r,sd),O=y.useRef(null),L=y.useRef(null),q=ol(L,k),{isFocusVisibleRef:N,onFocus:j,onBlur:_,ref:z}=bl(),[F,H]=y.useState(!1);l&&F&&H(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),O.current.focus()}})),[]);const[$,W]=y.useState(!1);y.useEffect((()=>{W(!0)}),[]);const B=$&&!u&&!l;function V(e,t,r=c){return nl((n=>{t&&t(n);return!r&&L.current&&L.current[e](n),!0}))}y.useEffect((()=>{F&&d&&!u&&$&&L.current.pulsate()}),[u,d,F,$]);const U=V("start",w),G=V("stop",m),Y=V("stop",g),K=V("stop",E),X=V("stop",(e=>{F&&e.preventDefault(),C&&C(e)})),J=V("start",A),Z=V("stop",R),Q=V("stop",P),ee=V("stop",(e=>{_(e),!1===N.current&&H(!1),f&&f(e)}),!1),te=nl((e=>{O.current||(O.current=e.currentTarget),j(e),!0===N.current&&(H(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=O.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=y.useRef(!1),oe=nl((e=>{d&&!ne.current&&F&&L.current&&" "===e.key&&(ne.current=!0,L.current.stop(e,(()=>{L.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))})),ie=nl((e=>{d&&" "===e.key&&L.current&&F&&!e.defaultPrevented&&(ne.current=!1,L.current.stop(e,(()=>{L.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(T.href||T.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===D?"button":D,se.disabled=l):(T.href||T.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=ol(t,z,O),ue=Fr({},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=yl({root:["root",t&&"disabled",r&&"focusVisible"]},id,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return rr.jsxs(ld,Fr({as:ae,className:hs(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:I,type:D},se,T,{children:[i,B?rr.jsx(od,Fr({ref:q,center:o},M)):null]}))}));function cd(e){return bs("MuiIconButton",e)}const dd=vs("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),pd=["edge","children","className","color","disabled","disableFocusRipple","size"],fd=hc(ud,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${ia(r.color)}`],r.edge&&t[`edge${ia(r.edge)}`],t[`size${ia(r.size)}`]]}})((({theme:e,ownerState:t})=>Fr({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Kl(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var r;const n=null==(r=(e.vars||e).palette)?void 0:r[t.color];return Fr({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&Fr({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":Fr({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Kl(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${dd.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),hd=y.forwardRef((function(e,t){const r=vc({props:e,name:"MuiIconButton"}),{edge:n=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:u="medium"}=r,c=Hr(r,pd),d=Fr({},r,{edge:n,color:a,disabled:s,disableFocusRipple:l,size:u}),p=(e=>{const{classes:t,disabled:r,color:n,edge:o,size:i}=e;return yl({root:["root",r&&"disabled","default"!==n&&`color${ia(n)}`,o&&`edge${ia(o)}`,`size${ia(i)}`]},cd,t)})(d);return rr.jsx(fd,Fr({className:hs(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},c,{ownerState:d,children:o}))}));function md(e){return bs("MuiTypography",e)}vs("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const gd=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],bd=hc("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${ia(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Fr({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}))),vd={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},yd={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},xd=y.forwardRef((function(e,t){const r=vc({props:e,name:"MuiTypography"}),n=(e=>yd[e]||e)(r.color),o=us(Fr({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=vd}=o,f=Hr(o,gd),h=Fr({},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]||vd[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return yl({root:["root",i,"inherit"!==e.align&&`align${ia(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},md,a)})(h);return rr.jsx(bd,Fr({as:m,ref:t,ownerState:h,className:hs(g.root,a)},f))}));const Sd=y.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=y.useState(null),s=ol(y.isValidElement(r)?Rl(r):null,t);if(Ws((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),Ws((()=>{if(i&&!o)return Zs(t,i),()=>{Zs(t,null)}}),[t,i,o]),o){if(y.isValidElement(r)){const e={ref:s};return y.cloneElement(r,e)}return rr.jsx(y.Fragment,{children:r})}return rr.jsx(y.Fragment,{children:i?H.createPortal(r,i):i})})),wd=["onChange","maxRows","minRows","style","value"];function Cd(e){return parseInt(e,10)||0}const Ed={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Rd(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Pd=y.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=Hr(e,wd),{current:l}=y.useRef(null!=a),u=y.useRef(null),c=ol(t,u),d=y.useRef(null),p=y.useRef(null),f=y.useCallback((()=>{const t=u.current,r=p.current;if(!t||!r)return;const i=Js(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=Cd(i.paddingBottom)+Cd(i.paddingTop),l=Cd(i.borderBottomWidth)+Cd(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=nl((()=>{const e=u.current,t=f();if(!e||!t||Rd(t))return!1;const r=t.outerHeightStyle;return null!=d.current&&d.current!==r})),m=y.useCallback((()=>{const e=u.current,t=f();if(!e||!t||Rd(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=y.useRef(-1);Ws((()=>{const e=Ks(m),t=null==u?void 0:u.current;if(!t)return;const r=Js(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]),Ws((()=>{m()}));return rr.jsxs(y.Fragment,{children:[rr.jsx("textarea",Fr({value:a,onChange:e=>{l||m(),r&&r(e)},ref:c,rows:o,style:i},s)),rr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:Fr({},Ed,i,{paddingTop:0,paddingBottom:0})})]})}));function Ad({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 Id=y.createContext(void 0);function Md(){return y.useContext(Id)}function kd(e){return rr.jsx(ss,Fr({},e,{defaultTheme:Tu,themeId:zr}))}function Dd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Td(e,t=!1){return e&&(Dd(e.value)&&""!==e.value||t&&Dd(e.defaultValue)&&""!==e.defaultValue)}function Od(e){return bs("MuiInputBase",e)}const Ld=vs("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),qd=["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"],Nd=(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${ia(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},jd=(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]},_d=hc("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Nd})((({theme:e,ownerState:t})=>Fr({},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",[`&.${Ld.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Fr({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),zd=hc("input",{name:"MuiInputBase",slot:"Input",overridesResolver:jd})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=Fr({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 Fr({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] + .${Ld.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},[`&.${Ld.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"})})),Fd=rr.jsx(kd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Hd=y.forwardRef((function(e,t){var r;const n=vc({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:x,minRows:S,multiline:w=!1,name:C,onBlur:E,onChange:R,onClick:P,onFocus:A,onKeyDown:I,onKeyUp:M,placeholder:k,readOnly:D,renderSuffix:T,rows:O,slotProps:L={},slots:q={},startAdornment:N,type:j="text",value:_}=n,z=Hr(n,qd),F=null!=b.value?b.value:_,{current:H}=y.useRef(null!=F),$=y.useRef(),W=y.useCallback((e=>{}),[]),B=ol($,v,b.ref,W),[V,U]=y.useState(!1),G=Md(),Y=Ad({props:n,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=G?G.focused:V,y.useEffect((()=>{!G&&d&&V&&(U(!1),E&&E())}),[G,d,V,E]);const K=G&&G.onFilled,X=G&&G.onEmpty,J=y.useCallback((e=>{Td(e)?K&&K():X&&X()}),[K,X]);Ws((()=>{H&&J({value:F})}),[F,J,H]);y.useEffect((()=>{J($.current)}),[]);let Z=g,Q=b;w&&"input"===Z&&(Q=Fr(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:x,minRows:S},Q),Z=Pd);y.useEffect((()=>{G&&G.setAdornedStart(Boolean(N))}),[G,N]);const ee=Fr({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:G,fullWidth:h,hiddenLabel:Y.hiddenLabel,multiline:w,size:Y.size,startAdornment:N,type:j}),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 yl({root:["root",`color${ia(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${ia(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"]},Od,t)})(ee),re=q.root||l.Root||_d,ne=L.root||u.root||{},oe=q.input||l.Input||zd;return Q=Fr({},Q,null!=(r=L.input)?r:u.input),rr.jsxs(y.Fragment,{children:[!p&&Fd,rr.jsxs(re,Fr({},ne,!xl(re)&&{ownerState:Fr({},ee,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),P&&P(e)}},z,{className:hs(te.root,ne.className,s,D&&"MuiInputBase-readOnly"),children:[N,rr.jsx(Id.Provider,{value:null,children:rr.jsx(oe,Fr({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?$.current:{value:"x"})},name:C,placeholder:k,readOnly:D,required:Y.required,rows:O,value:F,onKeyDown:I,onKeyUp:M,type:j},Q,!xl(oe)&&{as:Z,ownerState:Fr({},ee,Q.ownerState)},{ref:B,className:hs(te.input,Q.className,D&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),b.onBlur&&b.onBlur(e),G&&G.onBlur?G.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!H){const t=e.target||$.current;if(null==t)throw new Error(jr(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(A&&A(e),b.onFocus&&b.onFocus(e),G&&G.onFocus?G.onFocus(e):U(!0))}}))}),f,T?T(Fr({},Y,{startAdornment:N})):null]}))]})}));function $d(e){return bs("MuiInput",e)}const Wd=Fr({},Ld,vs("MuiInput",["root","underline","input"]));function Bd(e){return bs("MuiOutlinedInput",e)}const Vd=Fr({},Ld,vs("MuiOutlinedInput",["root","notchedOutline","input"]));function Ud(e){return bs("MuiFilledInput",e)}const Gd=Fr({},Ld,vs("MuiFilledInput",["root","underline","input"]));var Yd=function(e,t){function r(r,n){return rr.jsx(wc,Fr({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=wc.muiName,y.memo(y.forwardRef(r))}(rr.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Kd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Xd={entering:{opacity:1},entered:{opacity:1}},Jd=y.forwardRef((function(e,t){const r=Ou(),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=Tc}=e,v=Hr(e,Kd),x=y.useRef(null),S=ol(x,Rl(a),t),w=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=w(d),E=w(((e,t)=>{Fc(e);const n=Hc({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=w(c),P=w(h),A=w((e=>{const t=Hc({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=w(f);return rr.jsx(b,Fr({appear:i,in:l,nodeRef:x,onEnter:E,onEntered:R,onEntering:C,onExit:A,onExited:I,onExiting:P,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,Fr({style:Fr({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},Xd[e],m,a.props.style),ref:S},t))}))}));function Zd(e){return bs("MuiBackdrop",e)}vs("MuiBackdrop",["root","invisible"]);const Qd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ep=hc("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>Fr({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"}))),tp=y.forwardRef((function(e,t){var r,n,o;const i=vc({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=Jd,transitionDuration:g}=i,b=Hr(i,Qd),v=Fr({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return yl({root:["root",r&&"invisible"]},Zd,t)})(v),x=null!=(r=f.root)?r:c.root;return rr.jsx(m,Fr({in:p,timeout:g},b,{children:rr.jsx(ep,Fr({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:l,className:hs(y.root,s,null==x?void 0:x.className),ownerState:Fr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),rp=vs("MuiBox",["root"]),np=Du(),op=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Wi("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Za);return y.forwardRef((function(e,a){const s=is(r),l=us(e),{className:u,component:c="div"}=l,d=Hr(l,ms);return rr.jsx(i,Fr({as:c,ref:a,className:hs(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:zr,defaultTheme:np,defaultClassName:rp.root,generateClassName:ps.generate});function ip(e){return bs("MuiButton",e)}const ap=vs("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"]),sp=y.createContext({}),lp=y.createContext(void 0),up=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],cp=e=>Fr({},"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}}),dp=hc(ud,{shouldForwardProp:e=>fc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ia(r.color)}`],t[`size${ia(r.size)}`],t[`${r.variant}Size${ia(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 Fr({},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":Fr({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Kl(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})`:Kl(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})`:Kl(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":Fr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${ap.focusVisible}`]:Fr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${ap.disabled}`]:Fr({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 ${Kl(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"},[`&.${ap.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ap.disabled}`]:{boxShadow:"none"}})),pp=hc("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${ia(r.size)}`]]}})((({ownerState:e})=>Fr({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},cp(e)))),fp=hc("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${ia(r.size)}`]]}})((({ownerState:e})=>Fr({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},cp(e)))),hp=y.forwardRef((function(e,t){const r=y.useContext(sp),n=y.useContext(lp),o=vc({props:$s(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,x=Hr(o,up),S=Fr({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),w=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return Fr({},a,yl({root:["root",i,`${i}${ia(t)}`,`size${ia(o)}`,`${i}Size${ia(o)}`,`color${ia(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ia(o)}`],endIcon:["icon","endIcon",`iconSize${ia(o)}`]},ip,a))})(S),C=g&&rr.jsx(pp,{className:w.startIcon,ownerState:S,children:g}),E=p&&rr.jsx(fp,{className:w.endIcon,ownerState:S,children:p}),R=n||"";return rr.jsxs(dp,Fr({ownerState:S,className:hs(r.className,w.root,l,R),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:hs(w.focusVisible,f),ref:t,type:b},x,{classes:w,children:[C,i,E]}))}));function mp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function gp(e){return parseInt(Js(e).getComputedStyle(e).paddingRight,10)||0}function bp(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&&mp(e,o)}))}function vp(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function yp(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Xs(e);return t.body===e?Js(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=vl(Xs(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${gp(n)+e}px`;const t=Xs(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${gp(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Xs(n).body;else{const t=n.parentElement,r=Js(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 xp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Sp(e){const t=[],r=[];return Array.from(e.querySelectorAll(xp)).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 wp(){return!0}function Cp(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=Sp,isEnabled:a=wp,open:s}=e,l=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),h=y.useRef(null),m=ol(Rl(t),h),g=y.useRef(null);y.useEffect((()=>{s&&h.current&&(f.current=!r)}),[r,s]),y.useEffect((()=>{if(!s||!h.current)return;const e=Xs(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]),y.useEffect((()=>{if(!s||!h.current)return;const e=Xs(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 rr.jsxs(y.Fragment,{children:[rr.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),y.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)}}),rr.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const Ep=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&&mp(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);bp(t,e.mount,e.modalRef,n,!0);const o=vp(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=vp(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=yp(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=vp(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&&mp(e.modalRef,t),bp(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&&mp(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Rp(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Ep,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),h=y.useRef(null),m=ol(h,d),[g,b]=y.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),w=()=>{o.mount(S(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},C=nl((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Xs(f.current).body;o.add(S(),e),h.current&&w()})),E=y.useCallback((()=>o.isTopModal(S())),[o]),R=nl((e=>{f.current=e,e&&(c&&E()?w():h.current&&mp(h.current,x))})),P=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{P()}),[P]),y.useEffect((()=>{c?C():v&&i||P()}),[c,P,v,i,C]);const A=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(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=Sl(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=Fr({},r,t);return Fr({role:"presentation"},n,{onKeyDown:A(n),ref:m})},getBackdropProps:(e={})=>Fr({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:Ys((()=>{b(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:Ys((()=>{b(!0),s&&s(),i&&P()}),null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:E,exited:g,hasTransition:v}}function Pp(e){return bs("MuiModal",e)}vs("MuiModal",["root","hidden","backdrop"]);const Ap=["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"],Ip=hc("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})=>Fr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Mp=hc(tp,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),kp=y.forwardRef((function(e,t){var r,n,o,i,a,s;const l=vc({name:"MuiModal",props:e}),{BackdropComponent:u=Mp,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:C=!1,disableScrollLock:E=!1,hideBackdrop:R=!1,keepMounted:P=!1,onBackdropClick:A,open:I,slotProps:M,slots:k}=l,D=Hr(l,Ap),T=Fr({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:R,keepMounted:P}),{getRootProps:O,getBackdropProps:L,getTransitionProps:q,portalRef:N,isTopModal:j,exited:_,hasTransition:z}=Rp(Fr({},T,{rootRef:t})),F=Fr({},T,{exited:_}),H=(e=>{const{open:t,exited:r,classes:n}=e;return yl({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Pp,n)})(F),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),z){const{onEnter:e,onExited:t}=q();$.onEnter=e,$.onExited=t}const W=null!=(r=null!=(n=null==k?void 0:k.root)?n:g.Root)?r:Ip,B=null!=(o=null!=(i=null==k?void 0:k.backdrop)?i:g.Backdrop)?o:u,V=null!=(a=null==M?void 0:M.root)?a:b.root,U=null!=(s=null==M?void 0:M.backdrop)?s:b.backdrop,G=El({elementType:W,externalSlotProps:V,externalForwardedProps:D,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:F,className:hs(d,null==V?void 0:V.className,null==H?void 0:H.root,!F.open&&F.exited&&(null==H?void 0:H.hidden))}),Y=El({elementType:B,externalSlotProps:U,additionalProps:c,getSlotProps:e=>L(Fr({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:hs(null==U?void 0:U.className,null==c?void 0:c.className,null==H?void 0:H.backdrop),ownerState:F});return P||I||z&&!_?rr.jsx(Sd,{ref:N,container:h,disablePortal:w,children:rr.jsxs(W,Fr({},G,{children:[!R&&u?rr.jsx(B,Fr({},Y)):null,rr.jsx(Cp,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:j,open:I,children:y.cloneElement(f,$)})]}))}):null}));function Dp(e){return bs("MuiDivider",e)}const Tp=vs("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Op=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Lp=hc("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})=>Fr({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)`:Kl(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})=>Fr({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Fr({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>Fr({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>Fr({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),qp=hc("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Fr({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)`}))),Np=y.forwardRef((function(e,t){const r=vc({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=Hr(r,Op),h=Fr({},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 yl({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"]},Dp,n)})(h);return rr.jsx(Lp,Fr({as:a,className:hs(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?rr.jsx(qp,{className:m.wrapper,ownerState:h,children:o}):null}))}));Np.muiSkipListHighlight=!0;const jp=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],_p=hc(_d,{shouldForwardProp:e=>fc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Nd(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 Fr({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}},[`&.${Gd.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Gd.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"},[`&.${Gd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Gd.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(.${Gd.disabled}, .${Gd.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Gd.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Fr({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}))})),zp=hc(zd,{name:"MuiFilledInput",slot:"Input",overridesResolver:jd})((({theme:e,ownerState:t})=>Fr({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}))),Fp=y.forwardRef((function(e,t){var r,n,o,i;const a=vc({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=Hr(a,jp),g=Fr({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:r}=e;return Fr({},t,yl({root:["root",!r&&"underline"],input:["input"]},Ud,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?Ki(v,null!=p?p:l):v,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:_p,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:zp;return rr.jsx(Hd,Fr({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))}));Fp.muiName="Input";const Hp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function $p(e){return`scale(${e}, ${e**2})`}const Wp={entering:{opacity:1,transform:$p(1)},entered:{opacity:1,transform:"none"}},Bp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Vp=y.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=Tc}=e,g=Hr(e,Hp),b=ll(),v=y.useRef(),x=Ou(),S=y.useRef(null),w=ol(S,Rl(o),t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},E=C(u),R=C(((e,t)=>{Fc(e);const{duration:r,delay:n,easing:o}=Hc({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:n}),x.transitions.create("transform",{duration:Bp?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)})),P=C(l),A=C(p),I=C((e=>{const{duration:t,delay:r,easing:n}=Hc({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:Bp?o:.666*o,delay:Bp?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=$p(.75),c&&c(e)})),M=C(d);return rr.jsx(m,Fr({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:P,onEntering:E,onExit:I,onExited:M,onExiting:A,addEndListener:e=>{"auto"===h&&b.start(v.current||0,e),r&&r(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>y.cloneElement(o,Fr({style:Fr({opacity:0,transform:$p(.75),visibility:"exited"!==e||a?void 0:"hidden"},Wp[e],f,o.props.style),ref:w},t))}))}));Vp.muiSupportAuto=!0;const Up=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Gp=hc(_d,{shouldForwardProp:e=>fc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Nd(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})`),Fr({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"},[`&.${Wd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Wd.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(.${Wd.disabled}, .${Wd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Wd.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Yp=hc(zd,{name:"MuiInput",slot:"Input",overridesResolver:jd})({}),Kp=y.forwardRef((function(e,t){var r,n,o,i;const a=vc({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=Hr(a,Up),b=(e=>{const{classes:t,disableUnderline:r}=e;return Fr({},t,yl({root:["root",!r&&"underline"],input:["input"]},$d,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?Ki(null!=f?f:u,v):v,x=null!=(r=null!=(n=h.root)?n:l.Root)?r:Gp,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:Yp;return rr.jsx(Hd,Fr({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))}));function Xp(e){return bs("MuiLink",e)}Kp.muiName="Input";const Jp=vs("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Zp={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Qp=({theme:e,ownerState:t})=>{const r=(e=>Zp[e]||e)(t.color),n=sa(e,`palette.${r}`,!1)||t.color,o=sa(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Kl(n,.4)},ef=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],tf=hc(xd,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${ia(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>Fr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Fr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Qp({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"},[`&.${Jp.focusVisible}`]:{outline:"auto"}}))),rf=y.forwardRef((function(e,t){const r=vc({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=Hr(r,ef),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=bl(),[b,v]=y.useState(!1),x=ol(t,g),S=Fr({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),w=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return yl({root:["root",`underline${ia(o)}`,"button"===r&&"button",n&&"focusVisible"]},Xp,t)})(S);return rr.jsx(tf,Fr({color:o,className:hs(w.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:x,ownerState:S,variant:c,sx:[...Object.keys(Zp).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))})),nf=y.createContext({});function of(e){return bs("MuiList",e)}vs("MuiList",["root","padding","dense","subheader"]);const af=["children","className","component","dense","disablePadding","subheader"],sf=hc("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})=>Fr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),lf=y.forwardRef((function(e,t){const r=vc({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,u=Hr(r,af),c=y.useMemo((()=>({dense:a})),[a]),d=Fr({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return yl({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},of,t)})(d);return rr.jsx(nf.Provider,{value:c,children:rr.jsxs(sf,Fr({as:i,className:hs(p.root,o),ref:t,ownerState:d},u,{children:[l,n]}))})}));function uf(e){return bs("MuiListItemIcon",e)}const cf=vs("MuiListItemIcon",["root","alignItemsFlexStart"]),df=["className"],pf=hc("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})=>Fr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),ff=y.forwardRef((function(e,t){const r=vc({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Hr(r,df),i=Fr({},r,{alignItems:y.useContext(nf).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return yl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},uf,r)})(i);return rr.jsx(pf,Fr({className:hs(a.root,n),ownerState:i,ref:t},o))})),hf=vs("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),mf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function gf(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function bf(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function vf(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 yf(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")&&vf(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const xf=y.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=Hr(e,mf),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ws((()=>{n&&p.current.focus()}),[n]),y.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${vl(Xs(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const h=ol(p,t);let m=-1;y.Children.forEach(i,((e,t)=>{y.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=y.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),y.cloneElement(e,t)}return e}));return rr.jsx(lf,Fr({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=Xs(t).activeElement;if("ArrowDown"===r)e.preventDefault(),yf(t,n,l,s,gf);else if("ArrowUp"===r)e.preventDefault(),yf(t,n,l,s,bf);else if("Home"===r)e.preventDefault(),yf(t,null,l,s,gf);else if("End"===r)e.preventDefault(),yf(t,null,l,s,bf);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&&vf(n,o);o.previousKeyMatched&&(l||yf(t,n,!1,s,gf,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function Sf(e){return bs("MuiPopover",e)}vs("MuiPopover",["root","paper"]);const wf=["onEntering"],Cf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Ef=["slotProps"];function Rf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Pf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Af(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function If(e){return"function"==typeof e?e():e}const Mf=hc(kp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kf=hc(Vc,{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}),Df=y.forwardRef((function(e,t){var r,n,o;const i=vc({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:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=Vp,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:R=!1}=i,P=Hr(i.TransitionProps,wf),A=Hr(i,Cf),I=null!=(r=null==x?void 0:x.paper)?r:b,M=y.useRef(),k=ol(M,I.ref),D=Fr({},i,{anchorOrigin:l,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:I,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:P}),T=(e=>{const{classes:t}=e;return yl({root:["root"],paper:["paper"]},Sf,t)})(D),O=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=If(s),t=(e&&1===e.nodeType?e:Xs(M.current).body).getBoundingClientRect();return{top:t.top+Rf(t,l.vertical),left:t.left+Pf(t,l.horizontal)}}),[s,l.horizontal,l.vertical,u,c]),L=y.useCallback((e=>({vertical:Rf(e,S.vertical),horizontal:Pf(e,S.horizontal)})),[S.horizontal,S.vertical]),q=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=L(t);if("none"===c)return{top:null,left:null,transformOrigin:Af(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=Js(If(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:Af(r)}}),[s,c,O,L,m]),[N,j]=y.useState(g),_=y.useCallback((()=>{const e=M.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,j(!0)}),[q]);y.useEffect((()=>(R&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_))),[s,R,_]);y.useEffect((()=>{g&&_()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{_()}}:null),[g,_]),y.useEffect((()=>{if(!g)return;const e=Ks((()=>{_()})),t=Js(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,_]);let z=C;"auto"!==C||w.muiSupportAuto||(z=void 0);const F=f||(s?Xs(If(s)).body:void 0),H=null!=(n=null==v?void 0:v.root)?n:Mf,$=null!=(o=null==v?void 0:v.paper)?o:kf,W=El({elementType:$,externalSlotProps:Fr({},I,{style:N?I.style:Fr({},I.style,{opacity:0})}),additionalProps:{elevation:h,ref:k},ownerState:D,className:hs(T.paper,null==I?void 0:I.className)}),B=El({elementType:H,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:D,className:hs(T.root,p)}),{slotProps:V}=B,U=Hr(B,Ef);return rr.jsx(H,Fr({},U,!xl(H)&&{slotProps:V,disableScrollLock:R},{children:rr.jsx(w,Fr({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),_()},onExited:()=>{j(!1)},timeout:z},P,{children:rr.jsx($,Fr({},W,{children:d}))}))}))}));function Tf(e){return bs("MuiMenu",e)}vs("MuiMenu",["root","paper","list"]);const Of=["onEntering"],Lf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],qf={vertical:"top",horizontal:"right"},Nf={vertical:"top",horizontal:"left"},jf=hc(Df,{shouldForwardProp:e=>fc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_f=hc(kf,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),zf=hc(xf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Ff=y.forwardRef((function(e,t){var r,n;const o=vc({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,x=Hr(o.TransitionProps,Of),S=Hr(o,Lf),w=(()=>{const e=y.useContext(Dl);return null!=e&&e})(),C=Fr({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:x,variant:g}),E=(e=>{const{classes:t}=e;return yl({root:["root"],paper:["paper"],list:["list"]},Tf,t)})(C),R=i&&!l&&d,P=y.useRef(null);let A=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===A)&&(A=t))}));const I=null!=(r=b.paper)?r:_f,M=null!=(n=v.paper)?n:p,k=El({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[E.root,s]}),D=El({elementType:I,externalSlotProps:M,ownerState:C,className:E.paper});return rr.jsx(jf,Fr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?qf:Nf,slots:{paper:I,root:b.root},slotProps:{root:k,paper:D},open:d,ref:t,transitionDuration:h,TransitionProps:Fr({onEntering:(e,t)=>{P.current&&P.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),m&&m(e,t)}},x),ownerState:C},S,{classes:f,children:rr.jsx(zf,Fr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:P,autoFocus:i&&(-1===A||l),autoFocusItem:R,variant:g},u,{className:hs(E.list,u.className),children:a}))}))}));function Hf(e){return bs("MuiMenuItem",e)}const $f=vs("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Wf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Bf=hc(ud,{shouldForwardProp:e=>fc(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})=>Fr({},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"}},[`&.${$f.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Kl(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${$f.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Kl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${$f.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Kl(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})`:Kl(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${$f.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$f.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Tp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Tp.inset}`]:{marginLeft:52},[`& .${hf.root}`]:{marginTop:0,marginBottom:0},[`& .${hf.inset}`]:{paddingLeft:36},[`& .${cf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Fr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${cf.root} svg`]:{fontSize:"1.25rem"}})))),Vf=y.forwardRef((function(e,t){const r=vc({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=Hr(r,Wf),f=y.useContext(nf),h=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:s})),[f.dense,i,s]),m=y.useRef(null);Ws((()=>{n&&m.current&&m.current.focus()}),[n]);const g=Fr({},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 Fr({},a,yl({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Hf,a))})(r),v=ol(m,t);let x;return r.disabled||(x=void 0!==c?c:-1),rr.jsx(nf.Provider,{value:h,children:rr.jsx(Bf,Fr({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:hs(b.focusVisible,l),className:hs(b.root,d)},p,{ownerState:g,classes:b}))})}));function Uf(e){return bs("MuiNativeSelect",e)}const Gf=vs("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Yf=["className","disabled","error","IconComponent","inputRef","variant"],Kf=({ownerState:e,theme:t})=>Fr({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Fr({},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"},[`&.${Gf.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}}),Xf=hc("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:fc,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Gf.multiple}`]:t.multiple}]}})(Kf),Jf=({ownerState:e,theme:t})=>Fr({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Gf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Zf=hc("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ia(r.variant)}`],r.open&&t.iconOpen]}})(Jf),Qf=y.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Hr(e,Yf),u=Fr({},e,{disabled:n,variant:s,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return yl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ia(r)}`,i&&"iconOpen",n&&"disabled"]},Uf,t)})(u);return rr.jsxs(y.Fragment,{children:[rr.jsx(Xf,Fr({ownerState:u,className:hs(c.select,r),disabled:n,ref:a||t},l)),e.multiple?null:rr.jsx(Zf,{as:i,ownerState:u,className:c.icon})]})}));var eh;const th=["children","classes","className","label","notched"],rh=hc("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:fc})({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%"}),nh=hc("legend",{name:"MuiNotchedOutlined",shouldForwardProp:fc})((({ownerState:e,theme:t})=>Fr({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&&Fr({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 oh=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],ih=hc(_d,{shouldForwardProp:e=>fc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Nd})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Fr({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Vd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Vd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Vd.focused} .${Vd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Vd.error} .${Vd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Vd.disabled} .${Vd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Fr({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),ah=hc((function(e){const{className:t,label:r,notched:n}=e,o=Hr(e,th),i=null!=r&&""!==r,a=Fr({},e,{notched:n,withLabel:i});return rr.jsx(rh,Fr({"aria-hidden":!0,className:t,ownerState:a},o,{children:rr.jsx(nh,{ownerState:a,children:i?rr.jsx("span",{children:r}):eh||(eh=rr.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}})),sh=hc(zd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:jd})((({theme:e,ownerState:t})=>Fr({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}))),lh=y.forwardRef((function(e,t){var r,n,o,i,a;const s=vc({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=Hr(s,oh),b=(e=>{const{classes:t}=e;return Fr({},t,yl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Bd,t))})(s),v=Md(),x=Ad({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=Fr({},s,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:v,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:m}),w=null!=(r=null!=(n=h.root)?n:l.Root)?r:ih,C=null!=(o=null!=(i=h.input)?i:l.Input)?o:sh;return rr.jsx(Hd,Fr({slots:{root:w,input:C},renderSuffix:e=>rr.jsx(ah,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=rr.jsxs(y.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:Fr({},b,{notchedOutline:null})}))}));function uh(e){return bs("MuiSelect",e)}lh.muiName="Input";const ch=vs("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var dh;const ph=["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"],fh=hc("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${ch.select}`]:t.select},{[`&.${ch.select}`]:t[r.variant]},{[`&.${ch.error}`]:t.error},{[`&.${ch.multiple}`]:t.multiple}]}})(Kf,{[`&.${ch.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),hh=hc("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ia(r.variant)}`],r.open&&t.iconOpen]}})(Jf),mh=hc("input",{shouldForwardProp:e=>pc(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 gh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function bh(e){return null==e||"string"==typeof e&&!e.trim()}const vh=y.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:x,onBlur:S,onChange:w,onClose:C,onFocus:E,onOpen:R,open:P,readOnly:A,renderValue:I,SelectDisplayProps:M={},tabIndex:k,value:D,variant:T="standard"}=e,O=Hr(e,ph),[L,q]=rl({controlled:D,default:c,name:"Select"}),[N,j]=rl({controlled:P,default:u,name:"Select"}),_=y.useRef(null),z=y.useRef(null),[F,H]=y.useState(null),{current:$}=y.useRef(null!=P),[W,B]=y.useState(),V=ol(t,m),U=y.useCallback((e=>{z.current=e,e&&H(e)}),[]),G=null==F?void 0:F.parentNode;y.useImperativeHandle(V,(()=>({focus:()=>{z.current.focus()},node:_.current,value:L})),[L]),y.useEffect((()=>{u&&N&&F&&!$&&(B(a?null:G.clientWidth),z.current.focus())}),[F,a]),y.useEffect((()=>{i&&z.current.focus()}),[i]),y.useEffect((()=>{if(!g)return;const e=Xs(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):C&&C(t),$||(B(a?null:G.clientWidth),j(e))},K=y.Children.toArray(s),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(v){r=Array.isArray(L)?L.slice():[];const t=L.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),L!==r&&(q(r),w)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:x}}),w(o,e)}v||Y(!1,t)}},J=null!==F&&N;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(Td({value:L})||p)&&(I?Z=I(L):te=!0);const re=K.map((e=>{if(!y.isValidElement(e))return null;let t;if(v){if(!Array.isArray(L))throw new Error(jr(2));t=L.some((t=>gh(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=gh(L,e.props.value),t&&te&&(Q=e.props.children);return y.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=W;!a&&$&&F&&(oe=G.clientWidth),ne=void 0!==k?k:d?null:0;const ie=M.id||(x?`mui-component-select-${x}`:void 0),ae=Fr({},e,{variant:T,value:L,open:J,error:f}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return yl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${ia(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},uh,t)})(ae),le=Fr({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=tl();return rr.jsxs(y.Fragment,{children:[rr.jsx(fh,Fr({ref:U,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(!A){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||A?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),Y(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:L,name:x}}),S(e))},onFocus:E},M,{ownerState:ae,className:hs(M.className,se.select,l),id:ie,children:bh(Z)?dh||(dh=rr.jsx("span",{className:"notranslate",children:""})):Z})),rr.jsx(mh,Fr({"aria-invalid":f,value:Array.isArray(L)?L.join(","):L,name:x,ref:_,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(q(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},O)),rr.jsx(hh,{as:h,className:se.icon,ownerState:ae}),rr.jsx(Ff,Fr({id:`menu-${x||""}`,anchorEl:G,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Fr({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:Fr({},b.slotProps,{paper:Fr({},le,{style:Fr({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})})),yh=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],xh=["root"],Sh={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>fc(e)&&"variant"!==e,slot:"Root"},wh=hc(Kp,Sh)(""),Ch=hc(lh,Sh)(""),Eh=hc(Fp,Sh)(""),Rh=y.forwardRef((function(e,t){const r=vc({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=Yd,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:v,onOpen:x,open:S,renderValue:w,SelectDisplayProps:C,variant:E="outlined"}=r,R=Hr(r,yh),P=b?Qf:vh,A=Ad({props:r,muiFormControl:Md(),states:["variant","error"]}),I=A.variant||E,M=Fr({},r,{variant:I,classes:i}),k=(e=>{const{classes:t}=e;return t})(M),D=Hr(k,xh),T=d||{standard:rr.jsx(wh,{ownerState:M}),outlined:rr.jsx(Ch,{label:f,ownerState:M}),filled:rr.jsx(Eh,{ownerState:M})}[I],O=ol(t,Rl(T));return rr.jsx(y.Fragment,{children:y.cloneElement(T,Fr({inputComponent:P,inputProps:Fr({children:o,error:A.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:x,open:S,renderValue:w,SelectDisplayProps:Fr({id:c},C)},p,{classes:p?Ki(D,p.classes):D},d?d.props.inputProps:{})},(g&&b||l)&&"outlined"===I?{notched:!0}:{},{ref:O,className:hs(T.props.className,a,k.root)},!d&&{variant:I},R))})}));Rh.muiName="Select";const Ph=y.createContext();function Ah(e){return bs("MuiTable",e)}vs("MuiTable",["root","stickyHeader"]);const Ih=["className","component","padding","size","stickyHeader"],Mh=hc("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Fr({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Fr({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),kh="table",Dh=y.forwardRef((function(e,t){const r=vc({props:e,name:"MuiTable"}),{className:n,component:o=kh,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=Hr(r,Ih),u=Fr({},r,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:r}=e;return yl({root:["root",r&&"stickyHeader"]},Ah,t)})(u),d=y.useMemo((()=>({padding:i,size:a,stickyHeader:s})),[i,a,s]);return rr.jsx(Ph.Provider,{value:d,children:rr.jsx(Mh,Fr({as:o,role:o===kh?null:"table",ref:t,className:hs(c.root,n),ownerState:u},l))})})),Th=y.createContext();function Oh(e){return bs("MuiTableBody",e)}vs("MuiTableBody",["root"]);const Lh=["className","component"],qh=hc("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Nh={variant:"body"},jh="tbody",_h=y.forwardRef((function(e,t){const r=vc({props:e,name:"MuiTableBody"}),{className:n,component:o=jh}=r,i=Hr(r,Lh),a=Fr({},r,{component:o}),s=(e=>{const{classes:t}=e;return yl({root:["root"]},Oh,t)})(a);return rr.jsx(Th.Provider,{value:Nh,children:rr.jsx(qh,Fr({className:hs(s.root,n),as:o,ref:t,role:o===jh?null:"rowgroup",ownerState:a},i))})}));function zh(e){return bs("MuiTableCell",e)}const Fh=vs("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Hh=["align","className","component","padding","scope","size","sortDirection","variant"],$h=hc("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ia(r.size)}`],"normal"!==r.padding&&t[`padding${ia(r.padding)}`],"inherit"!==r.align&&t[`align${ia(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Fr({},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?Zl(Kl(e.palette.divider,1),.88):Xl(Kl(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",[`&.${Fh.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}))),Wh=y.forwardRef((function(e,t){const r=vc({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c}=r,d=Hr(r,Hh),p=y.useContext(Ph),f=y.useContext(Th),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=Fr({},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}),x=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return yl({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${ia(n)}`,"normal"!==o&&`padding${ia(o)}`,`size${ia(i)}`]},zh,t)})(v);let S=null;return u&&(S="asc"===u?"ascending":"descending"),rr.jsx($h,Fr({as:m,ref:t,className:hs(x.root,o),"aria-sort":S,scope:g,ownerState:v},d))}));function Bh(e){return bs("MuiTableContainer",e)}vs("MuiTableContainer",["root"]);const Vh=["className","component"],Uh=hc("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Gh=y.forwardRef((function(e,t){const r=vc({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=Hr(r,Vh),a=Fr({},r,{component:o}),s=(e=>{const{classes:t}=e;return yl({root:["root"]},Bh,t)})(a);return rr.jsx(Uh,Fr({ref:t,as:o,className:hs(s.root,n),ownerState:a},i))}));function Yh(e){return bs("MuiTableHead",e)}vs("MuiTableHead",["root"]);const Kh=["className","component"],Xh=hc("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Jh={variant:"head"},Zh="thead",Qh=y.forwardRef((function(e,t){const r=vc({props:e,name:"MuiTableHead"}),{className:n,component:o=Zh}=r,i=Hr(r,Kh),a=Fr({},r,{component:o}),s=(e=>{const{classes:t}=e;return yl({root:["root"]},Yh,t)})(a);return rr.jsx(Th.Provider,{value:Jh,children:rr.jsx(Xh,Fr({as:o,className:hs(s.root,n),ref:t,role:o===Zh?null:"rowgroup",ownerState:a},i))})}));function em(e){return bs("MuiTableRow",e)}const tm=vs("MuiTableRow",["root","selected","hover","head","footer"]),rm=["className","component","hover","selected"],nm=hc("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,[`&.${tm.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${tm.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Kl(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}))`:Kl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),om="tr",im=y.forwardRef((function(e,t){const r=vc({props:e,name:"MuiTableRow"}),{className:n,component:o=om,hover:i=!1,selected:a=!1}=r,s=Hr(r,rm),l=y.useContext(Th),u=Fr({},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 yl({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},em,t)})(u);return rr.jsx(nm,Fr({as:o,ref:t,className:hs(c.root,n),role:o===om?null:"row",ownerState:u},s))}));function am(e){return rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:rr.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function sm({fontSize:e="medium",children:t=null,className:r=""}={}){return rr.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})}function lm(e={}){return rr.jsx(sm,{...e,children:rr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[rr.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),rr.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 um(e={}){return rr.jsx(sm,{fontSize:"medium",...e,children:rr.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[rr.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),rr.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 rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:rr.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 dm(e={}){return rr.jsx(sm,{...e,children:rr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:rr.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[rr.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),rr.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function pm(e={}){return rr.jsx(sm,{fontSize:"medium",...e,children:rr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:rr.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:rr.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function fm({className:e}){return rr.jsx(sm,{fontSize:"small",className:e,children:rr.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:rr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:rr.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:rr.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[rr.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"}),rr.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 hm(e={}){return rr.jsx(sm,{...e,children:rr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:rr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:rr.jsx("rect",{stroke:Lt.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:zt,"& > 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 gm=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Lt.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Lt.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:rr.jsx(am,{"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 ${Lt.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Lt.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Lt.MISC_FOCUS_BORDER}`,borderRadius:zt,backgroundColor:Lt.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 ${Lt.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Lt.WHITE,color:Lt.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:zt},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Lt.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Lt.GREYSCALE_0_15,backgroundColor:Lt.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Lt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Lt.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Lt.GREEN_PALE},"&:active":{backgroundColor:Lt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Lt.GREEN_PALE,boxShadow:`0 0 0 3px ${Gs(Lt.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Lt.BLUE_PALE},"&:active":{backgroundColor:Lt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Lt.BLUE_PALE,boxShadow:`0 0 0 3px ${Gs(Lt.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:zt,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Lt.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Lt.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Lt.GREYSCALE_0_42,backgroundColor:Lt.GREYSCALE_100_60,"&:active":{backgroundColor:Lt.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Lt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Lt.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Lt.PURPLE,"&.Mui-focusVisible":{borderColor:Lt.PURPLE,boxShadow:`0 0 0 3px ${Gs(Lt.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Lt.GREEN,"&.Mui-focusVisible":{borderColor:Lt.GREEN,boxShadow:`0 0 0 3px ${Gs(Lt.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Lt.BLUE,"&.Mui-focusVisible":{borderColor:Lt.BLUE,boxShadow:`0 0 0 3px ${Gs(Lt.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Lt.ORANGE,"&.Mui-focusVisible":{borderColor:Lt.ORANGE,boxShadow:`0 0 0 3px ${Gs(Lt.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Lt.RED,"&.Mui-focusVisible":{borderColor:Lt.RED,boxShadow:`0 0 0 3px ${Gs(Lt.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Lt.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Lt.PURPLE_PALE},"&:active":{backgroundColor:Lt.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Lt.PURPLE_PALE,boxShadow:`0 0 0 3px ${Gs(Lt.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Lt.GREEN_PALE},"&:active":{backgroundColor:Lt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Lt.GREEN_PALE,boxShadow:`0 0 0 3px ${Gs(Lt.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Lt.BLUE_PALE},"&:active":{backgroundColor:Lt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Lt.BLUE_PALE,boxShadow:`0 0 0 3px ${Gs(Lt.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Lt.ORANGE_PALE},"&:active":{backgroundColor:Lt.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Lt.ORANGE_PALE,boxShadow:`0 0 0 3px ${Gs(Lt.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Lt.RED_PALE},"&:active":{backgroundColor:Lt.RED_DARK},"&.Mui-focusVisible":{borderColor:Lt.RED_PALE,boxShadow:`0 0 0 3px ${Gs(Lt.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:Lt.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Lt.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:zt,boxShadow:`inset 0 0 0 2px ${Lt.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:rr.jsx(cm,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:qt,borderRadius:zt,color:Lt.TEXT_PRIMARY,backgroundColor:Lt.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Lt.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Lt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Lt.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Lt.GREYSCALE_0_05,color:Lt.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Lt.GREEN,borderColor:Lt.GREEN},"&.MuiChip-outlinedInfo":{color:Lt.BLUE,borderColor:Lt.BLUE},"&.MuiChip-outlinedWarning":{color:Lt.ORANGE,borderColor:Lt.ORANGE},"&.MuiChip-outlinedError":{color:Lt.RED,borderColor:Lt.RED}},outlined:{border:`solid 1px ${Lt.GREYSCALE_0_15}`,backgroundColor:Lt.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:zt,boxShadow:"none",backgroundColor:Lt.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Lt.GREEN,borderColor:Lt.GREEN},outlinedSecondary:{color:Lt.BLUE,borderColor:Lt.BLUE},label:{fontFamily:Bt.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:rr.jsx(cm,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:rr.jsx(am,{"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:zt},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:zt,fontSize:Nt,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Lt.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Lt.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Lt.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Lt.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Lt.GREYSCALE_0_05}}},popupIndicator:{borderRadius:zt,border:`solid 1px ${Lt.GREYSCALE_0_15}`,color:Lt.GREYSCALE_0_60,marginRight:0,width:_t,height:_t},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Lt.GREYSCALE_0_15}`},clearIndicator:{borderRadius:zt,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Lt.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Nt}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:qt,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Lt.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Lt.GREYSCALE_25,fontSize:qt,fontFamily:Bt.FONT_FAMILY,fontWeight:$t,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Lt.TEXT_PRIMARY},"&.Mui-error":{color:Lt.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Lt.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Ht,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Lt.TEXT_SECONDARY,content:"'(required)'",fontWeight:Ht,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Nt,lineHeight:"16px",backgroundColor:Lt.WHITE,borderRadius:zt,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Lt.GREYSCALE_0_05}`,borderColor:Lt.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Lt.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Lt.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Lt.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Lt.RED}`,boxShadow:`0px 0px 0px 1px ${Lt.RED}, inset 0 2px 0 0 ${Lt.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Lt.GREYSCALE_0_10}`,borderColor:Lt.GREYSCALE_0_10,backgroundColor:Lt.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Lt.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Lt.GREYSCALE_0_15,borderRadius:zt,boxShadow:`inset 0 2px 0 0 ${Lt.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>rr.jsx(am,{...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:Lt.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Lt.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Lt.GREYSCALE_0_03},"&:active":{backgroundColor:Lt.GREYSCALE_0_10},"&:focus":{backgroundColor:Lt.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Lt.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Lt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Lt.GREYSCALE_0_30,"&:hover":{backgroundColor:Lt.GREYSCALE_0_0,borderColor:Lt.GREYSCALE_0_15},"& ~svg":{color:Lt.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Lt.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:zt}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Lt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Lt.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Lt.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Nt,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:qt,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:qt,fontWeight:$t,color:Lt.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:$t}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Lt.GREYSCALE_0_15}, 0px 0px 0px 1px ${Lt.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:rr.jsx(pm,{}),checkedIcon:rr.jsx(um,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Lt.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Lt.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Lt.GREEN_PALE,boxShadow:`0 0 0 3px ${Gs(Lt.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Lt.BLUE_PALE,boxShadow:`0 0 0 3px ${Gs(Lt.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Lt.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Lt.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:rr.jsx(hm,{}),checkedIcon:rr.jsx(lm,{}),indeterminateIcon:rr.jsx(dm,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:zt,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Lt.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Lt.GREYSCALE_0_55,color:Lt.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:Lt.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Lt.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Lt.GREYSCALE_0_55,"&:hover":{color:Lt.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:Lt.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Lt.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Nt,color:Lt.TEXT_PRIMARY,lineHeight:"16px",fontWeight:$t},secondary:{fontSize:qt,color:Lt.GREYSCALE_45,fontWeight:Ht,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Nt,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Nt,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Lt.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:qt,borderBottom:`solid 1px ${Lt.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Nt,color:Lt.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Lt.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Lt.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Lt.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'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\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Lt.RED}}},"&.Mui-focusVisible":{backgroundColor:Lt.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:Lt.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:Lt.GREEN,height:"24px","&.Mui-disabled":{color:Lt.GREYSCALE_0_15}},rail:{backgroundColor:Lt.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Lt.GREYSCALE_0_05}`,borderRadius:zt,boxShadow:`inset 0px 0px 0px 1px ${Lt.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Lt.GREYSCALE_0_05}`,borderRadius:zt},thumb:{height:"16px",width:"16px",borderRadius:zt,backgroundColor:Lt.WHITE,boxShadow:`0px 1px 2px 0px ${Lt.GREYSCALE_0_15}, 0px 0px 0px 1px ${Lt.GREYSCALE_0_05}`,"&:hover":{borderRadius:zt,boxShadow:`0 2px 4px 0 ${Lt.GREYSCALE_0_30}, 0 0 0 1px ${Lt.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Lt.GREYSCALE_0_15}, 0 0 0 1px ${Lt.GREYSCALE_0_06}, 0 0 0 2px ${Lt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Lt.GREYSCALE_0_15}, 0 0 0 1px ${Lt.GREYSCALE_0_06}, 0 0 0 2px ${Lt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Lt.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Lt.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Lt.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Lt.GREYSCALE_0_15},markLabel:{color:Lt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Lt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Lt.WHITE,color:Lt.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:Lt.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:Lt.GREEN_PALE,boxShadow:`0 0 0 3px ${Gs(Lt.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Lt.BLUE_PALE,boxShadow:`0 0 0 3px ${Gs(Lt.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Lt.GREYSCALE_0_15,borderRadius:zt},thumb:{height:"16px",width:"16px",borderRadius:zt,backgroundColor:Lt.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:Nt,fontWeight:$t,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Lt.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Lt.MISC_FOCUS_BORDER}`,backgroundColor:Lt.GREYSCALE_0_03,borderRadius:zt},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Lt.GREYSCALE_25,"&.Mui-selected":{color:Lt.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Nt,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:zt,"&:hover":{backgroundColor:Lt.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 ${Lt.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Lt.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:zt,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Lt.GREYSCALE_0_05},"&:hover":{backgroundColor:Lt.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Lt.GREYSCALE_85}`,borderRight:`1px solid ${Lt.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:$t,backgroundColor:Lt.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:Lt.GREYSCALE_98,borderBottom:`1px solid ${Lt.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Lt.GREYSCALE_85}`,borderTop:`1px solid ${Lt.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Lt.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Lt.GREYSCALE_0_05,"&:hover":{backgroundColor:Lt.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Lt.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>rr.jsx(fm,{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 ${Lt.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Nt,borderRadius:zt,padding:"7px 16px",border:`1px solid ${Lt.GREYSCALE_0_15}`,backgroundColor:Lt.GREYSCALE_100_60,color:Lt.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Lt.GREYSCALE_0_10,border:`1px solid ${Lt.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Lt.GREYSCALE_0_03,border:`1px solid ${Lt.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Lt.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Lt.MISC_FOCUS_BORDER}`,border:`1px solid ${Lt.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Lt.GREYSCALE_25,backgroundColor:Lt.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Lt.GREYSCALE_0_10,border:`1px solid ${Lt.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:qt,height:24,width:24,padding:7},sizeLarge:{fontSize:jt,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Nt,borderRadius:zt}}},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:Lt.GREYSCALE_20},tooltip:{backgroundColor:Lt.GREYSCALE_20,fontSize:qt,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...mm}:{}}))(t);const bm=e=>({mode:"light",primary:{ultraLight:Lt.GREEN_ULTRA_LIGHT,light:Lt.GREEN_PALE,main:Lt.GREEN,dark:Lt.GREEN_DARK,extraDark:Lt.GREEN_EXTRA_DARK,contrastText:Lt.WHITE},secondary:{ultraLight:Lt.BLUE_ULTRA_LIGHT,light:Lt.BLUE_PALE,main:Lt.BLUE,dark:Lt.BLUE_DARK,extraDark:Lt.BLUE_EXTRA_DARK,contrastText:Lt.WHITE},error:{ultraLight:Lt.RED_ULTRA_LIGHT,light:Lt.RED_PALE,main:Lt.RED,dark:Lt.RED_DARK,extraDark:Lt.RED_EXTRA_DARK,contrastText:Lt.WHITE},warning:{ultraLight:Lt.ORANGE_ULTRA_LIGHT,light:Lt.ORANGE_PALE,main:Lt.ORANGE,dark:Lt.ORANGE_DARK,extraDark:Lt.ORANGE_EXTRA_DARK,contrastText:Lt.WHITE},success:{ultraLight:Lt.GREEN_ULTRA_LIGHT,light:Lt.GREEN_PALE,main:Lt.GREEN,dark:Lt.GREEN_DARK,extraDark:Lt.GREEN_EXTRA_DARK,contrastText:Lt.WHITE},info:{ultraLight:Lt.BLUE_ULTRA_LIGHT,light:Lt.BLUE_PALE,main:Lt.BLUE,dark:Lt.BLUE_DARK,extraDark:Lt.BLUE_EXTRA_DARK,contrastText:Lt.WHITE},text:{primary:Lt.TEXT_PRIMARY,secondary:Lt.TEXT_SECONDARY,disabled:Lt.GREYSCALE_0_30},action:{hover:Lt.GREYSCALE_0_03,hoverOpacity:.03,selected:Lt.GREYSCALE_0_05,selectedOpacity:.05,focus:Lt.MISC_FOCUS_BORDER},amethyst:{ultraLight:Lt.WHITE,main:Lt.PURPLE,light:Lt.PURPLE_PALE,dark:Lt.PURPLE_DARK,extraDark:Lt.GREYSCALE_0_0,contrastText:Lt.WHITE},background:{paper:Lt.WHITE,default:Lt.GREYSCALE_95},divider:Lt.GREYSCALE_0_15}),vm={...Ot};var ym={},xm={exports:{}},Sm={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}(Sm);var wm=Sm.exports;!function(e){var t=wm.default;function r(n,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=r=function(e,r){if(!r&&e&&e.__esModule)return e;var n,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(n=r?a:i){if(n.has(e))return n.get(e);n.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?n(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(n,o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(xm);var Cm=xm.exports,Em={};function Rm(e,t){return function(){return null}}function Pm(e){return e&&"object"===zl(e)&&e.constructor===Object}function Am(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?Fr({},e):e;return Pm(e)&&Pm(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(Pm(t[o])&&o in e?n[o]=Am(e[o],t[o],r):n[o]=t[o])})),n}var Im=(Fi.element,function(){return null});Im.isRequired=(Fi.element.isRequired,function(){return null});var Mm=function(){return null};var km={exports:{}},Dm={},Tm=60103,Om=60106,Lm=60107,qm=60108,Nm=60114,jm=60109,_m=60110,zm=60112,Fm=60113,Hm=60120,$m=60115,Wm=60116,Bm=60121,Vm=60122,Um=60117,Gm=60129,Ym=60131;if("function"==typeof Symbol&&Symbol.for){var Km=Symbol.for;Tm=Km("react.element"),Om=Km("react.portal"),Lm=Km("react.fragment"),qm=Km("react.strict_mode"),Nm=Km("react.profiler"),jm=Km("react.provider"),_m=Km("react.context"),zm=Km("react.forward_ref"),Fm=Km("react.suspense"),Hm=Km("react.suspense_list"),$m=Km("react.memo"),Wm=Km("react.lazy"),Bm=Km("react.block"),Vm=Km("react.server.block"),Um=Km("react.fundamental"),Gm=Km("react.debug_trace_mode"),Ym=Km("react.legacy_hidden")}function Xm(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Tm:switch(e=e.type){case Lm:case Nm:case qm:case Fm:case Hm:return e;default:switch(e=e&&e.$$typeof){case _m:case zm:case Wm:case $m:case jm:return e;default:return t}}case Om:return t}}}var Jm=jm,Zm=Tm,Qm=zm,eg=Lm,tg=Wm,rg=$m,ng=Om,og=Nm,ig=qm,ag=Fm;Dm.ContextConsumer=_m,Dm.ContextProvider=Jm,Dm.Element=Zm,Dm.ForwardRef=Qm,Dm.Fragment=eg,Dm.Lazy=tg,Dm.Memo=rg,Dm.Portal=ng,Dm.Profiler=og,Dm.StrictMode=ig,Dm.Suspense=ag,Dm.isAsyncMode=function(){return!1},Dm.isConcurrentMode=function(){return!1},Dm.isContextConsumer=function(e){return Xm(e)===_m},Dm.isContextProvider=function(e){return Xm(e)===jm},Dm.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Tm},Dm.isForwardRef=function(e){return Xm(e)===zm},Dm.isFragment=function(e){return Xm(e)===Lm},Dm.isLazy=function(e){return Xm(e)===Wm},Dm.isMemo=function(e){return Xm(e)===$m},Dm.isPortal=function(e){return Xm(e)===Om},Dm.isProfiler=function(e){return Xm(e)===Nm},Dm.isStrictMode=function(e){return Xm(e)===qm},Dm.isSuspense=function(e){return Xm(e)===Fm},Dm.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Lm||e===Nm||e===Gm||e===qm||e===Fm||e===Hm||e===Ym||"object"==typeof e&&null!==e&&(e.$$typeof===Wm||e.$$typeof===$m||e.$$typeof===jm||e.$$typeof===_m||e.$$typeof===zm||e.$$typeof===Um||e.$$typeof===Bm||e[0]===Vm)},Dm.typeOf=Xm,km.exports=Dm;var sg=km.exports,lg=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ug(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(lg);return t&&t[1]||""}(e)||t}function cg(e,t,r){var n=ug(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var dg="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),pg=Fi.oneOfType([Fi.func,Fi.object]),fg=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:Rm,deepmerge:Am,elementAcceptingRef:Im,elementTypeAcceptingRef:Mm,exactProp:function(e){return e},formatMuiErrorMessage:function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."},getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return ug(e,"Component");if("object"===zl(e))switch(e.$$typeof){case sg.ForwardRef:return cg(e,e.render,"ForwardRef");case sg.Memo:return cg(e,e.type,"memo");default:return}}},ponyfillGlobal:dg,refType:pg}),hg=Ut(fg);Object.defineProperty(Em,"__esModule",{value:!0}),Em.hexToRgb=bg,Em.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=yg(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(""))},Em.hslToRgb=vg,Em.decomposeColor=yg,Em.recomposeColor=xg,Em.getContrastRatio=function(e,t){var r=Sg(e),n=Sg(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},Em.getLuminance=Sg,Em.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return Sg(e)>.5?Cg(e,t):Eg(e,t)},Em.fade=function(e,t){return wg(e,t)},Em.alpha=wg,Em.darken=Cg,Em.lighten=Eg;var mg=hg;function gg(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 bg(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 vg(e){var t=(e=yg(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])),xg({type:s,values:l})}function yg(e){if(e.type)return e;if("#"===e.charAt(0))return yg(bg(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,mg.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 xg(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 Sg(e){var t="hsl"===(e=yg(e)).type?yg(vg(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 wg(e,t){return e=yg(e),t=gg(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,xg(e)}function Cg(e,t){if(e=yg(e),t=gg(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 xg(e)}function Eg(e,t){if(e=yg(e),t=gg(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 xg(e)}var Rg,Pg,Ag,Ig={},Mg={exports:{}},kg={exports:{}},Dg={exports:{}};function Tg(){return Rg||(Rg=1,function(e){var t=wm.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}(Dg)),Dg.exports}function Og(){return Pg||(Pg=1,function(e){var t=wm.default,r=Tg();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(kg)),kg.exports}function Lg(){return Ag||(Ag=1,function(e){var t=Og();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}(Mg)),Mg.exports}var qg,Ng={exports:{}};function jg(){return qg||(qg=1,function(e){var t=Fu();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],-1===r.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(Ng)),Ng.exports}var _g,zg={};var Fg,Hg={};var $g,Wg={},Bg={};var Vg,Ug={};var Gg,Yg={};var Kg,Xg={};var Jg,Zg={};var Qg,eb={};var tb,rb={};var nb,ob,ib={};function ab(){if(ob)return Wg;ob=1;var e=Vl;Object.defineProperty(Wg,"__esModule",{value:!0}),Wg.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,w=e.warning,C=void 0===w?{light:u.default[300],main:u.default[500],dark:u.default[700]}:w,E=e.info,R=void 0===E?{light:c.default[300],main:c.default[500],dark:c.default[700]}:E,P=e.success,A=void 0===P?{light:d.default[300],main:d.default[500],dark:d.default[700]}:P,I=e.type,M=void 0===I?"light":I,k=e.contrastThreshold,D=void 0===k?3:k,T=e.tonalOffset,O=void 0===T?.2:T,L=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function q(e){return(0,p.getContrastRatio)(e,h.text.primary)>=D?h.text.primary:f.text.primary}var N=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,O),m(e,"dark",i,O),e.contrastText||(e.contrastText=q(e.main)),e},j={dark:h,light:f},_=(0,n.deepmerge)((0,t.default)({common:o.default,type:M,primary:N(b),secondary:N(y,"A400","A200","A700"),error:N(S),warning:N(C),info:N(R),success:N(A),grey:i.default,contrastThreshold:D,getContrastText:q,augmentColor:N,tonalOffset:O},j[M]),L);return _},Wg.dark=Wg.light=void 0;var t=e(ju()),r=e(jg()),n=hg,o=e(function(){if($g)return Bg;$g=1,Object.defineProperty(Bg,"__esModule",{value:!0}),Bg.default=void 0;var e={black:"#000",white:"#fff"};return Bg.default=e,Bg}()),i=e(function(){if(Vg)return Ug;Vg=1,Object.defineProperty(Ug,"__esModule",{value:!0}),Ug.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 Ug.default=e,Ug}()),a=e(function(){if(Gg)return Yg;Gg=1,Object.defineProperty(Yg,"__esModule",{value:!0}),Yg.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 Yg.default=e,Yg}()),s=e(function(){if(Kg)return Xg;Kg=1,Object.defineProperty(Xg,"__esModule",{value:!0}),Xg.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 Xg.default=e,Xg}()),l=e(function(){if(Jg)return Zg;Jg=1,Object.defineProperty(Zg,"__esModule",{value:!0}),Zg.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 Zg.default=e,Zg}()),u=e(function(){if(Qg)return eb;Qg=1,Object.defineProperty(eb,"__esModule",{value:!0}),eb.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 eb.default=e,eb}()),c=e(function(){if(tb)return rb;tb=1,Object.defineProperty(rb,"__esModule",{value:!0}),rb.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 rb.default=e,rb}()),d=e(function(){if(nb)return ib;nb=1,Object.defineProperty(ib,"__esModule",{value:!0}),ib.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 ib.default=e,ib}()),p=Em,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}};Wg.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 Wg.dark=h,Wg}var sb,lb={};var ub,cb={};var db,pb={};var fb={};function hb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function mb(e,t){if(e){if("string"==typeof e)return hb(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?hb(e,t):void 0}}function gb(e){return function(e){if(Array.isArray(e))return hb(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||mb(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 bb(e,t){return t?Am(e,t,{clone:!1}):e}var vb={xs:0,sm:600,md:960,lg:1280,xl:1920},yb={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(vb[e],"px)")}};function xb(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||yb;return t.reduce((function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e}),{})}if("object"===zl(t)){var o=e.theme.breakpoints||yb;return Object.keys(t).reduce((function(e,n){return e[o.up(n)]=r(t[n]),e}),{})}return r(t)}function Sb(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function wb(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=Sb(e.theme,o)||{};return xb(e,r,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=Sb(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=Fl(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 Cb(){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?bb(t,n):t}),{})};return n.propTypes={},n.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),n}function Eb(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var Rb=wb({prop:"border",themeKey:"borders",transform:Eb}),Pb=wb({prop:"borderTop",themeKey:"borders",transform:Eb}),Ab=wb({prop:"borderRight",themeKey:"borders",transform:Eb}),Ib=wb({prop:"borderBottom",themeKey:"borders",transform:Eb}),Mb=wb({prop:"borderLeft",themeKey:"borders",transform:Eb}),kb=wb({prop:"borderColor",themeKey:"palette"}),Db=wb({prop:"borderRadius",themeKey:"shape"}),Tb=Cb(Rb,Pb,Ab,Ib,Mb,kb,Db);function Ob(e,t){var r={};return Object.keys(e).forEach((function(n){-1===t.indexOf(n)&&(r[n]=e[n])})),r}function Lb(e){var t=function(t){var r=e(t);return t.css?Fr({},bb(r,e(Fr({theme:t.theme},t.css))),Ob(t.css,[e.filterProps])):t.sx?Fr({},bb(r,e(Fr({theme:t.theme},t.sx))),Ob(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(gb(e.filterProps)),t}var qb=Cb(wb({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),wb({prop:"display"}),wb({prop:"overflow"}),wb({prop:"textOverflow"}),wb({prop:"visibility"}),wb({prop:"whiteSpace"})),Nb=wb({prop:"flexBasis"}),jb=wb({prop:"flexDirection"}),_b=wb({prop:"flexWrap"}),zb=wb({prop:"justifyContent"}),Fb=wb({prop:"alignItems"}),Hb=wb({prop:"alignContent"}),$b=wb({prop:"order"}),Wb=wb({prop:"flex"}),Bb=wb({prop:"flexGrow"}),Vb=wb({prop:"flexShrink"}),Ub=wb({prop:"alignSelf"}),Gb=wb({prop:"justifyItems"}),Yb=wb({prop:"justifySelf"}),Kb=Cb(Nb,jb,_b,zb,Fb,Hb,$b,Wb,Bb,Vb,Ub,Gb,Yb),Xb=wb({prop:"gridGap"}),Jb=wb({prop:"gridColumnGap"}),Zb=wb({prop:"gridRowGap"}),Qb=wb({prop:"gridColumn"}),ev=wb({prop:"gridRow"}),tv=wb({prop:"gridAutoFlow"}),rv=wb({prop:"gridAutoColumns"}),nv=wb({prop:"gridAutoRows"}),ov=wb({prop:"gridTemplateColumns"}),iv=wb({prop:"gridTemplateRows"}),av=wb({prop:"gridTemplateAreas"}),sv=wb({prop:"gridArea"}),lv=Cb(Xb,Jb,Zb,Qb,ev,tv,rv,nv,ov,iv,av,sv),uv=wb({prop:"color",themeKey:"palette"}),cv=wb({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),dv=Cb(uv,cv),pv=wb({prop:"position"}),fv=wb({prop:"zIndex",themeKey:"zIndex"}),hv=wb({prop:"top"}),mv=wb({prop:"right"}),gv=wb({prop:"bottom"}),bv=wb({prop:"left"}),vv=Cb(pv,fv,hv,mv,gv,bv),yv=wb({prop:"boxShadow",themeKey:"shadows"});function xv(e){return e<=1?"".concat(100*e,"%"):e}var Sv=wb({prop:"width",transform:xv}),wv=wb({prop:"maxWidth",transform:xv}),Cv=wb({prop:"minWidth",transform:xv}),Ev=wb({prop:"height",transform:xv}),Rv=wb({prop:"maxHeight",transform:xv}),Pv=wb({prop:"minHeight",transform:xv}),Av=wb({prop:"size",cssProperty:"width",transform:xv}),Iv=wb({prop:"size",cssProperty:"height",transform:xv}),Mv=wb({prop:"boxSizing"}),kv=Cb(Sv,wv,Cv,Ev,Rv,Pv,Mv);function Dv(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)||mb(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 Tv={m:"margin",p:"padding"},Ov={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Lv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},qv=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(!Lv[e])return[e];e=Lv[e]}var t=Dv(e.split(""),2),r=t[0],n=t[1],o=Tv[r],i=Ov[n]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),Nv=["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 jv(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 _v(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 zv(e){var t=jv(e.theme);return Object.keys(e).map((function(r){if(-1===Nv.indexOf(r))return null;var n=_v(qv(r),t),o=e[r];return xb(e,o,n)})).reduce(bb,{})}zv.propTypes={},zv.filterProps=Nv;var Fv,Hv=wb({prop:"fontFamily",themeKey:"typography"}),$v=wb({prop:"fontSize",themeKey:"typography"}),Wv=wb({prop:"fontStyle",themeKey:"typography"}),Bv=wb({prop:"fontWeight",themeKey:"typography"}),Vv=wb({prop:"letterSpacing"}),Uv=wb({prop:"lineHeight"}),Gv=wb({prop:"textAlign"}),Yv=Cb(Hv,$v,Wv,Bv,Vv,Uv,Gv),Kv=Object.freeze({__proto__:null,alignContent:Hb,alignItems:Fb,alignSelf:Ub,bgcolor:cv,border:Rb,borderBottom:Ib,borderColor:kb,borderLeft:Mb,borderRadius:Db,borderRight:Ab,borderTop:Pb,borders:Tb,bottom:gv,boxSizing:Mv,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||yb,o=n.keys.reduce((function(r,o){return t[o]&&((r=r||{})[n.up(o)]=e(Fr({theme:t.theme},t[o]))),r}),null);return bb(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(gb(e.filterProps)),t},color:uv,compose:Cb,createUnarySpacing:jv,css:function(e){return Lb(e)},display:qb,flex:Wb,flexBasis:Nb,flexDirection:jb,flexGrow:Bb,flexShrink:Vb,flexWrap:_b,flexbox:Kb,fontFamily:Hv,fontSize:$v,fontStyle:Wv,fontWeight:Bv,grid:lv,gridArea:sv,gridAutoColumns:rv,gridAutoFlow:tv,gridAutoRows:nv,gridColumn:Qb,gridColumnGap:Jb,gridGap:Xb,gridRow:ev,gridRowGap:Zb,gridTemplateAreas:av,gridTemplateColumns:ov,gridTemplateRows:iv,height:Ev,justifyContent:zb,justifyItems:Gb,justifySelf:Yb,left:bv,letterSpacing:Vv,lineHeight:Uv,maxHeight:Rv,maxWidth:wv,minHeight:Pv,minWidth:Cv,order:$b,palette:dv,position:pv,positions:vv,right:mv,shadows:yv,sizeHeight:Iv,sizeWidth:Av,sizing:kv,spacing:zv,style:wb,styleFunctionSx:Lb,textAlign:Gv,top:hv,typography:Yv,width:Sv,zIndex:fv}),Xv=Ut(Kv);var Jv,Zv={};function Qv(){if(Jv)return Zv;Jv=1;var e=Vl;Object.defineProperty(Zv,"__esModule",{value:!0}),Zv.default=Zv.duration=Zv.easing=void 0;var t=e(jg()),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)"};Zv.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")}Zv.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 Zv.default=i,Zv}var ey,ty,ry={};function ny(){if(ty)return Ig;ty=1;var e=Vl;Object.defineProperty(Ig,"__esModule",{value:!0}),Ig.createMuiTheme=function(){return p.apply(void 0,arguments)},Ig.default=void 0,e(Lg());var t=e(jg()),r=hg,n=e(function(){if(_g)return zg;_g=1;var e=Vl;Object.defineProperty(zg,"__esModule",{value:!0}),zg.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)},zg.keys=void 0;var t=e(ju()),r=e(jg()),n=["xs","sm","md","lg","xl"];return zg.keys=n,zg}()),o=e(function(){if(Fg)return Hg;Fg=1;var e=Vl;Object.defineProperty(Hg,"__esModule",{value:!0}),Hg.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(Lg()),r=e(ju());return Hg}()),i=e(ab()),a=e(function(){if(sb)return lb;sb=1;var e=Vl;Object.defineProperty(lb,"__esModule",{value:!0}),lb.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,w=u.htmlFontSize,C=void 0===w?16:w,E=u.allVariants,R=u.pxToRem,P=(0,r.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),A=f/14,I=R||function(e){return"".concat(e/C*A,"rem")},M=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,E)},k={h1:M(m,96,1.167,-1.5),h2:M(m,60,1.2,-.5),h3:M(b,48,1.167,0),h4:M(b,34,1.235,.25),h5:M(b,24,1.334,0),h6:M(y,20,1.6,.15),subtitle1:M(b,16,1.75,.15),subtitle2:M(y,14,1.57,.1),body1:M(b,16,1.5,.15),body2:M(b,14,1.43,.15),button:M(y,14,1.75,.4,a),caption:M(b,12,1.66,.4),overline:M(b,12,2.66,1,a)};return(0,n.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:I,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:b,fontWeightMedium:y,fontWeightBold:S},k),P,{clone:!1})};var t=e(ju()),r=e(jg()),n=hg;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 lb}()),s=e(function(){if(ub)return cb;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(",")}ub=1,Object.defineProperty(cb,"__esModule",{value:!0}),cb.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 cb.default=t,cb}()),l=e(function(){if(db)return pb;db=1,Object.defineProperty(pb,"__esModule",{value:!0}),pb.default=void 0;var e={borderRadius:4};return pb.default=e,pb}()),u=e(function(){if(Fv)return fb;Fv=1,Object.defineProperty(fb,"__esModule",{value:!0}),fb.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=Xv;return fb}()),c=e(Qv()),d=e(function(){if(ey)return ry;ey=1,Object.defineProperty(ry,"__esModule",{value:!0}),ry.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return ry.default=e,ry}());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"]),w=(0,i.default)(b),C=(0,n.default)(f),E=(0,u.default)(v),R=(0,r.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,o.default)(C,E,m),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,x),spacing:E,shape:l.default,transitions:c.default,zIndex:d.default},S),P=arguments.length,A=new Array(P>1?P-1:0),I=1;I<P;I++)A[I-1]=arguments[I];return R=A.reduce((function(e,t){return(0,r.deepmerge)(e,t)}),R)}var f=p;return Ig.default=f,Ig}var oy,iy={};var ay={},sy="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",ly=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function uy(){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!==ly.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[sy]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function cy(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 dy="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},py="object"===("undefined"==typeof window?"undefined":dy(window))&&"object"===("undefined"==typeof document?"undefined":dy(document))&&9===document.nodeType;function fy(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,Fl(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var hy={}.constructor;function my(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(my);if(e.constructor!==hy)return e;var t={};for(var r in e)t[r]=my(e[r]);return t}function gy(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=my(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var by=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},vy=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+=by(e[r]," ");else t=by(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function yy(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function xy(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function Sy(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=yy(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+=xy(p+":"+u+vy(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=xy(h+":"+u+vy(m)+";",i))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(n&&(n+=l),n+=xy(g+":"+u+vy(b)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),xy(""+e+u+"{"+n,--i)+xy("}",i)):n}var wy=/([[\].#*$><+~=|^:(),"'`\s])/g,Cy="undefined"!=typeof CSS&&CSS.escape,Ey=function(e){return Cy?Cy(e):e.replace(wy,"\\$1")},Ry=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}(),Py=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(Lc(Lc(o)),s),o.selectorText="."+Ey(o.id)),o}Ec(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]=vy(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?Fr({},e,{allowEmpty:!0}):e;return Sy(this.selectorText,this.style,r)},fy(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}(Ry),Ay={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new Py(e,t,r)}},Iy={indent:1,children:!0},My=/@([\w-]+)/,ky=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(My);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new ex(Fr({},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=Iy);var t=yy(e).linebreak;if(null==e.indent&&(e.indent=Iy.indent),null==e.children&&(e.children=Iy.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),Dy=/@container|@media|@supports\s+/,Ty={onCreateRule:function(e,t,r){return Dy.test(e)?new ky(e,t,r):null}},Oy={indent:1,children:!0},Ly=/@keyframes\s+([\w-]+)/,qy=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(Ly);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:Ey(a(this,i)),this.rules=new ex(Fr({},r,{parent:this})),t)this.rules.add(s,t[s],Fr({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Oy);var t=yy(e).linebreak;if(null==e.indent&&(e.indent=Oy.indent),null==e.children&&(e.children=Oy.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}(),Ny=/@keyframes\s+/,jy=/\$([\w-]+)/g,_y=function(e,t){return"string"==typeof e?e.replace(jy,(function(e,r){return r in t?t[r]:e})):e},zy=function(e,t,r){var n=e[t],o=_y(n,r);o!==n&&(e[t]=o)},Fy={onCreateRule:function(e,t,r){return"string"==typeof e&&Ny.test(e)?new qy(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&zy(e,"animation-name",r.keyframes),"animation"in e&&zy(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 _y(e,n.keyframes);default:return e}}},Hy=function(e){function t(){return e.apply(this,arguments)||this}return Ec(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?Fr({},e,{allowEmpty:!0}):e;return Sy(this.key,this.style,r)},t}(Ry),$y={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new Hy(e,t,r):null}},Wy=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=yy(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=Sy(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return Sy(this.at,this.style,e)},e}(),By=/@font-face/,Vy={onCreateRule:function(e,t,r){return By.test(e)?new Wy(e,t,r):null}},Uy=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 Sy(this.key,this.style,e)},e}(),Gy={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new Uy(e,t,r):null}},Yy=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}(),Ky={"@charset":!0,"@import":!0,"@namespace":!0},Xy={onCreateRule:function(e,t,r){return e in Ky?new Yy(e,t,r):null}},Jy=[Ay,Ty,Fy,$y,Vy,Gy,Xy],Zy={process:!0},Qy={force:!0,process:!0},ex=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=Fr({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="."+Ey(this.classes[d]));var p=gy(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=Fr({},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 Py?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof qy&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Py?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof qy&&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=Zy);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,Qy)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,Qy)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=yy(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}(),tx=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Fr({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new ex(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}(),rx=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}(),nx=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=Hr(t,["attached"]),o=yy(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},fy(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),ox=new nx,ix="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ax="2f1acc6c3a606b082e5eef5e54414ffb";null==ix[ax]&&(ix[ax]=0);var sx=ix[ax]++,lx=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")+sx+o+t:i+r.key+"-"+sx+(o?"-"+o:"")+"-"+t}},ux=function(e){var t;return function(){return t||(t=e()),t}},cx=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},dx=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=vy(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},px=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},fx=function(e,t){return e.selectorText=t,e.selectorText===t},hx=ux((function(){return document.querySelector("head")}));function mx(e){var t=ox.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=hx(),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 gx=ux((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),bx=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]},vx=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},yx=function(){function e(e){this.getPropertyValue=cx,this.setProperty=dx,this.removeProperty=px,this.setSelector=fx,this.hasInsertedRules=!1,this.cssRules=[],e&&ox.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=gx();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=mx(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 hx().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=vx(r,t);if(!1===(o=bx(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=vx(r,t),l=bx(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 tx&&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}(),xx=0,Sx=function(){function e(e){this.id=xx++,this.version="10.10.0",this.plugins=new rx,this.options={id:{minify:!1},createGenerateId:lx,Renderer:py?yx:null,plugins:[]},this.generateId=lx({minify:!1});for(var t=0;t<Jy.length;t++)this.plugins.use(Jy[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=Fr({},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===ox.index?0:ox.index+1);var n=new tx(e,Fr({},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(),ox.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=Fr({},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=gy(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}(),wx=function(e){return new Sx(e)},Cx="object"==typeof CSS&&null!=CSS&&"number"in CSS;function Ex(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=Ex(n);i&&(t||(t={}),t[r]=i)}}return t}
|
|
90
|
+
`),Bc.rippleVisible,Jc,550,(({theme:e})=>e.transitions.easing.easeInOut),Bc.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Bc.child,Bc.childLeaving,Zc,550,(({theme:e})=>e.transitions.easing.easeInOut),Bc.childPulsate,Qc,(({theme:e})=>e.transitions.easing.easeInOut)),rd=y.forwardRef((function(e,t){const r=gc({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Hr(r,Vc),[s,l]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[s]);const d=y.useRef(!1),p=al(),f=y.useRef(null),h=y.useRef(null),m=y.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l((e=>[...e,rr.jsx(td,{classes:{ripple:ps(o.ripple,Bc.ripple),rippleVisible:ps(o.rippleVisible,Bc.rippleVisible),ripplePulsate:ps(o.ripplePulsate,Bc.ripplePulsate),child:ps(o.child,Bc.child),childLeaving:ps(o.childLeaving,Bc.childLeaving),childPulsate:ps(o.childPulsate,Bc.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.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=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.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 y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),rr.jsx(ed,Fr({className:ps(Bc.root,o.root,i),ref:h},a,{children:rr.jsx(jc,{component:null,exit:!0,children:s})}))}));function nd(e){return ms("MuiButtonBase",e)}const od=gs("MuiButtonBase",["root","disabled","focusVisible"]),id=["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"],ad=pc("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"},[`&.${od.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),sd=y.forwardRef((function(e,t){const r=gc({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:x,onKeyUp:S,onMouseDown:w,onMouseLeave:C,onMouseUp:E,onTouchEnd:R,onTouchMove:P,onTouchStart:A,tabIndex:I=0,TouchRippleProps:M,touchRippleRef:k,type:D}=r,T=Hr(r,id),O=y.useRef(null),L=y.useRef(null),q=rl(L,k),{isFocusVisibleRef:N,onFocus:j,onBlur:_,ref:z}=ml(),[F,H]=y.useState(!1);l&&F&&H(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),O.current.focus()}})),[]);const[$,W]=y.useState(!1);y.useEffect((()=>{W(!0)}),[]);const B=$&&!u&&!l;function V(e,t,r=c){return tl((n=>{t&&t(n);return!r&&L.current&&L.current[e](n),!0}))}y.useEffect((()=>{F&&d&&!u&&$&&L.current.pulsate()}),[u,d,F,$]);const U=V("start",w),G=V("stop",m),Y=V("stop",g),K=V("stop",E),X=V("stop",(e=>{F&&e.preventDefault(),C&&C(e)})),J=V("start",A),Z=V("stop",R),Q=V("stop",P),ee=V("stop",(e=>{_(e),!1===N.current&&H(!1),f&&f(e)}),!1),te=tl((e=>{O.current||(O.current=e.currentTarget),j(e),!0===N.current&&(H(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=O.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=y.useRef(!1),oe=tl((e=>{d&&!ne.current&&F&&L.current&&" "===e.key&&(ne.current=!0,L.current.stop(e,(()=>{L.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))})),ie=tl((e=>{d&&" "===e.key&&L.current&&F&&!e.defaultPrevented&&(ne.current=!1,L.current.stop(e,(()=>{L.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=s;"button"===ae&&(T.href||T.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===D?"button":D,se.disabled=l):(T.href||T.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=rl(t,z,O),ue=Fr({},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=bl({root:["root",t&&"disabled",r&&"focusVisible"]},nd,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return rr.jsxs(ad,Fr({as:ae,className:ps(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:I,type:D},se,T,{children:[i,B?rr.jsx(rd,Fr({ref:q,center:o},M)):null]}))}));function ld(e){return ms("MuiIconButton",e)}const ud=gs("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),cd=["edge","children","className","color","disabled","disableFocusRipple","size"],dd=pc(sd,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${na(r.color)}`],r.edge&&t[`edge${na(r.edge)}`],t[`size${na(r.size)}`]]}})((({theme:e,ownerState:t})=>Fr({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Gl(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var r;const n=null==(r=(e.vars||e).palette)?void 0:r[t.color];return Fr({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&Fr({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":Fr({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Gl(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${ud.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),pd=y.forwardRef((function(e,t){const r=gc({props:e,name:"MuiIconButton"}),{edge:n=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:u="medium"}=r,c=Hr(r,cd),d=Fr({},r,{edge:n,color:a,disabled:s,disableFocusRipple:l,size:u}),p=(e=>{const{classes:t,disabled:r,color:n,edge:o,size:i}=e;return bl({root:["root",r&&"disabled","default"!==n&&`color${na(n)}`,o&&`edge${na(o)}`,`size${na(i)}`]},ld,t)})(d);return rr.jsx(dd,Fr({className:ps(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},c,{ownerState:d,children:o}))}));function fd(e){return ms("MuiTypography",e)}gs("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const hd=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],md=pc("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${na(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Fr({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}))),gd={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},bd={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},vd=y.forwardRef((function(e,t){const r=gc({props:e,name:"MuiTypography"}),n=(e=>bd[e]||e)(r.color),o=ss(Fr({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=gd}=o,f=Hr(o,hd),h=Fr({},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]||gd[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return bl({root:["root",i,"inherit"!==e.align&&`align${na(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},fd,a)})(h);return rr.jsx(md,Fr({as:m,ref:t,ownerState:h,className:ps(g.root,a)},f))}));const yd=y.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=y.useState(null),s=rl(y.isValidElement(r)?Cl(r):null,t);if(Hs((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),Hs((()=>{if(i&&!o)return Xs(t,i),()=>{Xs(t,null)}}),[t,i,o]),o){if(y.isValidElement(r)){const e={ref:s};return y.cloneElement(r,e)}return rr.jsx(y.Fragment,{children:r})}return rr.jsx(y.Fragment,{children:i?H.createPortal(r,i):i})})),xd=["onChange","maxRows","minRows","style","value"];function Sd(e){return parseInt(e,10)||0}const wd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Cd(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Ed=y.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=Hr(e,xd),{current:l}=y.useRef(null!=a),u=y.useRef(null),c=rl(t,u),d=y.useRef(null),p=y.useRef(null),f=y.useCallback((()=>{const t=u.current,r=p.current;if(!t||!r)return;const i=Ks(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=Sd(i.paddingBottom)+Sd(i.paddingTop),l=Sd(i.borderBottomWidth)+Sd(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=tl((()=>{const e=u.current,t=f();if(!e||!t||Cd(t))return!1;const r=t.outerHeightStyle;return null!=d.current&&d.current!==r})),m=y.useCallback((()=>{const e=u.current,t=f();if(!e||!t||Cd(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=y.useRef(-1);Hs((()=>{const e=Gs(m),t=null==u?void 0:u.current;if(!t)return;const r=Ks(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]),Hs((()=>{m()}));return rr.jsxs(y.Fragment,{children:[rr.jsx("textarea",Fr({value:a,onChange:e=>{l||m(),r&&r(e)},ref:c,rows:o,style:i},s)),rr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:Fr({},wd,i,{paddingTop:0,paddingBottom:0})})]})}));function Rd({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 Pd=y.createContext(void 0);function Ad(){return y.useContext(Pd)}function Id(e){return rr.jsx(is,Fr({},e,{defaultTheme:ku,themeId:zr}))}function Md(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function kd(e,t=!1){return e&&(Md(e.value)&&""!==e.value||t&&Md(e.defaultValue)&&""!==e.defaultValue)}function Dd(e){return ms("MuiInputBase",e)}const Td=gs("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Od=["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"],Ld=(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${na(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},qd=(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]},Nd=pc("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ld})((({theme:e,ownerState:t})=>Fr({},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",[`&.${Td.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Fr({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),jd=pc("input",{name:"MuiInputBase",slot:"Input",overridesResolver:qd})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=Fr({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 Fr({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] + .${Td.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},[`&.${Td.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"})})),_d=rr.jsx(Id,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),zd=y.forwardRef((function(e,t){var r;const n=gc({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:x,minRows:S,multiline:w=!1,name:C,onBlur:E,onChange:R,onClick:P,onFocus:A,onKeyDown:I,onKeyUp:M,placeholder:k,readOnly:D,renderSuffix:T,rows:O,slotProps:L={},slots:q={},startAdornment:N,type:j="text",value:_}=n,z=Hr(n,Od),F=null!=b.value?b.value:_,{current:H}=y.useRef(null!=F),$=y.useRef(),W=y.useCallback((e=>{}),[]),B=rl($,v,b.ref,W),[V,U]=y.useState(!1),G=Ad(),Y=Rd({props:n,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=G?G.focused:V,y.useEffect((()=>{!G&&d&&V&&(U(!1),E&&E())}),[G,d,V,E]);const K=G&&G.onFilled,X=G&&G.onEmpty,J=y.useCallback((e=>{kd(e)?K&&K():X&&X()}),[K,X]);Hs((()=>{H&&J({value:F})}),[F,J,H]);y.useEffect((()=>{J($.current)}),[]);let Z=g,Q=b;w&&"input"===Z&&(Q=Fr(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:x,minRows:S},Q),Z=Ed);y.useEffect((()=>{G&&G.setAdornedStart(Boolean(N))}),[G,N]);const ee=Fr({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:G,fullWidth:h,hiddenLabel:Y.hiddenLabel,multiline:w,size:Y.size,startAdornment:N,type:j}),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 bl({root:["root",`color${na(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${na(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"]},Dd,t)})(ee),re=q.root||l.Root||Nd,ne=L.root||u.root||{},oe=q.input||l.Input||jd;return Q=Fr({},Q,null!=(r=L.input)?r:u.input),rr.jsxs(y.Fragment,{children:[!p&&_d,rr.jsxs(re,Fr({},ne,!vl(re)&&{ownerState:Fr({},ee,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),P&&P(e)}},z,{className:ps(te.root,ne.className,s,D&&"MuiInputBase-readOnly"),children:[N,rr.jsx(Pd.Provider,{value:null,children:rr.jsx(oe,Fr({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?$.current:{value:"x"})},name:C,placeholder:k,readOnly:D,required:Y.required,rows:O,value:F,onKeyDown:I,onKeyUp:M,type:j},Q,!vl(oe)&&{as:Z,ownerState:Fr({},ee,Q.ownerState)},{ref:B,className:ps(te.input,Q.className,D&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),b.onBlur&&b.onBlur(e),G&&G.onBlur?G.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!H){const t=e.target||$.current;if(null==t)throw new Error(jr(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(A&&A(e),b.onFocus&&b.onFocus(e),G&&G.onFocus?G.onFocus(e):U(!0))}}))}),f,T?T(Fr({},Y,{startAdornment:N})):null]}))]})}));function Fd(e){return ms("MuiInput",e)}const Hd=Fr({},Td,gs("MuiInput",["root","underline","input"]));function $d(e){return ms("MuiOutlinedInput",e)}const Wd=Fr({},Td,gs("MuiOutlinedInput",["root","notchedOutline","input"]));function Bd(e){return ms("MuiFilledInput",e)}const Vd=Fr({},Td,gs("MuiFilledInput",["root","underline","input"]));var Ud=function(e,t){function r(r,n){return rr.jsx(xc,Fr({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=xc.muiName,y.memo(y.forwardRef(r))}(rr.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Gd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Yd={entering:{opacity:1},entered:{opacity:1}},Kd=y.forwardRef((function(e,t){const r=Du(),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=kc}=e,v=Hr(e,Gd),x=y.useRef(null),S=rl(x,Cl(a),t),w=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=w(d),E=w(((e,t)=>{_c(e);const n=zc({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=w(c),P=w(h),A=w((e=>{const t=zc({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=w(f);return rr.jsx(b,Fr({appear:i,in:l,nodeRef:x,onEnter:E,onEntered:R,onEntering:C,onExit:A,onExited:I,onExiting:P,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,Fr({style:Fr({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},Yd[e],m,a.props.style),ref:S},t))}))}));function Xd(e){return ms("MuiBackdrop",e)}gs("MuiBackdrop",["root","invisible"]);const Jd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Zd=pc("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>Fr({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"}))),Qd=y.forwardRef((function(e,t){var r,n,o;const i=gc({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=Kd,transitionDuration:g}=i,b=Hr(i,Jd),v=Fr({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return bl({root:["root",r&&"invisible"]},Xd,t)})(v),x=null!=(r=f.root)?r:c.root;return rr.jsx(m,Fr({in:p,timeout:g},b,{children:rr.jsx(Zd,Fr({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:l,className:ps(y.root,s,null==x?void 0:x.className),ownerState:Fr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),ep=gs("MuiBox",["root"]),tp=Mu(),rp=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Hi("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Xa);return y.forwardRef((function(e,a){const s=ns(r),l=ss(e),{className:u,component:c="div"}=l,d=Hr(l,fs);return rr.jsx(i,Fr({as:c,ref:a,className:ps(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:zr,defaultTheme:tp,defaultClassName:ep.root,generateClassName:cs.generate});function np(e){return ms("MuiButton",e)}const op=gs("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"]),ip=y.createContext({}),ap=y.createContext(void 0),sp=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],lp=e=>Fr({},"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}}),up=pc(sd,{shouldForwardProp:e=>dc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${na(r.color)}`],t[`size${na(r.size)}`],t[`${r.variant}Size${na(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 Fr({},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":Fr({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Gl(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})`:Gl(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})`:Gl(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":Fr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${op.focusVisible}`]:Fr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${op.disabled}`]:Fr({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 ${Gl(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"},[`&.${op.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${op.disabled}`]:{boxShadow:"none"}})),cp=pc("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${na(r.size)}`]]}})((({ownerState:e})=>Fr({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},lp(e)))),dp=pc("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${na(r.size)}`]]}})((({ownerState:e})=>Fr({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},lp(e)))),pp=y.forwardRef((function(e,t){const r=y.useContext(ip),n=y.useContext(ap),o=gc({props:Fs(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,x=Hr(o,sp),S=Fr({},o,{color:a,component:s,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),w=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return Fr({},a,bl({root:["root",i,`${i}${na(t)}`,`size${na(o)}`,`${i}Size${na(o)}`,`color${na(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${na(o)}`],endIcon:["icon","endIcon",`iconSize${na(o)}`]},np,a))})(S),C=g&&rr.jsx(cp,{className:w.startIcon,ownerState:S,children:g}),E=p&&rr.jsx(dp,{className:w.endIcon,ownerState:S,children:p}),R=n||"";return rr.jsxs(up,Fr({ownerState:S,className:ps(r.className,w.root,l,R),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:ps(w.focusVisible,f),ref:t,type:b},x,{classes:w,children:[C,i,E]}))}));function fp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function hp(e){return parseInt(Ks(e).getComputedStyle(e).paddingRight,10)||0}function mp(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&&fp(e,o)}))}function gp(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function bp(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Ys(e);return t.body===e?Ks(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=gl(Ys(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${hp(n)+e}px`;const t=Ys(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${hp(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Ys(n).body;else{const t=n.parentElement,r=Ks(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 vp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function yp(e){const t=[],r=[];return Array.from(e.querySelectorAll(vp)).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 xp(){return!0}function Sp(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=yp,isEnabled:a=xp,open:s}=e,l=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),h=y.useRef(null),m=rl(Cl(t),h),g=y.useRef(null);y.useEffect((()=>{s&&h.current&&(f.current=!r)}),[r,s]),y.useEffect((()=>{if(!s||!h.current)return;const e=Ys(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]),y.useEffect((()=>{if(!s||!h.current)return;const e=Ys(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 rr.jsxs(y.Fragment,{children:[rr.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),y.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)}}),rr.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const wp=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&&fp(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);mp(t,e.mount,e.modalRef,n,!0);const o=gp(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=gp(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=bp(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=gp(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&&fp(e.modalRef,t),mp(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&&fp(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Cp(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=wp,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),h=y.useRef(null),m=rl(h,d),[g,b]=y.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),w=()=>{o.mount(S(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},C=tl((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Ys(f.current).body;o.add(S(),e),h.current&&w()})),E=y.useCallback((()=>o.isTopModal(S())),[o]),R=tl((e=>{f.current=e,e&&(c&&E()?w():h.current&&fp(h.current,x))})),P=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{P()}),[P]),y.useEffect((()=>{c?C():v&&i||P()}),[c,P,v,i,C]);const A=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(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=yl(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=Fr({},r,t);return Fr({role:"presentation"},n,{onKeyDown:A(n),ref:m})},getBackdropProps:(e={})=>Fr({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:Us((()=>{b(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:Us((()=>{b(!0),s&&s(),i&&P()}),null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:E,exited:g,hasTransition:v}}function Ep(e){return ms("MuiModal",e)}gs("MuiModal",["root","hidden","backdrop"]);const Rp=["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"],Pp=pc("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})=>Fr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Ap=pc(Qd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Ip=y.forwardRef((function(e,t){var r,n,o,i,a,s;const l=gc({name:"MuiModal",props:e}),{BackdropComponent:u=Ap,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:C=!1,disableScrollLock:E=!1,hideBackdrop:R=!1,keepMounted:P=!1,onBackdropClick:A,open:I,slotProps:M,slots:k}=l,D=Hr(l,Rp),T=Fr({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:R,keepMounted:P}),{getRootProps:O,getBackdropProps:L,getTransitionProps:q,portalRef:N,isTopModal:j,exited:_,hasTransition:z}=Cp(Fr({},T,{rootRef:t})),F=Fr({},T,{exited:_}),H=(e=>{const{open:t,exited:r,classes:n}=e;return bl({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Ep,n)})(F),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),z){const{onEnter:e,onExited:t}=q();$.onEnter=e,$.onExited=t}const W=null!=(r=null!=(n=null==k?void 0:k.root)?n:g.Root)?r:Pp,B=null!=(o=null!=(i=null==k?void 0:k.backdrop)?i:g.Backdrop)?o:u,V=null!=(a=null==M?void 0:M.root)?a:b.root,U=null!=(s=null==M?void 0:M.backdrop)?s:b.backdrop,G=wl({elementType:W,externalSlotProps:V,externalForwardedProps:D,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:F,className:ps(d,null==V?void 0:V.className,null==H?void 0:H.root,!F.open&&F.exited&&(null==H?void 0:H.hidden))}),Y=wl({elementType:B,externalSlotProps:U,additionalProps:c,getSlotProps:e=>L(Fr({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:ps(null==U?void 0:U.className,null==c?void 0:c.className,null==H?void 0:H.backdrop),ownerState:F});return P||I||z&&!_?rr.jsx(yd,{ref:N,container:h,disablePortal:w,children:rr.jsxs(W,Fr({},G,{children:[!R&&u?rr.jsx(B,Fr({},Y)):null,rr.jsx(Sp,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:j,open:I,children:y.cloneElement(f,$)})]}))}):null}));function Mp(e){return ms("MuiDivider",e)}const kp=gs("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Dp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Tp=pc("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})=>Fr({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)`:Gl(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})=>Fr({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Fr({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>Fr({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>Fr({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Op=pc("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Fr({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)`}))),Lp=y.forwardRef((function(e,t){const r=gc({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=Hr(r,Dp),h=Fr({},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 bl({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"]},Mp,n)})(h);return rr.jsx(Tp,Fr({as:a,className:ps(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?rr.jsx(Op,{className:m.wrapper,ownerState:h,children:o}):null}))}));Lp.muiSkipListHighlight=!0;const qp=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Np=pc(Nd,{shouldForwardProp:e=>dc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Ld(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 Fr({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}},[`&.${Vd.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Vd.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"},[`&.${Vd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Vd.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(.${Vd.disabled}, .${Vd.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Vd.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Fr({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}))})),jp=pc(jd,{name:"MuiFilledInput",slot:"Input",overridesResolver:qd})((({theme:e,ownerState:t})=>Fr({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}))),_p=y.forwardRef((function(e,t){var r,n,o,i;const a=gc({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=Hr(a,qp),g=Fr({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:r}=e;return Fr({},t,bl({root:["root",!r&&"underline"],input:["input"]},Bd,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?Gi(v,null!=p?p:l):v,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:Np,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:jp;return rr.jsx(zd,Fr({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))}));_p.muiName="Input";const zp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Fp(e){return`scale(${e}, ${e**2})`}const Hp={entering:{opacity:1,transform:Fp(1)},entered:{opacity:1,transform:"none"}},$p="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Wp=y.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=kc}=e,g=Hr(e,zp),b=al(),v=y.useRef(),x=Du(),S=y.useRef(null),w=rl(S,Cl(o),t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},E=C(u),R=C(((e,t)=>{_c(e);const{duration:r,delay:n,easing:o}=zc({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[x.transitions.create("opacity",{duration:a,delay:n}),x.transitions.create("transform",{duration:$p?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)})),P=C(l),A=C(p),I=C((e=>{const{duration:t,delay:r,easing:n}=zc({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:r}),x.transitions.create("transform",{duration:$p?o:.666*o,delay:$p?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Fp(.75),c&&c(e)})),M=C(d);return rr.jsx(m,Fr({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:P,onEntering:E,onExit:I,onExited:M,onExiting:A,addEndListener:e=>{"auto"===h&&b.start(v.current||0,e),r&&r(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>y.cloneElement(o,Fr({style:Fr({opacity:0,transform:Fp(.75),visibility:"exited"!==e||a?void 0:"hidden"},Hp[e],f,o.props.style),ref:w},t))}))}));Wp.muiSupportAuto=!0;const Bp=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Vp=pc(Nd,{shouldForwardProp:e=>dc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Ld(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})`),Fr({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"},[`&.${Hd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Hd.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(.${Hd.disabled}, .${Hd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Hd.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Up=pc(jd,{name:"MuiInput",slot:"Input",overridesResolver:qd})({}),Gp=y.forwardRef((function(e,t){var r,n,o,i;const a=gc({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=Hr(a,Bp),b=(e=>{const{classes:t,disableUnderline:r}=e;return Fr({},t,bl({root:["root",!r&&"underline"],input:["input"]},Fd,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?Gi(null!=f?f:u,v):v,x=null!=(r=null!=(n=h.root)?n:l.Root)?r:Vp,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:Up;return rr.jsx(zd,Fr({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))}));function Yp(e){return ms("MuiLink",e)}Gp.muiName="Input";const Kp=gs("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Xp={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Jp=({theme:e,ownerState:t})=>{const r=(e=>Xp[e]||e)(t.color),n=ia(e,`palette.${r}`,!1)||t.color,o=ia(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Gl(n,.4)},Zp=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Qp=pc(vd,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${na(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>Fr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Fr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Jp({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"},[`&.${Kp.focusVisible}`]:{outline:"auto"}}))),ef=y.forwardRef((function(e,t){const r=gc({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=Hr(r,Zp),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=ml(),[b,v]=y.useState(!1),x=rl(t,g),S=Fr({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),w=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return bl({root:["root",`underline${na(o)}`,"button"===r&&"button",n&&"focusVisible"]},Yp,t)})(S);return rr.jsx(Qp,Fr({color:o,className:ps(w.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:x,ownerState:S,variant:c,sx:[...Object.keys(Xp).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))})),tf=y.createContext({});function rf(e){return ms("MuiList",e)}gs("MuiList",["root","padding","dense","subheader"]);const nf=["children","className","component","dense","disablePadding","subheader"],of=pc("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})=>Fr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),af=y.forwardRef((function(e,t){const r=gc({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,u=Hr(r,nf),c=y.useMemo((()=>({dense:a})),[a]),d=Fr({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return bl({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},rf,t)})(d);return rr.jsx(tf.Provider,{value:c,children:rr.jsxs(of,Fr({as:i,className:ps(p.root,o),ref:t,ownerState:d},u,{children:[l,n]}))})}));function sf(e){return ms("MuiListItemIcon",e)}const lf=gs("MuiListItemIcon",["root","alignItemsFlexStart"]),uf=["className"],cf=pc("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})=>Fr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),df=y.forwardRef((function(e,t){const r=gc({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Hr(r,uf),i=Fr({},r,{alignItems:y.useContext(tf).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return bl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},sf,r)})(i);return rr.jsx(cf,Fr({className:ps(a.root,n),ownerState:i,ref:t},o))})),pf=gs("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ff=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function hf(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function mf(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function gf(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 bf(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")&&gf(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const vf=y.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=Hr(e,ff),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Hs((()=>{n&&p.current.focus()}),[n]),y.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${gl(Ys(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const h=rl(p,t);let m=-1;y.Children.forEach(i,((e,t)=>{y.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=y.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),y.cloneElement(e,t)}return e}));return rr.jsx(af,Fr({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=Ys(t).activeElement;if("ArrowDown"===r)e.preventDefault(),bf(t,n,l,s,hf);else if("ArrowUp"===r)e.preventDefault(),bf(t,n,l,s,mf);else if("Home"===r)e.preventDefault(),bf(t,null,l,s,hf);else if("End"===r)e.preventDefault(),bf(t,null,l,s,mf);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&&gf(n,o);o.previousKeyMatched&&(l||bf(t,n,!1,s,hf,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function yf(e){return ms("MuiPopover",e)}gs("MuiPopover",["root","paper"]);const xf=["onEntering"],Sf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],wf=["slotProps"];function Cf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Ef(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Rf(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Pf(e){return"function"==typeof e?e():e}const Af=pc(Ip,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),If=pc(Wc,{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}),Mf=y.forwardRef((function(e,t){var r,n,o;const i=gc({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:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=Wp,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:R=!1}=i,P=Hr(i.TransitionProps,xf),A=Hr(i,Sf),I=null!=(r=null==x?void 0:x.paper)?r:b,M=y.useRef(),k=rl(M,I.ref),D=Fr({},i,{anchorOrigin:l,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:I,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:P}),T=(e=>{const{classes:t}=e;return bl({root:["root"],paper:["paper"]},yf,t)})(D),O=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=Pf(s),t=(e&&1===e.nodeType?e:Ys(M.current).body).getBoundingClientRect();return{top:t.top+Cf(t,l.vertical),left:t.left+Ef(t,l.horizontal)}}),[s,l.horizontal,l.vertical,u,c]),L=y.useCallback((e=>({vertical:Cf(e,S.vertical),horizontal:Ef(e,S.horizontal)})),[S.horizontal,S.vertical]),q=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=L(t);if("none"===c)return{top:null,left:null,transformOrigin:Rf(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=Ks(Pf(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:Rf(r)}}),[s,c,O,L,m]),[N,j]=y.useState(g),_=y.useCallback((()=>{const e=M.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,j(!0)}),[q]);y.useEffect((()=>(R&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_))),[s,R,_]);y.useEffect((()=>{g&&_()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{_()}}:null),[g,_]),y.useEffect((()=>{if(!g)return;const e=Gs((()=>{_()})),t=Ks(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[s,g,_]);let z=C;"auto"!==C||w.muiSupportAuto||(z=void 0);const F=f||(s?Ys(Pf(s)).body:void 0),H=null!=(n=null==v?void 0:v.root)?n:Af,$=null!=(o=null==v?void 0:v.paper)?o:If,W=wl({elementType:$,externalSlotProps:Fr({},I,{style:N?I.style:Fr({},I.style,{opacity:0})}),additionalProps:{elevation:h,ref:k},ownerState:D,className:ps(T.paper,null==I?void 0:I.className)}),B=wl({elementType:H,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:D,className:ps(T.root,p)}),{slotProps:V}=B,U=Hr(B,wf);return rr.jsx(H,Fr({},U,!vl(H)&&{slotProps:V,disableScrollLock:R},{children:rr.jsx(w,Fr({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),_()},onExited:()=>{j(!1)},timeout:z},P,{children:rr.jsx($,Fr({},W,{children:d}))}))}))}));function kf(e){return ms("MuiMenu",e)}gs("MuiMenu",["root","paper","list"]);const Df=["onEntering"],Tf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Of={vertical:"top",horizontal:"right"},Lf={vertical:"top",horizontal:"left"},qf=pc(Mf,{shouldForwardProp:e=>dc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Nf=pc(If,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),jf=pc(vf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),_f=y.forwardRef((function(e,t){var r,n;const o=gc({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,x=Hr(o.TransitionProps,Df),S=Hr(o,Tf),w=(()=>{const e=y.useContext(Ml);return null!=e&&e})(),C=Fr({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:x,variant:g}),E=(e=>{const{classes:t}=e;return bl({root:["root"],paper:["paper"],list:["list"]},kf,t)})(C),R=i&&!l&&d,P=y.useRef(null);let A=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===A)&&(A=t))}));const I=null!=(r=b.paper)?r:Nf,M=null!=(n=v.paper)?n:p,k=wl({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[E.root,s]}),D=wl({elementType:I,externalSlotProps:M,ownerState:C,className:E.paper});return rr.jsx(qf,Fr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Of:Lf,slots:{paper:I,root:b.root},slotProps:{root:k,paper:D},open:d,ref:t,transitionDuration:h,TransitionProps:Fr({onEntering:(e,t)=>{P.current&&P.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),m&&m(e,t)}},x),ownerState:C},S,{classes:f,children:rr.jsx(jf,Fr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:P,autoFocus:i&&(-1===A||l),autoFocusItem:R,variant:g},u,{className:ps(E.list,u.className),children:a}))}))}));function zf(e){return ms("MuiMenuItem",e)}const Ff=gs("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Hf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],$f=pc(sd,{shouldForwardProp:e=>dc(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})=>Fr({},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"}},[`&.${Ff.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Gl(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ff.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Gl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ff.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Gl(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})`:Gl(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ff.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ff.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${kp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${kp.inset}`]:{marginLeft:52},[`& .${pf.root}`]:{marginTop:0,marginBottom:0},[`& .${pf.inset}`]:{paddingLeft:36},[`& .${lf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Fr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${lf.root} svg`]:{fontSize:"1.25rem"}})))),Wf=y.forwardRef((function(e,t){const r=gc({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=Hr(r,Hf),f=y.useContext(tf),h=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:s})),[f.dense,i,s]),m=y.useRef(null);Hs((()=>{n&&m.current&&m.current.focus()}),[n]);const g=Fr({},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 Fr({},a,bl({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},zf,a))})(r),v=rl(m,t);let x;return r.disabled||(x=void 0!==c?c:-1),rr.jsx(tf.Provider,{value:h,children:rr.jsx($f,Fr({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:ps(b.focusVisible,l),className:ps(b.root,d)},p,{ownerState:g,classes:b}))})}));function Bf(e){return ms("MuiNativeSelect",e)}const Vf=gs("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Uf=["className","disabled","error","IconComponent","inputRef","variant"],Gf=({ownerState:e,theme:t})=>Fr({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Fr({},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"},[`&.${Vf.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}}),Yf=pc("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:dc,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Vf.multiple}`]:t.multiple}]}})(Gf),Kf=({ownerState:e,theme:t})=>Fr({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Vf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Xf=pc("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${na(r.variant)}`],r.open&&t.iconOpen]}})(Kf),Jf=y.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Hr(e,Uf),u=Fr({},e,{disabled:n,variant:s,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return bl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${na(r)}`,i&&"iconOpen",n&&"disabled"]},Bf,t)})(u);return rr.jsxs(y.Fragment,{children:[rr.jsx(Yf,Fr({ownerState:u,className:ps(c.select,r),disabled:n,ref:a||t},l)),e.multiple?null:rr.jsx(Xf,{as:i,ownerState:u,className:c.icon})]})}));var Zf;const Qf=["children","classes","className","label","notched"],eh=pc("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:dc})({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%"}),th=pc("legend",{name:"MuiNotchedOutlined",shouldForwardProp:dc})((({ownerState:e,theme:t})=>Fr({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&&Fr({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 rh=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],nh=pc(Nd,{shouldForwardProp:e=>dc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ld})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Fr({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Wd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Wd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Wd.focused} .${Wd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Wd.error} .${Wd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Wd.disabled} .${Wd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Fr({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),oh=pc((function(e){const{className:t,label:r,notched:n}=e,o=Hr(e,Qf),i=null!=r&&""!==r,a=Fr({},e,{notched:n,withLabel:i});return rr.jsx(eh,Fr({"aria-hidden":!0,className:t,ownerState:a},o,{children:rr.jsx(th,{ownerState:a,children:i?rr.jsx("span",{children:r}):Zf||(Zf=rr.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}})),ih=pc(jd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:qd})((({theme:e,ownerState:t})=>Fr({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}))),ah=y.forwardRef((function(e,t){var r,n,o,i,a;const s=gc({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=Hr(s,rh),b=(e=>{const{classes:t}=e;return Fr({},t,bl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},$d,t))})(s),v=Ad(),x=Rd({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=Fr({},s,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:v,fullWidth:u,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:m}),w=null!=(r=null!=(n=h.root)?n:l.Root)?r:nh,C=null!=(o=null!=(i=h.input)?i:l.Input)?o:ih;return rr.jsx(zd,Fr({slots:{root:w,input:C},renderSuffix:e=>rr.jsx(oh,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=rr.jsxs(y.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:Fr({},b,{notchedOutline:null})}))}));function sh(e){return ms("MuiSelect",e)}ah.muiName="Input";const lh=gs("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var uh;const ch=["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"],dh=pc("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${lh.select}`]:t.select},{[`&.${lh.select}`]:t[r.variant]},{[`&.${lh.error}`]:t.error},{[`&.${lh.multiple}`]:t.multiple}]}})(Gf,{[`&.${lh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),ph=pc("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${na(r.variant)}`],r.open&&t.iconOpen]}})(Kf),fh=pc("input",{shouldForwardProp:e=>cc(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 hh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function mh(e){return null==e||"string"==typeof e&&!e.trim()}const gh=y.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:x,onBlur:S,onChange:w,onClose:C,onFocus:E,onOpen:R,open:P,readOnly:A,renderValue:I,SelectDisplayProps:M={},tabIndex:k,value:D,variant:T="standard"}=e,O=Hr(e,ch),[L,q]=el({controlled:D,default:c,name:"Select"}),[N,j]=el({controlled:P,default:u,name:"Select"}),_=y.useRef(null),z=y.useRef(null),[F,H]=y.useState(null),{current:$}=y.useRef(null!=P),[W,B]=y.useState(),V=rl(t,m),U=y.useCallback((e=>{z.current=e,e&&H(e)}),[]),G=null==F?void 0:F.parentNode;y.useImperativeHandle(V,(()=>({focus:()=>{z.current.focus()},node:_.current,value:L})),[L]),y.useEffect((()=>{u&&N&&F&&!$&&(B(a?null:G.clientWidth),z.current.focus())}),[F,a]),y.useEffect((()=>{i&&z.current.focus()}),[i]),y.useEffect((()=>{if(!g)return;const e=Ys(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):C&&C(t),$||(B(a?null:G.clientWidth),j(e))},K=y.Children.toArray(s),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(v){r=Array.isArray(L)?L.slice():[];const t=L.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),L!==r&&(q(r),w)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:x}}),w(o,e)}v||Y(!1,t)}},J=null!==F&&N;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(kd({value:L})||p)&&(I?Z=I(L):te=!0);const re=K.map((e=>{if(!y.isValidElement(e))return null;let t;if(v){if(!Array.isArray(L))throw new Error(jr(2));t=L.some((t=>hh(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=hh(L,e.props.value),t&&te&&(Q=e.props.children);return y.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=W;!a&&$&&F&&(oe=G.clientWidth),ne=void 0!==k?k:d?null:0;const ie=M.id||(x?`mui-component-select-${x}`:void 0),ae=Fr({},e,{variant:T,value:L,open:J,error:f}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return bl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${na(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},sh,t)})(ae),le=Fr({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=Qs();return rr.jsxs(y.Fragment,{children:[rr.jsx(dh,Fr({ref:U,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(!A){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||A?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),Y(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:L,name:x}}),S(e))},onFocus:E},M,{ownerState:ae,className:ps(M.className,se.select,l),id:ie,children:mh(Z)?uh||(uh=rr.jsx("span",{className:"notranslate",children:""})):Z})),rr.jsx(fh,Fr({"aria-invalid":f,value:Array.isArray(L)?L.join(","):L,name:x,ref:_,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(q(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},O)),rr.jsx(ph,{as:h,className:se.icon,ownerState:ae}),rr.jsx(_f,Fr({id:`menu-${x||""}`,anchorEl:G,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Fr({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:Fr({},b.slotProps,{paper:Fr({},le,{style:Fr({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})})),bh=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],vh=["root"],yh={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>dc(e)&&"variant"!==e,slot:"Root"},xh=pc(Gp,yh)(""),Sh=pc(ah,yh)(""),wh=pc(_p,yh)(""),Ch=y.forwardRef((function(e,t){const r=gc({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=Ud,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:v,onOpen:x,open:S,renderValue:w,SelectDisplayProps:C,variant:E="outlined"}=r,R=Hr(r,bh),P=b?Jf:gh,A=Rd({props:r,muiFormControl:Ad(),states:["variant","error"]}),I=A.variant||E,M=Fr({},r,{variant:I,classes:i}),k=(e=>{const{classes:t}=e;return t})(M),D=Hr(k,vh),T=d||{standard:rr.jsx(xh,{ownerState:M}),outlined:rr.jsx(Sh,{label:f,ownerState:M}),filled:rr.jsx(wh,{ownerState:M})}[I],O=rl(t,Cl(T));return rr.jsx(y.Fragment,{children:y.cloneElement(T,Fr({inputComponent:P,inputProps:Fr({children:o,error:A.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:x,open:S,renderValue:w,SelectDisplayProps:Fr({id:c},C)},p,{classes:p?Gi(D,p.classes):D},d?d.props.inputProps:{})},(g&&b||l)&&"outlined"===I?{notched:!0}:{},{ref:O,className:ps(T.props.className,a,k.root)},!d&&{variant:I},R))})}));Ch.muiName="Select";const Eh=y.createContext();function Rh(e){return ms("MuiTable",e)}gs("MuiTable",["root","stickyHeader"]);const Ph=["className","component","padding","size","stickyHeader"],Ah=pc("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Fr({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Fr({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),Ih="table",Mh=y.forwardRef((function(e,t){const r=gc({props:e,name:"MuiTable"}),{className:n,component:o=Ih,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=Hr(r,Ph),u=Fr({},r,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:r}=e;return bl({root:["root",r&&"stickyHeader"]},Rh,t)})(u),d=y.useMemo((()=>({padding:i,size:a,stickyHeader:s})),[i,a,s]);return rr.jsx(Eh.Provider,{value:d,children:rr.jsx(Ah,Fr({as:o,role:o===Ih?null:"table",ref:t,className:ps(c.root,n),ownerState:u},l))})})),kh=y.createContext();function Dh(e){return ms("MuiTableBody",e)}gs("MuiTableBody",["root"]);const Th=["className","component"],Oh=pc("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Lh={variant:"body"},qh="tbody",Nh=y.forwardRef((function(e,t){const r=gc({props:e,name:"MuiTableBody"}),{className:n,component:o=qh}=r,i=Hr(r,Th),a=Fr({},r,{component:o}),s=(e=>{const{classes:t}=e;return bl({root:["root"]},Dh,t)})(a);return rr.jsx(kh.Provider,{value:Lh,children:rr.jsx(Oh,Fr({className:ps(s.root,n),as:o,ref:t,role:o===qh?null:"rowgroup",ownerState:a},i))})}));function jh(e){return ms("MuiTableCell",e)}const _h=gs("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),zh=["align","className","component","padding","scope","size","sortDirection","variant"],Fh=pc("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${na(r.size)}`],"normal"!==r.padding&&t[`padding${na(r.padding)}`],"inherit"!==r.align&&t[`align${na(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Fr({},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?Xl(Gl(e.palette.divider,1),.88):Yl(Gl(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",[`&.${_h.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}))),Hh=y.forwardRef((function(e,t){const r=gc({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c}=r,d=Hr(r,zh),p=y.useContext(Eh),f=y.useContext(kh),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=Fr({},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}),x=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return bl({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${na(n)}`,"normal"!==o&&`padding${na(o)}`,`size${na(i)}`]},jh,t)})(v);let S=null;return u&&(S="asc"===u?"ascending":"descending"),rr.jsx(Fh,Fr({as:m,ref:t,className:ps(x.root,o),"aria-sort":S,scope:g,ownerState:v},d))}));function $h(e){return ms("MuiTableContainer",e)}gs("MuiTableContainer",["root"]);const Wh=["className","component"],Bh=pc("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Vh=y.forwardRef((function(e,t){const r=gc({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=Hr(r,Wh),a=Fr({},r,{component:o}),s=(e=>{const{classes:t}=e;return bl({root:["root"]},$h,t)})(a);return rr.jsx(Bh,Fr({ref:t,as:o,className:ps(s.root,n),ownerState:a},i))}));function Uh(e){return ms("MuiTableHead",e)}gs("MuiTableHead",["root"]);const Gh=["className","component"],Yh=pc("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Kh={variant:"head"},Xh="thead",Jh=y.forwardRef((function(e,t){const r=gc({props:e,name:"MuiTableHead"}),{className:n,component:o=Xh}=r,i=Hr(r,Gh),a=Fr({},r,{component:o}),s=(e=>{const{classes:t}=e;return bl({root:["root"]},Uh,t)})(a);return rr.jsx(kh.Provider,{value:Kh,children:rr.jsx(Yh,Fr({as:o,className:ps(s.root,n),ref:t,role:o===Xh?null:"rowgroup",ownerState:a},i))})}));function Zh(e){return ms("MuiTableRow",e)}const Qh=gs("MuiTableRow",["root","selected","hover","head","footer"]),em=["className","component","hover","selected"],tm=pc("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,[`&.${Qh.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Qh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Gl(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}))`:Gl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),rm="tr",nm=y.forwardRef((function(e,t){const r=gc({props:e,name:"MuiTableRow"}),{className:n,component:o=rm,hover:i=!1,selected:a=!1}=r,s=Hr(r,em),l=y.useContext(kh),u=Fr({},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 bl({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},Zh,t)})(u);return rr.jsx(tm,Fr({as:o,ref:t,className:ps(c.root,n),role:o===rm?null:"row",ownerState:u},s))}));function om(e){return rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:rr.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function im({fontSize:e="medium",children:t=null,className:r=""}={}){return rr.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})}function am(e={}){return rr.jsx(im,{...e,children:rr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[rr.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),rr.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 rr.jsx(im,{fontSize:"medium",...e,children:rr.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[rr.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),rr.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 lm(e){return rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:rr.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 um(e={}){return rr.jsx(im,{...e,children:rr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:rr.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[rr.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),rr.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function cm(e={}){return rr.jsx(im,{fontSize:"medium",...e,children:rr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:rr.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:rr.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function dm({className:e}){return rr.jsx(im,{fontSize:"small",className:e,children:rr.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:rr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:rr.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:rr.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[rr.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"}),rr.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 pm(e={}){return rr.jsx(im,{...e,children:rr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:rr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:rr.jsx("rect",{stroke:Lt.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const fm={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:zt,"& > 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 hm=(e,t)=>(e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Lt.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Lt.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:rr.jsx(om,{"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 ${Lt.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Lt.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Lt.MISC_FOCUS_BORDER}`,borderRadius:zt,backgroundColor:Lt.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 ${Lt.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Lt.WHITE,color:Lt.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:zt},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Lt.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Lt.GREYSCALE_0_15,backgroundColor:Lt.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Lt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Lt.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Lt.GREEN_PALE},"&:active":{backgroundColor:Lt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Lt.GREEN_PALE,boxShadow:`0 0 0 3px ${Vs(Lt.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Lt.BLUE_PALE},"&:active":{backgroundColor:Lt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Lt.BLUE_PALE,boxShadow:`0 0 0 3px ${Vs(Lt.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:zt,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Lt.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Lt.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Lt.GREYSCALE_0_42,backgroundColor:Lt.GREYSCALE_100_60,"&:active":{backgroundColor:Lt.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Lt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Lt.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Lt.PURPLE,"&.Mui-focusVisible":{borderColor:Lt.PURPLE,boxShadow:`0 0 0 3px ${Vs(Lt.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Lt.GREEN,"&.Mui-focusVisible":{borderColor:Lt.GREEN,boxShadow:`0 0 0 3px ${Vs(Lt.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Lt.BLUE,"&.Mui-focusVisible":{borderColor:Lt.BLUE,boxShadow:`0 0 0 3px ${Vs(Lt.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Lt.ORANGE,"&.Mui-focusVisible":{borderColor:Lt.ORANGE,boxShadow:`0 0 0 3px ${Vs(Lt.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Lt.RED,"&.Mui-focusVisible":{borderColor:Lt.RED,boxShadow:`0 0 0 3px ${Vs(Lt.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Lt.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Lt.PURPLE_PALE},"&:active":{backgroundColor:Lt.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Lt.PURPLE_PALE,boxShadow:`0 0 0 3px ${Vs(Lt.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Lt.GREEN_PALE},"&:active":{backgroundColor:Lt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Lt.GREEN_PALE,boxShadow:`0 0 0 3px ${Vs(Lt.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Lt.BLUE_PALE},"&:active":{backgroundColor:Lt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Lt.BLUE_PALE,boxShadow:`0 0 0 3px ${Vs(Lt.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Lt.ORANGE_PALE},"&:active":{backgroundColor:Lt.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Lt.ORANGE_PALE,boxShadow:`0 0 0 3px ${Vs(Lt.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Lt.RED_PALE},"&:active":{backgroundColor:Lt.RED_DARK},"&.Mui-focusVisible":{borderColor:Lt.RED_PALE,boxShadow:`0 0 0 3px ${Vs(Lt.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:Lt.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Lt.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:zt,boxShadow:`inset 0 0 0 2px ${Lt.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:rr.jsx(lm,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:qt,borderRadius:zt,color:Lt.TEXT_PRIMARY,backgroundColor:Lt.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Lt.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Lt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Lt.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Lt.GREYSCALE_0_05,color:Lt.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Lt.GREEN,borderColor:Lt.GREEN},"&.MuiChip-outlinedInfo":{color:Lt.BLUE,borderColor:Lt.BLUE},"&.MuiChip-outlinedWarning":{color:Lt.ORANGE,borderColor:Lt.ORANGE},"&.MuiChip-outlinedError":{color:Lt.RED,borderColor:Lt.RED}},outlined:{border:`solid 1px ${Lt.GREYSCALE_0_15}`,backgroundColor:Lt.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:zt,boxShadow:"none",backgroundColor:Lt.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Lt.GREEN,borderColor:Lt.GREEN},outlinedSecondary:{color:Lt.BLUE,borderColor:Lt.BLUE},label:{fontFamily:Bt.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:rr.jsx(lm,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:rr.jsx(om,{"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:zt},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:zt,fontSize:Nt,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Lt.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Lt.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Lt.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Lt.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Lt.GREYSCALE_0_05}}},popupIndicator:{borderRadius:zt,border:`solid 1px ${Lt.GREYSCALE_0_15}`,color:Lt.GREYSCALE_0_60,marginRight:0,width:_t,height:_t},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Lt.GREYSCALE_0_15}`},clearIndicator:{borderRadius:zt,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Lt.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Nt}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:qt,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Lt.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Lt.GREYSCALE_25,fontSize:qt,fontFamily:Bt.FONT_FAMILY,fontWeight:$t,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Lt.TEXT_PRIMARY},"&.Mui-error":{color:Lt.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Lt.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Ht,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Lt.TEXT_SECONDARY,content:"'(required)'",fontWeight:Ht,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Nt,lineHeight:"16px",backgroundColor:Lt.WHITE,borderRadius:zt,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Lt.GREYSCALE_0_05}`,borderColor:Lt.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Lt.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Lt.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Lt.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Lt.RED}`,boxShadow:`0px 0px 0px 1px ${Lt.RED}, inset 0 2px 0 0 ${Lt.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Lt.GREYSCALE_0_10}`,borderColor:Lt.GREYSCALE_0_10,backgroundColor:Lt.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Lt.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Lt.GREYSCALE_0_15,borderRadius:zt,boxShadow:`inset 0 2px 0 0 ${Lt.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>rr.jsx(om,{...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:Lt.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Lt.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Lt.GREYSCALE_0_03},"&:active":{backgroundColor:Lt.GREYSCALE_0_10},"&:focus":{backgroundColor:Lt.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Lt.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Lt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Lt.GREYSCALE_0_30,"&:hover":{backgroundColor:Lt.GREYSCALE_0_0,borderColor:Lt.GREYSCALE_0_15},"& ~svg":{color:Lt.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Lt.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:zt}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Lt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Lt.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Lt.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Nt,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:qt,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:qt,fontWeight:$t,color:Lt.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:$t}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Lt.GREYSCALE_0_15}, 0px 0px 0px 1px ${Lt.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:rr.jsx(cm,{}),checkedIcon:rr.jsx(sm,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Lt.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Lt.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Lt.GREEN_PALE,boxShadow:`0 0 0 3px ${Vs(Lt.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Lt.BLUE_PALE,boxShadow:`0 0 0 3px ${Vs(Lt.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Lt.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Lt.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:rr.jsx(pm,{}),checkedIcon:rr.jsx(am,{}),indeterminateIcon:rr.jsx(um,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:zt,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Lt.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Lt.GREYSCALE_0_55,color:Lt.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:Lt.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Lt.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Lt.GREYSCALE_0_55,"&:hover":{color:Lt.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:Lt.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Lt.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Nt,color:Lt.TEXT_PRIMARY,lineHeight:"16px",fontWeight:$t},secondary:{fontSize:qt,color:Lt.GREYSCALE_45,fontWeight:Ht,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Nt,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Nt,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Lt.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:qt,borderBottom:`solid 1px ${Lt.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Nt,color:Lt.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Lt.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Lt.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Lt.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'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\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Lt.RED}}},"&.Mui-focusVisible":{backgroundColor:Lt.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:Lt.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:Lt.GREEN,height:"24px","&.Mui-disabled":{color:Lt.GREYSCALE_0_15}},rail:{backgroundColor:Lt.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Lt.GREYSCALE_0_05}`,borderRadius:zt,boxShadow:`inset 0px 0px 0px 1px ${Lt.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Lt.GREYSCALE_0_05}`,borderRadius:zt},thumb:{height:"16px",width:"16px",borderRadius:zt,backgroundColor:Lt.WHITE,boxShadow:`0px 1px 2px 0px ${Lt.GREYSCALE_0_15}, 0px 0px 0px 1px ${Lt.GREYSCALE_0_05}`,"&:hover":{borderRadius:zt,boxShadow:`0 2px 4px 0 ${Lt.GREYSCALE_0_30}, 0 0 0 1px ${Lt.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Lt.GREYSCALE_0_15}, 0 0 0 1px ${Lt.GREYSCALE_0_06}, 0 0 0 2px ${Lt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Lt.GREYSCALE_0_15}, 0 0 0 1px ${Lt.GREYSCALE_0_06}, 0 0 0 2px ${Lt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Lt.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Lt.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Lt.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Lt.GREYSCALE_0_15},markLabel:{color:Lt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Lt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Lt.WHITE,color:Lt.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:Lt.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:Lt.GREEN_PALE,boxShadow:`0 0 0 3px ${Vs(Lt.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Lt.BLUE_PALE,boxShadow:`0 0 0 3px ${Vs(Lt.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Lt.GREYSCALE_0_15,borderRadius:zt},thumb:{height:"16px",width:"16px",borderRadius:zt,backgroundColor:Lt.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:Nt,fontWeight:$t,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Lt.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Lt.MISC_FOCUS_BORDER}`,backgroundColor:Lt.GREYSCALE_0_03,borderRadius:zt},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Lt.GREYSCALE_25,"&.Mui-selected":{color:Lt.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Nt,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:zt,"&:hover":{backgroundColor:Lt.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 ${Lt.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Lt.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:zt,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Lt.GREYSCALE_0_05},"&:hover":{backgroundColor:Lt.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Lt.GREYSCALE_85}`,borderRight:`1px solid ${Lt.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:$t,backgroundColor:Lt.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:Lt.GREYSCALE_98,borderBottom:`1px solid ${Lt.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Lt.GREYSCALE_85}`,borderTop:`1px solid ${Lt.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Lt.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Lt.GREYSCALE_0_05,"&:hover":{backgroundColor:Lt.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Lt.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>rr.jsx(dm,{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 ${Lt.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Nt,borderRadius:zt,padding:"7px 16px",border:`1px solid ${Lt.GREYSCALE_0_15}`,backgroundColor:Lt.GREYSCALE_100_60,color:Lt.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Lt.GREYSCALE_0_10,border:`1px solid ${Lt.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Lt.GREYSCALE_0_03,border:`1px solid ${Lt.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Lt.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Lt.MISC_FOCUS_BORDER}`,border:`1px solid ${Lt.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Lt.GREYSCALE_25,backgroundColor:Lt.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Lt.GREYSCALE_0_10,border:`1px solid ${Lt.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:qt,height:24,width:24,padding:7},sizeLarge:{fontSize:jt,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Nt,borderRadius:zt}}},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:Lt.GREYSCALE_20},tooltip:{backgroundColor:Lt.GREYSCALE_20,fontSize:qt,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...fm}:{}}))(t);const mm=e=>({mode:"light",primary:{ultraLight:Lt.GREEN_ULTRA_LIGHT,light:Lt.GREEN_PALE,main:Lt.GREEN,dark:Lt.GREEN_DARK,extraDark:Lt.GREEN_EXTRA_DARK,contrastText:Lt.WHITE},secondary:{ultraLight:Lt.BLUE_ULTRA_LIGHT,light:Lt.BLUE_PALE,main:Lt.BLUE,dark:Lt.BLUE_DARK,extraDark:Lt.BLUE_EXTRA_DARK,contrastText:Lt.WHITE},error:{ultraLight:Lt.RED_ULTRA_LIGHT,light:Lt.RED_PALE,main:Lt.RED,dark:Lt.RED_DARK,extraDark:Lt.RED_EXTRA_DARK,contrastText:Lt.WHITE},warning:{ultraLight:Lt.ORANGE_ULTRA_LIGHT,light:Lt.ORANGE_PALE,main:Lt.ORANGE,dark:Lt.ORANGE_DARK,extraDark:Lt.ORANGE_EXTRA_DARK,contrastText:Lt.WHITE},success:{ultraLight:Lt.GREEN_ULTRA_LIGHT,light:Lt.GREEN_PALE,main:Lt.GREEN,dark:Lt.GREEN_DARK,extraDark:Lt.GREEN_EXTRA_DARK,contrastText:Lt.WHITE},info:{ultraLight:Lt.BLUE_ULTRA_LIGHT,light:Lt.BLUE_PALE,main:Lt.BLUE,dark:Lt.BLUE_DARK,extraDark:Lt.BLUE_EXTRA_DARK,contrastText:Lt.WHITE},text:{primary:Lt.TEXT_PRIMARY,secondary:Lt.TEXT_SECONDARY,disabled:Lt.GREYSCALE_0_30},action:{hover:Lt.GREYSCALE_0_03,hoverOpacity:.03,selected:Lt.GREYSCALE_0_05,selectedOpacity:.05,focus:Lt.MISC_FOCUS_BORDER},amethyst:{ultraLight:Lt.WHITE,main:Lt.PURPLE,light:Lt.PURPLE_PALE,dark:Lt.PURPLE_DARK,extraDark:Lt.GREYSCALE_0_0,contrastText:Lt.WHITE},background:{paper:Lt.WHITE,default:Lt.GREYSCALE_95},divider:Lt.GREYSCALE_0_15}),gm={...Ot};var bm={},vm={exports:{}},ym={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}(ym);var xm=ym.exports;!function(e){var t=xm.default;function r(n,o){if("function"==typeof WeakMap)var i=new WeakMap,a=new WeakMap;return(e.exports=r=function(e,r){if(!r&&e&&e.__esModule)return e;var n,o,s={__proto__:null,default:e};if(null===e||"object"!=t(e)&&"function"!=typeof e)return s;if(n=r?a:i){if(n.has(e))return n.get(e);n.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?n(s,l,o):s[l]=e[l]);return s},e.exports.__esModule=!0,e.exports.default=e.exports)(n,o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(vm);var Sm=vm.exports,wm={};function Cm(e,t){return function(){return null}}function Em(e){return e&&"object"===jl(e)&&e.constructor===Object}function Rm(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?Fr({},e):e;return Em(e)&&Em(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(Em(t[o])&&o in e?n[o]=Rm(e[o],t[o],r):n[o]=t[o])})),n}var Pm=(_i.element,function(){return null});Pm.isRequired=(_i.element.isRequired,function(){return null});var Am=function(){return null};var Im={exports:{}},Mm={},km=60103,Dm=60106,Tm=60107,Om=60108,Lm=60114,qm=60109,Nm=60110,jm=60112,_m=60113,zm=60120,Fm=60115,Hm=60116,$m=60121,Wm=60122,Bm=60117,Vm=60129,Um=60131;if("function"==typeof Symbol&&Symbol.for){var Gm=Symbol.for;km=Gm("react.element"),Dm=Gm("react.portal"),Tm=Gm("react.fragment"),Om=Gm("react.strict_mode"),Lm=Gm("react.profiler"),qm=Gm("react.provider"),Nm=Gm("react.context"),jm=Gm("react.forward_ref"),_m=Gm("react.suspense"),zm=Gm("react.suspense_list"),Fm=Gm("react.memo"),Hm=Gm("react.lazy"),$m=Gm("react.block"),Wm=Gm("react.server.block"),Bm=Gm("react.fundamental"),Vm=Gm("react.debug_trace_mode"),Um=Gm("react.legacy_hidden")}function Ym(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case km:switch(e=e.type){case Tm:case Lm:case Om:case _m:case zm:return e;default:switch(e=e&&e.$$typeof){case Nm:case jm:case Hm:case Fm:case qm:return e;default:return t}}case Dm:return t}}}var Km=qm,Xm=km,Jm=jm,Zm=Tm,Qm=Hm,eg=Fm,tg=Dm,rg=Lm,ng=Om,og=_m;Mm.ContextConsumer=Nm,Mm.ContextProvider=Km,Mm.Element=Xm,Mm.ForwardRef=Jm,Mm.Fragment=Zm,Mm.Lazy=Qm,Mm.Memo=eg,Mm.Portal=tg,Mm.Profiler=rg,Mm.StrictMode=ng,Mm.Suspense=og,Mm.isAsyncMode=function(){return!1},Mm.isConcurrentMode=function(){return!1},Mm.isContextConsumer=function(e){return Ym(e)===Nm},Mm.isContextProvider=function(e){return Ym(e)===qm},Mm.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===km},Mm.isForwardRef=function(e){return Ym(e)===jm},Mm.isFragment=function(e){return Ym(e)===Tm},Mm.isLazy=function(e){return Ym(e)===Hm},Mm.isMemo=function(e){return Ym(e)===Fm},Mm.isPortal=function(e){return Ym(e)===Dm},Mm.isProfiler=function(e){return Ym(e)===Lm},Mm.isStrictMode=function(e){return Ym(e)===Om},Mm.isSuspense=function(e){return Ym(e)===_m},Mm.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Tm||e===Lm||e===Vm||e===Om||e===_m||e===zm||e===Um||"object"==typeof e&&null!==e&&(e.$$typeof===Hm||e.$$typeof===Fm||e.$$typeof===qm||e.$$typeof===Nm||e.$$typeof===jm||e.$$typeof===Bm||e.$$typeof===$m||e[0]===Wm)},Mm.typeOf=Ym,Im.exports=Mm;var ig=Im.exports,ag=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function sg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(ag);return t&&t[1]||""}(e)||t}function lg(e,t,r){var n=sg(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var ug="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),cg=_i.oneOfType([_i.func,_i.object]),dg=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:Cm,deepmerge:Rm,elementAcceptingRef:Pm,elementTypeAcceptingRef:Am,exactProp:function(e){return e},formatMuiErrorMessage:function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."},getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return sg(e,"Component");if("object"===jl(e))switch(e.$$typeof){case ig.ForwardRef:return lg(e,e.render,"ForwardRef");case ig.Memo:return lg(e,e.type,"memo");default:return}}},ponyfillGlobal:ug,refType:cg}),pg=Ut(dg);Object.defineProperty(wm,"__esModule",{value:!0}),wm.hexToRgb=mg,wm.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=bg(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(""))},wm.hslToRgb=gg,wm.decomposeColor=bg,wm.recomposeColor=vg,wm.getContrastRatio=function(e,t){var r=yg(e),n=yg(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},wm.getLuminance=yg,wm.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return yg(e)>.5?Sg(e,t):wg(e,t)},wm.fade=function(e,t){return xg(e,t)},wm.alpha=xg,wm.darken=Sg,wm.lighten=wg;var fg=pg;function hg(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 mg(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 gg(e){var t=(e=bg(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])),vg({type:s,values:l})}function bg(e){if(e.type)return e;if("#"===e.charAt(0))return bg(mg(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,fg.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 vg(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 yg(e){var t="hsl"===(e=bg(e)).type?bg(gg(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 xg(e,t){return e=bg(e),t=hg(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,vg(e)}function Sg(e,t){if(e=bg(e),t=hg(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 vg(e)}function wg(e,t){if(e=bg(e),t=hg(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 vg(e)}var Cg,Eg,Rg,Pg={},Ag={exports:{}},Ig={exports:{}},Mg={exports:{}};function kg(){return Cg||(Cg=1,function(e){var t=xm.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}(Mg)),Mg.exports}function Dg(){return Eg||(Eg=1,function(e){var t=xm.default,r=kg();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Ig)),Ig.exports}function Tg(){return Rg||(Rg=1,function(e){var t=Dg();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}(Ag)),Ag.exports}var Og,Lg={exports:{}};function qg(){return Og||(Og=1,function(e){var t=_u();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],-1===r.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(Lg)),Lg.exports}var Ng,jg={};var _g,zg={};var Fg,Hg={},$g={};var Wg,Bg={};var Vg,Ug={};var Gg,Yg={};var Kg,Xg={};var Jg,Zg={};var Qg,eb={};var tb,rb,nb={};function ob(){if(rb)return Hg;rb=1;var e=Wl;Object.defineProperty(Hg,"__esModule",{value:!0}),Hg.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,w=e.warning,C=void 0===w?{light:u.default[300],main:u.default[500],dark:u.default[700]}:w,E=e.info,R=void 0===E?{light:c.default[300],main:c.default[500],dark:c.default[700]}:E,P=e.success,A=void 0===P?{light:d.default[300],main:d.default[500],dark:d.default[700]}:P,I=e.type,M=void 0===I?"light":I,k=e.contrastThreshold,D=void 0===k?3:k,T=e.tonalOffset,O=void 0===T?.2:T,L=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function q(e){return(0,p.getContrastRatio)(e,h.text.primary)>=D?h.text.primary:f.text.primary}var N=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,O),m(e,"dark",i,O),e.contrastText||(e.contrastText=q(e.main)),e},j={dark:h,light:f},_=(0,n.deepmerge)((0,t.default)({common:o.default,type:M,primary:N(b),secondary:N(y,"A400","A200","A700"),error:N(S),warning:N(C),info:N(R),success:N(A),grey:i.default,contrastThreshold:D,getContrastText:q,augmentColor:N,tonalOffset:O},j[M]),L);return _},Hg.dark=Hg.light=void 0;var t=e(qu()),r=e(qg()),n=pg,o=e(function(){if(Fg)return $g;Fg=1,Object.defineProperty($g,"__esModule",{value:!0}),$g.default=void 0;var e={black:"#000",white:"#fff"};return $g.default=e,$g}()),i=e(function(){if(Wg)return Bg;Wg=1,Object.defineProperty(Bg,"__esModule",{value:!0}),Bg.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 Bg.default=e,Bg}()),a=e(function(){if(Vg)return Ug;Vg=1,Object.defineProperty(Ug,"__esModule",{value:!0}),Ug.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 Ug.default=e,Ug}()),s=e(function(){if(Gg)return Yg;Gg=1,Object.defineProperty(Yg,"__esModule",{value:!0}),Yg.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 Yg.default=e,Yg}()),l=e(function(){if(Kg)return Xg;Kg=1,Object.defineProperty(Xg,"__esModule",{value:!0}),Xg.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 Xg.default=e,Xg}()),u=e(function(){if(Jg)return Zg;Jg=1,Object.defineProperty(Zg,"__esModule",{value:!0}),Zg.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 Zg.default=e,Zg}()),c=e(function(){if(Qg)return eb;Qg=1,Object.defineProperty(eb,"__esModule",{value:!0}),eb.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 eb.default=e,eb}()),d=e(function(){if(tb)return nb;tb=1,Object.defineProperty(nb,"__esModule",{value:!0}),nb.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 nb.default=e,nb}()),p=wm,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}};Hg.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 Hg.dark=h,Hg}var ib,ab={};var sb,lb={};var ub,cb={};var db={};function pb(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 fb(e,t){if(e){if("string"==typeof e)return pb(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)?pb(e,t):void 0}}function hb(e){return function(e){if(Array.isArray(e))return pb(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||fb(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 mb(e,t){return t?Rm(e,t,{clone:!1}):e}var gb={xs:0,sm:600,md:960,lg:1280,xl:1920},bb={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(gb[e],"px)")}};function vb(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||bb;return t.reduce((function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e}),{})}if("object"===jl(t)){var o=e.theme.breakpoints||bb;return Object.keys(t).reduce((function(e,n){return e[o.up(n)]=r(t[n]),e}),{})}return r(t)}function yb(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function xb(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=yb(e.theme,o)||{};return vb(e,r,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=yb(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=_l(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 Sb(){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?mb(t,n):t}),{})};return n.propTypes={},n.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),n}function wb(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var Cb=xb({prop:"border",themeKey:"borders",transform:wb}),Eb=xb({prop:"borderTop",themeKey:"borders",transform:wb}),Rb=xb({prop:"borderRight",themeKey:"borders",transform:wb}),Pb=xb({prop:"borderBottom",themeKey:"borders",transform:wb}),Ab=xb({prop:"borderLeft",themeKey:"borders",transform:wb}),Ib=xb({prop:"borderColor",themeKey:"palette"}),Mb=xb({prop:"borderRadius",themeKey:"shape"}),kb=Sb(Cb,Eb,Rb,Pb,Ab,Ib,Mb);function Db(e,t){var r={};return Object.keys(e).forEach((function(n){-1===t.indexOf(n)&&(r[n]=e[n])})),r}function Tb(e){var t=function(t){var r=e(t);return t.css?Fr({},mb(r,e(Fr({theme:t.theme},t.css))),Db(t.css,[e.filterProps])):t.sx?Fr({},mb(r,e(Fr({theme:t.theme},t.sx))),Db(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(hb(e.filterProps)),t}var Ob=Sb(xb({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),xb({prop:"display"}),xb({prop:"overflow"}),xb({prop:"textOverflow"}),xb({prop:"visibility"}),xb({prop:"whiteSpace"})),Lb=xb({prop:"flexBasis"}),qb=xb({prop:"flexDirection"}),Nb=xb({prop:"flexWrap"}),jb=xb({prop:"justifyContent"}),_b=xb({prop:"alignItems"}),zb=xb({prop:"alignContent"}),Fb=xb({prop:"order"}),Hb=xb({prop:"flex"}),$b=xb({prop:"flexGrow"}),Wb=xb({prop:"flexShrink"}),Bb=xb({prop:"alignSelf"}),Vb=xb({prop:"justifyItems"}),Ub=xb({prop:"justifySelf"}),Gb=Sb(Lb,qb,Nb,jb,_b,zb,Fb,Hb,$b,Wb,Bb,Vb,Ub),Yb=xb({prop:"gridGap"}),Kb=xb({prop:"gridColumnGap"}),Xb=xb({prop:"gridRowGap"}),Jb=xb({prop:"gridColumn"}),Zb=xb({prop:"gridRow"}),Qb=xb({prop:"gridAutoFlow"}),ev=xb({prop:"gridAutoColumns"}),tv=xb({prop:"gridAutoRows"}),rv=xb({prop:"gridTemplateColumns"}),nv=xb({prop:"gridTemplateRows"}),ov=xb({prop:"gridTemplateAreas"}),iv=xb({prop:"gridArea"}),av=Sb(Yb,Kb,Xb,Jb,Zb,Qb,ev,tv,rv,nv,ov,iv),sv=xb({prop:"color",themeKey:"palette"}),lv=xb({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),uv=Sb(sv,lv),cv=xb({prop:"position"}),dv=xb({prop:"zIndex",themeKey:"zIndex"}),pv=xb({prop:"top"}),fv=xb({prop:"right"}),hv=xb({prop:"bottom"}),mv=xb({prop:"left"}),gv=Sb(cv,dv,pv,fv,hv,mv),bv=xb({prop:"boxShadow",themeKey:"shadows"});function vv(e){return e<=1?"".concat(100*e,"%"):e}var yv=xb({prop:"width",transform:vv}),xv=xb({prop:"maxWidth",transform:vv}),Sv=xb({prop:"minWidth",transform:vv}),wv=xb({prop:"height",transform:vv}),Cv=xb({prop:"maxHeight",transform:vv}),Ev=xb({prop:"minHeight",transform:vv}),Rv=xb({prop:"size",cssProperty:"width",transform:vv}),Pv=xb({prop:"size",cssProperty:"height",transform:vv}),Av=xb({prop:"boxSizing"}),Iv=Sb(yv,xv,Sv,wv,Cv,Ev,Av);function Mv(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)||fb(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 kv={m:"margin",p:"padding"},Dv={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Tv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ov=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(!Tv[e])return[e];e=Tv[e]}var t=Mv(e.split(""),2),r=t[0],n=t[1],o=kv[r],i=Dv[n]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),Lv=["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 qv(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 Nv(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 jv(e){var t=qv(e.theme);return Object.keys(e).map((function(r){if(-1===Lv.indexOf(r))return null;var n=Nv(Ov(r),t),o=e[r];return vb(e,o,n)})).reduce(mb,{})}jv.propTypes={},jv.filterProps=Lv;var _v,zv=xb({prop:"fontFamily",themeKey:"typography"}),Fv=xb({prop:"fontSize",themeKey:"typography"}),Hv=xb({prop:"fontStyle",themeKey:"typography"}),$v=xb({prop:"fontWeight",themeKey:"typography"}),Wv=xb({prop:"letterSpacing"}),Bv=xb({prop:"lineHeight"}),Vv=xb({prop:"textAlign"}),Uv=Sb(zv,Fv,Hv,$v,Wv,Bv,Vv),Gv=Object.freeze({__proto__:null,alignContent:zb,alignItems:_b,alignSelf:Bb,bgcolor:lv,border:Cb,borderBottom:Pb,borderColor:Ib,borderLeft:Ab,borderRadius:Mb,borderRight:Rb,borderTop:Eb,borders:kb,bottom:hv,boxSizing:Av,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||bb,o=n.keys.reduce((function(r,o){return t[o]&&((r=r||{})[n.up(o)]=e(Fr({theme:t.theme},t[o]))),r}),null);return mb(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(hb(e.filterProps)),t},color:sv,compose:Sb,createUnarySpacing:qv,css:function(e){return Tb(e)},display:Ob,flex:Hb,flexBasis:Lb,flexDirection:qb,flexGrow:$b,flexShrink:Wb,flexWrap:Nb,flexbox:Gb,fontFamily:zv,fontSize:Fv,fontStyle:Hv,fontWeight:$v,grid:av,gridArea:iv,gridAutoColumns:ev,gridAutoFlow:Qb,gridAutoRows:tv,gridColumn:Jb,gridColumnGap:Kb,gridGap:Yb,gridRow:Zb,gridRowGap:Xb,gridTemplateAreas:ov,gridTemplateColumns:rv,gridTemplateRows:nv,height:wv,justifyContent:jb,justifyItems:Vb,justifySelf:Ub,left:mv,letterSpacing:Wv,lineHeight:Bv,maxHeight:Cv,maxWidth:xv,minHeight:Ev,minWidth:Sv,order:Fb,palette:uv,position:cv,positions:gv,right:fv,shadows:bv,sizeHeight:Pv,sizeWidth:Rv,sizing:Iv,spacing:jv,style:xb,styleFunctionSx:Tb,textAlign:Vv,top:pv,typography:Uv,width:yv,zIndex:dv}),Yv=Ut(Gv);var Kv,Xv={};function Jv(){if(Kv)return Xv;Kv=1;var e=Wl;Object.defineProperty(Xv,"__esModule",{value:!0}),Xv.default=Xv.duration=Xv.easing=void 0;var t=e(qg()),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)"};Xv.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")}Xv.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 Xv.default=i,Xv}var Zv,Qv,ey={};function ty(){if(Qv)return Pg;Qv=1;var e=Wl;Object.defineProperty(Pg,"__esModule",{value:!0}),Pg.createMuiTheme=function(){return p.apply(void 0,arguments)},Pg.default=void 0,e(Tg());var t=e(qg()),r=pg,n=e(function(){if(Ng)return jg;Ng=1;var e=Wl;Object.defineProperty(jg,"__esModule",{value:!0}),jg.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)},jg.keys=void 0;var t=e(qu()),r=e(qg()),n=["xs","sm","md","lg","xl"];return jg.keys=n,jg}()),o=e(function(){if(_g)return zg;_g=1;var e=Wl;Object.defineProperty(zg,"__esModule",{value:!0}),zg.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(Tg()),r=e(qu());return zg}()),i=e(ob()),a=e(function(){if(ib)return ab;ib=1;var e=Wl;Object.defineProperty(ab,"__esModule",{value:!0}),ab.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,w=u.htmlFontSize,C=void 0===w?16:w,E=u.allVariants,R=u.pxToRem,P=(0,r.default)(u,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),A=f/14,I=R||function(e){return"".concat(e/C*A,"rem")},M=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,E)},k={h1:M(m,96,1.167,-1.5),h2:M(m,60,1.2,-.5),h3:M(b,48,1.167,0),h4:M(b,34,1.235,.25),h5:M(b,24,1.334,0),h6:M(y,20,1.6,.15),subtitle1:M(b,16,1.75,.15),subtitle2:M(y,14,1.57,.1),body1:M(b,16,1.5,.15),body2:M(b,14,1.43,.15),button:M(y,14,1.75,.4,a),caption:M(b,12,1.66,.4),overline:M(b,12,2.66,1,a)};return(0,n.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:I,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:b,fontWeightMedium:y,fontWeightBold:S},k),P,{clone:!1})};var t=e(qu()),r=e(qg()),n=pg;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 ab}()),s=e(function(){if(sb)return lb;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(",")}sb=1,Object.defineProperty(lb,"__esModule",{value:!0}),lb.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 lb.default=t,lb}()),l=e(function(){if(ub)return cb;ub=1,Object.defineProperty(cb,"__esModule",{value:!0}),cb.default=void 0;var e={borderRadius:4};return cb.default=e,cb}()),u=e(function(){if(_v)return db;_v=1,Object.defineProperty(db,"__esModule",{value:!0}),db.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=Yv;return db}()),c=e(Jv()),d=e(function(){if(Zv)return ey;Zv=1,Object.defineProperty(ey,"__esModule",{value:!0}),ey.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return ey.default=e,ey}());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"]),w=(0,i.default)(b),C=(0,n.default)(f),E=(0,u.default)(v),R=(0,r.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,o.default)(C,E,m),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,x),spacing:E,shape:l.default,transitions:c.default,zIndex:d.default},S),P=arguments.length,A=new Array(P>1?P-1:0),I=1;I<P;I++)A[I-1]=arguments[I];return R=A.reduce((function(e,t){return(0,r.deepmerge)(e,t)}),R)}var f=p;return Pg.default=f,Pg}var ry,ny={};var oy={},iy="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",ay=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function sy(){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!==ay.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[iy]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function ly(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 uy="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},cy="object"===("undefined"==typeof window?"undefined":uy(window))&&"object"===("undefined"==typeof document?"undefined":uy(document))&&9===document.nodeType;function dy(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,_l(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var py={}.constructor;function fy(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(fy);if(e.constructor!==py)return e;var t={};for(var r in e)t[r]=fy(e[r]);return t}function hy(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=fy(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var my=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},gy=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+=my(e[r]," ");else t=my(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function by(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function vy(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function yy(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=by(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+=vy(p+":"+u+gy(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=vy(h+":"+u+gy(m)+";",i))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(n&&(n+=l),n+=vy(g+":"+u+gy(b)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),vy(""+e+u+"{"+n,--i)+vy("}",i)):n}var xy=/([[\].#*$><+~=|^:(),"'`\s])/g,Sy="undefined"!=typeof CSS&&CSS.escape,wy=function(e){return Sy?Sy(e):e.replace(xy,"\\$1")},Cy=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}(),Ey=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(Tc(Tc(o)),s),o.selectorText="."+wy(o.id)),o}wc(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]=gy(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?Fr({},e,{allowEmpty:!0}):e;return yy(this.selectorText,this.style,r)},dy(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}(Cy),Ry={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new Ey(e,t,r)}},Py={indent:1,children:!0},Ay=/@([\w-]+)/,Iy=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(Ay);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new Zy(Fr({},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=Py);var t=by(e).linebreak;if(null==e.indent&&(e.indent=Py.indent),null==e.children&&(e.children=Py.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),My=/@container|@media|@supports\s+/,ky={onCreateRule:function(e,t,r){return My.test(e)?new Iy(e,t,r):null}},Dy={indent:1,children:!0},Ty=/@keyframes\s+([\w-]+)/,Oy=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(Ty);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:wy(a(this,i)),this.rules=new Zy(Fr({},r,{parent:this})),t)this.rules.add(s,t[s],Fr({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Dy);var t=by(e).linebreak;if(null==e.indent&&(e.indent=Dy.indent),null==e.children&&(e.children=Dy.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}(),Ly=/@keyframes\s+/,qy=/\$([\w-]+)/g,Ny=function(e,t){return"string"==typeof e?e.replace(qy,(function(e,r){return r in t?t[r]:e})):e},jy=function(e,t,r){var n=e[t],o=Ny(n,r);o!==n&&(e[t]=o)},_y={onCreateRule:function(e,t,r){return"string"==typeof e&&Ly.test(e)?new Oy(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&jy(e,"animation-name",r.keyframes),"animation"in e&&jy(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 Ny(e,n.keyframes);default:return e}}},zy=function(e){function t(){return e.apply(this,arguments)||this}return wc(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?Fr({},e,{allowEmpty:!0}):e;return yy(this.key,this.style,r)},t}(Cy),Fy={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new zy(e,t,r):null}},Hy=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=by(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=yy(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return yy(this.at,this.style,e)},e}(),$y=/@font-face/,Wy={onCreateRule:function(e,t,r){return $y.test(e)?new Hy(e,t,r):null}},By=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 yy(this.key,this.style,e)},e}(),Vy={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new By(e,t,r):null}},Uy=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}(),Gy={"@charset":!0,"@import":!0,"@namespace":!0},Yy={onCreateRule:function(e,t,r){return e in Gy?new Uy(e,t,r):null}},Ky=[Ry,ky,_y,Fy,Wy,Vy,Yy],Xy={process:!0},Jy={force:!0,process:!0},Zy=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=Fr({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="."+wy(this.classes[d]));var p=hy(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=Fr({},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 Ey?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Oy&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Ey?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Oy&&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=Xy);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,Jy)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,Jy)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=by(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}(),Qy=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Fr({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Zy(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}(),ex=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}(),tx=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=Hr(t,["attached"]),o=by(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},dy(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),rx=new tx,nx="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ox="2f1acc6c3a606b082e5eef5e54414ffb";null==nx[ox]&&(nx[ox]=0);var ix=nx[ox]++,ax=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")+ix+o+t:i+r.key+"-"+ix+(o?"-"+o:"")+"-"+t}},sx=function(e){var t;return function(){return t||(t=e()),t}},lx=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},ux=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=gy(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},cx=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},dx=function(e,t){return e.selectorText=t,e.selectorText===t},px=sx((function(){return document.querySelector("head")}));function fx(e){var t=rx.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=px(),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 hx=sx((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),mx=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]},gx=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},bx=function(){function e(e){this.getPropertyValue=lx,this.setProperty=ux,this.removeProperty=cx,this.setSelector=dx,this.hasInsertedRules=!1,this.cssRules=[],e&&rx.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=hx();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=fx(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 px().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=gx(r,t);if(!1===(o=mx(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=gx(r,t),l=mx(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 Qy&&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}(),vx=0,yx=function(){function e(e){this.id=vx++,this.version="10.10.0",this.plugins=new ex,this.options={id:{minify:!1},createGenerateId:ax,Renderer:cy?bx:null,plugins:[]},this.generateId=ax({minify:!1});for(var t=0;t<Ky.length;t++)this.plugins.use(Ky[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=Fr({},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===rx.index?0:rx.index+1);var n=new Qy(e,Fr({},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(),rx.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=Fr({},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=hy(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}(),xx=function(e){return new yx(e)},Sx="object"==typeof CSS&&null!=CSS&&"number"in CSS;function wx(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=wx(n);i&&(t||(t={}),t[r]=i)}}return t}
|
|
91
91
|
/**
|
|
92
92
|
* A better abstraction over CSS.
|
|
93
93
|
*
|
|
94
94
|
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
95
95
|
* @website https://github.com/cssinjs/jss
|
|
96
96
|
* @license MIT
|
|
97
|
-
*/wx();var Rx=Date.now(),Px="fnValues"+Rx,Ax="fnStyle"+ ++Rx,Ix="@global",Mx="@global ",kx=function(){function e(e,t,r){for(var n in this.type="global",this.at=Ix,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new ex(Fr({},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}(),Dx=function(){function e(e,t,r){this.type="global",this.at=Ix,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,Fr({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Tx=/\s*,\s*/g;function Ox(e,t){for(var r=e.split(Tx),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function Lx(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===Ix)return new kx(e,t,r);if("@"===e[0]&&e.substr(0,8)===Mx)return new Dx(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[Ix]:null;if(o){for(var i in o)t.addRule(i,o[i],Fr({},r,{selector:Ox(i,e.selector)}));delete n[Ix]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var o in n)if("@"===o[0]&&o.substr(0,7)===Ix){var i=Ox(o.substr(7),e.selector);t.addRule(i,n[o],Fr({},r,{selector:i})),delete n[o]}}(e,t))}}}var qx=/\s*,\s*/g,Nx=/&/g,jx=/\$([\w-]+)/g;function _x(){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(qx),n=e.split(qx),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(Nx,a):a+" "+l}return o}function r(e,t,r){if(r)return Fr({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var o=Fr({},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(jx,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,n[c],Fr({},a,{selector:f})):u.addRule(h,n[c],Fr({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(l.key,n[c],{selector:l.selector});delete n[c]}}return n}}}var zx=/[A-Z]/g,Fx=/^ms-/,Hx={};function $x(e){return"-"+e.toLowerCase()}function Wx(e){if(Hx.hasOwnProperty(e))return Hx[e];var t=e.replace(zx,$x);return Hx[e]=Fx.test(t)?"-"+t:t}function Bx(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:Wx(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Bx):t.fallbacks=Bx(e.fallbacks)),t}var Vx=Cx&&CSS?CSS.px:"px",Ux=Cx&&CSS?CSS.ms:"ms",Gx=Cx&&CSS?CSS.percent:"%";function Yx(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 Kx=Yx({"animation-delay":Ux,"animation-duration":Ux,"background-position":Vx,"background-position-x":Vx,"background-position-y":Vx,"background-size":Vx,border:Vx,"border-bottom":Vx,"border-bottom-left-radius":Vx,"border-bottom-right-radius":Vx,"border-bottom-width":Vx,"border-left":Vx,"border-left-width":Vx,"border-radius":Vx,"border-right":Vx,"border-right-width":Vx,"border-top":Vx,"border-top-left-radius":Vx,"border-top-right-radius":Vx,"border-top-width":Vx,"border-width":Vx,"border-block":Vx,"border-block-end":Vx,"border-block-end-width":Vx,"border-block-start":Vx,"border-block-start-width":Vx,"border-block-width":Vx,"border-inline":Vx,"border-inline-end":Vx,"border-inline-end-width":Vx,"border-inline-start":Vx,"border-inline-start-width":Vx,"border-inline-width":Vx,"border-start-start-radius":Vx,"border-start-end-radius":Vx,"border-end-start-radius":Vx,"border-end-end-radius":Vx,margin:Vx,"margin-bottom":Vx,"margin-left":Vx,"margin-right":Vx,"margin-top":Vx,"margin-block":Vx,"margin-block-end":Vx,"margin-block-start":Vx,"margin-inline":Vx,"margin-inline-end":Vx,"margin-inline-start":Vx,padding:Vx,"padding-bottom":Vx,"padding-left":Vx,"padding-right":Vx,"padding-top":Vx,"padding-block":Vx,"padding-block-end":Vx,"padding-block-start":Vx,"padding-inline":Vx,"padding-inline-end":Vx,"padding-inline-start":Vx,"mask-position-x":Vx,"mask-position-y":Vx,"mask-size":Vx,height:Vx,width:Vx,"min-height":Vx,"max-height":Vx,"min-width":Vx,"max-width":Vx,bottom:Vx,left:Vx,top:Vx,right:Vx,inset:Vx,"inset-block":Vx,"inset-block-end":Vx,"inset-block-start":Vx,"inset-inline":Vx,"inset-inline-end":Vx,"inset-inline-start":Vx,"box-shadow":Vx,"text-shadow":Vx,"column-gap":Vx,"column-rule":Vx,"column-rule-width":Vx,"column-width":Vx,"font-size":Vx,"font-size-delta":Vx,"letter-spacing":Vx,"text-decoration-thickness":Vx,"text-indent":Vx,"text-stroke":Vx,"text-stroke-width":Vx,"word-spacing":Vx,motion:Vx,"motion-offset":Vx,outline:Vx,"outline-offset":Vx,"outline-width":Vx,perspective:Vx,"perspective-origin-x":Gx,"perspective-origin-y":Gx,"transform-origin":Gx,"transform-origin-x":Gx,"transform-origin-y":Gx,"transform-origin-z":Gx,"transition-delay":Ux,"transition-duration":Ux,"vertical-align":Vx,"flex-basis":Vx,"shape-margin":Vx,size:Vx,gap:Vx,grid:Vx,"grid-gap":Vx,"row-gap":Vx,"grid-row-gap":Vx,"grid-column-gap":Vx,"grid-template-rows":Vx,"grid-template-columns":Vx,"grid-auto-rows":Vx,"grid-auto-columns":Vx,"box-shadow-x":Vx,"box-shadow-y":Vx,"box-shadow-blur":Vx,"box-shadow-spread":Vx,"font-line-height":Vx,"text-shadow-x":Vx,"text-shadow-y":Vx,"text-shadow-blur":Vx});function Xx(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=Xx(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=Xx(o,t[o],r);else for(var i in t)t[i]=Xx(e+"-"+i,t[i],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||Kx[e];return!a||0===t&&a===Vx?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Jx(e){void 0===e&&(e={});var t=Yx(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=Xx(n,e[n],t);return e},onChangeValue:function(e,r){return Xx(r,e,t)}}}var Zx="",Qx="",eS="",tS="",rS=py&&"ontouchstart"in document.documentElement;if(py){var nS={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},oS=document.createElement("p").style;for(var iS in nS)if(iS+"Transform"in oS){Zx=iS,Qx=nS[iS];break}"Webkit"===Zx&&"msHyphens"in oS&&(Zx="ms",Qx=nS.ms,tS="edge"),"Webkit"===Zx&&"-apple-trailing-word"in oS&&(eS="apple")}var aS=Zx,sS=Qx,lS=eS,uS=tS,cS=rS;var dS={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===aS?"-webkit-"+e:sS+e)}},pS={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===aS?sS+"print-"+e:e)}},fS=/[-\s]+(.)?/g;function hS(e,t){return t?t.toUpperCase():""}function mS(e){return e.replace(fS,hS)}function gS(e){return mS("-"+e)}var bS,vS={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===aS){var r="mask-image";if(mS(r)in t)return e;if(aS+gS(r)in t)return sS+e}return e}},yS={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==lS||cS?e:sS+e)}},xS={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:sS+e)}},SS={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:sS+e)}},wS={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===aS||"ms"===aS&&"edge"!==uS?sS+e:e)}},CS={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===aS||"ms"===aS||"apple"===lS?sS+e:e)}},ES={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===aS?"WebkitColumn"+gS(e)in t&&sS+"column-"+e:"Moz"===aS&&("page"+gS(e)in t&&"page-"+e))}},RS={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===aS)return e;var r=e.replace("-inline","");return aS+gS(r)in t&&sS+r}},PS={supportedProperty:function(e,t){return mS(e)in t&&e}},AS={supportedProperty:function(e,t){var r=gS(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:aS+r in t?sS+e:"Webkit"!==aS&&"Webkit"+r in t&&"-webkit-"+e}},IS={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===aS?""+sS+e:e)}},MS={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===aS?sS+"scroll-chaining":e)}},kS={"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"},DS={supportedProperty:function(e,t){var r=kS[e];return!!r&&(aS+gS(r)in t&&sS+r)}},TS={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"},OS=Object.keys(TS),LS=function(e){return sS+e},qS={supportedProperty:function(e,t,r){var n=r.multiple;if(OS.indexOf(e)>-1){var o=TS[e];if(!Array.isArray(o))return aS+gS(o)in t&&sS+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(aS+gS(o[0])in t))return!1;return o.map(LS)}return!1}},NS=[dS,pS,vS,yS,xS,SS,wS,CS,ES,RS,PS,AS,IS,MS,DS,qS],jS=NS.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),_S=NS.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,gb(t.noPrefill)),e}),[]),zS={};if(py){bS=document.createElement("p");var FS=window.getComputedStyle(document.documentElement,"");for(var HS in FS)isNaN(HS)||(zS[FS[HS]]=FS[HS]);_S.forEach((function(e){return delete zS[e]}))}function $S(e,t){if(void 0===t&&(t={}),!bS)return e;if(null!=zS[e])return zS[e];"transition"!==e&&"transform"!==e||(t[e]=e in bS.style);for(var r=0;r<jS.length&&(zS[e]=jS[r](e,bS.style,t),!zS[e]);r++);try{bS.style[e]=""}catch(e){return!1}return zS[e]}var WS,BS={},VS={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},US=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function GS(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?$S(t):", "+$S(r);return n||(t||r)}function YS(e,t){var r=t;if(!WS||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=BS[n])return BS[n];try{WS.style[e]=r}catch(e){return BS[n]=!1,!1}if(VS[e])r=r.replace(US,GS);else if(""===WS.style[e]&&("-ms-flex"===(r=sS+r)&&(WS.style[e]="-ms-flexbox"),WS.style[e]=r,""===WS.style[e]))return BS[n]=!1,!1;return WS.style[e]="",BS[n]=r,BS[n]}function KS(){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=$S(r);i&&i!==r&&(o=!0);var a=!1,s=YS(i,vy(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"===aS?e:"@"+sS+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return YS(t,vy(e))||e}}}function XS(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{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}}}function JS(){return{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=gy(e,{},r);return n[Ax]=t,n},onProcessStyle:function(e,t){if(Px in t||Ax 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[Px]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[Ax];i&&(o.style=i(e)||{});var a=o[Px];if(a)for(var s in a)o.prop(s,a[s](e),n)}},Lx(),_x(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Bx(e[t]);return e}return Bx(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=Wx(t);return t===n?e:(r.prop(n,e),null)}},Jx(),"undefined"==typeof window?null:KS(),XS()]}}function ZS(e,t){if(null==e)return{};var r,n,o=Hr(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function QS(){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=Fr({},t);return Object.keys(r).forEach((function(e){r[e]&&(n[e]="".concat(t[e]," ").concat(r[e]))})),n}py&&(WS=document.createElement("p"));var ew=function(e,t,r,n){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},tw=function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},rw=function(e,t,r){e.get(t).delete(r)},nw=x.createContext(null);function ow(){return x.useContext(nw)}var iw,aw=wx(JS()),sw=uy(),lw=new Map,uw={disableGeneration:!1,generateClassName:sw,jss:aw,sheetsCache:null,sheetsManager:lw,sheetsRegistry:null},cw=x.createContext(uw);function dw(e){var t=e.children,r=e.injectFirst,n=void 0!==r&&r,o=e.disableGeneration,i=void 0!==o&&o,a=ZS(e,["children","injectFirst","disableGeneration"]),s=Fr({},x.useContext(cw),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&n&&"undefined"!=typeof window){if(!iw){var l=document.head;iw=document.createComment("mui-inject-first"),l.insertBefore(iw,l.firstChild)}s.jss=wx({plugins:JS().plugins,insertionPoint:iw})}return x.createElement(cw.Provider,{value:s},t)}var pw=-1e9;var fw={};function hw(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=tw(o.sheetsManager,i,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},ew(o.sheetsManager,i,n,s));var l=Fr({},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=tw(o.sheetsCache,i,n));var d=i.create(n,a);c||((c=o.jss.createStyleSheet(d,Fr({link:!1},l))).attach(),o.sheetsCache&&ew(o.sheetsCache,i,n,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=Ex(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,Fr({link:!0},l));p.update(t),p.attach(),r.dynamicSheet=p,r.classes=QS({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else r.classes=s.staticSheet.classes;s.refs+=1}}function mw(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?fw:i,s=ZS(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=Fr({},o);return Object.keys(i).forEach((function(e){a[e]=Am(a[e],i[e])})),a},options:{}}}(e),u=r||n||"makeStyles";l.options={index:pw+=1,name:r,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ow()||a,n=Fr({},x.useContext(cw),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 hw(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=tw(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;0===i.refs&&(rw(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=QS({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(i.current,e.classes,o);return c}}var gw=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 fy(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new nx;var r=uy();return x.createElement(dw,Fr({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",Fr({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function bw(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=bw(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function vw(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=bw(e))&&(n&&(n+=" "),n+=t);return n}var yw={exports:{}},xw={},Sw="function"==typeof Symbol&&Symbol.for,ww=Sw?Symbol.for("react.element"):60103,Cw=Sw?Symbol.for("react.portal"):60106,Ew=Sw?Symbol.for("react.fragment"):60107,Rw=Sw?Symbol.for("react.strict_mode"):60108,Pw=Sw?Symbol.for("react.profiler"):60114,Aw=Sw?Symbol.for("react.provider"):60109,Iw=Sw?Symbol.for("react.context"):60110,Mw=Sw?Symbol.for("react.async_mode"):60111,kw=Sw?Symbol.for("react.concurrent_mode"):60111,Dw=Sw?Symbol.for("react.forward_ref"):60112,Tw=Sw?Symbol.for("react.suspense"):60113,Ow=Sw?Symbol.for("react.suspense_list"):60120,Lw=Sw?Symbol.for("react.memo"):60115,qw=Sw?Symbol.for("react.lazy"):60116,Nw=Sw?Symbol.for("react.block"):60121,jw=Sw?Symbol.for("react.fundamental"):60117,_w=Sw?Symbol.for("react.responder"):60118,zw=Sw?Symbol.for("react.scope"):60119;function Fw(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ww:switch(e=e.type){case Mw:case kw:case Ew:case Pw:case Rw:case Tw:return e;default:switch(e=e&&e.$$typeof){case Iw:case Dw:case qw:case Lw:case Aw:return e;default:return t}}case Cw:return t}}}function Hw(e){return Fw(e)===kw}xw.AsyncMode=Mw,xw.ConcurrentMode=kw,xw.ContextConsumer=Iw,xw.ContextProvider=Aw,xw.Element=ww,xw.ForwardRef=Dw,xw.Fragment=Ew,xw.Lazy=qw,xw.Memo=Lw,xw.Portal=Cw,xw.Profiler=Pw,xw.StrictMode=Rw,xw.Suspense=Tw,xw.isAsyncMode=function(e){return Hw(e)||Fw(e)===Mw},xw.isConcurrentMode=Hw,xw.isContextConsumer=function(e){return Fw(e)===Iw},xw.isContextProvider=function(e){return Fw(e)===Aw},xw.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ww},xw.isForwardRef=function(e){return Fw(e)===Dw},xw.isFragment=function(e){return Fw(e)===Ew},xw.isLazy=function(e){return Fw(e)===qw},xw.isMemo=function(e){return Fw(e)===Lw},xw.isPortal=function(e){return Fw(e)===Cw},xw.isProfiler=function(e){return Fw(e)===Pw},xw.isStrictMode=function(e){return Fw(e)===Rw},xw.isSuspense=function(e){return Fw(e)===Tw},xw.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Ew||e===kw||e===Pw||e===Rw||e===Tw||e===Ow||"object"==typeof e&&null!==e&&(e.$$typeof===qw||e.$$typeof===Lw||e.$$typeof===Aw||e.$$typeof===Iw||e.$$typeof===Dw||e.$$typeof===jw||e.$$typeof===_w||e.$$typeof===zw||e.$$typeof===Nw)},xw.typeOf=Fw,yw.exports=xw;var $w=yw.exports,Ww={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Bw={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Vw={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Uw={};function Gw(e){return $w.isMemo(e)?Vw:Uw[e.$$typeof]||Ww}Uw[$w.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Uw[$w.Memo]=Vw;var Yw=Object.defineProperty,Kw=Object.getOwnPropertyNames,Xw=Object.getOwnPropertySymbols,Jw=Object.getOwnPropertyDescriptor,Zw=Object.getPrototypeOf,Qw=Object.prototype;var eC=function e(t,r,n){if("string"!=typeof r){if(Qw){var o=Zw(r);o&&o!==Qw&&e(t,o,n)}var i=Kw(r);Xw&&(i=i.concat(Xw(r)));for(var a=Gw(t),s=Gw(r),l=0;l<i.length;++l){var u=i[l];if(!(Bw[u]||n&&n[u]||s&&s[u]||a&&a[u])){var c=Jw(r,u);try{Yw(t,u,c)}catch(e){}}}}return t},tC=Vt(eC);function rC(){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=ZS(r,["innerRef"]),a=ow()||e;return x.createElement(t,Fr({theme:a,ref:o||n},i))}));return tC(r,t),r}}var nC,oC=rC(),iC=Object.freeze({__proto__:null,ServerStyleSheets:gw,StylesContext:cw,StylesProvider:dw,ThemeProvider:function(e){var t=e.children,r=e.theme,n=ow(),o=x.useMemo((function(){var e=null===n?r:function(e,t){return"function"==typeof t?t(e):Fr({},e,t)}(n,r);return null!=e&&(e[sy]=null!==n),e}),[r,n]);return x.createElement(nw.Provider,{value:o},t)},createGenerateClassName:uy,createStyles:function(e){return e},getThemeProps:cy,jssPreset:JS,makeStyles:mw,mergeClasses:QS,sheetsManager:lw,styled:function(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.name,i=ZS(n,["name"]),a=o,s=mw("function"==typeof t?function(e){return{root:function(r){return t(Fr({theme:e},r))}}}:{root:t},Fr({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=ZS(t,["children","className","clone","component"]),f=vw(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,Fr({className:vw(l.props.className,f)},h));if("function"==typeof l)return l(Fr({className:f},h));var m=d||e;return x.createElement(m,Fr({ref:n,className:f},h),l)}));return tC(l,e),l}},useTheme:ow,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=ZS(t,["defaultTheme","withTheme","name"]),l=a,u=mw(e,Fr({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=ZS(e,["classes","innerRef"]),c=u(Fr({},r.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=ow()||n,a&&(d=cy({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),x.createElement(r,Fr({ref:s||t,classes:c},d))}));return tC(c,r),c}},withTheme:oC,withThemeCreator:rC}),aC=Ut(iC);
|
|
97
|
+
*/xx();var Cx=Date.now(),Ex="fnValues"+Cx,Rx="fnStyle"+ ++Cx,Px="@global",Ax="@global ",Ix=function(){function e(e,t,r){for(var n in this.type="global",this.at=Px,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new Zy(Fr({},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}(),Mx=function(){function e(e,t,r){this.type="global",this.at=Px,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,Fr({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),kx=/\s*,\s*/g;function Dx(e,t){for(var r=e.split(kx),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function Tx(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===Px)return new Ix(e,t,r);if("@"===e[0]&&e.substr(0,8)===Ax)return new Mx(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[Px]:null;if(o){for(var i in o)t.addRule(i,o[i],Fr({},r,{selector:Dx(i,e.selector)}));delete n[Px]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var o in n)if("@"===o[0]&&o.substr(0,7)===Px){var i=Dx(o.substr(7),e.selector);t.addRule(i,n[o],Fr({},r,{selector:i})),delete n[o]}}(e,t))}}}var Ox=/\s*,\s*/g,Lx=/&/g,qx=/\$([\w-]+)/g;function Nx(){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(Ox),n=e.split(Ox),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(Lx,a):a+" "+l}return o}function r(e,t,r){if(r)return Fr({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var o=Fr({},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(qx,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,n[c],Fr({},a,{selector:f})):u.addRule(h,n[c],Fr({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(l.key,n[c],{selector:l.selector});delete n[c]}}return n}}}var jx=/[A-Z]/g,_x=/^ms-/,zx={};function Fx(e){return"-"+e.toLowerCase()}function Hx(e){if(zx.hasOwnProperty(e))return zx[e];var t=e.replace(jx,Fx);return zx[e]=_x.test(t)?"-"+t:t}function $x(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:Hx(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map($x):t.fallbacks=$x(e.fallbacks)),t}var Wx=Sx&&CSS?CSS.px:"px",Bx=Sx&&CSS?CSS.ms:"ms",Vx=Sx&&CSS?CSS.percent:"%";function Ux(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 Gx=Ux({"animation-delay":Bx,"animation-duration":Bx,"background-position":Wx,"background-position-x":Wx,"background-position-y":Wx,"background-size":Wx,border:Wx,"border-bottom":Wx,"border-bottom-left-radius":Wx,"border-bottom-right-radius":Wx,"border-bottom-width":Wx,"border-left":Wx,"border-left-width":Wx,"border-radius":Wx,"border-right":Wx,"border-right-width":Wx,"border-top":Wx,"border-top-left-radius":Wx,"border-top-right-radius":Wx,"border-top-width":Wx,"border-width":Wx,"border-block":Wx,"border-block-end":Wx,"border-block-end-width":Wx,"border-block-start":Wx,"border-block-start-width":Wx,"border-block-width":Wx,"border-inline":Wx,"border-inline-end":Wx,"border-inline-end-width":Wx,"border-inline-start":Wx,"border-inline-start-width":Wx,"border-inline-width":Wx,"border-start-start-radius":Wx,"border-start-end-radius":Wx,"border-end-start-radius":Wx,"border-end-end-radius":Wx,margin:Wx,"margin-bottom":Wx,"margin-left":Wx,"margin-right":Wx,"margin-top":Wx,"margin-block":Wx,"margin-block-end":Wx,"margin-block-start":Wx,"margin-inline":Wx,"margin-inline-end":Wx,"margin-inline-start":Wx,padding:Wx,"padding-bottom":Wx,"padding-left":Wx,"padding-right":Wx,"padding-top":Wx,"padding-block":Wx,"padding-block-end":Wx,"padding-block-start":Wx,"padding-inline":Wx,"padding-inline-end":Wx,"padding-inline-start":Wx,"mask-position-x":Wx,"mask-position-y":Wx,"mask-size":Wx,height:Wx,width:Wx,"min-height":Wx,"max-height":Wx,"min-width":Wx,"max-width":Wx,bottom:Wx,left:Wx,top:Wx,right:Wx,inset:Wx,"inset-block":Wx,"inset-block-end":Wx,"inset-block-start":Wx,"inset-inline":Wx,"inset-inline-end":Wx,"inset-inline-start":Wx,"box-shadow":Wx,"text-shadow":Wx,"column-gap":Wx,"column-rule":Wx,"column-rule-width":Wx,"column-width":Wx,"font-size":Wx,"font-size-delta":Wx,"letter-spacing":Wx,"text-decoration-thickness":Wx,"text-indent":Wx,"text-stroke":Wx,"text-stroke-width":Wx,"word-spacing":Wx,motion:Wx,"motion-offset":Wx,outline:Wx,"outline-offset":Wx,"outline-width":Wx,perspective:Wx,"perspective-origin-x":Vx,"perspective-origin-y":Vx,"transform-origin":Vx,"transform-origin-x":Vx,"transform-origin-y":Vx,"transform-origin-z":Vx,"transition-delay":Bx,"transition-duration":Bx,"vertical-align":Wx,"flex-basis":Wx,"shape-margin":Wx,size:Wx,gap:Wx,grid:Wx,"grid-gap":Wx,"row-gap":Wx,"grid-row-gap":Wx,"grid-column-gap":Wx,"grid-template-rows":Wx,"grid-template-columns":Wx,"grid-auto-rows":Wx,"grid-auto-columns":Wx,"box-shadow-x":Wx,"box-shadow-y":Wx,"box-shadow-blur":Wx,"box-shadow-spread":Wx,"font-line-height":Wx,"text-shadow-x":Wx,"text-shadow-y":Wx,"text-shadow-blur":Wx});function Yx(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=Yx(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=Yx(o,t[o],r);else for(var i in t)t[i]=Yx(e+"-"+i,t[i],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||Gx[e];return!a||0===t&&a===Wx?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Kx(e){void 0===e&&(e={});var t=Ux(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=Yx(n,e[n],t);return e},onChangeValue:function(e,r){return Yx(r,e,t)}}}var Xx="",Jx="",Zx="",Qx="",eS=cy&&"ontouchstart"in document.documentElement;if(cy){var tS={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},rS=document.createElement("p").style;for(var nS in tS)if(nS+"Transform"in rS){Xx=nS,Jx=tS[nS];break}"Webkit"===Xx&&"msHyphens"in rS&&(Xx="ms",Jx=tS.ms,Qx="edge"),"Webkit"===Xx&&"-apple-trailing-word"in rS&&(Zx="apple")}var oS=Xx,iS=Jx,aS=Zx,sS=Qx,lS=eS;var uS={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===oS?"-webkit-"+e:iS+e)}},cS={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===oS?iS+"print-"+e:e)}},dS=/[-\s]+(.)?/g;function pS(e,t){return t?t.toUpperCase():""}function fS(e){return e.replace(dS,pS)}function hS(e){return fS("-"+e)}var mS,gS={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===oS){var r="mask-image";if(fS(r)in t)return e;if(oS+hS(r)in t)return iS+e}return e}},bS={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==aS||lS?e:iS+e)}},vS={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:iS+e)}},yS={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:iS+e)}},xS={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===oS||"ms"===oS&&"edge"!==sS?iS+e:e)}},SS={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===oS||"ms"===oS||"apple"===aS?iS+e:e)}},wS={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===oS?"WebkitColumn"+hS(e)in t&&iS+"column-"+e:"Moz"===oS&&("page"+hS(e)in t&&"page-"+e))}},CS={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===oS)return e;var r=e.replace("-inline","");return oS+hS(r)in t&&iS+r}},ES={supportedProperty:function(e,t){return fS(e)in t&&e}},RS={supportedProperty:function(e,t){var r=hS(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:oS+r in t?iS+e:"Webkit"!==oS&&"Webkit"+r in t&&"-webkit-"+e}},PS={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===oS?""+iS+e:e)}},AS={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===oS?iS+"scroll-chaining":e)}},IS={"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"},MS={supportedProperty:function(e,t){var r=IS[e];return!!r&&(oS+hS(r)in t&&iS+r)}},kS={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"},DS=Object.keys(kS),TS=function(e){return iS+e},OS={supportedProperty:function(e,t,r){var n=r.multiple;if(DS.indexOf(e)>-1){var o=kS[e];if(!Array.isArray(o))return oS+hS(o)in t&&iS+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(oS+hS(o[0])in t))return!1;return o.map(TS)}return!1}},LS=[uS,cS,gS,bS,vS,yS,xS,SS,wS,CS,ES,RS,PS,AS,MS,OS],qS=LS.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),NS=LS.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,hb(t.noPrefill)),e}),[]),jS={};if(cy){mS=document.createElement("p");var _S=window.getComputedStyle(document.documentElement,"");for(var zS in _S)isNaN(zS)||(jS[_S[zS]]=_S[zS]);NS.forEach((function(e){return delete jS[e]}))}function FS(e,t){if(void 0===t&&(t={}),!mS)return e;if(null!=jS[e])return jS[e];"transition"!==e&&"transform"!==e||(t[e]=e in mS.style);for(var r=0;r<qS.length&&(jS[e]=qS[r](e,mS.style,t),!jS[e]);r++);try{mS.style[e]=""}catch(e){return!1}return jS[e]}var HS,$S={},WS={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},BS=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function VS(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?FS(t):", "+FS(r);return n||(t||r)}function US(e,t){var r=t;if(!HS||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=$S[n])return $S[n];try{HS.style[e]=r}catch(e){return $S[n]=!1,!1}if(WS[e])r=r.replace(BS,VS);else if(""===HS.style[e]&&("-ms-flex"===(r=iS+r)&&(HS.style[e]="-ms-flexbox"),HS.style[e]=r,""===HS.style[e]))return $S[n]=!1,!1;return HS.style[e]="",$S[n]=r,$S[n]}function GS(){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=FS(r);i&&i!==r&&(o=!0);var a=!1,s=US(i,gy(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"===oS?e:"@"+iS+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return US(t,gy(e))||e}}}function YS(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{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}}}function KS(){return{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=hy(e,{},r);return n[Rx]=t,n},onProcessStyle:function(e,t){if(Ex in t||Rx 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[Ex]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[Rx];i&&(o.style=i(e)||{});var a=o[Ex];if(a)for(var s in a)o.prop(s,a[s](e),n)}},Tx(),Nx(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=$x(e[t]);return e}return $x(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=Hx(t);return t===n?e:(r.prop(n,e),null)}},Kx(),"undefined"==typeof window?null:GS(),YS()]}}function XS(e,t){if(null==e)return{};var r,n,o=Hr(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function JS(){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=Fr({},t);return Object.keys(r).forEach((function(e){r[e]&&(n[e]="".concat(t[e]," ").concat(r[e]))})),n}cy&&(HS=document.createElement("p"));var ZS=function(e,t,r,n){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},QS=function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},ew=function(e,t,r){e.get(t).delete(r)},tw=x.createContext(null);function rw(){return x.useContext(tw)}var nw,ow=xx(KS()),iw=sy(),aw=new Map,sw={disableGeneration:!1,generateClassName:iw,jss:ow,sheetsCache:null,sheetsManager:aw,sheetsRegistry:null},lw=x.createContext(sw);function uw(e){var t=e.children,r=e.injectFirst,n=void 0!==r&&r,o=e.disableGeneration,i=void 0!==o&&o,a=XS(e,["children","injectFirst","disableGeneration"]),s=Fr({},x.useContext(lw),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&n&&"undefined"!=typeof window){if(!nw){var l=document.head;nw=document.createComment("mui-inject-first"),l.insertBefore(nw,l.firstChild)}s.jss=xx({plugins:KS().plugins,insertionPoint:nw})}return x.createElement(lw.Provider,{value:s},t)}var cw=-1e9;var dw={};function pw(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=QS(o.sheetsManager,i,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},ZS(o.sheetsManager,i,n,s));var l=Fr({},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=QS(o.sheetsCache,i,n));var d=i.create(n,a);c||((c=o.jss.createStyleSheet(d,Fr({link:!1},l))).attach(),o.sheetsCache&&ZS(o.sheetsCache,i,n,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=wx(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,Fr({link:!0},l));p.update(t),p.attach(),r.dynamicSheet=p,r.classes=JS({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else r.classes=s.staticSheet.classes;s.refs+=1}}function fw(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?dw:i,s=XS(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=Fr({},o);return Object.keys(i).forEach((function(e){a[e]=Rm(a[e],i[e])})),a},options:{}}}(e),u=r||n||"makeStyles";l.options={index:cw+=1,name:r,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=rw()||a,n=Fr({},x.useContext(lw),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 pw(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=QS(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;0===i.refs&&(ew(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=JS({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(i.current,e.classes,o);return c}}var hw=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 dy(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new tx;var r=sy();return x.createElement(uw,Fr({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",Fr({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function mw(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=mw(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function gw(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=mw(e))&&(n&&(n+=" "),n+=t);return n}var bw={exports:{}},vw={},yw="function"==typeof Symbol&&Symbol.for,xw=yw?Symbol.for("react.element"):60103,Sw=yw?Symbol.for("react.portal"):60106,ww=yw?Symbol.for("react.fragment"):60107,Cw=yw?Symbol.for("react.strict_mode"):60108,Ew=yw?Symbol.for("react.profiler"):60114,Rw=yw?Symbol.for("react.provider"):60109,Pw=yw?Symbol.for("react.context"):60110,Aw=yw?Symbol.for("react.async_mode"):60111,Iw=yw?Symbol.for("react.concurrent_mode"):60111,Mw=yw?Symbol.for("react.forward_ref"):60112,kw=yw?Symbol.for("react.suspense"):60113,Dw=yw?Symbol.for("react.suspense_list"):60120,Tw=yw?Symbol.for("react.memo"):60115,Ow=yw?Symbol.for("react.lazy"):60116,Lw=yw?Symbol.for("react.block"):60121,qw=yw?Symbol.for("react.fundamental"):60117,Nw=yw?Symbol.for("react.responder"):60118,jw=yw?Symbol.for("react.scope"):60119;function _w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case xw:switch(e=e.type){case Aw:case Iw:case ww:case Ew:case Cw:case kw:return e;default:switch(e=e&&e.$$typeof){case Pw:case Mw:case Ow:case Tw:case Rw:return e;default:return t}}case Sw:return t}}}function zw(e){return _w(e)===Iw}vw.AsyncMode=Aw,vw.ConcurrentMode=Iw,vw.ContextConsumer=Pw,vw.ContextProvider=Rw,vw.Element=xw,vw.ForwardRef=Mw,vw.Fragment=ww,vw.Lazy=Ow,vw.Memo=Tw,vw.Portal=Sw,vw.Profiler=Ew,vw.StrictMode=Cw,vw.Suspense=kw,vw.isAsyncMode=function(e){return zw(e)||_w(e)===Aw},vw.isConcurrentMode=zw,vw.isContextConsumer=function(e){return _w(e)===Pw},vw.isContextProvider=function(e){return _w(e)===Rw},vw.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===xw},vw.isForwardRef=function(e){return _w(e)===Mw},vw.isFragment=function(e){return _w(e)===ww},vw.isLazy=function(e){return _w(e)===Ow},vw.isMemo=function(e){return _w(e)===Tw},vw.isPortal=function(e){return _w(e)===Sw},vw.isProfiler=function(e){return _w(e)===Ew},vw.isStrictMode=function(e){return _w(e)===Cw},vw.isSuspense=function(e){return _w(e)===kw},vw.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===ww||e===Iw||e===Ew||e===Cw||e===kw||e===Dw||"object"==typeof e&&null!==e&&(e.$$typeof===Ow||e.$$typeof===Tw||e.$$typeof===Rw||e.$$typeof===Pw||e.$$typeof===Mw||e.$$typeof===qw||e.$$typeof===Nw||e.$$typeof===jw||e.$$typeof===Lw)},vw.typeOf=_w,bw.exports=vw;var Fw=bw.exports,Hw={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$w={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ww={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Bw={};function Vw(e){return Fw.isMemo(e)?Ww:Bw[e.$$typeof]||Hw}Bw[Fw.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Bw[Fw.Memo]=Ww;var Uw=Object.defineProperty,Gw=Object.getOwnPropertyNames,Yw=Object.getOwnPropertySymbols,Kw=Object.getOwnPropertyDescriptor,Xw=Object.getPrototypeOf,Jw=Object.prototype;var Zw=function e(t,r,n){if("string"!=typeof r){if(Jw){var o=Xw(r);o&&o!==Jw&&e(t,o,n)}var i=Gw(r);Yw&&(i=i.concat(Yw(r)));for(var a=Vw(t),s=Vw(r),l=0;l<i.length;++l){var u=i[l];if(!($w[u]||n&&n[u]||s&&s[u]||a&&a[u])){var c=Kw(r,u);try{Uw(t,u,c)}catch(e){}}}}return t},Qw=Vt(Zw);function eC(){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=XS(r,["innerRef"]),a=rw()||e;return x.createElement(t,Fr({theme:a,ref:o||n},i))}));return Qw(r,t),r}}var tC,rC=eC(),nC=Object.freeze({__proto__:null,ServerStyleSheets:hw,StylesContext:lw,StylesProvider:uw,ThemeProvider:function(e){var t=e.children,r=e.theme,n=rw(),o=x.useMemo((function(){var e=null===n?r:function(e,t){return"function"==typeof t?t(e):Fr({},e,t)}(n,r);return null!=e&&(e[iy]=null!==n),e}),[r,n]);return x.createElement(tw.Provider,{value:o},t)},createGenerateClassName:sy,createStyles:function(e){return e},getThemeProps:ly,jssPreset:KS,makeStyles:fw,mergeClasses:JS,sheetsManager:aw,styled:function(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.name,i=XS(n,["name"]),a=o,s=fw("function"==typeof t?function(e){return{root:function(r){return t(Fr({theme:e},r))}}}:{root:t},Fr({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=XS(t,["children","className","clone","component"]),f=gw(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,Fr({className:gw(l.props.className,f)},h));if("function"==typeof l)return l(Fr({className:f},h));var m=d||e;return x.createElement(m,Fr({ref:n,className:f},h),l)}));return Qw(l,e),l}},useTheme:rw,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=XS(t,["defaultTheme","withTheme","name"]),l=a,u=fw(e,Fr({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=XS(e,["classes","innerRef"]),c=u(Fr({},r.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=rw()||n,a&&(d=ly({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),x.createElement(r,Fr({ref:s||t,classes:c},d))}));return Qw(c,r),c}},withTheme:rC,withThemeCreator:eC}),oC=Ut(nC);
|
|
98
98
|
/** @license Material-UI v4.11.5
|
|
99
99
|
*
|
|
100
100
|
* This source code is licensed under the MIT license found in the
|
|
101
101
|
* LICENSE file in the root directory of this source tree.
|
|
102
|
-
*/var sC,lC,uC={},cC={};function dC(){if(sC)return cC;sC=1;var e=Vl;Object.defineProperty(cC,"__esModule",{value:!0}),cC.default=void 0;var t=(0,e(ny()).default)();return cC.default=t,cC}var pC,fC,hC={},mC={};function gC(){if(fC)return hC;fC=1;var e=Vl;Object.defineProperty(hC,"__esModule",{value:!0}),hC.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(ju()),r=hg,n=function(){if(pC)return mC;pC=1;var e=Vl;Object.defineProperty(mC,"__esModule",{value:!0}),mC.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},mC.getUnit=r,mC.toUnitless=n,mC.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}},mC.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},mC.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},mC.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(Lg());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return mC}();return hC}var bC,vC={};var yC,xC={};var SC,wC={};var CC,EC={};!function(e){var t=Vl,r=Cm;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=Em;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(ny()),a=t(function(){if(oy)return iy;oy=1;var e=Vl;Object.defineProperty(iy,"__esModule",{value:!0}),iy.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=hg,r=e(ny());return iy}()),s=t(function(){if(nC)return ay;nC=1,Object.defineProperty(ay,"__esModule",{value:!0}),ay.default=function(t){return(0,e.createStyles)(t)};var e=aC;return ay}()),l=t(function(){if(lC)return uC;lC=1;var e=Vl;Object.defineProperty(uC,"__esModule",{value:!0}),uC.default=void 0;var t=e(ju()),r=aC,n=e(dC()),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 uC.default=o,uC}()),u=t(gC()),c=t(function(){if(bC)return vC;bC=1;var e=Vl;Object.defineProperty(vC,"__esModule",{value:!0}),vC.default=void 0;var t=e(ju()),r=aC,n=e(dC()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return vC.default=o,vC}()),d=Qv();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(yC)return xC;yC=1;var e=Vl;Object.defineProperty(xC,"__esModule",{value:!0}),xC.default=function(){return(0,t.useTheme)()||r.default};var t=aC;e(x);var r=e(dC());return xC}()),f=t(function(){if(SC)return wC;SC=1;var e=Vl;Object.defineProperty(wC,"__esModule",{value:!0}),wC.default=void 0;var t=e(ju()),r=aC,n=e(dC()),o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return wC.default=o,wC}()),h=t(function(){if(CC)return EC;CC=1;var e=Vl;Object.defineProperty(EC,"__esModule",{value:!0}),EC.default=void 0;var t=aC,r=e(dC()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return EC.default=n,EC}()),m=aC}(ym),ym.alpha(Lt.GREYSCALE_0,.05),ym.alpha(Lt.GREEN_PALE,.5),ym.alpha(Lt.BLUE_PALE,.5),ym.alpha(Lt.GREEN_PALE,.5),ym.alpha(Lt.BLUE_PALE,.5),ym.alpha(Lt.GREEN_PALE,.5),ym.alpha(Lt.BLUE_PALE,.5),ym.alpha(Lt.GREEN_PALE,.5),ym.alpha(Lt.BLUE_PALE,.5),ym.alpha(Lt.GREEN_PALE,.5),ym.alpha(Lt.BLUE_PALE,.5);const RC=(e="light",t=!1)=>((e,t=!1)=>({components:gm(0,t),palette:bm(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:Nt,fontWeightLight:Ft,fontWeightRegular:Ht,fontWeightMedium:$t,fontWeightBold:Wt,htmlFontSize:Nt,fontFamily:Bt.FONT_FAMILY,button:{fontWeight:$t,fontSize:Nt,textTransform:"none"},body1:{fontSize:jt,lineHeight:"24px"},body2:{fontSize:Nt,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:_t,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:jt,fontWeight:$t,lineHeight:"16px"},h6:{fontSize:Nt,fontWeight:$t,lineHeight:"16px"},caption:{color:Lt.TEXT_SECONDARY},subtitle1:{fontSize:Nt,color:Lt.TEXT_SECONDARY},subtitle2:{fontSize:qt,color:Lt.TEXT_SECONDARY}},shape:{borderRadius:zt}}))(0,t),PC=RC().palette,AC={TEXT:PC.text.primary,DISABLED:PC.text.disabled,HOVER:PC.action.hover,WHITE:vm.GREYSCALE_100,BORDER_LIGHT:vm.GREYSCALE_90,BORDER_MEDIUM:vm.GREYSCALE_85,BORDER_HEAVY:vm.GREYSCALE_50,DARK_MODE_TEXT:vm.GREYSCALE_95,DARK_MODE_BORDER:vm.GREYSCALE_95,DARK_MODE_DISABLED:vm.GREYSCALE_70,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:vm.GREYSCALE_95,SELECTED:PC.primary.main,LINK:PC.info.main,ERROR:PC.error.main},IC=(e,t=AC.TEXT,r=AC.WHITE)=>{const n=ne(e),o=ne(t),i=ne(r);return n.isInvalid()?t:function(e,t,r){const n=oe(e,t),o=oe(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},MC=e=>{const t=e.getStyle("","","dataColors.selected")||AC.SELECTED,r=function(e,t){const r=ne("#FFFFFF"),n=ne(e),o=ne(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=oe(r,n),a=oe(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}(t,AC.TEXT);return{background:t,color:r}},kC=(e,t)=>{const r=ne(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},DC=(e,t,r)=>{const n=t?e.getColorPickerColor(t):"none";return"none"===n?r:n},TC=e=>{const t=ne(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},OC=(e,t,r)=>{const n=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;n?n.focus():t.focusSelection?.(r)},LC=e=>{e.stopPropagation(),e.preventDefault()},qC=e=>!!e&&0===ne(e).a,NC="#grid",jC=(e,t,r,n=AC.WHITE)=>e&&!qC(e)?e:qC(t)?r&&!qC(r)?r:n:t,_C=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},zC=(e,t,r,n,o)=>{const i=_C(".qv-object .qv-inner-object",r),a=_C(".qv-panel-sheet",r),s=_C(NC,r)??a,l=(e=>{const t=e.components?.find((e=>"general"===e.key)),r=t?.bgColor?.colorExpression,n=t?.bgColor?.color?.color,o=t?.bgColor?.useColorExpression;if(o&&r)return TC(r);if("none"===n)return"transparent";if(void 0===n)return;const i=ne(n);return i.setAlpha(t?.bgColor?.color?.alpha??i.a),i.getRGBA()})(e),u=n?.(t),c=o?.(t),d=l||u||i||c,p=qC(d),f=!qC(h=p?s:d)&&IC(h,AC.TEXT,AC.DARK_MODE_TEXT)===Z(AC.DARK_MODE_TEXT);var h;return{color:d,headerColor:jC(l,d,s),isDark:f}},FC=(t,r,a,s)=>{const l=i(),u=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,i]=n([]);return o((()=>{let r;return e&&(r=new MutationObserver((e=>{i(e)})),r.observe(e,t)),()=>{r?.disconnect()}}),[e,t]),r})(r.closest(NC),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>e?.includes("background"))).map((({oldValue:e})=>e)).join(",");return e((()=>({...l,background:zC(t,l,r,a,s)})),[l.name(),r,a,s,t,u])};function HC(t,n){const o=e((()=>({isLoading:!0})),n),[i,a]=r((async()=>{try{return await t()}finally{o.isLoading=!1}}),n);return[i,o.isLoading,a]}const $C=3;function WC(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 BC({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=$C}=o??{},{estimateWidth:a,measureText:s,estimateLineCount:l}=R((()=>{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=WC(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 VC,UC=$;VC=UC.createRoot,UC.hydrateRoot;const GC="Source Sans Pro, sans-serif";function YC(e,t){const[r,n]=P(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var KC={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 XC=({translator:e})=>(R((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(KC).forEach((t=>{e.add(KC[t])}))}}(e)}),[e]),e);class JC{#e={on:new Map,once:new Map};#t=10;#r(e){this.listenerCount(e)>this.#t&&console.warn(`Possible EventEmitter memory leak detected. ${this.listenerCount(e)} listeners added to "${String(e)}".`)}#n(e,t,r){const n=this.#e[e].get(t)??new Set;n.add(r),this.#e[e].set(t,n),this.#r(t)}setMaxListeners(e){this.#t=e}on(e,t){this.#n("on",e,t)}once(e,t){this.#n("once",e,t)}off(e,t){this.#e.on.get(e)?.delete(t),this.#e.once.get(e)?.delete(t)}emit(e,...t){this.#e.on.get(e)?.forEach((e=>{e(...t)})),this.#e.once.get(e)?.forEach((e=>{e(...t)})),this.#e.once.delete(e)}listenerCount(e){return(this.#e.on.get(e)?.size??0)+(this.#e.once.get(e)?.size??0)}removeAllListeners(e){void 0===e?(this.#e.on.clear(),this.#e.once.clear()):(this.#e.on.delete(e),this.#e.once.delete(e))}}const ZC="12px",QC="nebula-table-utils-head-menu-button",eE="nebula-table-utils-head-menu-wrapper",tE="nebula-table-utils-head-menu",rE="nebula-table-utils-head-menu-list-id",nE="sn-copy-cell";let oE=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.F2="F2",e}({});const iE="nebula-table-utils-column-adjuster";let aE=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}({}),sE=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const lE={darker:.15,brighter:.3,opacity:.03},uE={darker:.3,brighter:.5,opacity:.05};let cE=function(e){return e.Cyclic="C",e}({});const dE=document.createElement("textarea");function pE(e){dE.value=e,document.body.appendChild(dE),dE.select(),dE.setSelectionRange(0,dE.value.length),document.execCommand("copy"),document.body.removeChild(dE)}dE.style.position="absolute",dE.style.left="-9999px",dE.setAttribute("readonly","");const fE=e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch((()=>{pE(t)})):pE(t))};function hE(e){return"init"in e}function mE(e){return!!e.write}function gE(e){return"v"in e||"e"in e}function bE(e){if("e"in e)throw e.e;if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}const vE=new WeakMap;function yE(e){var t;return SE(e)&&!!(null==(t=vE.get(e))?void 0:t[0])}function xE(e,t){let r=vE.get(e);if(!r){r=[!0,new Set],vE.set(e,r);const t=()=>{r[0]=!1};e.then(t,t)}r[1].add(t)}function SE(e){return"function"==typeof(null==e?void 0:e.then)}function wE(e,t,r){if(!r.p.has(e)){r.p.add(e);const n=()=>r.p.delete(e);t.then(n,n)}}function CE(e,t,r){var n;const o=new Set;for(const t of(null==(n=r.get(e))?void 0:n.t)||[])o.add(t);for(const e of t.p)o.add(e);return o}const EE=(e,t,...r)=>t.read(...r),RE=(e,t,...r)=>t.write(...r),PE=(e,t)=>{var r;return null==(r=t.INTERNAL_onInit)?void 0:r.call(t,e)},AE=(e,t,r)=>{var n;return null==(n=t.onMount)?void 0:n.call(t,r)},IE=(e,t)=>{var r;const n=WE(e),o=n[0],i=n[6],a=n[9];if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!t)throw new Error("Atom is undefined or null");let s=o.get(t);return s||(s={d:new Map,p:new Set,n:0},o.set(t,s),null==(r=i.i)||r.call(i,t),null==a||a(e,t)),s},ME=e=>{const t=WE(e),r=t[1],n=t[3],o=t[4],i=t[5],a=t[6],s=t[13],l=[],u=e=>{try{e()}catch(e){l.push(e)}};do{a.f&&u(a.f);const t=new Set,l=t.add.bind(t);n.forEach((e=>{var t;return null==(t=r.get(e))?void 0:t.l.forEach(l)})),n.clear(),i.forEach(l),i.clear(),o.forEach(l),o.clear(),t.forEach(u),n.size&&s(e)}while(n.size||i.size||o.size);if(l.length)throw new AggregateError(l)},kE=e=>{const t=WE(e),r=t[1],n=t[2],o=t[3],i=t[11],a=t[14],s=t[17],l=[],u=new WeakSet,c=new WeakSet,d=Array.from(o);for(;d.length;){const t=d[d.length-1],o=i(e,t);if(c.has(t))d.pop();else if(u.has(t)){if(n.get(t)===o.n)l.push([t,o]);else if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&n.has(t))throw new Error("[Bug] invalidated atom exists");c.add(t),d.pop()}else{u.add(t);for(const e of CE(t,o,r))u.has(e)||d.push(e)}}for(let t=l.length-1;t>=0;--t){const[r,i]=l[t];let u=!1;for(const e of i.d.keys())if(e!==r&&o.has(e)){u=!0;break}u&&(a(e,r),s(e,r)),n.delete(r)}},DE=new WeakSet,TE=(e,t)=>{var r,n;const o=WE(e),i=o[1],a=o[2],s=o[3],l=o[6],u=o[7],c=o[11],d=o[12],p=o[13],f=o[14],h=o[16],m=o[17],g=o[20],b=c(e,t);if(gE(b)){if(i.has(t)&&a.get(t)!==b.n)return b;let r=!1;for(const[t,n]of b.d)if(f(e,t).n!==n){r=!0;break}if(!r)return b}b.d.clear();let v,y,x=!0;function S(){i.has(t)&&(m(e,t),p(e),d(e))}const w={get signal(){return v||(v=new AbortController),v.signal},get setSelf(){return"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&console.warn("[DEPRECATED] setSelf is deprecated and will be removed in v3."),"production"===(import.meta.env?import.meta.env.MODE:void 0)||mE(t)||console.warn("setSelf function cannot be used with read-only atom"),!y&&mE(t)&&(y=(...r)=>{if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&x&&console.warn("setSelf function cannot be called in sync"),!x)try{return h(e,t,...r)}finally{p(e),d(e)}}),y}},C=b.n;try{"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&DE.delete(e);const n=u(e,t,(function(r){var n;if(r===t){const t=c(e,r);if(!gE(t)){if(!hE(r))throw new Error("no atom init");g(e,r,r.init)}return bE(t)}const o=f(e,r);try{return bE(o)}finally{b.d.set(r,o.n),yE(b.v)&&wE(t,b.v,o),i.has(t)&&(null==(n=i.get(r))||n.t.add(t)),x||S()}}),w);return"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&DE.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),g(e,t,n),SE(n)&&(xE(n,(()=>null==v?void 0:v.abort())),n.then(S,S)),null==(r=l.r)||r.call(l,t),b}catch(e){return delete b.v,b.e=e,++b.n,b}finally{x=!1,C!==b.n&&a.get(t)===C&&(a.set(t,b.n),s.add(t),null==(n=l.c)||n.call(l,t))}},OE=(e,t)=>{const r=WE(e),n=r[1],o=r[2],i=r[11],a=[t];for(;a.length;){const t=a.pop(),r=i(e,t);for(const s of CE(t,r,n)){const t=i(e,s);o.set(s,t.n),a.push(s)}}},LE=(e,t,...r)=>{const n=WE(e),o=n[3],i=n[6],a=n[8],s=n[11],l=n[12],u=n[13],c=n[14],d=n[15],p=n[16],f=n[17],h=n[20];let m=!0;const g=t=>bE(c(e,t)),b=(r,...n)=>{var a;const c=s(e,r);try{if(r===t){if(!hE(r))throw new Error("atom not writable");"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&DE.add(e);const t=c.n,s=n[0];return h(e,r,s),f(e,r),void(t!==c.n&&(o.add(r),d(e,r),null==(a=i.c)||a.call(i,r)))}return p(e,r,...n)}finally{m||(u(e),l(e))}};try{return a(e,t,g,b,...r)}finally{m=!1}},qE=(e,t)=>{var r;const n=WE(e),o=n[1],i=n[3],a=n[6],s=n[11],l=n[15],u=n[18],c=n[19],d=s(e,t),p=o.get(t);if(p&&!yE(d.v)){for(const[n,o]of d.d)if(!p.d.has(n)){const c=s(e,n);u(e,n).t.add(t),p.d.add(n),o!==c.n&&(i.add(n),l(e,n),null==(r=a.c)||r.call(a,n))}for(const r of p.d)if(!d.d.has(r)){p.d.delete(r);const n=c(e,r);null==n||n.t.delete(t)}}},NE=(e,t)=>{var r;const n=WE(e),o=n[1],i=n[4],a=n[6],s=n[10],l=n[11],u=n[12],c=n[13],d=n[14],p=n[16],f=n[18],h=l(e,t);let m=o.get(t);if(!m){d(e,t);for(const r of h.d.keys()){f(e,r).t.add(t)}if(m={l:new Set,d:new Set(h.d.keys()),t:new Set},o.set(t,m),mE(t)){const r=()=>{let r=!0;const n=(...n)=>{try{return p(e,t,...n)}finally{r||(c(e),u(e))}};try{const o=s(e,t,n);o&&(m.u=()=>{r=!0;try{o()}finally{r=!1}})}finally{r=!1}};i.add(r)}null==(r=a.m)||r.call(a,t)}return m},jE=(e,t)=>{var r,n;const o=WE(e),i=o[1],a=o[5],s=o[6],l=o[11],u=o[19],c=l(e,t);let d=i.get(t);if(!d||d.l.size)return d;let p=!1;for(const e of d.t)if(null==(r=i.get(e))?void 0:r.d.has(t)){p=!0;break}if(p)return d;d.u&&a.add(d.u),d=void 0,i.delete(t);for(const r of c.d.keys()){const n=u(e,r);null==n||n.t.delete(t)}null==(n=s.u)||n.call(s,t)},_E=(e,t,r)=>{const n=WE(e)[11],o=n(e,t),i="v"in o,a=o.v;if(SE(r))for(const i of o.d.keys())wE(t,r,n(e,i));o.v=r,delete o.e,i&&Object.is(a,o.v)||(++o.n,SE(a)&&function(e){const t=vE.get(e);(null==t?void 0:t[0])&&(t[0]=!1,t[1].forEach((e=>e())))}(a))},zE=(e,t)=>bE((0,WE(e)[14])(e,t)),FE=(e,t,...r)=>{const n=WE(e),o=n[12],i=n[13],a=n[16];try{return a(e,t,...r)}finally{i(e),o(e)}},HE=(e,t,r)=>{const n=WE(e),o=n[12],i=n[18],a=n[19],s=i(e,t).l;return s.add(r),o(e),()=>{s.delete(r),a(e,t),o(e)}},$E=new WeakMap,WE=e=>{const t=$E.get(e);if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!t)throw new Error("Store must be created by buildStore to read its building blocks");return t};let BE,VE=0;function UE(e,t){const r="atom"+ ++VE,n={toString(){return"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&this.debugLabel?r+":"+this.debugLabel:r}};return"function"==typeof e?n.read=e:(n.init=e,n.read=GE,n.write=YE),n}function GE(e){return e(this)}function YE(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}function KE(){return function(...e){const t={get:e=>(0,WE(t)[21])(t,e),set:(e,...r)=>(0,WE(t)[22])(t,e,...r),sub:(e,r)=>(0,WE(t)[23])(t,e,r)},r=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},EE,RE,PE,AE,IE,ME,kE,TE,OE,LE,qE,NE,jE,_E,zE,FE,HE,void 0].map(((t,r)=>e[r]||t));return $E.set(t,Object.freeze(r)),t}()}const XE=I(void 0);function JE(e){return T(XE)||(BE||(BE=KE(),"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=BE),globalThis.__JOTAI_DEFAULT_STORE__!==BE&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),BE)}function ZE({children:e,store:t}){const r=A(null);return t?S(XE.Provider,{value:t},e):(null===r.current&&(r.current=KE()),S(XE.Provider,{value:r.current},e))}const QE=e=>"function"==typeof(null==e?void 0:e.then),eR=e=>{e.status||(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})))},tR=x.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(eR(e),e)}),rR=new WeakMap,nR=(e,t)=>{let r=rR.get(e);return r||(r=new Promise(((n,o)=>{let i=e;const a=e=>t=>{i===e&&n(t)},s=e=>t=>{i===e&&o(t)},l=()=>{try{const e=t();QE(e)?(rR.set(e,r),i=e,e.then(a(e),s(e)),xE(e,l)):n(e)}catch(e){o(e)}};e.then(a(e),s(e)),xE(e,l)})),rR.set(e,r)),r};function oR(e,t){const{delay:r,unstable_promiseStatus:n=!x.use}={},o=JE(),[[i,a,s],l]=M((t=>{const r=o.get(e);return Object.is(t[0],r)&&t[1]===o&&t[2]===e?t:[r,o,e]}),void 0,(()=>[o.get(e),o,e]));let u=i;if(a===o&&s===e||(l(),u=o.get(e)),k((()=>{const t=o.sub(e,(()=>{if(n)try{const t=o.get(e);QE(t)&&eR(nR(t,(()=>o.get(e))))}catch(e){}"number"!=typeof r?l():setTimeout(l,r)}));return l(),t}),[o,e,r,n]),D(u),QE(u)){const t=nR(u,(()=>o.get(e)));return n&&eR(t),tR(t)}return u}function iR(e,t){const r=JE();return O(((...t)=>{if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!("write"in e))throw new Error("not writable atom");return r.set(e,...t)}),[r,e])}const aR=UE(void 0),sR=UE(null);var lR={exports:{}};self,lR.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:()=>De});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 w={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var s=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var c=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 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 E(e){return E="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(e)}var R=t().bind(null,!0),P={},A=Array.isArray;function I(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function M(e){return void 0===e}function k(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function D(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(I(e)&&I(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(A(e)&&A(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}P.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);T(i,a)||k(t,o)||(M(a)?n.push({op:"add",path:s,value:i}):I(i)&&I(a)?n=n.concat(P.generate(a,i,s)):A(i)&&A(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(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){M(t[o])&&!k(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=D(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(A(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(A(a)&&A(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(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=D(e,t.from);A(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(A(o)?o.splice(+i,1):delete o[i])}))},P.clone=function(e){return R({},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)):R(e,t)};const O=P,L=function(e,r,n){if(!e)return Promise.resolve();var o=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 q="accumulation";function N(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 j(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 _={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=w.getNumStepComp(r,l),p=w.getAboveComp(r,l,c,d),f=w.getRangeComp("RangeSum",p);if(w.needDimension({modifier:r,properties:n,layout:o})){var h=w.getDimComp(u,1),m=w.getDimComp(u,0),g=w.getAggrComp(f,h,m);f=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,_)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(j(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(j(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(j(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(j(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=N(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=N(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(j(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(q))return!1;var i=N(t,e);return i&&!i.disabled}};return r}};var F="movingAverage";function H(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 $(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 W={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const B={translationKey:"properties.modifier.movingAverage",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=s;void 0===u&&(u=w.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=w.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=w.getNumStepComp(n,u),h=w.getAboveComp(n,u,p,f);if(n.nullSuppression)t=w.getRangeComp("RangeAvg",h);else{var m=w.getRangeComp("RangeSum",h),g=function(e,t){var r=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var b=t;if(w.needDimension({modifier:n,properties:o,layout:a})){var v=w.getDimComp(c,1),y=w.getDimComp(c,0),x=w.getAggrComp(b,v,y);b=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,W)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat($(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($(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($(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($(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($(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat($(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(F))return!1;var i=H(t,e);return i&&!i.disabled}};return r}};var V="timeSeriesDecomposition";function U(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 G(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:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?w.generateTSDExpression(r,t,n):t},extractInputExpression:w.extractInputExpression,initModifier:function(e,t){w.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=w.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(G(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(G(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=U(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=U(t,e);return r&&!r.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(V))return!1;var i=U(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=w.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(w.needDimension({modifier:r,properties:n,layout:o})){var f=w.getDimComp(u,1),h=w.getDimComp(u,0),m=w.getAggrComp(p,f,h);p=r.showExcludedValues?w.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!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=ae(t),l=se(t,r,n),u=""===s&&""===l?"":s||l,c=le(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=w.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",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",we="qDef.qLabelExpression",Ce="qDef.base.qLabel",Ee="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Pe="qDef.base.qAggrFunc",Ae={initBase:function(e,t){(t||Ae.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,Ee,i(e,we)))},restoreBase:function(e){Ae.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,we,i(e,Ee)),i(e,Re)&&i(e,Pe)&&r(e,Re,i(e,Pe)),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=Ae;function Me(e){return Me="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},Me(e)}var ke={accumulation:z,movingAverage:B,difference:ee,normalization:ce,timeSeriesDecomposition:K};const De={modifiers:ke,apply:Oe,applyModifiers:Le,cleanUpMeasure:qe,destroy:function(e){e&&Te[e.id]&&Te[e.id].masterItemSubscriber&&(Te[e.id].masterItemSubscriber&&Te[e.id].masterItemSubscriber.unsubscribe(),delete Te[e.id])},hasActiveModifiers:Ne,getActiveModifier:je,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);Ge({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:_e};var Te={};function Oe(){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;Te[r.id]=Te[r.id]||{isFirstTime:!0};var u=Te[r.id].isFirstTime;if(Te[r.id].isFirstTime=!1,n&&"object"===Me(n))return Le({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=Te[r.id].lastReloadTime;if(Te[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),Ne({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 Ue({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 Ge({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);$e(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(Ue({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(r++,"object"!==Me(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&&Be(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),Le({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"===Me(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 Le(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),$e(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(!Ne({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){Ge({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"===Me(e)&&!e.disabled){if(s++,"object"!==Me(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||_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")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),We(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"===Me(e)&&!e.disabled&&!ke[e.type]}))}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,We(e)}function Ne(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ge({modifiers:Fe(e),properties:r,layout:n})}))}function je(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 _e(e){var t=je(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 He(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function $e(e){ze(e).forEach((function(e){return function(e){var r=je(e);r&&(void 0!==r.outputExpression&&He(r)!==e.qDef.qDef?delete e.qDef.base:!Ie.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function We(e){var t=Fe(e);Array.isArray(t)&&t.forEach((function(t){"object"===Me(t)&&(t.disabled||!ke[t.type]&&He(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Be(e){return e.base||e.qDef&&e.qDef.base}function Ve(e){var t=Be(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,r=e.properties,n=e.layout;return!Ve(t)&&Ge({modifiers:Fe(t),properties:r,layout:n})}function Ge(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Me(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):L(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"===Me(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(Ge({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)?(Te[t.id].masterItemSubscriber=Te[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 Oe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Te[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:()=>$e});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),w=r.n(S);function C(e,t){var r=w()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function E(e,t){return w()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var P=Math.pow(2,53)-1;function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}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 M=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])},D=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},T=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}}},O=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},L=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)}},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=E(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=E(s.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},N=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,P),l=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,s,P),minDimensions:R(i.min,l,0),maxMeasures:s,minMeasures:l}},j=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))},_=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=w()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=w()(!0,{},r,o)).components&&(o.components=[]),o},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=[]))},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 A(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 A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},$=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)}))}},W=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 B(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=_({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=N({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,w=y.maxMeasures,C=y.minMeasures,E=l.defaultDimension,R=void 0===E?T():E,P=l.defaultMeasure,A=void 0===P?O():P;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C})&&F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C,newHyperCubeDef:v}),L({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),q({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:v,defaultMeasure:A}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),j({exportFormat:t,newHyperCubeDef:v}),k("qMaxStackedCells",b,v),k("qNoOfLeftDims",b,v),D("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),D("qMode",b,v,"S"),D("qReductionMode",b,v,"N"),D("qSortbyYValue",b,v),D("qIndentMode",b,v),D("qShowTotalsAbove",b,v),M(g,t,n),m.qProperty=g;var I=i.getValue(c||{},"support.modifiers");return W({measures:v.qMeasures,modifierTypes:I}),p&&B(m.qProperty,"storedFilters"),"S"===v.qMode&&h&&B(m.qProperty,"dynamicScript"),m}};var U={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function G(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||!U[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(G(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?B(r,"unsupportedAutoMinMax")||w()(r.measureAxis,t.measureAxis):B(r,"supportedAutoMinMax")||w()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,s=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);l.length?(i&&(t=l.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=l.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&w()(s,r.properties.measureAxes[t[0].axis])):w()(s,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},we={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),s=a.properties;return i?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function Ee(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 Pe="qHyperCubeDef.qMeasures",Ae="conditionalColoring",Ie="measures",Me="qDef.conditionalColoring";const ke={quarantine:function(e){Ee({properties:e,arrayPath:Pe,quarantineName:Ae,arrayName:Ie,itemPath:Me})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,itemPath:Me,arrayName:Ie,quarantineName:Ae})}};var De="qHyperCubeDef.qMeasures",Te="measures",Oe="qHyperCubeDef.qDimensions",Le="dimensions",qe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",je="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",_e="alternativeDimensions",ze="qCalcCondition",Fe="conditionalShowHide";const He={quarantine:function(e){Ee({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze}),Ee({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Le,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze}),Re({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Le,itemPath:ze})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:qe,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Ee({properties:e,arrayPath:je,quarantineName:Fe,arrayName:_e,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:qe,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:je,quarantineName:Fe,arrayName:_e,itemPath:ze})}},$e={hypercube:V,colorChart:be,axisChart:we,quarantineProperty:x,unquarantineProperty:B,quarantineArrayProp:Ee,unquarantineArrayProp:Re,conditionalColoring:ke,conditionalShow:He}})(),n.default})();var uR=Vt(lR.exports);const cR="qHyperCubeDef.qMeasures",dR="measures",pR="qHyperCubeDef.qDimensions",fR="dimensions",hR="qDef.representation",mR="tableRepresentation",gR="qDef.conditionalColoring",bR="conditionalColoring",vR="qMiniChartDef",yR="miniChartDef",xR=({propertyTree:e,hyperCubePath:t})=>{const r=uR.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:n,qDimensions:o,qMeasures:i}}=r.properties,a=((e,t,r)=>{const n=e.length+t.length,o=(r?.length===n?r:Array.from(Array(n).keys())).map((r=>((e,t,r)=>{const n=t.length,o=e<n?t[e]:r[e-n],{columnWidth:i}=o.qDef;return i||-1})(r,e,t)));return o})(o,i,n);return xt(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),uR.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),uR.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),uR.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{uR.quarantineArrayProp({properties:e,arrayPath:pR,itemPath:hR,arrayName:fR,quarantineName:mR}),uR.quarantineArrayProp({properties:e,arrayPath:cR,itemPath:hR,arrayName:dR,quarantineName:mR}),uR.quarantineArrayProp({properties:e,arrayPath:cR,itemPath:gR,arrayName:dR,quarantineName:bR}),uR.quarantineArrayProp({properties:e,arrayPath:cR,itemPath:vR,arrayName:dR,quarantineName:yR})})(r.properties),r};const SR=/^q[A-Z]/,wR=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],CR=e=>"object"==typeof e&&null!==e,ER=(e,t)=>(Object.entries(e).forEach((([r,n])=>{const o=void 0===t?r:`${t}.${r}`;((e,t)=>!SR.test(e)&&!wR.some((e=>e.test(t))))(r,o)?delete e[r]:Array.isArray(n)?e[r]=n.map(((e,t)=>CR(e)?ER(e,`${o}.${t}`):e)):CR(n)&&(e[r]=ER(n,o))})),e),RR=(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];null===e||Array.isArray(e)||"object"!=typeof e?i.qDef.columnWidth="number"==typeof e&&e>0?{type:sE.Pixels,pixels:e}:{type:sE.FitToContent}:i.qDef.columnWidth=e}return i},PR=({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)}ER(e.properties)}const a=uR.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(uR.conditionalShow.unquarantine(a.qProperty),i)xt(a,"qProperty.totals.show",!1),xt(a,"qProperty.usePagination",!0),xt(a,"qProperty.accessibleHeader",!0);else{uR.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{uR.unquarantineArrayProp({properties:e,arrayPath:pR,itemPath:hR,arrayName:fR,quarantineName:mR}),uR.unquarantineArrayProp({properties:e,arrayPath:cR,itemPath:hR,arrayName:dR,quarantineName:mR}),uR.unquarantineArrayProp({properties:e,arrayPath:cR,itemPath:gR,arrayName:dR,quarantineName:bR}),uR.unquarantineArrayProp({properties:e,arrayPath:cR,itemPath:vR,arrayName:dR,quarantineName:yR})})(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=r?.length===i?r:Array.from(Array(i).keys());return{dimensions:a.filter((e=>e<o)).map((t=>RR(e,t,n))),measures:a.filter((e=>e>=o)).map((e=>RR(t,e,n,o)))}})(e,t,r,n);Array.isArray(n)&&n.length>0&&(xt(a,"qProperty.qHyperCubeDef.qDimensions",o),xt(a,"qProperty.qHyperCubeDef.qMeasures",i))}return a};var AR={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};const IR=(e,t)=>{if(!e)return-1;const r=e.indexOf(t);if(-1===r)return-1;for(let r=0;r<e.length;++r)e[r]>t&&e[r]--;return e.splice(r,1),r};function MR(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function kR(e){return e>0?0:1}function DR(e){return e.translator.get("Visualizations.Descriptions.Column")}function TR(e){return{measures:{min:kR,max:1e3,description:()=>DR(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;MR(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties,i=(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n;IR(o,i)}},dimensions:{min:kR,max:1e3,description:()=>DR(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return MR(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(e?.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;IR(o,n)}}}}let OR=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}({}),LR=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const qR=e=>{switch(e?.type){case"url":return OR.Link;case"image":return OR.Image;case"indicator":return OR.Indicator;case"miniChart":return OR.MiniChart;default:return OR.Text}},NR=({isImagesEnabled:e})=>({uses:"dimensionRepresentationItems.representationType",options(t,r,n){const{qIndentMode:o}=n.properties.qHyperCubeDef,i=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!o&&e||o)&&i.push({value:"image",translation:"Object.Table.Representation.Image"}),i}}),jR=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>qR(e.qDef.representation)===OR.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,r)=>{if(!r.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:n,qNoOfLeftDims:o,qDimensions:i,qIndentMode:a}=r.properties.qHyperCubeDef;let s=!1;n?.indexOf(-1);const l=i?.indexOf(e)??1/0;return(n?.slice(0,o)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},_R=e=>{const{anything:t}=e,r=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:NR({isImagesEnabled:r}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>qR(e.qDef.representation)===OR.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>qR(e.qDef.representation)===OR.Link&&e.qDef.representation?.urlPosition===LR.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>qR(e.qDef.representation)===OR.Link&&e.qDef.representation?.urlPosition===LR.Attribute},...jR(r)}},zR=(e,t)=>{const{anything:r}=e,n=r.sense?.isUnsupportedFeature,o=!n?.("tableImages")&&t[OR.Image],i=!n?.("qMiniChartDef")&&t[OR.MiniChart],a=!n?.("tableIndicators")&&t[OR.Indicator],s=o&&t[OR.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,r)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},r=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&o||t&&s)&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&r.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),i&&r.push({value:"miniChart",translation:"Common.MiniChart"}),r})(r)},representationImage:o?{uses:"measureRepresentationItems.representationImage",show:e=>qR(e.qDef.representation)===OR.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:a?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:i?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};var FR,HR={};FR=HR,(()=>{var e={370: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}}},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),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{default:()=>Ie});var o=r(370),i=r.n(o);const a=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},s=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},l={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var u="".concat(" ","(").concat(" "),c="".concat(" ",")").concat(" ");function d(e){return u+e+c}function p(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 f(e){return!(!e.fullAccumulation&&!e.fullRange)}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function m(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 g(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function b(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function v(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function x(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function S(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=x(p(n[0],o),g(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var c=p(n[0],o),d=p(n[1],o),f=g(0),h=g(1),m=x(c,f),b=x(d,h);return"".concat(a,"({1<").concat(m,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function w(e){return"".concat(e,"(")}function C(e){var t=e.properties,r=e.layout;return s(t,"qHyperCubeDef.qDimensions",s(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:f,getNumDimensions:C,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=d(m(t));if(!r.showExcludedValues)return a;var s=S({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var u=g(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var c=g(0),p=g(1);return"If(Count(".concat(c,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:h,getNumStepComp:function(e,t){if(!f(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return h(e,t)},getAboveCompPrefix:b,getAboveCompSuffix:v,getAboveComp:function(e,t,r,n){return b(e,t)+r+v(n)},getFunctionPrefix:w,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return w(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:S,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout;return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t)&&2===C({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=g(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:m,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(u);if(-1!==r){var n=t.indexOf(c);if(-1!==n)return t.substring(r+u.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:p,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=C({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:d,canExtract:function(e){var t=e.indexOf(u),r=e.indexOf(c);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:g,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=l.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?l.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(l.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return l.EXPRESSIONS[r]&&n.includes(l.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}var A=i().bind(null,!0),I={},M=Array.isArray;function k(e){return null!=e&&!Array.isArray(e)&&"object"===P(e)}function D(e){return void 0===e}function T(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function O(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]=D(e[r||t])?i:e[t],e=e[r||t]}})),e}function L(e,t){var r=!0;if(k(e)&&k(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){L(e[n],t[n])||(r=!1)})),r);if(M(e)&&M(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!L(e[n],t[n]))return!1;return!0}return e===t}I.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?A({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);L(i,a)||T(t,o)||(D(a)?n.push({op:"add",path:s,value:i}):k(i)&&k(a)?n=n.concat(I.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]&&D(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(L(t,o))return n;if(!D(t[0])&&D(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){D(t[o])&&!T(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=O(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(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 R(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 R(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)?R(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(k(a)&&k(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!T(r,e)&&delete r[e]})),A(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=O(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])}))},I.clone=function(e){return A({},e)},I.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},I.updateObject=function(e,t){Object.keys(e).length?I.apply(e,I.generate(e,t)):A(e,t)};const q=I;var N="accumulation";function j(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===N)return r[n]}function _(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===N)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={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,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),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 h=E.getDimComp(u,1),m=E.getDimComp(u,0),g=E.getAggrComp(f,h,m);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,z)},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!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(_(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(_(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(_(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(_(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(_(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(N))return!1;var i=j(t,e);return i&&!i.disabled}}}};var H="movingAverage";function $(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===H)return r[n]}function W(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===H)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 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,i=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=a;void 0===u&&(u=E.getNumDimensions({properties:o,layout:i}));var c=s(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),h=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",h);else{var m=E.getRangeComp("RangeSum",h),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(m," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:i})){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,B)},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!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(W(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(W(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(W(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(W(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(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(W(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(W(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(H))return!1;var i=$(t,e);return i&&!i.disabled}}}};var U="timeSeriesDecomposition";function G(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===U)return r[n]}function Y(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===U)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var K={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const X={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,K),""===e.decomposition&&t&&(e.decomposition=E.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!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:l.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=G(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var r=G(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(U))return!1;var i=G(t,e);return i&&!i.disabled}}}};var J="difference";function Z(e,t){var r=function(e,t){var r=s(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 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,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),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),h=E.getDimComp(u,0),m=E.getAggrComp(p,f,h);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,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]:{};return{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(J))return!1;var i=function(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===J)return r[n]}(t,e);return i&&!i.disabled}}}};var te="normalization";function re(e,t){var r=s(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=s(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,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a,s){var l=ae(t),u=se(t,r,n),c=""===l&&""===u?"":l||u,d=le(o,i),p=ue(o,i,a),f=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return s?"(If(".concat(e," < 0, null(), ").concat(e,"))/ Sum(").concat(c," ").concat(d).concat(p," Aggr(").concat(c," RangeMax( 0, ").concat(e,"), ").concat(f,"))"):"".concat(e,"/ Sum(").concat(c," ").concat(d).concat(p," Aggr(").concat(c," ").concat(e,", ").concat(f,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension,r.ignoreNegative)},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]:{};return{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}}},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="library id deleted",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId",ge="qDef.qLabel",be="qDef.qLabelExpression",ve="qDef.base.qLabel",ye="qDef.base.qLabelExpression",xe="qDef.qAggrFunc",Se="qDef.base.qAggrFunc",we="qDef.base";const Ce={getExpression:function(e){var t=s(e,fe);return void 0!==t?t:s(e,pe)},getExpressionRef:function(e){return void 0!==s(e,fe)?fe:pe},getLibraryIdRef:function(e){return s(e,me)?me:he},getLibraryId:function(e){return s(e,me)||s(e,he)},getLabelRef:function(e){return s(e,we)?ve:ge},getLabelExpressionRef:function(e){return s(e,we)?ye:be}};var Ee={initBase:function(e,t){(t||Ee.isValid(e))&&(a(e,fe,s(e,pe)),a(e,me,s(e,he)),a(e,ve,s(e,ge)),a(e,ye,s(e,be)))},restoreBase:function(e){Ee.isValid(e)&&(a(e,pe,s(e,fe)),a(e,he,s(e,me)),a(e,ge,s(e,ve)),a(e,be,s(e,ye)),s(e,xe)&&s(e,Se)&&a(e,xe,s(e,Se)),delete e.qDef.base)},isValid:function(e){var t=s(e,fe),r=s(e,me);return void 0!==t||void 0!==r}};const Re=Ee;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 Ae={accumulation:F,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:X};const Ie={modifiers:Ae,apply:ke,applyModifiers:De,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:Le,initBase:Re.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ae[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Ae[e]&&Ae[e].isApplicable({properties:r,layout:n})}))},measureBase:Ce,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Be({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ke({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:qe};var Me={};function ke(){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,a=e.masterItem,l=!1;Me[t.id]=Me[t.id]||{isFirstTime:!0};var u=Me[t.id].isFirstTime;if(Me[t.id].isFirstTime=!1,r&&"object"===Pe(r))return De({model:t,properties:r});var c=t?t.layout:void 0,d=s(c,"qSelectionInfo.qInSelections");if(o||d)return Promise.resolve(l);var p=s(c,"qHyperCube.qMeasureInfo"),f=Me[t.id].lastReloadTime;if(Me[t.id].lastReloadTime=s(t,"app.layout.qLastReloadTime"),Oe({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return s(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: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 Be({modifiers:je(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:a,isFirstTime:u})?t.getEffectiveProperties().then((function(e){var r=i()(!0,{},e);ze(r);var n=Xe(r);return Ve({model:t}).then((function(o){return Ue({libraryIds:n,model:t}).then((function(n){return h&&function(e){var t=e.properties;Ne(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(Ae[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=Ae[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&He(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:r}),De({model:t,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:a,libraryItemsProps:n,dimensionAndFieldList:o})}))})).catch((function(){return Promise.resolve(l)}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Pe(e.base)}))}(p)?t.getEffectiveProperties().then((function(e){return function(e){var t=e.model,r=e.properties,n=Xe(r);return Je({model:t,libraryIds:n}).then((function(){var e=i()(!0,{},r);return Ne(r).forEach((function(e){return Te(e)})),Ye({oldProperties:e,newProperties:r,model:t})}))}({model:t,properties:e})})):Promise.resolve(l)}function De(e){var t=e.model,r=e.oldProperties,n=e.properties,o=e.measures,a=e.runUpdateIfChange,l=void 0!==a&&a,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?i()(!0,{},n):n),ze(n);var p=Xe(n);return Je({model:t,libraryIds:p,masterItem:u}).then((function(){return function(e){var t=e.measures,r=e.properties,n=e.model,o=e.libraryItemsProps,a=e.dimensionAndFieldList;if(t||(t=Ne(r)),!t.length)return Promise.resolve();if(!o&&!Oe({measures:t,properties:r}))return t.forEach((function(e){return Te(e)})),Promise.resolve();var l=o?void 0:Xe(r);return Ve({model:n,dimensionAndFieldList:a}).then((function(e){return Ue({libraryIds:l,model:n,libraryItemsProps:o}).then((function(n){t.forEach((function(t){var o=t.qDef.modifiers;n&&Be({modifiers:o,properties:r})?(function(e){var t=e.measure,r=e.properties,n=e.libraryItemsProps,o=e.dimensionAndFieldList,a=0;Re.isValid(t)||Re.initBase(t,!0);var l=t.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Pe(e)&&!e.disabled){if(a++,"object"!==Pe(Ae[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(a>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ae[e.type].initModifier(e,t);var l=t.qLibraryId||c&&c.qLibraryId;l?function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Ae[r.type].generateExpression({expression:s,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=l,t.qDef.qDef=r.outputExpression,(t.qDef.qLabel||a.qMeasure.qLabel)&&(t.qDef.qLabel=t.qDef.base.qLabel||a.qMeasure.qLabel),(t.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(t.qDef.qLabelExpression=a.qMeasure.qLabelExpression),t.qDef.quarantine&&t.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(t.qDef.qNumFormat=t.qDef.base.qNumFormat||a.qMeasure.qNumFormat,t.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete t.qLibraryId,t.qDef.coloring=a.qMeasure.coloring,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,libraryId:l,properties:r,libraryItemsProps:n,dimensionAndFieldList:o}):function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList;"function"==typeof Ae[r.type].updateModifier&&Ae[r.type].updateModifier(r,n.qHyperCubeDef);var a=Ce.getExpression(t),s=""===a?a:Ae[r.type].generateExpression({expression:a,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||a,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:r,dimensionAndFieldList:o}),function(e){var t=s(e,"qDef.qAggrFunc");"Expr"!==t||qe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&qe(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}),Fe(t)):Te(t)}))}))}))}({measures:o,properties:n,model:t,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return l?Ye({oldProperties:r,newProperties:n,model:t}):Promise.resolve(!1)}))})).catch((function(){return Promise.resolve(!1)}))}function Te(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Pe(e)&&!e.disabled&&!Ae[e.type]}))}(e)?Re.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Fe(e)}function Oe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Be({modifiers:je(e),properties:r,layout:n})}))}function Le(e){var t=je(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Ae[n.type]&&!n.disabled)return n}}function qe(e){var t=Le(e);return!t||Ae[t.type].enableTotalsFunction(e)}function Ne(e){return s(e,"qHyperCubeDef.qMeasures",[]).concat(s(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function _e(e){return s(e,"outputExpression.qValueExpression.qExpr")||s(e,"outputExpression")}function ze(e){Ne(e).forEach((function(e){return function(e){var t=Le(e);t&&(void 0!==t.outputExpression&&_e(t)!==e.qDef.qDef?delete e.qDef.base:!Re.isValid(e)&&t.base&&(e.qDef.base=i()(!0,{},t.base)))}(e)}))}function Fe(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Pe(t)&&(t.disabled||!Ae[t.type]&&_e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function He(e){return e.base||e.qDef&&e.qDef.base}function $e(e){var t=He(e);return e.qLibraryId||t&&t.qLibraryId}function We(e){var t=e.measure,r=e.properties,n=e.layout;return!$e(t)&&Be({modifiers:je(t),properties:r,layout:n})}function Be(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||!Ae[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ae[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ve(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 Ue(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 Ge(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Ye(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(s(t,"qHyperCubeDef.qMeasures"),Ge)!==JSON.stringify(s(r,"qHyperCubeDef.qMeasures"),Ge)||JSON.stringify(s(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ge)!==JSON.stringify(s(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ge);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&s(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):function(e,t,r){if(!e)return Promise.resolve();var n=q.generate(t,r);return i()(!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()}(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ke(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&&Ae[e.type]&&Ae[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Xe(e){var t=Ne(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=je(t);if(Be({modifiers:n,properties:e})){var i=$e(t);i&&r.push(i),o=o||Ke({modifiers:n,properties:e})}})),s(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function Je(e){var t=e.model,r=e.libraryIds,n=e.masterItem;return!n&&n!==de&&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={},i={},a={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=s(e,"qInfo.qType");return r&&a[r]&&a[r].forEach((function(r){t[r]=s(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(){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(de),delete n[e],void c();var e})),enabled:!1,properties:l(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 ke({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Me[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}for(var Ze in FR.default=n.default,n)-1===["default"].indexOf(Ze)&&(FR[Ze]=n[Ze]);Object.defineProperty(FR,"__esModule",{value:!0})})();var $R=Vt(HR);const WR={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},BR={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}},VR=e=>({type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!$R.hasActiveModifiers({measures:[e],properties:t.properties})||$R.ifEnableTotalsFunction(e)?[{value:""===e.qDef.qAggrFunc?"":"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:e.anything.sense?.isUnsupportedFeature?.("totals")?"None":"Expr"}}}},show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),UR={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:sE.Auto,translation:"Common.Auto"},{value:sE.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:sE.Pixels,translation:"Object.Table.Column.Pixels"},{value:sE.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:sE.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:"200",show:e=>e.qDef.columnWidth?.type===sE.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:"20",show:e=>e.qDef.columnWidth?.type===sE.Percentage}},GR=()=>({...WR,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}]},...BR,...UR}),YR={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"}},KR=e=>{const t=e.anything.sense?.isUnsupportedFeature?.("modifiers");return{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>t?!!e.qLibraryId:!(!e.qLibraryId&&!e.qDef.base?.qLibraryId)},inlineMeasure:{component:"inline-measure",show:e=>t?!e.qLibraryId:!(e.qLibraryId||e.qDef.base?.qLibraryId)},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:VR(e)}},XR=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:YR},presentation:{type:"items",translation:"properties.presentation",items:{...GR(),..._R(e)}}}}}),JR=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:KR(e)},presentation:{type:"items",translation:"properties.presentation",items:{...GR(),...zR(e,{[OR.Image]:!0,[OR.Indicator]:!0,[OR.MiniChart]:!0})}}}}}),ZR=e=>({...XR(e),...JR(e)}),QR=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...ZR(e)},highlightSelected:!0},filters:{type:"items",component:"filters-assets-panel",ref:"filters",tabName:"SimpleProperties.Filters.Filters",items:{filter:{type:"object",component:"filter-item-react",ref:"filter"}},highlightSelected:!0}}}),eP={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}},tP=({flags:e})=>{const t={ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1};return e.isEnabled("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")?{type:"items",items:[{component:"text",translation:"properties.accessibilityOptions"},t,{ref:"accessibleHeader",translation:"properties.increaseAccessibility",type:"boolean",component:"checkbox",undefinedValue:!0,defaultValue:!1}]}:t},rP=e=>({type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals?.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),nP=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:n??!1,defaultValue(e,t,o){const i=n?.(e,t,o)??!1,a=o.theme.current(),s=r(a,i);return{color:"transparent"===s?"none":s}}}),oP=(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},iP=({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)=>{const o=t.fontFamily??"Source Sans Pro, sans-serif",i=t.fontFamilies??[],a=Array.from(new Set([e,o,...i])),s=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort().map((e=>oP(e,!0)))],l=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...ye(n).filter((e=>!a.includes(e))).map((e=>oP(e,!0)))];return[...s,...l.length>1?l:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),aP=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],sP=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{const n=t.fontSize,o=t.fontSizes??[],i=Array.from(new Set([e,n,...o])),a=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...i.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>oP(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...aP.filter((e=>!i.includes(e))).map((e=>oP(e,!1)))];return[...a,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),lP=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:iP({ref:`${e}.fontFamily`,themeAccessor:t=>o(t,e,"fontFamily")??t.fontFamily,translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:sP({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:r}),fontColor:nP(`${e}.fontColor`,void 0,(t=>o(t,e,"color")??t.color))}},background:nP(`${e}.background`,"properties.background",((t,r)=>{const n=r?AC.WHITE:AC.TRANSPARENT;return o(t,e,"backgroundColor")??n}),a)}}}}),uP=({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:t??[]},fontColor:nP(`${e}.fontColor`,void 0,(t=>n(t,e,"color")??t.color))}},background:nP(`${e}.background`,"properties.background",(t=>n(t,e,"backgroundColor")??r??"transparent"))}}}}),cP=(e,t,r)=>{switch(t){case"header":return e.object?.straightTableV2?.dimension?.label?.name?.[r];case"dimensionValues":return e.object?.straightTableV2?.dimension?.label?.value?.[r];case"measureValues":return e.object?.straightTableV2?.measure?.label?.value?.[r];case"totalValues":return e.object?.straightTableV2?.total?.label?.value?.[r];case"nullValues":return e.object?.straightTableV2?.null?.label?.value?.[r];default:return}},dP=e=>e.grid?.zebraStripes?.show,pP={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,translation:"ThemeStyleEditor.style.rowHeight",change(e){null!=e?.content?.rowHeight&&""!==e.content.rowHeight?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):void 0!==e?.content&&(e.content.rowHeight=void 0)}},fP=e=>e?.content?.hoverEffect,hP={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:fP,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:fP,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},mP=(e,t,{properties:r})=>"sn-table"===r.visualization&&!0===r.usePagination,gP=({flags:e,translator:t})=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,items:{headerSection:lP({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:cP,disableNoneCallback:mP}),dimensionValueSection:lP({section:"dimensionValues",translator:t,flags:e,getThemeValue:cP}),measureValueSection:lP({section:"measureValues",translator:t,flags:e,getThemeValue:cP}),totalRowSection:lP({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:cP,disableNoneCallback:mP}),nullValues:uP({section:"nullValues",fallbackBackground:AC.NULL_VALUE_BACKGROUND,getThemeValue:cP}),grid:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>!0,...pP},border:nP("grid.border","properties.border",(e=>e.object?.straightTableV2?.grid?.borderColor??AC.BORDER_MEDIUM)),divider:nP("grid.divider","properties.pivot.divider",(e=>e.object?.straightTableV2?.grid?.divider?.borderColor??AC.BORDER_HEAVY))}}}},hoverEffectSection:hP,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:dP,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:dP,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:dP,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:dP,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),bP=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[gP(e),rP(e),tP(e),{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:"-"}]},...eP}}),vP={uses:"sorting"},yP={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},xP=e=>({type:"items",component:"accordion",items:{data:QR(e),sorting:vP,addOns:yP,settings:bP(e)}});function SP(e){return{definition:xP(e),exploration:AR,data:TR(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:e.anything.sense?.isUnsupportedFeature?.("modifiers")?void 0:["accumulation","movingAverage","difference","normalization"]},importProperties(e,t,r,n,o){const i={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()};return PR({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:i,viewDataMode:o})},exportProperties:(e,t)=>xR({propertyTree:e,hyperCubePath:t})}}const wP=(t,r)=>e((()=>((e,t)=>(r,{isDim:n,colIdx:o})=>{const i=n?o:o-e.qDimensionInfo.length,a=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,s=e[n?"qDimensionInfo":"qMeasureInfo"].at(i)?.columnWidth,l=s?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...s,...r})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(r)};t?.applyPatches([l],!0)})(t,r)),[t,r]),CP=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),EP=[];for(let e=0;e<256;++e)EP.push((e+256).toString(16).slice(1));let RP;const PP=new Uint8Array(16);var AP={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function IP(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!RP){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");RP=crypto.getRandomValues.bind(crypto)}return RP(PP)}();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return(EP[e[t+0]]+EP[e[t+1]]+EP[e[t+2]]+EP[e[t+3]]+"-"+EP[e[t+4]]+EP[e[t+5]]+"-"+EP[e[t+6]]+EP[e[t+7]]+"-"+EP[e[t+8]]+EP[e[t+9]]+"-"+EP[e[t+10]]+EP[e[t+11]]+EP[e[t+12]]+EP[e[t+13]]+EP[e[t+14]]+EP[e[t+15]]).toLowerCase()}(n)}const MP=()=>crypto?.randomUUID?.()??function(e){return AP.randomUUID&&!e?AP.randomUUID():IP(e)}(),kP=({cId:e})=>e??MP(),DP=e=>"number"==typeof e&&!Number.isNaN(+e),TP=e=>DP(e.qNum),OP=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e);var LP={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach((e=>{if(!e)return;const r=e.indexOf("=");let n,o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,r){return{key:NP(e),value:NP(t),useEqualSign:r}}(n,o,i))})),t}},qP=LP;function NP(e){try{return decodeURIComponent(e)}catch{return e}}function jP(e){if(!(this instanceof jP))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");const t=function(e){const t={authorityAndPath:"",search:"",hash:""};let 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:()=>qP.fromSearchString(t.search)}})}function _P(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}jP.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},jP.encodeSearchParams=function(e){let t,r="";for(let n=0;n<e.length;n++)t=e[n],r+=0===n?"?":"&",r+=_P(t.key),t.value?r+=`=${_P(t.value)}`:r+=t.useEqualSign?"=":"";return r};var zP=jP;var FP,HP=class{_hasNext(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}constructor(e){this._input=e,this._pushback=null,this._temp=null,this._index=0,this._mark=0}pushback(e){this._pushback=e}index(){return this._index}hasNext(){return null!=this._pushback||this._hasNext()}next(){if(null!=this._pushback){const e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}nextHex(){const e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}peek(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}mark(){this._temp=this._pushback,this._mark=this._index}reset(){this._pushback=this._temp,this._index=this._mark}remainder(){let e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}},$P=class{decode(e){let t="";const r=new HP(e);let n;for(;r.hasNext();)n=this.decodeCharacter(r),t+=null!=n?n:r.next();return t}decodeCharacter(e){return e.next()}},WP=e=>e>=0&&e<=1114111,BP=e=>e.match(/[\s]/),VP=class extends $P{decodeCharacter(e){e.mark();const t=e.next();let r,n,o;if(null==t||"\\"!==t)return e.reset(),null;const i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(r=i,n=0;n<5&&(o=e.next(),null!=o&&!BP(o));n++){if("NaN"===parseInt(o,16)){e.pushback(o);break}r+=o}const a=parseInt(r,16);return WP(a)?String.fromCharCode(a):"�"}},UP=class e{constructor(e,t){this._key=e,this._value=t}getKey(){return this._key}getValue(){return this._value}equals(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}static newInstanceIfNeeded(){let t,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}},GP=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,r,n){let o,i;if(t.length===r)return i=this._value,this.setValue(n),i;const a=t.charAt(r);return this._nextMap?(o=this._nextMap[a],o||(o=new e,this._nextMap[a]=o)):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}get(e,t){if(e.length<=t)return this._value;const r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return UP.newInstanceIfNeeded(e,this._value);const r=this.getNextNode(e.charAt(t));if(!r)return UP.newInstanceIfNeeded(e,t,this._value);const n=r.getLongestMatch(e,t+1);return n||UP.newInstanceIfNeeded(e,t,this._value)}},YP=class{constructor(){this.clear()}getLongestMatch(e){return this.root&&e?this.root.getLongestMatch(e,0):null}getMaxKeyLength(){return this.maxKeyLen}clear(){this.root=null,this.maxKeyLen=0,this.size=0}put(e,t){this.root||(this.root=new GP);const r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}},KP=(()=>{const e=[],t=[],r=new YP;let n,o,i;for(n in e["""]="34",e["&"]="38",e["<"]="60",e[">"]="62",e[" "]="160",e["¡"]="161",e["¢"]="162",e["£"]="163",e["¤"]="164",e["¥"]="165",e["¦"]="166",e["§"]="167",e["¨"]="168",e["©"]="169",e["ª"]="170",e["«"]="171",e["¬"]="172",e["­"]="173",e["®"]="174",e["¯"]="175",e["°"]="176",e["±"]="177",e["²"]="178",e["³"]="179",e["´"]="180",e["µ"]="181",e["¶"]="182",e["·"]="183",e["¸"]="184",e["¹"]="185",e["º"]="186",e["»"]="187",e["¼"]="188",e["½"]="189",e["¾"]="190",e["¿"]="191",e["À"]="192",e["Á"]="193",e["Â"]="194",e["Ã"]="195",e["Ä"]="196",e["Å"]="197",e["Æ"]="198",e["Ç"]="199",e["È"]="200",e["É"]="201",e["Ê"]="202",e["Ë"]="203",e["Ì"]="204",e["Í"]="205",e["Î"]="206",e["Ï"]="207",e["Ð"]="208",e["Ñ"]="209",e["Ò"]="210",e["Ó"]="211",e["Ô"]="212",e["Õ"]="213",e["Ö"]="214",e["×"]="215",e["Ø"]="216",e["Ù"]="217",e["Ú"]="218",e["Û"]="219",e["Ü"]="220",e["Ý"]="221",e["Þ"]="222",e["ß"]="223",e["à"]="224",e["á"]="225",e["â"]="226",e["ã"]="227",e["ä"]="228",e["å"]="229",e["æ"]="230",e["ç"]="231",e["è"]="232",e["é"]="233",e["ê"]="234",e["ë"]="235",e["ì"]="236",e["í"]="237",e["î"]="238",e["ï"]="239",e["ð"]="240",e["ñ"]="241",e["ò"]="242",e["ó"]="243",e["ô"]="244",e["õ"]="245",e["ö"]="246",e["÷"]="247",e["ø"]="248",e["ù"]="249",e["ú"]="250",e["û"]="251",e["ü"]="252",e["ý"]="253",e["þ"]="254",e["ÿ"]="255",e["&OElig"]="338",e["&oelig"]="339",e["&Scaron"]="352",e["&scaron"]="353",e["&Yuml"]="376",e["&fnof"]="402",e["&circ"]="710",e["&tilde"]="732",e["&Alpha"]="913",e["&Beta"]="914",e["&Gamma"]="915",e["&Delta"]="916",e["&Epsilon"]="917",e["&Zeta"]="918",e["&Eta"]="919",e["&Theta"]="920",e["&Iota"]="921",e["&Kappa"]="922",e["&Lambda"]="923",e["&Mu"]="924",e["&Nu"]="925",e["&Xi"]="926",e["&Omicron"]="927",e["&Pi"]="928",e["&Rho"]="929",e["&Sigma"]="931",e["&Tau"]="932",e["&Upsilon"]="933",e["&Phi"]="934",e["&Chi"]="935",e["&Psi"]="936",e["&Omega"]="937",e["&alpha"]="945",e["&beta"]="946",e["&gamma"]="947",e["&delta"]="948",e["&epsilon"]="949",e["&zeta"]="950",e["&eta"]="951",e["&theta"]="952",e["&iota"]="953",e["&kappa"]="954",e["&lambda"]="955",e["&mu"]="956",e["&nu"]="957",e["&xi"]="958",e["&omicron"]="959",e["&pi"]="960",e["&rho"]="961",e["&sigmaf"]="962",e["&sigma"]="963",e["&tau"]="964",e["&upsilon"]="965",e["&phi"]="966",e["&chi"]="967",e["&psi"]="968",e["&omega"]="969",e["&thetasym"]="977",e["&upsih"]="978",e["&piv"]="982",e["&ensp"]="8194",e["&emsp"]="8195",e["&thinsp"]="8201",e["&zwnj"]="8204",e["&zwj"]="8205",e["&lrm"]="8206",e["&rlm"]="8207",e["&ndash"]="8211",e["&mdash"]="8212",e["&lsquo"]="8216",e["&rsquo"]="8217",e["&sbquo"]="8218",e["&ldquo"]="8220",e["&rdquo"]="8221",e["&bdquo"]="8222",e["&dagger"]="8224",e["&Dagger"]="8225",e["&bull"]="8226",e["&hellip"]="8230",e["&permil"]="8240",e["&prime"]="8242",e["&Prime"]="8243",e["&lsaquo"]="8249",e["&rsaquo"]="8250",e["&oline"]="8254",e["&frasl"]="8260",e["&euro"]="8364",e["&image"]="8365",e["&weierp"]="8472",e["&real"]="8476",e["&trade"]="8482",e["&alefsym"]="8501",e["&larr"]="8592",e["&uarr"]="8593",e["&rarr"]="8594",e["&darr"]="8595",e["&harr"]="8596",e["&crarr"]="8629",e["&lArr"]="8656",e["&uArr"]="8657",e["&rArr"]="8658",e["&dArr"]="8659",e["&hArr"]="8660",e["&forall"]="8704",e["&part"]="8706",e["&exist"]="8707",e["&empty"]="8709",e["&nabla"]="8711",e["&isin"]="8712",e["¬in"]="8713",e["&ni"]="8715",e["&prod"]="8719",e["&sum"]="8721",e["&minus"]="8722",e["&lowast"]="8727",e["&radic"]="8730",e["&prop"]="8733",e["&infin"]="8734",e["&ang"]="8736",e["&and"]="8743",e["&or"]="8744",e["&cap"]="8745",e["&cup"]="8746",e["&int"]="8747",e["&there4"]="8756",e["&sim"]="8764",e["&cong"]="8773",e["&asymp"]="8776",e["&ne"]="8800",e["&equiv"]="8801",e["&le"]="8804",e["&ge"]="8805",e["&sub"]="8834",e["&sup"]="8835",e["&nsub"]="8836",e["&sube"]="8838",e["&supe"]="8839",e["&oplus"]="8853",e["&otimes"]="8855",e["&perp"]="8869",e["&sdot"]="8901",e["&lceil"]="8968",e["&rceil"]="8969",e["&lfloor"]="8970",e["&rfloor"]="8971",e["&lang"]="9001",e["&rang"]="9002",e["&loz"]="9674",e["&spades"]="9824",e["&clubs"]="9827",e["&hearts"]="9829",e["&diams"]="9830",e)"function"!=typeof e[n]&&e.hasOwnProperty(n)&&(t[e[n]]=n);for(o in t)"function"!=typeof t[o]&&t.hasOwnProperty(o)&&(i=t[o].toLowerCase().substr(1),r.put(i,String.fromCharCode(o)));return r})(),XP=class extends $P{decodeCharacter(e){let t;e.mark();const r=e.next();if(null==r||"&"!==r)return e.reset(),null;const n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(t=this._getNumericEntity(e),null!=t)return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,r,n,o="";for(t=Math.min(e.remainder().length,KP.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();const i=KP.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()}_getNumericEntity(e){const t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}_parseHex(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,16);return!Number.isNaN(+n)&&WP(n)?String.fromCharCode(n):null}_parseNumber(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,10);return!Number.isNaN(+n)&&WP(n)?String.fromCharCode(n):null}},JP=class extends $P{decodeCharacter(e){e.mark();const t=e.next();let r,n,o,i;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(r="",n=0;n<2;n++)o=e.nextHex(),null!=o&&(r+=o);return 2===r.length&&(i=parseInt(r,16),WP(i))?String.fromCharCode(i):(e.reset(),null)}},ZP=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,QP=5e6,eA=5e5,tA=(e,t)=>{const{maxByteSizeSvg:r=eA,maxByteSizeImage:n=QP}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,r,n]=ZP.exec(e.trim())??[];return{encoding:r,data:n,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,r)=>{const n={type:e};if(t?.includes(";base64"))try{return new Blob([atob(r)],n).size}catch{return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0})(o,i,a);return"image/svg+xml"===o?s<=r:s<=n};"undefined"!=typeof document&&(FP=document.createElement("div"));var rA=Array.prototype.indexOf,nA=[",",".","_"," "],oA=[",",".","-","_"," "],iA={width:["%"],height:["%"]},aA={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},sA={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":aA.image,"background-color":aA.color,"border-color":aA.color,"border-image":aA.image,color:aA.color,icon:aA.image,"list-style-image":aA.image,"outline-color":aA.color},lA={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function uA(e,t,r){let n;if(t){if(rA)return rA.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 cA(e){if(null==e)return"";let t="";const r=document.createTextNode(e);return FP.appendChild(r),t=FP.innerHTML,FP.removeChild(r),t}function dA(e,t,r){let n,o,i,a,s,l,u,c,d;for(e=fA(e).toLowerCase(),t=fA(t),i=0;i<lA.attr_name.length;i++)if(e.match(lA.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<lA.attr_val.length;i++)if(t.toLowerCase().match(lA.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(n=iA[e],n||(n=oA),o="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&uA(u,n)<0?(d=c.toString(16),o+=`&#x${d};`):o+=u;return r||(o+='"'),o}function pA(e,t,r){let n,o,i,a,s,l,u,c,d,p;if(e=fA(e).toLowerCase(),t=fA(t),uA(e,lA.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(n=0;n<lA.css_val.length;n++)if(t.toLowerCase().indexOf(lA.css_val[n])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=sA[e],o||(o=aA.default),i="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&uA(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=u;return i}function fA(e,t){let r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;const s=[new XP,new JP,new VP];for(;!a;){n=r;for(let e=0;e<s.length;e++)i=s[e].decode(r),i!==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}var hA=[];for(let e=0;e<255;e++)hA[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);var mA={html:e=>cA(e.unsafe),css(e){let t,r=[];const n=[],o={};let i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=pA(t,r[t],!0),i+=pA(t,r[t],!0),o[t]=n[t]);return e.map?o:i},attr(e){let t=[];const r=[],n={};let o="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(r[e]=dA(e,t[e],!0),o+=dA(e,t[e],!0),n[e]=r[e]);return e.map?n:o}};function gA(e,t){throw new Error(t)}var bA={canonicalize:fA,encode:function(){const e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"==typeof arguments[0]?function(){let e,t,r;const n=arguments[0]||{};let o=1;const i=arguments.length;for(;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r=e[t],n===r)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?mA.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&gA(this,"Invalid parameter type"),mA.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&gA(this,"Invalid parameter type"),mA.attr(e)):void gA(this,"Invalid parameter type")},encodeForAttr:dA,encodeForAttr2:function(e){return dA("nonsens",e,!0)},encodeForCSS:pA,encodeForHref:function(e){fA(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new zP(e),r=zP.encodeAuthorityAndPath(t.authorityAndPath),n=t.searchParams;e=r+zP.encodeSearchParams(n)+t.hash;const o=decodeURI(e).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){let r,n,o,i,a,s;for(t||(t=nA),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),uA(o,t)>=0||null==hA[i]?s+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),s+=`\\x${a}${n.toUpperCase()}`):(a="0000".substr(n.length),s+=`\\u${a}${n.toUpperCase()}`));return s},encodeForHTML:cA,encodeForURL:function(e,t){let r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=fA(t).toLowerCase():gA(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?'"':"",r},isSafeDataURL:tA,validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}}(e))return!1;const t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;const r=function(e){let t=e,r="";for(;t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("/.."===t){t="/";const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),n=e?e[0]:"";t=t.slice(n.length),r+=n}return r}(t);return""!==r&&"/"!==r&&r}};const vA=(e,t)=>t.qAttrExps?.qValues?.[e],yA=(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"}}},xA=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>n&&t&&!t.toLowerCase().includes("javascript:")&&bA.isSafeDataURL(t)?{type:OR.Image,url:t,text:e,imageSize:r,resolvedImagePosition:yA(n,a),labelStructure:o,imageBox:i}:{type:OR.Text,url:void 0,text:e,labelStructure:o},SA=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:OR.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{const n="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=n?r.qYMin:e.qMiniChart.qMin,a=n?r.qYMax:e.qMiniChart.qMax;if(o){const e=Math.max(Math.abs(i),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,i),maxY:Math.max(0,a)}:{minY:i,maxY:a}})(e,t.miniChart,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:OR.MiniChart,text:n,miniChart:a}},wA=(e,t,r)=>{const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=n?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return r?.urlPosition===LR.Attribute?void 0:r?.urlLabel},CA=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:OR.Link,url:bA.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:OR.Text,url:void 0,text:t,labelStructure:e}}},EA=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:u})=>{const c=qR(t),d=s(e);return c===OR.Image&&u[OR.Image]&&!n.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=t??{};if("url"===l){const t=vA(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),xA({text:n,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}if("label"===l){const t=i?i.originalValue:n;if(-1===r.imageLabel)return xA({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=vA(r.imageLabel??-1,e)?.qText??n;return xA({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:OR.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):c===OR.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===LR.Attribute){const i=wA(r.url??-1,e,t);return CA({labelStructure:n,text:o||i||"",url:i})}if(i===LR.Dimension){const i=wA(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),CA({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:OR.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):c===OR.Indicator&&u[OR.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:OR.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):c===OR.MiniChart&&u[OR.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?SA(e,t,i,d):{type:OR.Text,url:void 0,text:d,labelStructure:a}},RA=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,PA=(e,t,r)=>(e?void 0:r.nullValueRepresentation?.text)??t.qText??"-",AA=1e4;function IA(e,t){return[...t].reverse().find((t=>t*e<=AA))||Math.floor(AA/e)}function MA(e,t){if(t.viewState?.skipTotals)return{atTop:!1,atBottom:!1};const[r,n,o,i,a]=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,e.totals.show,e.totals.position];if(o&&(r&&n||!i&&!r)){if(i||"top"===a)return{atTop:!0,atBottom:!1};if("bottom"===a)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function kA(e,t,r,n){return t?0===r?e.totals.label??"":"":e.qHyperCube.qGrandTotalRow.at(n)?.qText??""}function DA(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return DP(r?.qNum)}function TA(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 OA=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right";const LA=(e,t,r)=>{const{qHyperCube:{qColumnOrder:n,qDimensionInfo:o,qMeasureInfo:i}}=e,a=o.length+i.length,s=((e,t,r)=>{const n=t.length,{visible:o,hiddenDim:i,hiddenMea:a}=e.reduce(((e,o)=>{const i=o<n,{qError:a}=i?t[o]:r[o-n];return 7005===a?.qErrorCode?i?e.hiddenDim.push(o):e.hiddenMea.push(o):e.visible.push(o),e}),{visible:[],hiddenDim:[],hiddenMea:[]});return o.map(((e,t)=>{const r=e<n,o=(r?i:a).filter((t=>t<e)).length,s=e-o;return{colIdx:e,pageColIdx:t,visibleDimInfoIdx:r?s:void 0,visibleMeasureInfoIdx:r?void 0:s-n}}))})(n.length===a?n:Array.from(Array(a).keys()),o,i);return s.map((n=>function(e,t,r,n){const{qDimensionInfo:o,qMeasureInfo:i,qEffectiveInterColumnSortOrder:a}=e.qHyperCube,{colIdx:s,pageColIdx:l,visibleDimInfoIdx:u,visibleMeasureInfoIdx:c}=t,d=o.length,p=s<d,f=p?o[s]:i[s-d],h=p&&o[s].qGrouping===cE.Cyclic,m=s===a[0];let g,b,v="",y=!1,x=-1,S=0,w=[];const{representation:C,conditionalColoring:E}=f;if(p&&void 0!==u){const e=f;v=e.qGroupFieldDefs[e.qGroupPos],S=e.qGroupPos,w=e.qGroupFallbackTitles,y=e.qLocked??!1,x=u,({qDimensionType:g}=e)}else({qMiniChart:b}=f);const{qFallbackTitle:R,textAlign:P,qAttrExprInfo:A,qSortIndicator:I,qReverseSort:M,qApprMaxGlyphCount:k,columnWidth:D,qLibraryId:T}=f;return{isDim:p,isCyclic:h,isLocked:y,fieldId:v,colIdx:s,qLibraryId:T,pageColIdx:l,qApprMaxGlyphCount:k,qReverseSort:M,columnWidth:D??{type:sE.Auto},selectionColIdx:x,isActivelySorted:m,id:kP(f),label:R,groupDimensionPos:S,groupDimensionLabels:w,qAttrExprInfoIDs:A.map((e=>e.id)),qAttrExprInfoIndex:CP(f),sortDirection:I&&"N"!==I?I:"A",totalInfo:kA(e,p,l,c??-1),...!p&&{isTotalNumeric:DA(e,c??-1)},...TA(P,g,p,r,n),representation:C,conditionalColoring:p?void 0:E,qMiniChart:b}}(e,n,t,r)))};const qA=(e,t)=>!(!e.snapshotData&&!t.viewState?.visibleHeight),NA=(e,t)=>void 0!==t.viewState?.usePagination?t.viewState.usePagination:!1!==e.usePagination||qA(e,t);var jA={exports:{}};
|
|
102
|
+
*/var iC,aC,sC={},lC={};function uC(){if(iC)return lC;iC=1;var e=Wl;Object.defineProperty(lC,"__esModule",{value:!0}),lC.default=void 0;var t=(0,e(ty()).default)();return lC.default=t,lC}var cC,dC,pC={},fC={};function hC(){if(dC)return pC;dC=1;var e=Wl;Object.defineProperty(pC,"__esModule",{value:!0}),pC.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(qu()),r=pg,n=function(){if(cC)return fC;cC=1;var e=Wl;Object.defineProperty(fC,"__esModule",{value:!0}),fC.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},fC.getUnit=r,fC.toUnitless=n,fC.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}},fC.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},fC.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},fC.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(Tg());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return fC}();return pC}var mC,gC={};var bC,vC={};var yC,xC={};var SC,wC={};!function(e){var t=Wl,r=Sm;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=wm;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(ty()),a=t(function(){if(ry)return ny;ry=1;var e=Wl;Object.defineProperty(ny,"__esModule",{value:!0}),ny.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=pg,r=e(ty());return ny}()),s=t(function(){if(tC)return oy;tC=1,Object.defineProperty(oy,"__esModule",{value:!0}),oy.default=function(t){return(0,e.createStyles)(t)};var e=oC;return oy}()),l=t(function(){if(aC)return sC;aC=1;var e=Wl;Object.defineProperty(sC,"__esModule",{value:!0}),sC.default=void 0;var t=e(qu()),r=oC,n=e(uC()),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 sC.default=o,sC}()),u=t(hC()),c=t(function(){if(mC)return gC;mC=1;var e=Wl;Object.defineProperty(gC,"__esModule",{value:!0}),gC.default=void 0;var t=e(qu()),r=oC,n=e(uC()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return gC.default=o,gC}()),d=Jv();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(bC)return vC;bC=1;var e=Wl;Object.defineProperty(vC,"__esModule",{value:!0}),vC.default=function(){return(0,t.useTheme)()||r.default};var t=oC;e(x);var r=e(uC());return vC}()),f=t(function(){if(yC)return xC;yC=1;var e=Wl;Object.defineProperty(xC,"__esModule",{value:!0}),xC.default=void 0;var t=e(qu()),r=oC,n=e(uC()),o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return xC.default=o,xC}()),h=t(function(){if(SC)return wC;SC=1;var e=Wl;Object.defineProperty(wC,"__esModule",{value:!0}),wC.default=void 0;var t=oC,r=e(uC()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return wC.default=n,wC}()),m=oC}(bm),bm.alpha(Lt.GREYSCALE_0,.05),bm.alpha(Lt.GREEN_PALE,.5),bm.alpha(Lt.BLUE_PALE,.5),bm.alpha(Lt.GREEN_PALE,.5),bm.alpha(Lt.BLUE_PALE,.5),bm.alpha(Lt.GREEN_PALE,.5),bm.alpha(Lt.BLUE_PALE,.5),bm.alpha(Lt.GREEN_PALE,.5),bm.alpha(Lt.BLUE_PALE,.5),bm.alpha(Lt.GREEN_PALE,.5),bm.alpha(Lt.BLUE_PALE,.5);const CC=(e="light",t=!1)=>((e,t=!1)=>({components:hm(0,t),palette:mm(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:Nt,fontWeightLight:Ft,fontWeightRegular:Ht,fontWeightMedium:$t,fontWeightBold:Wt,htmlFontSize:Nt,fontFamily:Bt.FONT_FAMILY,button:{fontWeight:$t,fontSize:Nt,textTransform:"none"},body1:{fontSize:jt,lineHeight:"24px"},body2:{fontSize:Nt,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:_t,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:jt,fontWeight:$t,lineHeight:"16px"},h6:{fontSize:Nt,fontWeight:$t,lineHeight:"16px"},caption:{color:Lt.TEXT_SECONDARY},subtitle1:{fontSize:Nt,color:Lt.TEXT_SECONDARY},subtitle2:{fontSize:qt,color:Lt.TEXT_SECONDARY}},shape:{borderRadius:zt}}))(0,t),EC=CC().palette,RC={TEXT:EC.text.primary,DISABLED:EC.text.disabled,HOVER:EC.action.hover,WHITE:gm.GREYSCALE_100,BORDER_LIGHT:gm.GREYSCALE_90,BORDER_MEDIUM:gm.GREYSCALE_85,BORDER_HEAVY:gm.GREYSCALE_50,DARK_MODE_TEXT:gm.GREYSCALE_95,DARK_MODE_BORDER:gm.GREYSCALE_95,DARK_MODE_DISABLED:gm.GREYSCALE_70,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:gm.GREYSCALE_95,SELECTED:EC.primary.main,LINK:EC.info.main,ERROR:EC.error.main},PC=(e,t=RC.TEXT,r=RC.WHITE)=>{const n=ne(e),o=ne(t),i=ne(r);return n.isInvalid()?t:function(e,t,r){const n=oe(e,t),o=oe(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},AC=e=>{const t=e.getStyle("","","dataColors.selected")||RC.SELECTED,r=function(e,t){const r=ne("#FFFFFF"),n=ne(e),o=ne(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=oe(r,n),a=oe(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}(t,RC.TEXT);return{background:t,color:r}},IC=(e,t)=>{const r=ne(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},MC=(e,t,r)=>{const n=t?e.getColorPickerColor(t):"none";return"none"===n?r:n},kC=e=>{const t=ne(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},DC=(e,t,r)=>{const n=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;n?n.focus():t.focusSelection?.(r)},TC=e=>{e.stopPropagation(),e.preventDefault()},OC=e=>!!e&&0===ne(e).a,LC="#grid",qC=(e,t,r,n=RC.WHITE)=>e&&!OC(e)?e:OC(t)?r&&!OC(r)?r:n:t,NC=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},jC=(e,t,r,n,o)=>{const i=NC(".qv-object .qv-inner-object",r),a=NC(".qv-panel-sheet",r),s=NC(LC,r)??a,l=(e=>{const t=e.components?.find((e=>"general"===e.key)),r=t?.bgColor?.colorExpression,n=t?.bgColor?.color?.color,o=t?.bgColor?.useColorExpression;if(o&&r)return kC(r);if("none"===n)return"transparent";if(void 0===n)return;const i=ne(n);return i.setAlpha(t?.bgColor?.color?.alpha??i.a),i.getRGBA()})(e),u=n?.(t),c=o?.(t),d=l||u||i||c,p=OC(d),f=!OC(h=p?s:d)&&PC(h,RC.TEXT,RC.DARK_MODE_TEXT)===Z(RC.DARK_MODE_TEXT);var h;return{color:d,headerColor:qC(l,d,s),isDark:f}},_C=(t,r,a,s)=>{const l=i(),u=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,i]=n([]);return o((()=>{let r;return e&&(r=new MutationObserver((e=>{i(e)})),r.observe(e,t)),()=>{r?.disconnect()}}),[e,t]),r})(r.closest(LC),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>e?.includes("background"))).map((({oldValue:e})=>e)).join(",");return e((()=>({...l,background:jC(t,l,r,a,s)})),[l.name(),r,a,s,t,u])};function zC(t,n){const o=e((()=>({isLoading:!0})),n),[i,a]=r((async()=>{try{return await t()}finally{o.isLoading=!1}}),n);return[i,o.isLoading,a]}const FC=3;function HC(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 $C({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=FC}=o??{},{estimateWidth:a,measureText:s,estimateLineCount:l}=R((()=>{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=HC(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 WC,BC=$;WC=BC.createRoot,BC.hydrateRoot;const VC="Source Sans Pro, sans-serif";function UC(e,t){const[r,n]=P(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var GC={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 YC=({translator:e})=>(R((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(GC).forEach((t=>{e.add(GC[t])}))}}(e)}),[e]),e),KC="12px",XC="nebula-table-utils-head-menu-button",JC="nebula-table-utils-head-menu-wrapper",ZC="nebula-table-utils-head-menu",QC="nebula-table-utils-head-menu-list-id",eE="sn-copy-cell";let tE=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.F2="F2",e}({});const rE="nebula-table-utils-column-adjuster";let nE=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}({}),oE=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const iE={darker:.15,brighter:.3,opacity:.03},aE={darker:.3,brighter:.5,opacity:.05};let sE=function(e){return e.Cyclic="C",e}({});const lE=document.createElement("textarea");function uE(e){lE.value=e,document.body.appendChild(lE),lE.select(),lE.setSelectionRange(0,lE.value.length),document.execCommand("copy"),document.body.removeChild(lE)}lE.style.position="absolute",lE.style.left="-9999px",lE.setAttribute("readonly","");const cE=e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch((()=>{uE(t)})):uE(t))};function dE(e){return"init"in e}function pE(e){return!!e.write}function fE(e){return"v"in e||"e"in e}function hE(e){if("e"in e)throw e.e;if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}function mE(e){return"function"==typeof(null==e?void 0:e.then)}function gE(e,t,r){if(!r.p.has(e)){r.p.add(e);const n=()=>r.p.delete(e);t.then(n,n)}}function bE(e,t,r){var n;const o=new Set;for(const t of(null==(n=r.get(e))?void 0:n.t)||[])o.add(t);for(const e of t.p)o.add(e);return o}const vE=(e,t,...r)=>t.read(...r),yE=(e,t,...r)=>t.write(...r),xE=(e,t)=>{var r;return null==(r=t.INTERNAL_onInit)?void 0:r.call(t,e)},SE=(e,t,r)=>{var n;return null==(n=t.onMount)?void 0:n.call(t,r)},wE=(e,t)=>{var r;const n=zE(e),o=n[0],i=n[6],a=n[9];if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!t)throw new Error("Atom is undefined or null");let s=o.get(t);return s||(s={d:new Map,p:new Set,n:0},o.set(t,s),null==(r=i.i)||r.call(i,t),null==a||a(e,t)),s},CE=e=>{const t=zE(e),r=t[1],n=t[3],o=t[4],i=t[5],a=t[6],s=t[13],l=[],u=e=>{try{e()}catch(e){l.push(e)}};do{a.f&&u(a.f);const t=new Set,l=t.add.bind(t);n.forEach((e=>{var t;return null==(t=r.get(e))?void 0:t.l.forEach(l)})),n.clear(),i.forEach(l),i.clear(),o.forEach(l),o.clear(),t.forEach(u),n.size&&s(e)}while(n.size||i.size||o.size);if(l.length)throw new AggregateError(l)},EE=e=>{const t=zE(e),r=t[1],n=t[2],o=t[3],i=t[11],a=t[14],s=t[17],l=[],u=new WeakSet,c=new WeakSet,d=Array.from(o);for(;d.length;){const t=d[d.length-1],o=i(e,t);if(c.has(t))d.pop();else if(u.has(t)){if(n.get(t)===o.n)l.push([t,o]);else if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&n.has(t))throw new Error("[Bug] invalidated atom exists");c.add(t),d.pop()}else{u.add(t);for(const e of bE(t,o,r))u.has(e)||d.push(e)}}for(let t=l.length-1;t>=0;--t){const[r,i]=l[t];let u=!1;for(const e of i.d.keys())if(e!==r&&o.has(e)){u=!0;break}u&&(a(e,r),s(e,r)),n.delete(r)}},RE=new WeakSet,PE=(e,t)=>{var r,n;const o=zE(e),i=o[1],a=o[2],s=o[3],l=o[6],u=o[7],c=o[11],d=o[12],p=o[13],f=o[14],h=o[16],m=o[17],g=o[20],b=o[26],v=c(e,t);if(fE(v)){if(i.has(t)&&a.get(t)!==v.n)return v;let r=!1;for(const[t,n]of v.d)if(f(e,t).n!==n){r=!0;break}if(!r)return v}let y=!0;const x=new Set(v.d.keys()),S=new Map,w=()=>{for(const e of x)S.has(e)||v.d.delete(e)},C=()=>{if(i.has(t)){const r=!s.size;m(e,t),r&&(p(e),d(e))}},E=r=>{var n;if(r===t){const t=c(e,r);if(!fE(t)){if(!dE(r))throw new Error("no atom init");g(e,r,r.init)}return hE(t)}const o=f(e,r);try{return hE(o)}finally{S.set(r,o.n),v.d.set(r,o.n),mE(v.v)&&gE(t,v.v,o),i.has(t)&&(null==(n=i.get(r))||n.t.add(t)),y||C()}};let R,P;const A={get signal(){return R||(R=new AbortController),R.signal},get setSelf(){return"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&console.warn("[DEPRECATED] setSelf is deprecated and will be removed in v3."),"production"===(import.meta.env?import.meta.env.MODE:void 0)||pE(t)||console.warn("setSelf function cannot be used with read-only atom"),!P&&pE(t)&&(P=(...r)=>{if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&y&&console.warn("setSelf function cannot be called in sync"),!y)try{return h(e,t,...r)}finally{p(e),d(e)}}),P}},I=v.n;try{"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&RE.delete(e);const n=u(e,t,E,A);if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&RE.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),g(e,t,n),mE(n)){b(e,n,(()=>null==R?void 0:R.abort()));const t=()=>{w(),C()};n.then(t,t)}else w();return null==(r=l.r)||r.call(l,t),v}catch(e){return delete v.v,v.e=e,++v.n,v}finally{y=!1,I!==v.n&&a.get(t)===I&&(a.set(t,v.n),s.add(t),null==(n=l.c)||n.call(l,t))}},AE=(e,t)=>{const r=zE(e),n=r[1],o=r[2],i=r[11],a=[t];for(;a.length;){const t=a.pop(),r=i(e,t);for(const s of bE(t,r,n)){const t=i(e,s);o.get(s)!==t.n&&(o.set(s,t.n),a.push(s))}}},IE=(e,t,...r)=>{const n=zE(e),o=n[3],i=n[6],a=n[8],s=n[11],l=n[12],u=n[13],c=n[14],d=n[15],p=n[16],f=n[17],h=n[20];let m=!0;const g=t=>hE(c(e,t)),b=(r,...n)=>{var a;const c=s(e,r);try{if(r===t){if(!dE(r))throw new Error("atom not writable");"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&RE.add(e);const t=c.n,s=n[0];return h(e,r,s),f(e,r),void(t!==c.n&&(o.add(r),d(e,r),null==(a=i.c)||a.call(i,r)))}return p(e,r,...n)}finally{m||(u(e),l(e))}};try{return a(e,t,g,b,...r)}finally{m=!1}},ME=(e,t)=>{var r;const n=zE(e),o=n[1],i=n[3],a=n[6],s=n[11],l=n[15],u=n[18],c=n[19],d=s(e,t),p=o.get(t);if(p){for(const[n,o]of d.d)if(!p.d.has(n)){const c=s(e,n);u(e,n).t.add(t),p.d.add(n),o!==c.n&&(i.add(n),l(e,n),null==(r=a.c)||r.call(a,n))}for(const r of p.d)if(!d.d.has(r)){p.d.delete(r);const n=c(e,r);null==n||n.t.delete(t)}}},kE=(e,t)=>{var r;const n=zE(e),o=n[1],i=n[4],a=n[6],s=n[10],l=n[11],u=n[12],c=n[13],d=n[14],p=n[16],f=n[18],h=l(e,t);let m=o.get(t);if(!m){d(e,t);for(const r of h.d.keys()){f(e,r).t.add(t)}if(m={l:new Set,d:new Set(h.d.keys()),t:new Set},o.set(t,m),pE(t)){const r=()=>{let r=!0;const n=(...n)=>{try{return p(e,t,...n)}finally{r||(c(e),u(e))}};try{const o=s(e,t,n);o&&(m.u=()=>{r=!0;try{o()}finally{r=!1}})}finally{r=!1}};i.add(r)}null==(r=a.m)||r.call(a,t)}return m},DE=(e,t)=>{var r,n;const o=zE(e),i=o[1],a=o[5],s=o[6],l=o[11],u=o[19],c=l(e,t);let d=i.get(t);if(!d||d.l.size)return d;let p=!1;for(const e of d.t)if(null==(r=i.get(e))?void 0:r.d.has(t)){p=!0;break}if(p)return d;d.u&&a.add(d.u),d=void 0,i.delete(t);for(const r of c.d.keys()){const n=u(e,r);null==n||n.t.delete(t)}null==(n=s.u)||n.call(s,t)},TE=(e,t,r)=>{const n=zE(e),o=n[11],i=n[27],a=o(e,t),s="v"in a,l=a.v;if(mE(r))for(const n of a.d.keys())gE(t,r,o(e,n));a.v=r,delete a.e,s&&Object.is(l,a.v)||(++a.n,mE(l)&&i(e,l))},OE=(e,t)=>hE((0,zE(e)[14])(e,t)),LE=(e,t,...r)=>{const n=zE(e),o=n[12],i=n[13],a=n[16];try{return a(e,t,...r)}finally{i(e),o(e)}},qE=(e,t,r)=>{const n=zE(e),o=n[12],i=n[18],a=n[19],s=i(e,t).l;return s.add(r),o(e),()=>{s.delete(r),a(e,t),o(e)}},NE=(e,t,r)=>{const n=zE(e)[25];let o=n.get(t);if(!o){o=new Set,n.set(t,o);const e=()=>n.delete(t);t.then(e,e)}o.add(r)},jE=(e,t)=>{const r=zE(e)[25].get(t);null==r||r.forEach((e=>e()))},_E=new WeakMap,zE=e=>{const t=_E.get(e);if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!t)throw new Error("Store must be created by buildStore to read its building blocks");return t};let FE,HE=0;function $E(e,t){const r="atom"+ ++HE,n={toString(){return"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&this.debugLabel?r+":"+this.debugLabel:r}};return"function"==typeof e?n.read=e:(n.init=e,n.read=WE,n.write=BE),t&&(n.write=t),n}function WE(e){return e(this)}function BE(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}function VE(){return function(...e){const t={get:e=>(0,zE(t)[21])(t,e),set:(e,...r)=>(0,zE(t)[22])(t,e,...r),sub:(e,r)=>(0,zE(t)[23])(t,e,r)},r=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},vE,yE,xE,SE,wE,CE,EE,PE,AE,IE,ME,kE,DE,TE,OE,LE,qE,void 0,new WeakMap,NE,jE].map(((t,r)=>e[r]||t));return _E.set(t,Object.freeze(r)),t}()}const UE=I(void 0);function GE(e){return T(UE)||(FE||(FE=VE(),"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=FE),globalThis.__JOTAI_DEFAULT_STORE__!==FE&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),FE)}function YE({children:e,store:t}){const r=A(null);return t?S(UE.Provider,{value:t},e):(null===r.current&&(r.current=VE()),S(UE.Provider,{value:r.current},e))}const KE=e=>"function"==typeof(null==e?void 0:e.then),XE=e=>{e.status||(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})))},JE=x.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(XE(e),e)}),ZE=new WeakMap,QE=(e,t,r)=>{const n=function(e){const t=zE(e),r=t[24];return r?r(t):t}(e),o=n[26];let i=ZE.get(t);return i||(i=new Promise(((n,a)=>{let s=t;const l=e=>t=>{s===e&&n(t)},u=e=>t=>{s===e&&a(t)},c=()=>{try{const t=r();KE(t)?(ZE.set(t,i),s=t,t.then(l(t),u(t)),o(e,t,c)):n(t)}catch(e){a(e)}};t.then(l(t),u(t)),o(e,t,c)})),ZE.set(t,i)),i};function eR(e,t){const{delay:r,unstable_promiseStatus:n=!x.use}={},o=GE(),[[i,a,s],l]=M((t=>{const r=o.get(e);return Object.is(t[0],r)&&t[1]===o&&t[2]===e?t:[r,o,e]}),void 0,(()=>[o.get(e),o,e]));let u=i;if(a===o&&s===e||(l(),u=o.get(e)),k((()=>{const t=o.sub(e,(()=>{if(n)try{const t=o.get(e);KE(t)&&XE(QE(o,t,(()=>o.get(e))))}catch(e){}"number"!=typeof r?l():setTimeout(l,r)}));return l(),t}),[o,e,r,n]),D(u),KE(u)){const t=QE(o,u,(()=>o.get(e)));return n&&XE(t),JE(t)}return u}function tR(e,t){const r=GE();return O(((...t)=>{if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!("write"in e))throw new Error("not writable atom");return r.set(e,...t)}),[r,e])}const rR=$E(void 0),nR=$E({}),oR=$E((e=>{const t=e(nR);return e=>t.flags.isEnabled(e)})),iR=$E(),aR=$E((e=>!!e(iR)?.snapshotData)),sR=$E(),lR=$E(!1),uR=$E((e=>e(sR)),((e,t,r)=>{t(sR,r),t(lR,r.isModal())})),cR=$E(),dR=$E((e=>{const t=e(cR),r=e(aR);return{...t,select:!!t?.active&&!!t.select&&!r,active:!!t?.active&&!r,scroll:!!t?.active}}),((e,t,r)=>{t(cR,r)})),pR=$E((e=>!!e(dR).active)),fR=$E((e=>!!e(dR).passive)),hR=$E((e=>!!e(dR).select)),mR=$E((e=>!!e(dR).scroll)),gR=$E((e=>{const t=e(pR),r=e(lR);return t&&!r})),bR=(e,t)=>!(!e.snapshotData&&!t?.visibleHeight),vR=(e,t)=>void 0!==t?.usePagination?t.usePagination:!1!==e.usePagination||bR(e,t),yR=$E(),xR=$E((e=>e(yR)?.direction)),SR=$E((e=>e(yR)?.footerContainer)),wR=$E((e=>e(yR)?.viewState)),CR=$E({active:!1,enabled:!1,blur:()=>{},focus:()=>{},focusSelection:()=>{}}),ER=$E((e=>e(CR)),((e,t,r)=>{const n=e(iR),o=e(wR);(void 0===n||vR(n,o))&&t(CR,r)})),RR=$E(),PR=$E(null);var AR={exports:{}};self,AR.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:()=>De});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 w={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var s=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var c=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 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 E(e){return E="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(e)}var R=t().bind(null,!0),P={},A=Array.isArray;function I(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function M(e){return void 0===e}function k(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function D(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(I(e)&&I(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(A(e)&&A(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}P.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);T(i,a)||k(t,o)||(M(a)?n.push({op:"add",path:s,value:i}):I(i)&&I(a)?n=n.concat(P.generate(a,i,s)):A(i)&&A(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(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){M(t[o])&&!k(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=D(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(A(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(A(a)&&A(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(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=D(e,t.from);A(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(A(o)?o.splice(+i,1):delete o[i])}))},P.clone=function(e){return R({},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)):R(e,t)};const O=P,L=function(e,r,n){if(!e)return Promise.resolve();var o=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 q="accumulation";function N(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 j(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 _={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=w.getNumStepComp(r,l),p=w.getAboveComp(r,l,c,d),f=w.getRangeComp("RangeSum",p);if(w.needDimension({modifier:r,properties:n,layout:o})){var h=w.getDimComp(u,1),m=w.getDimComp(u,0),g=w.getAggrComp(f,h,m);f=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,_)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(j(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(j(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(j(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(j(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=N(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=N(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(j(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(q))return!1;var i=N(t,e);return i&&!i.disabled}};return r}};var F="movingAverage";function H(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 $(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 W={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const B={translationKey:"properties.modifier.movingAverage",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=s;void 0===u&&(u=w.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=w.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:l,treatMissingAsNull:d}),f=w.getNumStepComp(n,u),h=w.getAboveComp(n,u,p,f);if(n.nullSuppression)t=w.getRangeComp("RangeAvg",h);else{var m=w.getRangeComp("RangeSum",h),g=function(e,t){var r=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(m," / ").concat(g)}var b=t;if(w.needDimension({modifier:n,properties:o,layout:a})){var v=w.getDimComp(c,1),y=w.getDimComp(c,0),x=w.getAggrComp(b,v,y);b=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,W)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat($(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($(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($(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($(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($(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat($(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(F))return!1;var i=H(t,e);return i&&!i.disabled}};return r}};var V="timeSeriesDecomposition";function U(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 G(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:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?w.generateTSDExpression(r,t,n):t},extractInputExpression:w.extractInputExpression,initModifier:function(e,t){w.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=w.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(G(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(G(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=U(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=U(t,e);return r&&!r.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(V))return!1;var i=U(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=w.getAboveComp(r,l,c),p="".concat(c," - ").concat(d);if(w.needDimension({modifier:r,properties:n,layout:o})){var f=w.getDimComp(u,1),h=w.getDimComp(u,0),m=w.getAggrComp(p,f,h);p=r.showExcludedValues?w.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!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:s}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=ae(t),l=se(t,r,n),u=""===s&&""===l?"":s||l,c=le(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=w.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",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",we="qDef.qLabelExpression",Ce="qDef.base.qLabel",Ee="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Pe="qDef.base.qAggrFunc",Ae={initBase:function(e,t){(t||Ae.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,Ee,i(e,we)))},restoreBase:function(e){Ae.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,we,i(e,Ee)),i(e,Re)&&i(e,Pe)&&r(e,Re,i(e,Pe)),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=Ae;function Me(e){return Me="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},Me(e)}var ke={accumulation:z,movingAverage:B,difference:ee,normalization:ce,timeSeriesDecomposition:K};const De={modifiers:ke,apply:Oe,applyModifiers:Le,cleanUpMeasure:qe,destroy:function(e){e&&Te[e.id]&&Te[e.id].masterItemSubscriber&&(Te[e.id].masterItemSubscriber&&Te[e.id].masterItemSubscriber.unsubscribe(),delete Te[e.id])},hasActiveModifiers:Ne,getActiveModifier:je,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);Ge({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:_e};var Te={};function Oe(){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;Te[r.id]=Te[r.id]||{isFirstTime:!0};var u=Te[r.id].isFirstTime;if(Te[r.id].isFirstTime=!1,n&&"object"===Me(n))return Le({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=Te[r.id].lastReloadTime;if(Te[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),Ne({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 Ue({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 Ge({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);$e(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(Ue({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===Me(e)&&!e.disabled){if(r++,"object"!==Me(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&&Be(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),Le({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"===Me(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 Le(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),$e(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(!Ne({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){Ge({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"===Me(e)&&!e.disabled){if(s++,"object"!==Me(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||_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")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),We(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"===Me(e)&&!e.disabled&&!ke[e.type]}))}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,We(e)}function Ne(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ge({modifiers:Fe(e),properties:r,layout:n})}))}function je(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 _e(e){var t=je(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 He(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function $e(e){ze(e).forEach((function(e){return function(e){var r=je(e);r&&(void 0!==r.outputExpression&&He(r)!==e.qDef.qDef?delete e.qDef.base:!Ie.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function We(e){var t=Fe(e);Array.isArray(t)&&t.forEach((function(t){"object"===Me(t)&&(t.disabled||!ke[t.type]&&He(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Be(e){return e.base||e.qDef&&e.qDef.base}function Ve(e){var t=Be(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,r=e.properties,n=e.layout;return!Ve(t)&&Ge({modifiers:Fe(t),properties:r,layout:n})}function Ge(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Me(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):L(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"===Me(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(Ge({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)?(Te[t.id].masterItemSubscriber=Te[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 Oe({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Te[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:()=>$e});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),w=r.n(S);function C(e,t){var r=w()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function E(e,t){return w()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var P=Math.pow(2,53)-1;function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}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 M=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])},D=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},T=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}}},O=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},L=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)}},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=E(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=E(s.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},N=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,P),l=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,s,P),minDimensions:R(i.min,l,0),maxMeasures:s,minMeasures:l}},j=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))},_=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=w()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=w()(!0,{},r,o)).components&&(o.components=[]),o},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=[]))},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 A(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 A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},$=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)}))}},W=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 B(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=_({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=N({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,w=y.maxMeasures,C=y.minMeasures,E=l.defaultDimension,R=void 0===E?T():E,P=l.defaultMeasure,A=void 0===P?O():P;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C})&&F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C,newHyperCubeDef:v}),L({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),q({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:v,defaultMeasure:A}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),j({exportFormat:t,newHyperCubeDef:v}),k("qMaxStackedCells",b,v),k("qNoOfLeftDims",b,v),D("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),D("qMode",b,v,"S"),D("qReductionMode",b,v,"N"),D("qSortbyYValue",b,v),D("qIndentMode",b,v),D("qShowTotalsAbove",b,v),M(g,t,n),m.qProperty=g;var I=i.getValue(c||{},"support.modifiers");return W({measures:v.qMeasures,modifierTypes:I}),p&&B(m.qProperty,"storedFilters"),"S"===v.qMode&&h&&B(m.qProperty,"dynamicScript"),m}};var U={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function G(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||!U[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(G(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?B(r,"unsupportedAutoMinMax")||w()(r.measureAxis,t.measureAxis):B(r,"supportedAutoMinMax")||w()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,s=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach((function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}})),t}(a);l.length?(i&&(t=l.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=l.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&w()(s,r.properties.measureAxes[t[0].axis])):w()(s,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},we={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),s=a.properties;return i?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function Ee(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 Pe="qHyperCubeDef.qMeasures",Ae="conditionalColoring",Ie="measures",Me="qDef.conditionalColoring";const ke={quarantine:function(e){Ee({properties:e,arrayPath:Pe,quarantineName:Ae,arrayName:Ie,itemPath:Me})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,itemPath:Me,arrayName:Ie,quarantineName:Ae})}};var De="qHyperCubeDef.qMeasures",Te="measures",Oe="qHyperCubeDef.qDimensions",Le="dimensions",qe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",je="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",_e="alternativeDimensions",ze="qCalcCondition",Fe="conditionalShowHide";const He={quarantine:function(e){Ee({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze}),Ee({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Le,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze}),Re({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:Le,itemPath:ze})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:qe,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Ee({properties:e,arrayPath:je,quarantineName:Fe,arrayName:_e,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:qe,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:je,quarantineName:Fe,arrayName:_e,itemPath:ze})}},$e={hypercube:V,colorChart:be,axisChart:we,quarantineProperty:x,unquarantineProperty:B,quarantineArrayProp:Ee,unquarantineArrayProp:Re,conditionalColoring:ke,conditionalShow:He}})(),n.default})();var IR=Vt(AR.exports);const MR="qHyperCubeDef.qMeasures",kR="measures",DR="qHyperCubeDef.qDimensions",TR="dimensions",OR="qDef.representation",LR="tableRepresentation",qR="qDef.conditionalColoring",NR="conditionalColoring",jR="qMiniChartDef",_R="miniChartDef",zR=({propertyTree:e,hyperCubePath:t})=>{const r=IR.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:n,qDimensions:o,qMeasures:i}}=r.properties,a=((e,t,r)=>{const n=e.length+t.length,o=(r?.length===n?r:Array.from(Array(n).keys())).map((r=>((e,t,r)=>{const n=t.length,o=e<n?t[e]:r[e-n],{columnWidth:i}=o.qDef;return i||-1})(r,e,t)));return o})(o,i,n);return xt(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),IR.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),IR.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),IR.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{IR.quarantineArrayProp({properties:e,arrayPath:DR,itemPath:OR,arrayName:TR,quarantineName:LR}),IR.quarantineArrayProp({properties:e,arrayPath:MR,itemPath:OR,arrayName:kR,quarantineName:LR}),IR.quarantineArrayProp({properties:e,arrayPath:MR,itemPath:qR,arrayName:kR,quarantineName:NR}),IR.quarantineArrayProp({properties:e,arrayPath:MR,itemPath:jR,arrayName:kR,quarantineName:_R})})(r.properties),r};const FR=/^q[A-Z]/,HR=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],$R=e=>"object"==typeof e&&null!==e,WR=(e,t)=>(Object.entries(e).forEach((([r,n])=>{const o=void 0===t?r:`${t}.${r}`;((e,t)=>!FR.test(e)&&!HR.some((e=>e.test(t))))(r,o)?delete e[r]:Array.isArray(n)?e[r]=n.map(((e,t)=>$R(e)?WR(e,`${o}.${t}`):e)):$R(n)&&(e[r]=WR(n,o))})),e),BR=(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];null===e||Array.isArray(e)||"object"!=typeof e?i.qDef.columnWidth="number"==typeof e&&e>0?{type:oE.Pixels,pixels:e}:{type:oE.FitToContent}:i.qDef.columnWidth=e}return i},VR=({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)}WR(e.properties)}const a=IR.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(IR.conditionalShow.unquarantine(a.qProperty),i)xt(a,"qProperty.totals.show",!1),xt(a,"qProperty.usePagination",!0),xt(a,"qProperty.accessibleHeader",!0);else{IR.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{IR.unquarantineArrayProp({properties:e,arrayPath:DR,itemPath:OR,arrayName:TR,quarantineName:LR}),IR.unquarantineArrayProp({properties:e,arrayPath:MR,itemPath:OR,arrayName:kR,quarantineName:LR}),IR.unquarantineArrayProp({properties:e,arrayPath:MR,itemPath:qR,arrayName:kR,quarantineName:NR}),IR.unquarantineArrayProp({properties:e,arrayPath:MR,itemPath:jR,arrayName:kR,quarantineName:_R})})(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=r?.length===i?r:Array.from(Array(i).keys());return{dimensions:a.filter((e=>e<o)).map((t=>BR(e,t,n))),measures:a.filter((e=>e>=o)).map((e=>BR(t,e,n,o)))}})(e,t,r,n);Array.isArray(n)&&n.length>0&&(xt(a,"qProperty.qHyperCubeDef.qDimensions",o),xt(a,"qProperty.qHyperCubeDef.qMeasures",i))}return a};var UR={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};const GR=(e,t)=>{if(!e)return-1;const r=e.indexOf(t);if(-1===r)return-1;for(let r=0;r<e.length;++r)e[r]>t&&e[r]--;return e.splice(r,1),r};function YR(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function KR(e){return e>0?0:1}function XR(e){return e.translator.get("Visualizations.Descriptions.Column")}function JR(e){return{measures:{min:KR,max:1e3,description:()=>XR(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;YR(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties,i=(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n;GR(o,i)}},dimensions:{min:KR,max:1e3,description:()=>XR(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return YR(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(e?.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;GR(o,n)}}}}let ZR=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}({}),QR=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const eP=e=>{switch(e?.type){case"url":return ZR.Link;case"image":return ZR.Image;case"indicator":return ZR.Indicator;case"miniChart":return ZR.MiniChart;default:return ZR.Text}},tP=({isImagesEnabled:e})=>({uses:"dimensionRepresentationItems.representationType",options(t,r,n){const{qIndentMode:o}=n.properties.qHyperCubeDef,i=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return(!o&&e||o)&&i.push({value:"image",translation:"Object.Table.Representation.Image"}),i}}),rP=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>eP(e.qDef.representation)===ZR.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]},imageBoxWidth:{ref:"qDef.representation.imageBox.width",translation:"properties.pivot.representation.image.imageBox.width",type:"number",expression:"optional",defaultValue:24,show:(e,t,r)=>{if(!r.properties.qHyperCubeDef)return!1;const{qInterColumnSortOrder:n,qNoOfLeftDims:o,qDimensions:i,qIndentMode:a}=r.properties.qHyperCubeDef;let s=!1;n?.indexOf(-1);const l=i?.indexOf(e)??1/0;return(n?.slice(0,o)??[]).indexOf(l)>-1&&(s=!0),s&&a}}}}}},nP=e=>{const{anything:t}=e,r=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:tP({isImagesEnabled:r}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>eP(e.qDef.representation)===ZR.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>eP(e.qDef.representation)===ZR.Link&&e.qDef.representation?.urlPosition===QR.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>eP(e.qDef.representation)===ZR.Link&&e.qDef.representation?.urlPosition===QR.Attribute},...rP(r)}},oP=(e,t)=>{const{anything:r}=e,n=r.sense?.isUnsupportedFeature,o=!n?.("tableImages")&&t[ZR.Image],i=!n?.("qMiniChartDef")&&t[ZR.MiniChart],a=!n?.("tableIndicators")&&t[ZR.Indicator],s=o&&t[ZR.ImagesInIndentMode];return{representationType:{uses:"measureRepresentationItems.representationType",options:(e,t,r)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef??{},r=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&o||t&&s)&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),a&&r.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),i&&r.push({value:"miniChart",translation:"Common.MiniChart"}),r})(r)},representationImage:o?{uses:"measureRepresentationItems.representationImage",show:e=>eP(e.qDef.representation)===ZR.Image,items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}:void 0,representationIndicator:a?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:i?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}};var iP,aP={};iP=aP,(()=>{var e={370: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}}},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),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{default:()=>Ie});var o=r(370),i=r.n(o);const a=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},s=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},l={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var u="".concat(" ","(").concat(" "),c="".concat(" ",")").concat(" ");function d(e){return u+e+c}function p(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 f(e){return!(!e.fullAccumulation&&!e.fullRange)}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function m(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 g(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function b(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function v(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function x(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function S(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=x(p(n[0],o),g(0));return"".concat(a,"({1<").concat(u,">}").concat(l,")")}if(n&&2===n.length){var c=p(n[0],o),d=p(n[1],o),f=g(0),h=g(1),m=x(c,f),b=x(d,h);return"".concat(a,"({1<").concat(m,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function w(e){return"".concat(e,"(")}function C(e){var t=e.properties,r=e.layout;return s(t,"qHyperCubeDef.qDimensions",s(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:f,getNumDimensions:C,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=d(m(t));if(!r.showExcludedValues)return a;var s=S({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var u=g(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var c=g(0),p=g(1);return"If(Count(".concat(c,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:h,getNumStepComp:function(e,t){if(!f(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return h(e,t)},getAboveCompPrefix:b,getAboveCompSuffix:v,getAboveComp:function(e,t,r,n){return b(e,t)+r+v(n)},getFunctionPrefix:w,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return w(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:S,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout;return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t)&&2===C({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=g(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:m,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(u);if(-1!==r){var n=t.indexOf(c);if(-1!==n)return t.substring(r+u.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:p,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=C({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:d,canExtract:function(e){var t=e.indexOf(u),r=e.indexOf(c);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:g,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=l.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?l.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(l.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return l.EXPRESSIONS[r]&&n.includes(l.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}var A=i().bind(null,!0),I={},M=Array.isArray;function k(e){return null!=e&&!Array.isArray(e)&&"object"===P(e)}function D(e){return void 0===e}function T(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function O(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]=D(e[r||t])?i:e[t],e=e[r||t]}})),e}function L(e,t){var r=!0;if(k(e)&&k(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){L(e[n],t[n])||(r=!1)})),r);if(M(e)&&M(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!L(e[n],t[n]))return!1;return!0}return e===t}I.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?A({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);L(i,a)||T(t,o)||(D(a)?n.push({op:"add",path:s,value:i}):k(i)&&k(a)?n=n.concat(I.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]&&D(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(L(t,o))return n;if(!D(t[0])&&D(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){D(t[o])&&!T(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=O(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(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 R(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 R(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)?R(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(k(a)&&k(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!T(r,e)&&delete r[e]})),A(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=O(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])}))},I.clone=function(e){return A({},e)},I.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},I.updateObject=function(e,t){Object.keys(e).length?I.apply(e,I.generate(e,t)):A(e,t)};const q=I;var N="accumulation";function j(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===N)return r[n]}function _(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===N)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={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,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),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 h=E.getDimComp(u,1),m=E.getDimComp(u,0),g=E.getAggrComp(f,h,m);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,z)},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!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(_(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(_(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(_(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(_(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(_(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(N))return!1;var i=j(t,e);return i&&!i.disabled}}}};var H="movingAverage";function $(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===H)return r[n]}function W(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===H)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 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,i=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var u=a;void 0===u&&(u=E.getNumDimensions({properties:o,layout:i}));var c=s(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),h=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",h);else{var m=E.getRangeComp("RangeSum",h),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(m," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:i})){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,B)},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!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(W(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(W(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(W(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(W(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(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(W(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(W(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(H))return!1;var i=$(t,e);return i&&!i.disabled}}}};var U="timeSeriesDecomposition";function G(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===U)return r[n]}function Y(e,t){var r=function(e,t){var r=s(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===U)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var K={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const X={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,K),""===e.decomposition&&t&&(e.decomposition=E.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!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(Y(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:l.OPTIONS},steps:{refFn:function(t){return"".concat(Y(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=G(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var r=G(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(U))return!1;var i=G(t,e);return i&&!i.disabled}}}};var J="difference";function Z(e,t){var r=function(e,t){var r=s(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 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,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),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),h=E.getDimComp(u,0),m=E.getAggrComp(p,f,h);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,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]:{};return{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(J))return!1;var i=function(e,t){var r=s(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===J)return r[n]}(t,e);return i&&!i.disabled}}}};var te="normalization";function re(e,t){var r=s(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=s(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,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var l=i;void 0===l&&(l=E.getNumDimensions({properties:n,layout:o}));var u=s(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a,s){var l=ae(t),u=se(t,r,n),c=""===l&&""===u?"":l||u,d=le(o,i),p=ue(o,i,a),f=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return s?"(If(".concat(e," < 0, null(), ").concat(e,"))/ Sum(").concat(c," ").concat(d).concat(p," Aggr(").concat(c," RangeMax( 0, ").concat(e,"), ").concat(f,"))"):"".concat(e,"/ Sum(").concat(c," ").concat(d).concat(p," Aggr(").concat(c," ").concat(e,", ").concat(f,"))")}(c,d,r.field,r.value,p,l,r.primaryDimension,r.ignoreNegative)},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]:{};return{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}}},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ue};var de="library id deleted",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId",ge="qDef.qLabel",be="qDef.qLabelExpression",ve="qDef.base.qLabel",ye="qDef.base.qLabelExpression",xe="qDef.qAggrFunc",Se="qDef.base.qAggrFunc",we="qDef.base";const Ce={getExpression:function(e){var t=s(e,fe);return void 0!==t?t:s(e,pe)},getExpressionRef:function(e){return void 0!==s(e,fe)?fe:pe},getLibraryIdRef:function(e){return s(e,me)?me:he},getLibraryId:function(e){return s(e,me)||s(e,he)},getLabelRef:function(e){return s(e,we)?ve:ge},getLabelExpressionRef:function(e){return s(e,we)?ye:be}};var Ee={initBase:function(e,t){(t||Ee.isValid(e))&&(a(e,fe,s(e,pe)),a(e,me,s(e,he)),a(e,ve,s(e,ge)),a(e,ye,s(e,be)))},restoreBase:function(e){Ee.isValid(e)&&(a(e,pe,s(e,fe)),a(e,he,s(e,me)),a(e,ge,s(e,ve)),a(e,be,s(e,ye)),s(e,xe)&&s(e,Se)&&a(e,xe,s(e,Se)),delete e.qDef.base)},isValid:function(e){var t=s(e,fe),r=s(e,me);return void 0!==t||void 0!==r}};const Re=Ee;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 Ae={accumulation:F,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:X};const Ie={modifiers:Ae,apply:ke,applyModifiers:De,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:Le,initBase:Re.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ae[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Ae[e]&&Ae[e].isApplicable({properties:r,layout:n})}))},measureBase:Ce,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Be({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ke({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:qe};var Me={};function ke(){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,a=e.masterItem,l=!1;Me[t.id]=Me[t.id]||{isFirstTime:!0};var u=Me[t.id].isFirstTime;if(Me[t.id].isFirstTime=!1,r&&"object"===Pe(r))return De({model:t,properties:r});var c=t?t.layout:void 0,d=s(c,"qSelectionInfo.qInSelections");if(o||d)return Promise.resolve(l);var p=s(c,"qHyperCube.qMeasureInfo"),f=Me[t.id].lastReloadTime;if(Me[t.id].lastReloadTime=s(t,"app.layout.qLastReloadTime"),Oe({measures:p,layout:c})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return s(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: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 Be({modifiers:je(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:a,isFirstTime:u})?t.getEffectiveProperties().then((function(e){var r=i()(!0,{},e);ze(r);var n=Xe(r);return Ve({model:t}).then((function(o){return Ue({libraryIds:n,model:t}).then((function(n){return h&&function(e){var t=e.properties;Ne(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(Ae[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=Ae[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&He(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:r}),De({model:t,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:a,libraryItemsProps:n,dimensionAndFieldList:o})}))})).catch((function(){return Promise.resolve(l)}))})):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Pe(e.base)}))}(p)?t.getEffectiveProperties().then((function(e){return function(e){var t=e.model,r=e.properties,n=Xe(r);return Je({model:t,libraryIds:n}).then((function(){var e=i()(!0,{},r);return Ne(r).forEach((function(e){return Te(e)})),Ye({oldProperties:e,newProperties:r,model:t})}))}({model:t,properties:e})})):Promise.resolve(l)}function De(e){var t=e.model,r=e.oldProperties,n=e.properties,o=e.measures,a=e.runUpdateIfChange,l=void 0!==a&&a,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=l?i()(!0,{},n):n),ze(n);var p=Xe(n);return Je({model:t,libraryIds:p,masterItem:u}).then((function(){return function(e){var t=e.measures,r=e.properties,n=e.model,o=e.libraryItemsProps,a=e.dimensionAndFieldList;if(t||(t=Ne(r)),!t.length)return Promise.resolve();if(!o&&!Oe({measures:t,properties:r}))return t.forEach((function(e){return Te(e)})),Promise.resolve();var l=o?void 0:Xe(r);return Ve({model:n,dimensionAndFieldList:a}).then((function(e){return Ue({libraryIds:l,model:n,libraryItemsProps:o}).then((function(n){t.forEach((function(t){var o=t.qDef.modifiers;n&&Be({modifiers:o,properties:r})?(function(e){var t=e.measure,r=e.properties,n=e.libraryItemsProps,o=e.dimensionAndFieldList,a=0;Re.isValid(t)||Re.initBase(t,!0);var l=t.qDef,u=l.modifiers,c=l.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Pe(e)&&!e.disabled){if(a++,"object"!==Pe(Ae[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(a>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ae[e.type].initModifier(e,t);var l=t.qLibraryId||c&&c.qLibraryId;l?function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:Ae[r.type].generateExpression({expression:s,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=l,t.qDef.qDef=r.outputExpression,(t.qDef.qLabel||a.qMeasure.qLabel)&&(t.qDef.qLabel=t.qDef.base.qLabel||a.qMeasure.qLabel),(t.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(t.qDef.qLabelExpression=a.qMeasure.qLabelExpression),t.qDef.quarantine&&t.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(t.qDef.qNumFormat=t.qDef.base.qNumFormat||a.qMeasure.qNumFormat,t.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete t.qLibraryId,t.qDef.coloring=a.qMeasure.coloring,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,libraryId:l,properties:r,libraryItemsProps:n,dimensionAndFieldList:o}):function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList;"function"==typeof Ae[r.type].updateModifier&&Ae[r.type].updateModifier(r,n.qHyperCubeDef);var a=Ce.getExpression(t),s=""===a?a:Ae[r.type].generateExpression({expression:a,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||a,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:r,dimensionAndFieldList:o}),function(e){var t=s(e,"qDef.qAggrFunc");"Expr"!==t||qe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&qe(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}),Fe(t)):Te(t)}))}))}))}({measures:o,properties:n,model:t,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return l?Ye({oldProperties:r,newProperties:n,model:t}):Promise.resolve(!1)}))})).catch((function(){return Promise.resolve(!1)}))}function Te(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Pe(e)&&!e.disabled&&!Ae[e.type]}))}(e)?Re.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Fe(e)}function Oe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Be({modifiers:je(e),properties:r,layout:n})}))}function Le(e){var t=je(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Ae[n.type]&&!n.disabled)return n}}function qe(e){var t=Le(e);return!t||Ae[t.type].enableTotalsFunction(e)}function Ne(e){return s(e,"qHyperCubeDef.qMeasures",[]).concat(s(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function _e(e){return s(e,"outputExpression.qValueExpression.qExpr")||s(e,"outputExpression")}function ze(e){Ne(e).forEach((function(e){return function(e){var t=Le(e);t&&(void 0!==t.outputExpression&&_e(t)!==e.qDef.qDef?delete e.qDef.base:!Re.isValid(e)&&t.base&&(e.qDef.base=i()(!0,{},t.base)))}(e)}))}function Fe(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Pe(t)&&(t.disabled||!Ae[t.type]&&_e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function He(e){return e.base||e.qDef&&e.qDef.base}function $e(e){var t=He(e);return e.qLibraryId||t&&t.qLibraryId}function We(e){var t=e.measure,r=e.properties,n=e.layout;return!$e(t)&&Be({modifiers:je(t),properties:r,layout:n})}function Be(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||!Ae[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ae[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ve(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 Ue(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 Ge(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Ye(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(s(t,"qHyperCubeDef.qMeasures"),Ge)!==JSON.stringify(s(r,"qHyperCubeDef.qMeasures"),Ge)||JSON.stringify(s(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ge)!==JSON.stringify(s(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Ge);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&s(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):function(e,t,r){if(!e)return Promise.resolve();var n=q.generate(t,r);return i()(!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()}(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ke(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&&Ae[e.type]&&Ae[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Xe(e){var t=Ne(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=je(t);if(Be({modifiers:n,properties:e})){var i=$e(t);i&&r.push(i),o=o||Ke({modifiers:n,properties:e})}})),s(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function Je(e){var t=e.model,r=e.libraryIds,n=e.masterItem;return!n&&n!==de&&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={},i={},a={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=s(e,"qInfo.qType");return r&&a[r]&&a[r].forEach((function(r){t[r]=s(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(){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(de),delete n[e],void c();var e})),enabled:!1,properties:l(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 ke({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Me[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}for(var Ze in iP.default=n.default,n)-1===["default"].indexOf(Ze)&&(iP[Ze]=n[Ze]);Object.defineProperty(iP,"__esModule",{value:!0})})();var sP=Vt(aP);const lP={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},uP={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}},cP=e=>({type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!sP.hasActiveModifiers({measures:[e],properties:t.properties})||sP.ifEnableTotalsFunction(e)?[{value:""===e.qDef.qAggrFunc?"":"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:e.anything.sense?.isUnsupportedFeature?.("totals")?"None":"Expr"}}}},show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),dP={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:oE.Auto,translation:"Common.Auto"},{value:oE.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:oE.Pixels,translation:"Object.Table.Column.Pixels"},{value:oE.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:oE.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expressionType:"ValueExpression",expression:"optional",defaultValue:"200",show:e=>e.qDef.columnWidth?.type===oE.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:"20",show:e=>e.qDef.columnWidth?.type===oE.Percentage}},pP=()=>({...lP,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}]},...uP,...dP}),fP={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"}},hP=e=>{const t=e.anything.sense?.isUnsupportedFeature?.("modifiers");return{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>t?!!e.qLibraryId:!(!e.qLibraryId&&!e.qDef.base?.qLibraryId)},inlineMeasure:{component:"inline-measure",show:e=>t?!e.qLibraryId:!(e.qLibraryId||e.qDef.base?.qLibraryId)},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:cP(e)}},mP=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:fP},presentation:{type:"items",translation:"properties.presentation",items:{...pP(),...nP(e)}}}}}),gP=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:hP(e)},presentation:{type:"items",translation:"properties.presentation",items:{...pP(),...oP(e,{[ZR.Image]:!0,[ZR.Indicator]:!0,[ZR.MiniChart]:!0})}}}}}),bP=e=>({...mP(e),...gP(e)}),vP=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...bP(e)},highlightSelected:!0},filters:{type:"items",component:"filters-assets-panel",ref:"filters",tabName:"SimpleProperties.Filters.Filters",items:{filter:{type:"object",component:"filter-item-react",ref:"filter"}},highlightSelected:!0}}}),yP={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}},xP=({flags:e})=>{const t={ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1};return e.isEnabled("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")?{type:"items",items:[{component:"text",translation:"properties.accessibilityOptions"},t,{ref:"accessibleHeader",translation:"properties.increaseAccessibility",type:"boolean",component:"checkbox",undefinedValue:!0,defaultValue:!1}]}:t},SP=e=>({type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals?.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!e.anything.sense?.isUnsupportedFeature?.("totals")}),wP=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:n??!1,defaultValue(e,t,o){const i=n?.(e,t,o)??!1,a=o.theme.current(),s=r(a,i);return{color:"transparent"===s?"none":s}}}),CP=(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},EP=({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)=>{const o=t.fontFamily??"Source Sans Pro, sans-serif",i=t.fontFamilies??[],a=Array.from(new Set([e,o,...i])),s=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort().map((e=>CP(e,!0)))],l=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...ye(n).filter((e=>!a.includes(e))).map((e=>CP(e,!0)))];return[...s,...l.length>1?l:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),RP=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],PP=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{const n=t.fontSize,o=t.fontSizes??[],i=Array.from(new Set([e,n,...o])),a=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...i.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>CP(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...RP.filter((e=>!i.includes(e))).map((e=>CP(e,!1)))];return[...a,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),AP=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:i??`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:EP({ref:`${e}.fontFamily`,themeAccessor:t=>o(t,e,"fontFamily")??t.fontFamily,translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:t??[]},fontSize:PP({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:r}),fontColor:wP(`${e}.fontColor`,void 0,(t=>o(t,e,"color")??t.color))}},background:wP(`${e}.background`,"properties.background",((t,r)=>{const n=r?RC.WHITE:RC.TRANSPARENT;return o(t,e,"backgroundColor")??n}),a)}}}}),IP=({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:t??[]},fontColor:wP(`${e}.fontColor`,void 0,(t=>n(t,e,"color")??t.color))}},background:wP(`${e}.background`,"properties.background",(t=>n(t,e,"backgroundColor")??r??"transparent"))}}}}),MP=(e,t,r)=>{switch(t){case"header":return e.object?.straightTableV2?.dimension?.label?.name?.[r];case"dimensionValues":return e.object?.straightTableV2?.dimension?.label?.value?.[r];case"measureValues":return e.object?.straightTableV2?.measure?.label?.value?.[r];case"totalValues":return e.object?.straightTableV2?.total?.label?.value?.[r];case"nullValues":return e.object?.straightTableV2?.null?.label?.value?.[r];default:return}},kP=e=>e.grid?.zebraStripes?.show,DP={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,translation:"ThemeStyleEditor.style.rowHeight",change(e){null!=e?.content?.rowHeight&&""!==e.content.rowHeight?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):void 0!==e?.content&&(e.content.rowHeight=void 0)}},TP=e=>e?.content?.hoverEffect,OP={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:TP,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:TP,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},LP=(e,t,{properties:r})=>"sn-table"===r.visualization&&!0===r.usePagination,qP=({flags:e,translator:t})=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:!0,items:{headerSection:AP({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:MP,disableNoneCallback:LP}),dimensionValueSection:AP({section:"dimensionValues",translator:t,flags:e,getThemeValue:MP}),measureValueSection:AP({section:"measureValues",translator:t,flags:e,getThemeValue:MP}),totalRowSection:AP({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:MP,disableNoneCallback:LP}),nullValues:IP({section:"nullValues",fallbackBackground:RC.NULL_VALUE_BACKGROUND,getThemeValue:MP}),grid:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>!0,...DP},border:wP("grid.border","properties.border",(e=>e.object?.straightTableV2?.grid?.borderColor??RC.BORDER_MEDIUM)),divider:wP("grid.divider","properties.pivot.divider",(e=>e.object?.straightTableV2?.grid?.divider?.borderColor??RC.BORDER_HEAVY))}}}},hoverEffectSection:OP,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:kP,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:kP,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:kP,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:kP,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),NP=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[qP(e),SP(e),xP(e),{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:"-"}]},...yP}}),jP={uses:"sorting"},_P={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},zP=e=>({type:"items",component:"accordion",items:{data:vP(e),sorting:jP,addOns:_P,settings:NP(e)}});function FP(e){return{definition:zP(e),exploration:UR,data:JR(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:e.anything.sense?.isUnsupportedFeature?.("modifiers")?void 0:["accumulation","movingAverage","difference","normalization"]},importProperties(e,t,r,n,o){const i={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()};return VR({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:i,viewDataMode:o})},exportProperties:(e,t)=>zR({propertyTree:e,hyperCubePath:t})}}const HP=(t,r)=>e((()=>((e,t)=>(r,{isDim:n,colIdx:o})=>{const i=n?o:o-e.qDimensionInfo.length,a=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,s=e[n?"qDimensionInfo":"qMeasureInfo"].at(i)?.columnWidth,l=s?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...s,...r})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(r)};t?.applyPatches([l],!0)})(t,r)),[t,r]),$P=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),WP=[];for(let e=0;e<256;++e)WP.push((e+256).toString(16).slice(1));let BP;const VP=new Uint8Array(16);var UP={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function GP(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!BP){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");BP=crypto.getRandomValues.bind(crypto)}return BP(VP)}();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=15&n[6]|64,n[8]=63&n[8]|128,function(e,t=0){return(WP[e[t+0]]+WP[e[t+1]]+WP[e[t+2]]+WP[e[t+3]]+"-"+WP[e[t+4]]+WP[e[t+5]]+"-"+WP[e[t+6]]+WP[e[t+7]]+"-"+WP[e[t+8]]+WP[e[t+9]]+"-"+WP[e[t+10]]+WP[e[t+11]]+WP[e[t+12]]+WP[e[t+13]]+WP[e[t+14]]+WP[e[t+15]]).toLowerCase()}(n)}const YP=()=>crypto?.randomUUID?.()??function(e){return UP.randomUUID&&!e?UP.randomUUID():GP(e)}(),KP=({cId:e})=>e??YP(),XP=e=>"number"==typeof e&&!Number.isNaN(+e),JP=e=>XP(e.qNum),ZP=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e);var QP={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach((e=>{if(!e)return;const r=e.indexOf("=");let n,o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,r){return{key:tA(e),value:tA(t),useEqualSign:r}}(n,o,i))})),t}},eA=QP;function tA(e){try{return decodeURIComponent(e)}catch{return e}}function rA(e){if(!(this instanceof rA))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");const t=function(e){const t={authorityAndPath:"",search:"",hash:""};let 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:()=>eA.fromSearchString(t.search)}})}function nA(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}rA.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},rA.encodeSearchParams=function(e){let t,r="";for(let n=0;n<e.length;n++)t=e[n],r+=0===n?"?":"&",r+=nA(t.key),t.value?r+=`=${nA(t.value)}`:r+=t.useEqualSign?"=":"";return r};var oA=rA;var iA,aA=class{_hasNext(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}constructor(e){this._input=e,this._pushback=null,this._temp=null,this._index=0,this._mark=0}pushback(e){this._pushback=e}index(){return this._index}hasNext(){return null!=this._pushback||this._hasNext()}next(){if(null!=this._pushback){const e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}nextHex(){const e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}peek(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}mark(){this._temp=this._pushback,this._mark=this._index}reset(){this._pushback=this._temp,this._index=this._mark}remainder(){let e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}},sA=class{decode(e){let t="";const r=new aA(e);let n;for(;r.hasNext();)n=this.decodeCharacter(r),t+=null!=n?n:r.next();return t}decodeCharacter(e){return e.next()}},lA=e=>e>=0&&e<=1114111,uA=e=>e.match(/[\s]/),cA=class extends sA{decodeCharacter(e){e.mark();const t=e.next();let r,n,o;if(null==t||"\\"!==t)return e.reset(),null;const i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(r=i,n=0;n<5&&(o=e.next(),null!=o&&!uA(o));n++){if("NaN"===parseInt(o,16)){e.pushback(o);break}r+=o}const a=parseInt(r,16);return lA(a)?String.fromCharCode(a):"�"}},dA=class e{constructor(e,t){this._key=e,this._value=t}getKey(){return this._key}getValue(){return this._value}equals(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}static newInstanceIfNeeded(){let t,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}},pA=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,r,n){let o,i;if(t.length===r)return i=this._value,this.setValue(n),i;const a=t.charAt(r);return this._nextMap?(o=this._nextMap[a],o||(o=new e,this._nextMap[a]=o)):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}get(e,t){if(e.length<=t)return this._value;const r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return dA.newInstanceIfNeeded(e,this._value);const r=this.getNextNode(e.charAt(t));if(!r)return dA.newInstanceIfNeeded(e,t,this._value);const n=r.getLongestMatch(e,t+1);return n||dA.newInstanceIfNeeded(e,t,this._value)}},fA=class{constructor(){this.clear()}getLongestMatch(e){return this.root&&e?this.root.getLongestMatch(e,0):null}getMaxKeyLength(){return this.maxKeyLen}clear(){this.root=null,this.maxKeyLen=0,this.size=0}put(e,t){this.root||(this.root=new pA);const r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}},hA=(()=>{const e=[],t=[],r=new fA;let n,o,i;for(n in e["""]="34",e["&"]="38",e["<"]="60",e[">"]="62",e[" "]="160",e["¡"]="161",e["¢"]="162",e["£"]="163",e["¤"]="164",e["¥"]="165",e["¦"]="166",e["§"]="167",e["¨"]="168",e["©"]="169",e["ª"]="170",e["«"]="171",e["¬"]="172",e["­"]="173",e["®"]="174",e["¯"]="175",e["°"]="176",e["±"]="177",e["²"]="178",e["³"]="179",e["´"]="180",e["µ"]="181",e["¶"]="182",e["·"]="183",e["¸"]="184",e["¹"]="185",e["º"]="186",e["»"]="187",e["¼"]="188",e["½"]="189",e["¾"]="190",e["¿"]="191",e["À"]="192",e["Á"]="193",e["Â"]="194",e["Ã"]="195",e["Ä"]="196",e["Å"]="197",e["Æ"]="198",e["Ç"]="199",e["È"]="200",e["É"]="201",e["Ê"]="202",e["Ë"]="203",e["Ì"]="204",e["Í"]="205",e["Î"]="206",e["Ï"]="207",e["Ð"]="208",e["Ñ"]="209",e["Ò"]="210",e["Ó"]="211",e["Ô"]="212",e["Õ"]="213",e["Ö"]="214",e["×"]="215",e["Ø"]="216",e["Ù"]="217",e["Ú"]="218",e["Û"]="219",e["Ü"]="220",e["Ý"]="221",e["Þ"]="222",e["ß"]="223",e["à"]="224",e["á"]="225",e["â"]="226",e["ã"]="227",e["ä"]="228",e["å"]="229",e["æ"]="230",e["ç"]="231",e["è"]="232",e["é"]="233",e["ê"]="234",e["ë"]="235",e["ì"]="236",e["í"]="237",e["î"]="238",e["ï"]="239",e["ð"]="240",e["ñ"]="241",e["ò"]="242",e["ó"]="243",e["ô"]="244",e["õ"]="245",e["ö"]="246",e["÷"]="247",e["ø"]="248",e["ù"]="249",e["ú"]="250",e["û"]="251",e["ü"]="252",e["ý"]="253",e["þ"]="254",e["ÿ"]="255",e["&OElig"]="338",e["&oelig"]="339",e["&Scaron"]="352",e["&scaron"]="353",e["&Yuml"]="376",e["&fnof"]="402",e["&circ"]="710",e["&tilde"]="732",e["&Alpha"]="913",e["&Beta"]="914",e["&Gamma"]="915",e["&Delta"]="916",e["&Epsilon"]="917",e["&Zeta"]="918",e["&Eta"]="919",e["&Theta"]="920",e["&Iota"]="921",e["&Kappa"]="922",e["&Lambda"]="923",e["&Mu"]="924",e["&Nu"]="925",e["&Xi"]="926",e["&Omicron"]="927",e["&Pi"]="928",e["&Rho"]="929",e["&Sigma"]="931",e["&Tau"]="932",e["&Upsilon"]="933",e["&Phi"]="934",e["&Chi"]="935",e["&Psi"]="936",e["&Omega"]="937",e["&alpha"]="945",e["&beta"]="946",e["&gamma"]="947",e["&delta"]="948",e["&epsilon"]="949",e["&zeta"]="950",e["&eta"]="951",e["&theta"]="952",e["&iota"]="953",e["&kappa"]="954",e["&lambda"]="955",e["&mu"]="956",e["&nu"]="957",e["&xi"]="958",e["&omicron"]="959",e["&pi"]="960",e["&rho"]="961",e["&sigmaf"]="962",e["&sigma"]="963",e["&tau"]="964",e["&upsilon"]="965",e["&phi"]="966",e["&chi"]="967",e["&psi"]="968",e["&omega"]="969",e["&thetasym"]="977",e["&upsih"]="978",e["&piv"]="982",e["&ensp"]="8194",e["&emsp"]="8195",e["&thinsp"]="8201",e["&zwnj"]="8204",e["&zwj"]="8205",e["&lrm"]="8206",e["&rlm"]="8207",e["&ndash"]="8211",e["&mdash"]="8212",e["&lsquo"]="8216",e["&rsquo"]="8217",e["&sbquo"]="8218",e["&ldquo"]="8220",e["&rdquo"]="8221",e["&bdquo"]="8222",e["&dagger"]="8224",e["&Dagger"]="8225",e["&bull"]="8226",e["&hellip"]="8230",e["&permil"]="8240",e["&prime"]="8242",e["&Prime"]="8243",e["&lsaquo"]="8249",e["&rsaquo"]="8250",e["&oline"]="8254",e["&frasl"]="8260",e["&euro"]="8364",e["&image"]="8365",e["&weierp"]="8472",e["&real"]="8476",e["&trade"]="8482",e["&alefsym"]="8501",e["&larr"]="8592",e["&uarr"]="8593",e["&rarr"]="8594",e["&darr"]="8595",e["&harr"]="8596",e["&crarr"]="8629",e["&lArr"]="8656",e["&uArr"]="8657",e["&rArr"]="8658",e["&dArr"]="8659",e["&hArr"]="8660",e["&forall"]="8704",e["&part"]="8706",e["&exist"]="8707",e["&empty"]="8709",e["&nabla"]="8711",e["&isin"]="8712",e["¬in"]="8713",e["&ni"]="8715",e["&prod"]="8719",e["&sum"]="8721",e["&minus"]="8722",e["&lowast"]="8727",e["&radic"]="8730",e["&prop"]="8733",e["&infin"]="8734",e["&ang"]="8736",e["&and"]="8743",e["&or"]="8744",e["&cap"]="8745",e["&cup"]="8746",e["&int"]="8747",e["&there4"]="8756",e["&sim"]="8764",e["&cong"]="8773",e["&asymp"]="8776",e["&ne"]="8800",e["&equiv"]="8801",e["&le"]="8804",e["&ge"]="8805",e["&sub"]="8834",e["&sup"]="8835",e["&nsub"]="8836",e["&sube"]="8838",e["&supe"]="8839",e["&oplus"]="8853",e["&otimes"]="8855",e["&perp"]="8869",e["&sdot"]="8901",e["&lceil"]="8968",e["&rceil"]="8969",e["&lfloor"]="8970",e["&rfloor"]="8971",e["&lang"]="9001",e["&rang"]="9002",e["&loz"]="9674",e["&spades"]="9824",e["&clubs"]="9827",e["&hearts"]="9829",e["&diams"]="9830",e)"function"!=typeof e[n]&&e.hasOwnProperty(n)&&(t[e[n]]=n);for(o in t)"function"!=typeof t[o]&&t.hasOwnProperty(o)&&(i=t[o].toLowerCase().substr(1),r.put(i,String.fromCharCode(o)));return r})(),mA=class extends sA{decodeCharacter(e){let t;e.mark();const r=e.next();if(null==r||"&"!==r)return e.reset(),null;const n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(t=this._getNumericEntity(e),null!=t)return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,r,n,o="";for(t=Math.min(e.remainder().length,hA.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();const i=hA.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()}_getNumericEntity(e){const t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}_parseHex(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,16);return!Number.isNaN(+n)&&lA(n)?String.fromCharCode(n):null}_parseNumber(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,10);return!Number.isNaN(+n)&&lA(n)?String.fromCharCode(n):null}},gA=class extends sA{decodeCharacter(e){e.mark();const t=e.next();let r,n,o,i;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(r="",n=0;n<2;n++)o=e.nextHex(),null!=o&&(r+=o);return 2===r.length&&(i=parseInt(r,16),lA(i))?String.fromCharCode(i):(e.reset(),null)}},bA=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,vA=5e6,yA=5e5,xA=(e,t)=>{const{maxByteSizeSvg:r=yA,maxByteSizeImage:n=vA}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,r,n]=bA.exec(e.trim())??[];return{encoding:r,data:n,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,r)=>{const n={type:e};if(t?.includes(";base64"))try{return new Blob([atob(r)],n).size}catch{return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0})(o,i,a);return"image/svg+xml"===o?s<=r:s<=n};"undefined"!=typeof document&&(iA=document.createElement("div"));var SA=Array.prototype.indexOf,wA=[",",".","_"," "],CA=[",",".","-","_"," "],EA={width:["%"],height:["%"]},RA={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},PA={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":RA.image,"background-color":RA.color,"border-color":RA.color,"border-image":RA.image,color:RA.color,icon:RA.image,"list-style-image":RA.image,"outline-color":RA.color},AA={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function IA(e,t,r){let n;if(t){if(SA)return SA.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 MA(e){if(null==e)return"";let t="";const r=document.createTextNode(e);return iA.appendChild(r),t=iA.innerHTML,iA.removeChild(r),t}function kA(e,t,r){let n,o,i,a,s,l,u,c,d;for(e=TA(e).toLowerCase(),t=TA(t),i=0;i<AA.attr_name.length;i++)if(e.match(AA.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<AA.attr_val.length;i++)if(t.toLowerCase().match(AA.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(n=EA[e],n||(n=CA),o="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&IA(u,n)<0?(d=c.toString(16),o+=`&#x${d};`):o+=u;return r||(o+='"'),o}function DA(e,t,r){let n,o,i,a,s,l,u,c,d,p;if(e=TA(e).toLowerCase(),t=TA(t),IA(e,AA.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(n=0;n<AA.css_val.length;n++)if(t.toLowerCase().indexOf(AA.css_val[n])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=PA[e],o||(o=RA.default),i="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)u=t.charAt(l),c=t.charCodeAt(l),!u.match(/[a-zA-Z0-9]/)&&IA(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=u;return i}function TA(e,t){let r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;const s=[new mA,new gA,new cA];for(;!a;){n=r;for(let e=0;e<s.length;e++)i=s[e].decode(r),i!==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}var OA=[];for(let e=0;e<255;e++)OA[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);var LA={html:e=>MA(e.unsafe),css(e){let t,r=[];const n=[],o={};let i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=DA(t,r[t],!0),i+=DA(t,r[t],!0),o[t]=n[t]);return e.map?o:i},attr(e){let t=[];const r=[],n={};let o="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(r[e]=kA(e,t[e],!0),o+=kA(e,t[e],!0),n[e]=r[e]);return e.map?n:o}};function qA(e,t){throw new Error(t)}var NA={canonicalize:TA,encode:function(){const e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"==typeof arguments[0]?function(){let e,t,r;const n=arguments[0]||{};let o=1;const i=arguments.length;for(;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r=e[t],n===r)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?LA.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&qA(this,"Invalid parameter type"),LA.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&qA(this,"Invalid parameter type"),LA.attr(e)):void qA(this,"Invalid parameter type")},encodeForAttr:kA,encodeForAttr2:function(e){return kA("nonsens",e,!0)},encodeForCSS:DA,encodeForHref:function(e){TA(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new oA(e),r=oA.encodeAuthorityAndPath(t.authorityAndPath),n=t.searchParams;e=r+oA.encodeSearchParams(n)+t.hash;const o=decodeURI(e).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){let r,n,o,i,a,s;for(t||(t=wA),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),IA(o,t)>=0||null==OA[i]?s+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),s+=`\\x${a}${n.toUpperCase()}`):(a="0000".substr(n.length),s+=`\\u${a}${n.toUpperCase()}`));return s},encodeForHTML:MA,encodeForURL:function(e,t){let r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=TA(t).toLowerCase():qA(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?'"':"",r},isSafeDataURL:xA,validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}}(e))return!1;const t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;const r=function(e){let t=e,r="";for(;t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("/.."===t){t="/";const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),n=e?e[0]:"";t=t.slice(n.length),r+=n}return r}(t);return""!==r&&"/"!==r&&r}};const jA=(e,t)=>t.qAttrExps?.qValues?.[e],_A=(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"}}},zA=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>n&&t&&!t.toLowerCase().includes("javascript:")&&NA.isSafeDataURL(t)?{type:ZR.Image,url:t,text:e,imageSize:r,resolvedImagePosition:_A(n,a),labelStructure:o,imageBox:i}:{type:ZR.Text,url:void 0,text:e,labelStructure:o},FA=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:ZR.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{const n="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=n?r.qYMin:e.qMiniChart.qMin,a=n?r.qYMax:e.qMiniChart.qMax;if(o){const e=Math.max(Math.abs(i),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,i),maxY:Math.max(0,a)}:{minY:i,maxY:a}})(e,t.miniChart,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:ZR.MiniChart,text:n,miniChart:a}},HA=(e,t,r)=>{const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=n?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return r?.urlPosition===QR.Attribute?void 0:r?.urlLabel},$A=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:ZR.Link,url:NA.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:ZR.Text,url:void 0,text:t,labelStructure:e}}},WA=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:u})=>{const c=eP(t),d=s(e);return c===ZR.Image&&u[ZR.Image]&&!n.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:u,imageBox:c}=t??{};if("url"===l){const t=jA(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),zA({text:n,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}if("label"===l){const t=i?i.originalValue:n;if(-1===r.imageLabel)return zA({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=jA(r.imageLabel??-1,e)?.qText??n;return zA({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:ZR.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):c===ZR.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===QR.Attribute){const i=HA(r.url??-1,e,t);return $A({labelStructure:n,text:o||i||"",url:i})}if(i===QR.Dimension){const i=HA(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),$A({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:ZR.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):c===ZR.Indicator&&u[ZR.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:ZR.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):c===ZR.MiniChart&&u[ZR.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?FA(e,t,i,d):{type:ZR.Text,url:void 0,text:d,labelStructure:a}},BA=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,VA=(e,t,r)=>(e?void 0:r.nullValueRepresentation?.text)??t.qText??"-",UA=1e4;function GA(e,t){return[...t].reverse().find((t=>t*e<=UA))||Math.floor(UA/e)}function YA(e,t){if(t?.skipTotals)return{atTop:!1,atBottom:!1};const[r,n,o,i,a]=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,e.totals.show,e.totals.position];if(o&&(r&&n||!i&&!r)){if(i||"top"===a)return{atTop:!0,atBottom:!1};if("bottom"===a)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function KA(e,t,r,n){return t?0===r?e.totals.label??"":"":e.qHyperCube.qGrandTotalRow.at(n)?.qText??""}function XA(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return XP(r?.qNum)}function JA(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 ZA=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right";const QA=(e,t,r)=>{const{qHyperCube:{qColumnOrder:n,qDimensionInfo:o,qMeasureInfo:i}}=e,a=o.length+i.length,s=((e,t,r)=>{const n=t.length,{visible:o,hiddenDim:i,hiddenMea:a}=e.reduce(((e,o)=>{const i=o<n,{qError:a}=i?t[o]:r[o-n];return 7005===a?.qErrorCode?i?e.hiddenDim.push(o):e.hiddenMea.push(o):e.visible.push(o),e}),{visible:[],hiddenDim:[],hiddenMea:[]});return o.map(((e,t)=>{const r=e<n,o=(r?i:a).filter((t=>t<e)).length,s=e-o;return{colIdx:e,pageColIdx:t,visibleDimInfoIdx:r?s:void 0,visibleMeasureInfoIdx:r?void 0:s-n}}))})(n.length===a?n:Array.from(Array(a).keys()),o,i);return s.map((n=>function(e,t,r,n){const{qDimensionInfo:o,qMeasureInfo:i,qEffectiveInterColumnSortOrder:a}=e.qHyperCube,{colIdx:s,pageColIdx:l,visibleDimInfoIdx:u,visibleMeasureInfoIdx:c}=t,d=o.length,p=s<d,f=p?o[s]:i[s-d],h=p&&o[s].qGrouping===sE.Cyclic,m=s===a[0];let g,b,v="",y=!1,x=-1,S=0,w=[];const{representation:C,conditionalColoring:E}=f;if(p&&void 0!==u){const e=f;v=e.qGroupFieldDefs[e.qGroupPos],S=e.qGroupPos,w=e.qGroupFallbackTitles,y=e.qLocked??!1,x=u,({qDimensionType:g}=e)}else({qMiniChart:b}=f);const{qFallbackTitle:R,textAlign:P,qAttrExprInfo:A,qSortIndicator:I,qReverseSort:M,qApprMaxGlyphCount:k,columnWidth:D,qLibraryId:T}=f;return{isDim:p,isCyclic:h,isLocked:y,fieldId:v,colIdx:s,qLibraryId:T,pageColIdx:l,qApprMaxGlyphCount:k,qReverseSort:M,columnWidth:D??{type:oE.Auto},selectionColIdx:x,isActivelySorted:m,id:KP(f),label:R,groupDimensionPos:S,groupDimensionLabels:w,qAttrExprInfoIDs:A.map((e=>e.id)),qAttrExprInfoIndex:$P(f),sortDirection:I&&"N"!==I?I:"A",totalInfo:KA(e,p,l,c??-1),...!p&&{isTotalNumeric:XA(e,c??-1)},...JA(P,g,p,r,n),representation:C,conditionalColoring:p?void 0:E,qMiniChart:b}}(e,n,t,r)))};var eI={exports:{}};
|
|
103
103
|
/*!
|
|
104
104
|
* CSSJanus. https://github.com/cssjanus/cssjanus
|
|
105
105
|
*
|
|
@@ -118,4 +118,4 @@ function Wi(e,t){let r;return r=t?Li(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.,%-]+\\))",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"),w=new RegExp("("+l+g+"[^;}]+;?)","gi"),C=new RegExp("("+l+"[^\\}]*?})","gi"),E=new RegExp("("+i+")ltr","gi"),R=new RegExp("("+i+")rtl","gi"),P=new RegExp(s+"(left)"+m+b+g,"gi"),A=new RegExp(s+"(right)"+m+b+g,"gi"),I=new RegExp(s+"(left)"+v,"gi"),M=new RegExp(s+"(right)"+v,"gi"),k=new RegExp(s+"(ltr)"+v,"gi"),D=new RegExp(s+"(rtl)"+v,"gi"),T=new RegExp(s+"([ns]?)e-resize","gi"),O=new RegExp(s+"([ns]?)w-resize","gi"),L=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"),N=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+d+")","gi"),j=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),_=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"),H=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+p,"gi"),$=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),W=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),B=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 U(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 G(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?U(n)+" / "+U(o):U(n))+i}function Y(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function K(e,t,r){return t+Y(r)}function X(e,t,r,n,o){return t+r+Y(n)+o}function J(e,t,r,n,o){return t+r+n+Y(o)}return{transform:function(r,o){var i=new n(w,"`NOFLIP_SINGLE`"),a=new n(C,"`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(D,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(r=r.replace(I,"$1"+e).replace(M,"$1left").replace(x,"right")),r=r.replace(E,"$1"+e).replace(R,"$1ltr").replace(x,"rtl").replace(P,"$1"+e).replace(A,"$1left").replace(x,"right").replace(T,"$1$2"+e).replace(O,"$1$2e-resize").replace(x,"w-resize").replace(_,G).replace(z,K).replace(F,J).replace(H,J).replace($,K).replace(W,X).replace(B,X).replace(L,"$1$2$3$8$5$6$7$4$9").replace(q,"$1$2$3$8$5$6$7$4$9").replace(N,V).replace(j,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)}(jA,jA.exports);var _A=Vt(jA.exports);function zA(e,t,r){switch(e.type){case Xr:case Kr:case Gr:return e.return=e.return||e.value;case Yr:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===Gr&&(e.children=e.value)}))}var n=zn(Array.prototype.concat(e.children),zA);return ln(n)?e.return=e.value+"{"+n+"}":""}function FA(e,t,r,n){if(e.type===Jr||"@supports"===e.type||e.type===Yr&&(!e.parent||"@media"===e.parent.type||e.parent.type===Yr)){var o=_A.transform(zA(e));e.children=o?On(o)[0].children:[],e.return=""}}Object.defineProperty(FA,"name",{value:"stylisRTLPlugin"});let HA=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),$A=function(e){return e.Select="Select",e.SelectMouseDown="SelectMouseDown",e.SelectMouseUp="SelectMouseUp",e.SelectMultiAdd="SelectMultiAdd",e.SelectMultiEnd="SelectMultiEnd",e.Reset="Reset",e.Clear="Clear",e.UpdatePageRows="UpdatePageRows",e}({}),WA=function(e){return e.A="ascending",e.D="descending",e}({}),BA=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const VA=[0,0],UA=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),GA=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},YA=(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&&ne(e.localPaletteColors[t].color).blend(ne(s.color),s.t)},KA=(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:UA(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:GA(n,t,r)})))),n},XA=(e,t,r,n)=>{const o=KA(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=YA(e,a,t);break}n=i}return r})(o,t);return a},JA=(e,t)=>{const r=(e=>e.map((e=>e.value??e)).sort(((e,t)=>e-t)))(e),n=r.some((e=>!DP(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||!DP(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)},ZA=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=JA(e,t),o=Math.abs(t);return{min:r??t-o,max:n??t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!DP(t))return 0;let a=r&&DP(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}},QA=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=ZA(o,t),a=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,r.limitPaletteColorIndex))return GA(o,r.limitPaletteColorIndex,n);const a=UA(r.limitRange,t);return XA(o,a,r.limitRange,n)})(o,t,i,n),s=o.segments.paletteColors[i?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let u=l?.position||"right";return"rtl"===r&&(u="right"===u?"left":"right"),{color:a,iconKey:s,position:u}},eI=(RC().palette.primary.light,"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"),tI=4/3,rI="12px",nI="600",oI="Source Sans Pro, sans-serif",iI={height:"auto",fontSize:rI,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"}},aI={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:nI},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},sI=(e,t)=>"rtl"===e&&"center"!==t.resolvedImagePosition?.horizontal?t.resolvedImagePosition?.horizontal&&(e=>"flex-start"===e?"flex-end":"flex-start")(t.resolvedImagePosition?.horizontal):t.resolvedImagePosition?.horizontal,lI=(e,t)=>e.representation.type===OR.Image&&"fitHeight"===e.representation.imageSize?sI(t,e.representation):e.align,uI=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",cI=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},dI=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,pI=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",fI=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",hI=24,mI=hc("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0}))),gI=hc(op,{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?uI(e,n):void 0}))),bI=hc(op,{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},[`& .${eE}`]:{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"},[`& .${eE}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),vI=hc(op,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"}))),yI=hc(op,{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"}))),xI=hc(hd,{shouldForwardProp:e=>"hoverBackground"!==e&&"activeBackground"!==e&&"isActive"!==e&&"order"!==e})((({hoverBackground:e,activeBackground:t,isActive:r,order:n})=>({padding:"4px !important",width:"fit-content",height:"auto",background:r?t:void 0,"&:hover":{background:e},color:"inherit",order:n}))),SI=25e4,wI=(e,t,r)=>{if(!e.length)return[];const n=[],o=[];let i=t;if(e.forEach(((e,a)=>{const{columnWidth:{type:s,pixels:l,percentage:u},label:c,qApprMaxGlyphCount:d,totalInfo:p}=e;let f=0;const h=()=>{n[a]=Math.min(aE.PixelsMax,Math.max(aE.PixelsMin,f)),i-=n[a]};switch(s){case sE.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?aE.PixelsDefault:+e)(l),h();break;case sE.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?aE.PercentageDefault:+e)(u)/100*t,h();break;case sE.FitToContent:e.representation?.type===OR.Image?o.push(a):(f=r(c,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case sE.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}})),o.length){const e=i/o.length;o.forEach((t=>{n[t]=Math.max(aE.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"]})},EI=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},RI=e=>e.ctrlKey||e.metaKey,PI=e=>e.shiftKey&&RI(e),AI=e=>[oE.Left,oE.Right,oE.Up,oE.Down].includes(e),II=e=>e.shiftKey&&AI(e.key),MI=e=>(e=>AI(e)||[oE.Home,oE.End,oE.PageUp,oE.PageDown].includes(e))(e.key)&&!PI(e),kI=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l=new Map;if(-1===o)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?(r?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(l.values()),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(r?.cancel(),{...e,rows:l,colIdx:-1})},DI=(e,t)=>{const{api:r,rows:n,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:u}=t;if(!(a||"key"in u&&II(u)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const c=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&II(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===oE.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})(i,n,s,u,a);return CI(l,n,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},TI=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&t?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(r.values()),[n]]}),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},OI=(e,t)=>{switch(t.type){case $A.Select:return kI(e,t.payload);case $A.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 $A.SelectMouseUp:return((e,t)=>TI(e.isSelectMultiValues||e.firstCell!==t.cell?e:kI(e,t)))(e,t.payload);case $A.SelectMultiAdd:return DI(e,t.payload);case $A.SelectMultiEnd:return TI(e);case $A.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case $A.Clear:return e.rows.size?{...e,rows:new Map}:e;case $A.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},LI=4/3,qI=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function NI(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const jI=(e,t)=>e?{borderBottomColor:AC.DARK_MODE_BORDER,borderRightColor:AC.DARK_MODE_BORDER,borderLeftColor:AC.DARK_MODE_BORDER,borderTopColor:AC.DARK_MODE_BORDER}:{borderLeftColor:AC.BORDER_MEDIUM,borderRightColor:AC.BORDER_MEDIUM,borderTopColor:AC.BORDER_HEAVY,borderBottomColor:t?AC.BORDER_HEAVY:AC.BORDER_LIGHT},_I=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*LI+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},zI=e=>e.components?.find((e=>"theme"===e.key)),FI=(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:qI(r?.fontColor)?NI(AC.TEXT,t,r?.fontColor):i||AC.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...jI(t.background.isDark,n)};return Object.keys(s).forEach((e=>{const t=e;null==s[t]&&delete s[t]})),s};function HI(e,t,r){const n=zI(e)?.header,o=FI("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=ne(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=kC(o.background??AC.WHITE,lE),o.activeBackground=kC(o.background??AC.WHITE,uE),o}const $I=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach((e=>(e=>e in aI)(e)&&Object.assign(t,aI[e]))),t};function WI(e,t,r){const n={};let o={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return t?.qValues?.forEach(((e,t)=>{const i=e.qText,a=i&&TC(i);a&&"none"!==a&&(n[r[t]]=a),o=i?$I(i,o):o})),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=IC(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const BI=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},VI=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=BI(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},UI=(e,t,r,n=AC.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=VI(e,t,r);return jC(i,o,a,n)??n},GI=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return rI}},YI=e=>e?.some((e=>"italic"===e))?"italic":"normal",KI=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?nI:"normal",XI=e=>!1===e?1:3,JI=e=>parseInt(e??iI.fontSize,10)*tI,ZI=e=>e?.some((e=>"underline"===e))?"underline":"none",QI=(e,t,r,n,o)=>{const{header:i,dimensionValues:a,measureValues:s,totalValues:l,nullValues:u,grid:c,content:d}=zI(t)??{},p=NA(t,o)?AC.WHITE:AC.TRANSPARENT,f=UI(n,i,"object.straightTableV2.dimension.label.name.backgroundColor",p),h=o.viewState?.maxLineCount??d?.rowHeight??n.getStyle("object.straightTableV2","grid","lineClamp"),m={header:{fontFamily:i?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??r.head.fontFamily??oI,fontSize:GI(i?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??r.head.fontSize),fontStyle:YI(i?.fontStyle),fontWeight:KI(i?.fontStyle,nI),textDecoration:ZI(i?.fontStyle),color:BI(n,i?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??r.head.color??AC.TEXT,background:f},headerMenuHoverBackground:kC(f,lE),headerMenuActiveBackground:kC(f,uE),dimension:{values:{fontFamily:a?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??r.body.fontFamily??oI,fontSize:GI(a?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??r.body.fontSize),fontStyle:YI(a?.fontStyle),fontWeight:KI(a?.fontStyle,"normal"),textDecoration:ZI(a?.fontStyle),color:BI(n,a?.fontColor)??BI(n,d?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??r.body.color??AC.TEXT,background:VI(n,a,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??r.body.background??AC.TRANSPARENT}},measure:{values:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??r.body.fontFamily??oI,fontSize:GI(s?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??r.body.fontSize),fontStyle:YI(s?.fontStyle),fontWeight:KI(s?.fontStyle,"normal"),textDecoration:ZI(s?.fontStyle),color:BI(n,s?.fontColor)??BI(n,d?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??r.body.color??AC.TEXT,background:VI(n,s,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??r.body.background??AC.TRANSPARENT}},totalRow:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??r.totals.fontFamily??oI,fontSize:GI(l?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??r.totals.fontSize),fontStyle:YI(l?.fontStyle),fontWeight:KI(l?.fontStyle,nI),textDecoration:ZI(l?.fontStyle),color:BI(n,l?.fontColor)??BI(n,d?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??r.totals.color??AC.TEXT,background:UI(n,l,"object.straightTableV2.total.label.value.backgroundColor",p)},nullValues:{fontStyle:YI(u?.fontStyle),fontWeight:KI(u?.fontStyle,"normal"),textDecoration:ZI(u?.fontStyle),color:BI(n,u?.fontColor)??BI(n,d?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??r.body.color??AC.TEXT,background:BI(n,u?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??AC.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:h??XI(t.multiline?.wrapTextInCells),headerLineClamp:XI(t.multiline?.wrapTextInHeaders),border:BI(n,c?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?AC.DARK_MODE_BORDER:AC.BORDER_MEDIUM),divider:BI(n,c?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??AC.BORDER_HEAVY,hoverColors:{color:BI(n,d?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??r.body.hoverColors?.color,background:BI(n,d?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??r.body.hoverColors?.background},zebraStripes:{show:!!c?.zebraStripes?.show,odd:{color:BI(n,c?.zebraStripes?.color?.odd),background:BI(n,c?.zebraStripes?.background?.odd)},even:{color:BI(n,c?.zebraStripes?.color?.even),background:BI(n,c?.zebraStripes?.background?.even)},overrideNullValueBackground:void 0===BI(n,u?.background),overrideNullValueColor:void 0===BI(n,u?.fontColor)},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:MC(n),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:h},{headerMinRowHeight:g,totalRowLineHeight:b,totalRowMinHeight:v,contentLineHeight:y,contentMinRowHeight:x}=(e=>{const t=Math.max(JI(e.header.fontSize)+8,32),r=JI(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(JI(e.dimension.values.fontSize),JI(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)}})(m);return m.headerMinRowHeight=g,m.totalRowLineHeight=b,m.totalRowMinHeight=v,m.contentLineHeight=y,m.contentMinRowHeight=x,m},eM=(e,t,r,n)=>{const o=R((()=>{const o=r.totalsPosition.atTop,i=function(e,t,r,n){const o=zI(e)?.content,i=FI("content",t,o);i.background=t.background.color;const a=_I(i.fontSize,r,n),s=o?.hoverColor,l=o?.hoverFontColor,u=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),c=t.getStyle("object","","straightTableV2.content.hover.color"),d=qI(l)||!!c,p=qI(s)||!!u,f=d||p;let h;h=qI(s)?NI(AC.HOVER,t,s):u||(d?"":AC.HOVER);const m=f?NI(IC(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(e,t,r.rows.length,n),a=HI(e,t,!o),s=function(e,t,r){const n=zI(e)?.content,o=FI("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=HI(e,t,r);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(e,t,o);return{body:i,head:a,totals:s}}),[e,t,r,n]);return o},tM=new Map;const rM=I({}),nM=function(e){const t=I([()=>{},new Set]);return tM.set(e,t),({children:r,value:n})=>{const o=A(n),i=A(new Set);k((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=O((()=>o.current),[o]),s=R((()=>[a,i.current]),[a]);return rr.jsx(e.Provider,{value:n,children:rr.jsx(t.Provider,{value:s,children:r})})}}(rM),oM={rows:[],columns:[],totalsPosition:{}},iM=({children:e,tableData:t=oM,selectionsAPI:r,layout:n,model:o,interactions:i,theme:a,keyboard:s,rootElement:l,embed:u,changeSortOrder:c,applyColumnWidths:d,setPage:p,pageInfo:f,initialDataPages:h,rect:m,viewService:g,downloadService:b,env:v,direction:y,eventEmitter:x})=>{const[S,w]=((e,t)=>{const[r,n]=M(OI,{pageRows:e,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(t.rows,r),C=eM(n,a,t,l),E=((e,t,r,n,o)=>R((()=>QI(0,t,r,n,o)),[t,r,e,n,o]))(v,n,C,a,g),{xScrollbarWidth:A,yScrollbarWidth:I,setXScrollbarWidth:k,setYScrollbarWidth:D}=(()=>{const[e,t]=P(0),[r,n]=P(0);return{xScrollbarWidth:e,yScrollbarWidth:r,setYScrollbarWidth:n,setXScrollbarWidth:t}})(),{columnWidths:T,setColumnWidths:O,showRightBorder:q,isAdjustingWidth:N,setIsAdjustingWidth:j}=(({columns:e,totalsPosition:t,tableWidth:r,styleService:n,eventEmitter:o,yScrollbarWidth:i,accessibleHeader:a=!0})=>{const s=t.atBottom||t.atTop,l=BC({...n.header,fontWeight:nI},{maxNbrLinesOfText:3}).measureText,u=BC({...n.totalRow,fontWeight:nI},{maxNbrLinesOfText:3}).measureText,{estimateWidth:c}=BC(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:d}=BC(n.measure.values,{maxNbrLinesOfText:3}),p=R((()=>(e,t,r,n,o,i,p)=>{let f=0;if(a){const t=4;let r=25;r+=t+24,n&&(r+=20+t),o&&(r+=20),f=l(e)+r}else{let t=9;t+=16,p&&(t+=hI),t+=hI,t+=hI,f=l(e)+t}const h=i?c:d;return Math.max(f,s?u(t)+24+1:0,h(r))}),[c,d,l,u,s,a]),[f,h]=P(!1),[m,g]=P((()=>wI(e,r,p)));L((()=>{const t=wI(e,r-i,p);g(t),h(!1)}),[e,r,i,p]),L((()=>{f||o.emit("done-adjusting-column-width")}),[f,o]);const b=R((()=>((e,t,r)=>e.length>0&&e.reduce(((e,t)=>e+t))+t<r)(m,i,r)),[m,i,r]);return{columnWidths:m,setColumnWidths:g,showRightBorder:b,isAdjustingWidth:f,setIsAdjustingWidth:h}})({columns:t.columns,totalsPosition:t.totalsPosition,tableWidth:m.width,styleService:E,eventEmitter:x,accessibleHeader:n.accessibleHeader,yScrollbarWidth:I}),_=R((()=>({selectionsAPI:r,layout:n,model:o,interactions:i,theme:a,keyboard:s,rootElement:l,embed:u,changeSortOrder:c,applyColumnWidths:d,rect:m,viewService:g,styleService:E,direction:y,downloadService:b})),[r,n,o,i,a,s.active,l,u,c,d,m,g,E,y,b]);return rr.jsx(nM,{value:{selectionState:S,selectionDispatch:w,columnWidths:T,setColumnWidths:O,baseProps:_,tableData:t,setPage:p,pageInfo:f,initialDataPages:h,showRightBorder:q,env:v,isAdjustingWidth:N,setIsAdjustingWidth:j,setYScrollbarWidth:D,setXScrollbarWidth:k,xScrollbarWidth:A,yScrollbarWidth:I,eventEmitter:x},children:e})};function aM(e,t){const r=function(e){return tM.get(e)}(e),[n,o]=T(r),[,i]=M((e=>e+1),0),a=A(t),s=A(),l=n();if(void 0===l)throw new Error("You must call useContextSelector inside a valid context.");const u=R((()=>t(l)),[l,t]);return k((()=>{a.current=t,s.current=u}),[l,u,t]),k((()=>{const e=e=>{a.current(e)!==s.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function sM(e){const t=RC();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),Du({...t,direction:e})}const lM={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},uM={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},cM=hc("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":{...lM},"&::-moz-range-track":{...lM},"&::-ms-track":{...lM},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...uM},"&::-moz-range-thumb":{...uM},"&::-ms-thumb":{...uM},"&: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"}}))),dM=({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=XC({translator:c.translator}),f=A({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:t??f.current.initX}};YC((()=>{m&&v()}),[e]);const y=e=>{const t=Math.max(e,aE.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:sE.Pixels,pixels:f.current.columnWidth};a(e)}else l?.(!1)},S=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},w=e=>{LC(e),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",w),x()},C=e=>{const t="rtl"===d?f.current.initWidth+-f.current.initX-e.touches[0].clientX:f.current.initWidth+e.touches[0].clientX-f.current.initX;y(t)},E=e=>{LC(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===oE.Left||e.key===oE.Right){LC(e);const t=5,r=e.key===oE.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===oE.Space||e.key===oE.Enter?(LC(e),s(e),l?.(!1),x()):e.key===oE.Esc&&(LC(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,P=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return rr.jsx(cM,{style:b,hoverColor:o,isLastColumn:r,className:iE,"data-testid":iE,onMouseDown:e=>{LC(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:sE.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(LC(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),v(e.touches[0].clientX))},onKeyDown:R,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,"aria-label":P,"aria-valuemin":aE.PixelsMin,"aria-valuemax":aE.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},pM=q(((e,t)=>rr.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:rr.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})}))),fM=({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const r=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",r,t)}catch(e){console.error(e)}}}return null},hM=hc(op,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})((({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:r})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:r?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:r?"100%":void 0,alignItems:"center",justifyContent:"center"}))),mM=hc(pM,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),gM=hc(Ff)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),bM=hc(Np)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),vM=hc(Vf)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),yM=hc(Vf,{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"}))),xM=hc("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"}))),SM=hc("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),wM=hc(xd)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),CM=hc(ff,{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}))),EM=q(((e,t)=>rr.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:rr.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),RM=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?RM(t):t:e.parentElement?.children?.[0]},PM=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?PM(t):t},AM=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===oE.Down||t===oE.Up){const r=e=>t===oE.Down?RM(e):PM(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},IM=(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 MM={};const kM=({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]=P(!1),f=x.useRef(null),h=O((e=>{e.stopPropagation(),p(!1)}),[p]);return rr.jsxs(rr.Fragment,{children:[rr.jsxs(yM,{ref:a?f:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),MM={}),a?.length&&(p(!0),MM[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:AM,children:[l?rr.jsx(xM,{direction:u,isPagination:c}):null,rr.jsxs(SM,{children:[rr.jsx(CM,{direction:u,isPagination:c,children:rr.jsx(o,{})}),rr.jsx(wM,{variant:"body2",children:n})]}),a?.length?rr.jsx(EM,{}):null]},t),a?.length?rr.jsx(LM,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:IM(a,MM),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},DM=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&rr.jsx(vM,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map((e=>rr.jsx(kM,{...e,isSubMenu:t,direction:r,isPagination:n},e.id)))].filter(Boolean)])),TM=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[DM({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?rr.jsx(bM,{"data-testid":"group-divider",variant:"middle"}):void 0])),OM={appear:0,enter:0,exit:0},LM=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?rr.jsx(gM,{className:tE,open:t,anchorEl:e,onClose:r,transitionDuration:OM,MenuListProps:{id:rE},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:TM({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,qM=({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:o,onPopoverClose:i})=>O((()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(r?.embed){const{embed:e,listboxRef:t}=r;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:r.sortCriteria,stateName:n?.qStateName,direction:o,onPopoverClose:i})}}),[e,t,r,n?.qStateName,o,i]),NM=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),jM=(e,t)=>e.some((e=>t[e]>0)),_M={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},zM=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=P(null),[a,s]=P(_M);return YC((()=>{e||(s(_M),i(null))}),[e]),k((()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=NM(t,r),u=await n.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject?.qDimensionInfo??{};o=c.qInfo?.qId,a?l():(i(u),d&&s((e=>({canSelectAll:jM(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:jM(["qSelected"],e),canSelectPossible:jM(["qOption"],e),canSelectAlternative:jM(["qAlternative"],e),canSelectExcluded:jM(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},FM=q(((e,t)=>rr.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:rr.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"})}))),HM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm9 1.5H6v-1h4zm5.354-8.646L12.707 10l2.646 2.646-.707.707L12 10.708l-2.646 2.646-.708-.707L11.293 10 8.646 7.354l.708-.708L12 9.293l2.646-2.647zM1 10H0V6h1zm2-9H1.5a.5.5 0 0 0-.5.5V3H0V1.5A1.5 1.5 0 0 1 1.5 0H3zm11.5-1A1.5 1.5 0 0 1 16 1.5V3h-1V1.5a.5.5 0 0 0-.5-.5H13V0zM10 1H6V0h4z"})}))),$M=q(((e,t)=>rr.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:rr.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"})}))),WM=q(((e,t)=>rr.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:rr.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"})}))),BM=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.455.858v6.484a1 1 0 0 1-.577.906L8.5 14.663V7.17z"})}))),VM=q(((e,t)=>rr.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:rr.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"})}))),UM=q(((e,t)=>rr.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:rr.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"})}))),GM=q(((e,t)=>rr.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:rr.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"})}))),YM=q(((e,t)=>rr.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:rr.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"})}))),KM=q(((e,t)=>rr.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:rr.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"})}))),XM=q(((e,t)=>rr.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:rr.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"})}))),JM=q(((e,t)=>rr.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:rr.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"})}))),ZM=q(((e,t)=>rr.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:rr.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"})}))),QM=q(((e,t)=>rr.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:rr.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 ek=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const tk="/qListObjectDef",rk=({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[ek.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(o?.(e,"A")),n(!1)},icon:FM,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),n(!1)},icon:WM,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:GM,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:BM,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[ek.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:YM,enabled:!0}]}]),!e.isLocked&&r[ek.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:QM,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(tk))},icon:KM,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(tk))},icon:ZM,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(tk))},icon:XM,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(tk))},icon:JM,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(tk))},icon:HM,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:UM,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:VM,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[ek.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:$M,enabled:!0}]}]),f},nk=({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,isAccessibleHeader:g,iconSize:b=ZC})=>{const v=A(null),y=XC({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=zM({open:e,headerData:n,app:C,qStateName:c?.qStateName}),P=fM({model:f,headerData:n}),I=qM({qLibraryId:x,fieldId:S,searchRelatedArgs:u,selectionRelatedArgs:c,direction:h}),M=O((e=>{e.stopPropagation(),t(!1)}),[t]),k=O((e=>{e.stopPropagation(),t((e=>!e))}),[t]);return i.active?rr.jsxs(hM,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:eE,onClick:!1===g?k:void 0,ref:v,isAccessibleHeader:g,children:[s?rr.jsx(mM,{height:b,className:QC,"data-testid":QC,isInteractionsActive:i.active??!1,children:rr.jsx(pM,{})}):null,rr.jsx(LM,{open:e,anchorEl:!1===g?v.current:r.current,onClose:M,menuGroups:rk({headerData:n,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:I,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:r,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:P,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},ok=e=>e.isDark?{background:e.color,borderColor:AC.DARK_MODE_BORDER,color:AC.DARK_MODE_TEXT,disabledColor:AC.DARK_MODE_DISABLED,iconColor:AC.DARK_MODE_TEXT}:{background:e.color,borderColor:AC.BORDER_MEDIUM,color:AC.TEXT,disabledColor:AC.DISABLED},ik=hc(op,{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}`}))),ak=hc(Rh,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),sk=hc(hp,{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)}))),lk=hc(xd)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),uk=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=R((()=>ok(n.background)),[n]);if(!r.active)return null;const a=o?rr.jsx(ik,{footerStyle:i,children:e}):null;return t?$.createPortal(e,t):a},ck=I({}),dk=()=>T(ck),pk=({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,visibilityThreshold:g})=>{const b=(e=>!e.enabled||e.active)(c)?0:-1,v=R((()=>ok(p.background)),[p]),y=o?o.getBoundingClientRect().width:h.width,x=XC({translator:d}),S=R((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:x,theme:p,interactions:f,rect:h,layout:m,footerStyle:v,tabIndex:b,width:y,visibilityThreshold:g})),[t,r,n,o,i,a,s,l,u,c,x,p,f,h,m,v,b,y,g]);return rr.jsx(ck.Provider,{value:S,children:e})};let fk=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),hk=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 mk=q(((e,t)=>rr.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:rr.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),gk=q(((e,t)=>rr.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:rr.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),bk=q(((e,t)=>rr.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:rr.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),vk={FirstPage:gk,PreviousPage:mk,NextPage:EM,LastPage:bk,FirstPageRTL:bk,PreviousPageRTL:EM,NextPageRTL:mk,LastPageRTL:gk},yk=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=dk(),u=r.concat("rtl"===n?"RTL":""),c=vk[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}},xk=()=>{const{pageInfo:e,width:t,interactions:r,visibilityThreshold:n}=dk(),o=0===e.page,{IconComponent:i,styledProps:a}=yk({type:fk.FirstPage,disabledCondition:o,pageNumber:0});return t<=(n?.firstPage||hk.FirstPage)?null:rr.jsx(sk,{...a,disabled:!r.active,children:rr.jsx(i,{height:ZC})})},Sk=(e,t,r=!1)=>{r&&e.key===oE.Tab&&!e.shiftKey&&(LC(e),OC(e.target,t,!1))},wk=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i,visibilityThreshold:a}=dk(),s=e.page>=r-1,{IconComponent:l,styledProps:u}=yk({type:fk.LastPage,disabledCondition:s,pageNumber:r-1}),c=t.enabled?e=>{Sk(e,t,n)}:void 0;return o<=(a?.lastPage||hk.LastPage)?null:rr.jsx(sk,{...u,onKeyDown:c,disabled:!i.active,children:rr.jsx(l,{height:ZC})})},Ck=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=dk(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=yk({type:fk.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>hk.FirstPage&&o>hk.LastPage)&&t.enabled?e=>{Sk(e,t,n)}:void 0;return rr.jsx(sk,{...l,onKeyDown:u,disabled:!i.active,children:rr.jsx(s,{height:ZC})})},Ek=()=>{const{pageInfo:e,interactions:t}=dk(),r=0===e.page,{IconComponent:n,styledProps:o}=yk({type:fk.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return rr.jsx(sk,{...o,disabled:!t.active,children:rr.jsx(n,{height:ZC})})},Rk=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=dk(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||hk.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return rr.jsx(lk,{variant:"caption",dir:"ltr",children:s})},Pk=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=dk(),u=o.qInfo.qId,c=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:s,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return rr.jsxs(rr.Fragment,{children:[rr.jsxs(lk,{variant:"caption",id:p,children:[c,":"]}),rr.jsx(ak,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},Ak=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=dk();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||hk.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=rr.jsx(rr.Fragment,{children:e.rowsPerPageOptions.map((e=>rr.jsx("option",{value:e,children:e},e)))});return rr.jsx(Pk,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},Ik=1e3,Mk="…",kk=({totalPages:e,page:t})=>{const r=Math.min(e,Ik),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-Ik):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return rr.jsx("option",{value:t,children:t+1},t)}));return i>0&&a.unshift(rr.jsx("option",{value:Mk,disabled:!0,children:Mk},"startMoreOptions")),o<e-1&&a.push(rr.jsx("option",{value:Mk,disabled:!0,children:Mk},"endMoreOptions")),rr.jsx(rr.Fragment,{children:a})},Dk=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=dk(),{page:i}=e;if(t<=(o?.selectPage||hk.SelectPage))return null;const a=rr.jsx(kk,{totalPages:r,page:i});return rr.jsx(Pk,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var Tk=N((e=>rr.jsxs(pk,{...e,children:[rr.jsx(Ak,{}),rr.jsx(Dk,{}),rr.jsx(Rk,{}),rr.jsx(xk,{}),rr.jsx(Ek,{}),rr.jsx(Ck,{}),rr.jsx(wk,{})]})));const Ok=e=>rr.jsx(uk,{...e,children:rr.jsx(Tk,{...e})});var Lk=Symbol.for("preact-signals");function qk(){if(Fk>1)Fk--;else{for(var e,t=!1;void 0!==zk;){var r=zk;for(zk=void 0,Hk++;void 0!==r;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Uk(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(Hk=0,Fk--,t)throw e}}function Nk(e){if(Fk>0)return e();Fk++;try{return e()}finally{qk()}}var jk=void 0;function _k(e){var t=jk;jk=void 0;try{return e()}finally{jk=t}}var zk=void 0,Fk=0,Hk=0,$k=0;function Wk(e){if(void 0!==jk){var t=e.n;if(void 0===t||t.t!==jk)return t={i:0,S:e,p:jk.s,n:void 0,t:jk,e:void 0,x:void 0,r:t},void 0!==jk.s&&(jk.s.n=t),jk.s=t,e.n=t,32&jk.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=jk.s,t.n=void 0,jk.s.n=t,jk.s=t),t}}function Bk(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function Vk(e,t){return new Bk(e,t)}function Uk(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Gk(e){for(var t=e.s;void 0!==t;t=t.n){var r=t.S.n;if(void 0!==r&&(t.r=r),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function Yk(e){for(var t=e.s,r=void 0;void 0!==t;){var n=t.p;-1===t.i?(t.S.U(t),void 0!==n&&(n.n=t.n),void 0!==t.n&&(t.n.p=n)):r=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=n}e.s=r}function Kk(e,t){Bk.call(this,void 0),this.x=e,this.s=void 0,this.g=$k-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function Xk(e,t){return new Kk(e,t)}function Jk(e){var t=e.u;if(e.u=void 0,"function"==typeof t){Fk++;var r=jk;jk=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,Zk(e),t}finally{jk=r,qk()}}}function Zk(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Jk(e)}function Qk(e){if(jk!==this)throw new Error("Out-of-order effect");Yk(this),jk=e,this.f&=-2,8&this.f&&Zk(this),qk()}function eD(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=null==t?void 0:t.name}function tD(e,t){var r=new eD(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}Bk.prototype.brand=Lk,Bk.prototype.h=function(){return!0},Bk.prototype.S=function(e){var t=this,r=this.t;r!==e&&void 0===e.e&&(e.x=r,this.t=e,void 0!==r?r.e=e:_k((function(){var e;null==(e=t.W)||e.call(t)})))},Bk.prototype.U=function(e){var t=this;if(void 0!==this.t){var r=e.e,n=e.x;void 0!==r&&(r.x=n,e.e=void 0),void 0!==n&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,void 0===n&&_k((function(){var e;null==(e=t.Z)||e.call(t)})))}},Bk.prototype.subscribe=function(e){var t=this;return tD((function(){var r=t.value,n=jk;jk=void 0;try{e(r)}finally{jk=n}}),{name:"sub"})},Bk.prototype.valueOf=function(){return this.value},Bk.prototype.toString=function(){return this.value+""},Bk.prototype.toJSON=function(){return this.value},Bk.prototype.peek=function(){var e=jk;jk=void 0;try{return this.value}finally{jk=e}},Object.defineProperty(Bk.prototype,"value",{get:function(){var e=Wk(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Hk>100)throw new Error("Cycle detected");this.v=e,this.i++,$k++,Fk++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{qk()}}}}),Kk.prototype=new Bk,Kk.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===$k)return!0;if(this.g=$k,this.f|=1,this.i>0&&!Uk(this))return this.f&=-2,!0;var e=jk;try{Gk(this),jk=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return jk=e,Yk(this),this.f&=-2,!0},Kk.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}Bk.prototype.S.call(this,e)},Kk.prototype.U=function(e){if(void 0!==this.t&&(Bk.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},Kk.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(Kk.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Wk(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),eD.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},eD.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Jk(this),Gk(this),Fk++;var e=jk;return jk=this,Qk.bind(this,e)},eD.prototype.N=function(){2&this.f||(this.f|=2,this.o=zk,zk=this)},eD.prototype.d=function(){this.f|=8,1&this.f||Zk(this)},eD.prototype.dispose=function(){this.d()};var rD,nD,oD,iD,aD,sD,lD,uD,cD,dD,pD,fD,hD,mD,gD,bD,vD,yD,xD,SD,wD=Object.create,CD=Object.defineProperty,ED=Object.defineProperties,RD=Object.getOwnPropertyDescriptor,PD=Object.getOwnPropertyDescriptors,AD=Object.getOwnPropertySymbols,ID=Object.prototype.hasOwnProperty,MD=Object.prototype.propertyIsEnumerable,kD=e=>{throw TypeError(e)},DD=(e,t,r)=>t in e?CD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,TD=(e,t)=>CD(e,"name",{value:t,configurable:!0}),OD=["class","method","getter","setter","accessor","field","value","get","set"],LD=e=>void 0!==e&&"function"!=typeof e?kD("Function expected"):e,qD=(e,t,r,n,o)=>({kind:OD[e],name:t,metadata:n,addInitializer:e=>r._?kD("Already initialized"):o.push(LD(e||null))}),ND=(e,t)=>{return DD(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},jD=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},_D=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=OD[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&RD(d<4?o:{get[r](){return HD(this,i)},set[r](e){return WD(this,i,e)}},r));d?f&&d<4&&TD(i,(d>2?"set ":d>1?"get ":"")+r):TD(o,r);for(var y=n.length-1;y>=0;y--)u=qD(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>FD(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?HD:BD)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>WD(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?LD(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?kD("Object expected"):(LD(a=s.get)&&(v.get=a),LD(a=s.set)&&(v.set=a),LD(a=s.init)&&g.unshift(a));return d||ND(e,o),v&&CD(o,r,v),f?4^d?i:v:o},zD=(e,t,r)=>t.has(e)||kD("Cannot "+r),FD=(e,t)=>Object(t)!==t?kD('Cannot use the "in" operator on this value'):e.has(t),HD=(e,t,r)=>(zD(e,t,"read from private field"),r?r.call(e):t.get(e)),$D=(e,t,r)=>t.has(e)?kD("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),WD=(e,t,r,n)=>(zD(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),BD=(e,t,r)=>(zD(e,t,"access private method"),r);function VD(e,t){if(t){let r;return Xk((()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)}))}return Xk(e)}function UD(e,t){if(Object.is(e,t))return!0;if(null===e||null===t)return!1;if("function"==typeof e&&"function"==typeof t)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some(((e,r)=>!UD(e,t[r])))}if("object"==typeof e&&"object"==typeof t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;const o=r.some((r=>!UD(e[r],t[r])));return!o}return!1}function GD({get:e},t){return{init:e=>Vk(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function YD(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=VD(e.bind(this)),r.set(this,t)),t.value}}function KD(e=!0){return function(t,r){r.addInitializer((function(){const t="field"===r.kind||r.static?this:Object.getPrototypeOf(this),n=Object.getOwnPropertyDescriptor(t,r.name);n&&Object.defineProperty(t,r.name,((e,t)=>ED(e,PD(t)))(((e,t)=>{for(var r in t||(t={}))ID.call(t,r)&&DD(e,r,t[r]);if(AD)for(var r of AD(t))MD.call(t,r)&&DD(e,r,t[r]);return e})({},n),{enumerable:e}))}))}}function XD(...e){const t=e.map((e=>tD(e)));return()=>t.forEach((e=>e()))}sD=[GD],aD=[GD],iD=[GD],oD=[KD()],nD=[KD()],rD=[KD()];var JD,ZD=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,jD(lD,5,this),$D(this,fD),$D(this,uD,jD(lD,8,this)),jD(lD,11,this),$D(this,hD,jD(lD,12,this)),jD(lD,15,this),$D(this,vD,jD(lD,16,this)),jD(lD,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return HD(this,fD,xD)}get initial(){return HD(this,fD,dD)}get previous(){return HD(this,fD,gD)}set current(e){const t=_k((()=>HD(this,fD,xD)));e&&t&&this.equals(t,e)||Nk((()=>{HD(this,fD,dD)||WD(this,fD,e,pD),WD(this,fD,t,bD),WD(this,fD,e,SD)}))}reset(e=this.defaultValue){Nk((()=>{WD(this,fD,void 0,bD),WD(this,fD,e,pD),WD(this,fD,e,SD)}))}};function QD(e){return _k((()=>{const t={};for(const r in e)t[r]=e[r];return t}))}lD=[,,,wD(null)],uD=new WeakMap,fD=new WeakSet,hD=new WeakMap,vD=new WeakMap,cD=_D(lD,20,"#initial",sD,fD,uD),dD=cD.get,pD=cD.set,mD=_D(lD,20,"#previous",aD,fD,hD),gD=mD.get,bD=mD.set,yD=_D(lD,20,"#current",iD,fD,vD),xD=yD.get,SD=yD.set,_D(lD,2,"current",oD,ZD),_D(lD,2,"initial",nD,ZD),_D(lD,2,"previous",rD,ZD),ND(lD,ZD);JD=new WeakMap;var eT,tT,rT,nT,oT,iT=Object.create,aT=Object.defineProperty,sT=Object.getOwnPropertyDescriptor,lT=Object.getOwnPropertySymbols,uT=Object.prototype.hasOwnProperty,cT=Object.prototype.propertyIsEnumerable,dT=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),pT=e=>{throw TypeError(e)},fT=Math.pow,hT=(e,t,r)=>t in e?aT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,mT=["class","method","getter","setter","accessor","field","value","get","set"],gT=e=>void 0!==e&&"function"!=typeof e?pT("Function expected"):e,bT=(e,t,r,n,o)=>({kind:mT[e],name:t,metadata:n,addInitializer:e=>r._?pT("Already initialized"):o.push(gT(e||null))}),vT=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=mT[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,sT(o,r)),h=n.length-1;h>=0;h--)(l=bT(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,gT(a)&&(f[d]=a);return f&&aT(o,r,f),o},yT=(e,t,r)=>t.has(e)||pT("Cannot "+r),xT=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},ST=class e{constructor(e,t,r,n){this.left=e,this.top=t,this.width=r,this.height=n,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,r){const{top:n,left:o,width:i,height:a,scale:s}=this,l=new e(o+t,n+r,i,a);return l.scale=((e,t)=>{for(var r in t||(t={}))uT.call(t,r)&&hT(e,r,t[r]);if(lT)for(var r of lT(t))cT.call(t,r)&&hT(e,r,t[r]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:r,top:n,right:o,bottom:i}=this;return{width:e,height:t,left:r,top:n,right:o,bottom:i}}get center(){const{left:e,top:t,right:r,bottom:n}=this;return new xT((e+r)/2,(t+n)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:r,top:n,width:o,height:i}=this;return r===t.left&&n===t.top&&o===t.width&&i===t.height}containsPoint(e){const{top:t,left:r,bottom:n,right:o}=this;return t<=e.y&&e.y<=n&&r<=e.x&&e.x<=o}intersectionArea(t){return t instanceof e?function(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-n,s=i-r;if(n<o&&r<i){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,r=this.intersectionArea(e);return r/(e.area+t-r)}get bottom(){const{top:e,height:t}=this;return e+t}get right(){const{left:e,width:t}=this;return e+t}get aspectRatio(){const{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:r,width:n,height:o}){return new e(r,t,n,o)}static delta(e,t,r={x:"center",y:"center"}){const n=(e,t)=>{const n=r[t],o="x"===t?e.left:e.top,i="x"===t?e.width:e.height;return"start"==n?o:"end"==n?o+i:o+i/2};return xT.delta({x:n(e,"x"),y:n(e,"y")},{x:n(t,"x"),y:n(t,"y")})}static intersectionRatio(t,r){return e.from(t).intersectionRatio(e.from(r))}};var wT,CT=class extends(rT=ZD,tT=[YD],eT=[YD],rT){constructor(e){var t,r,n;super(xT.from(e),((e,t)=>xT.equals(e,t))),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(oT,5,this),t=this,n=0,(r=nT).has(t)?pT("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return xT.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=xT.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(yT(a=this,s=nT,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);Nk((()=>{((e,t,r)=>{yT(e,t,"write to private field"),t.set(e,r)})(this,nT,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(xT.from(e)),this.velocity={x:0,y:0}}};function ET({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(fT(n,2)+fT(o,2))>r:"x"in r&&"y"in r?n>r.x&&o>r.y:"x"in r?n>r.x:"y"in r&&o>r.y}oT=(e=>{var t;return[,,,iT(null!=(t=null==e?void 0:e[dT("metadata")])?t:null)]})(rT),nT=new WeakMap,vT(oT,2,"delta",tT,CT),vT(oT,2,"direction",eT,CT),wT=oT,hT(CT,dT("metadata"),wT[3]);var RT,PT,AT,IT,MT=(e=>(e.Horizontal="x",e.Vertical="y",e))(MT||{}),kT=Object.values(MT),DT=Object.create,TT=Object.defineProperty,OT=Object.defineProperties,LT=Object.getOwnPropertyDescriptor,qT=Object.getOwnPropertyDescriptors,NT=Object.getOwnPropertySymbols,jT=Object.prototype.hasOwnProperty,_T=Object.prototype.propertyIsEnumerable,zT=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),FT=e=>{throw TypeError(e)},HT=(e,t,r)=>t in e?TT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$T=(e,t)=>{for(var r in t||(t={}))jT.call(t,r)&&HT(e,r,t[r]);if(NT)for(var r of NT(t))_T.call(t,r)&&HT(e,r,t[r]);return e},WT=(e,t)=>OT(e,qT(t)),BT=(e,t)=>TT(e,"name",{value:t,configurable:!0}),VT=(e,t)=>{var r={};for(var n in e)jT.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&NT)for(var n of NT(e))t.indexOf(n)<0&&_T.call(e,n)&&(r[n]=e[n]);return r},UT=e=>{var t;return[,,,DT(null!=(t=null==e?void 0:e[zT("metadata")])?t:null)]},GT=["class","method","getter","setter","accessor","field","value","get","set"],YT=e=>void 0!==e&&"function"!=typeof e?FT("Function expected"):e,KT=(e,t,r,n,o)=>({kind:GT[e],name:t,metadata:n,addInitializer:e=>r._?FT("Already initialized"):o.push(YT(e||null))}),XT=(e,t)=>HT(t,zT("metadata"),e[3]),JT=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},ZT=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=GT[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&<(d<4?o:{get[r](){return tO(this,i)},set[r](e){return nO(this,i,e)}},r));d?f&&d<4&&BT(i,(d>2?"set ":d>1?"get ":"")+r):BT(o,r);for(var y=n.length-1;y>=0;y--)u=KT(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>eO(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?tO:oO)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>nO(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?YT(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?FT("Object expected"):(YT(a=s.get)&&(v.get=a),YT(a=s.set)&&(v.set=a),YT(a=s.init)&&g.unshift(a));return d||XT(e,o),v&&TT(o,r,v),f?4^d?i:v:o},QT=(e,t,r)=>t.has(e)||FT("Cannot "+r),eO=(e,t)=>Object(t)!==t?FT('Cannot use the "in" operator on this value'):e.has(t),tO=(e,t,r)=>(QT(e,t,"read from private field"),r?r.call(e):t.get(e)),rO=(e,t,r)=>t.has(e)?FT("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),nO=(e,t,r,n)=>(QT(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),oO=(e,t,r)=>(QT(e,t,"access private method"),r);function iO(e,t){return{plugin:e,options:t}}function aO(e){return t=>iO(e,t)}function sO(e){return"function"==typeof e?{plugin:e,options:void 0}:e}RT=[GD];var lO=class{constructor(e,t){this.manager=e,this.options=t,rO(this,AT,JT(PT,8,this,!1)),JT(PT,11,this),rO(this,IT,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return _k((()=>this.disabled))}configure(e){this.options=e}registerEffect(e){const t=tD(e.bind(this));return tO(this,IT).add(t),t}destroy(){tO(this,IT).forEach((e=>e()))}static configure(e){return iO(this,e)}};PT=UT(null),AT=new WeakMap,IT=new WeakMap,ZT(PT,4,"disabled",RT,lO,AT),XT(PT,lO);var uO,cO=class extends lO{},dO=class{constructor(e){this.manager=e,this.instances=new Map,rO(this,uO,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(sO).reduceRight(((e,t)=>e.some((({plugin:e})=>e===t.plugin))?e:[t,...e]),[]),r=t.map((({plugin:e})=>e));for(const e of tO(this,uO))if(!r.includes(e)){if(e.prototype instanceof cO)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);nO(this,uO,r)}get(e){return this.instances.get(e)}register(e,t){const r=this.instances.get(e);if(r)return r.options!==t&&(r.options=t),r;const n=new e(this.manager,t);return this.instances.set(e,n),n}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};function pO(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}uO=new WeakMap;var fO,hO,mO=[],gO=class extends lO{constructor(e){super(e),rO(this,fO),rO(this,hO),this.computeCollisions=this.computeCollisions.bind(this),nO(this,hO,Vk(mO)),this.destroy=XD((()=>{const e=this.computeCollisions(),t=_k((()=>this.manager.dragOperation.position.current));if(e!==mO){const e=tO(this,fO);if(nO(this,fO,t),e&&t.x==e.x&&t.y==e.y)return}else nO(this,fO,void 0);tO(this,hO).value=e}),(()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()}))}forceUpdate(e=!0){_k((()=>{e?tO(this,hO).value=this.computeCollisions():nO(this,fO,void 0)}))}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return mO;const s=[],l=[];for(const i of null!=e?e:r.droppables){if(i.disabled)continue;if(o&&!i.accepts(o))continue;const e=null!=t?t:i.collisionDetector;if(!e)continue;l.push(i),i.shape;const r=_k((()=>e({droppable:i,dragOperation:n})));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?mO:(s.sort(pO),s)}get collisions(){return tO(this,hO).value}};fO=new WeakMap,hO=new WeakMap;var bO=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));return n.add(t),r.set(e,n),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));n.delete(t),r.set(e,n)}dispatch(e,...t){const{registry:r}=this,n=r.get(e);if(n)for(const e of n)e(...t)}},vO=class extends bO{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function yO(e,t=!0){let r=!1;return WT($T({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var xO,SO,wO,CO,EO,RO,PO,AO,IO,MO=class extends cO{constructor(e){super(e);let t=[];this.destroy=XD((()=>{const{dragOperation:r,collisionObserver:n}=e;r.status.initializing&&(t=[],n.enable())}),(()=>{const{collisionObserver:r,monitor:n}=e,{collisions:o}=r;if(r.isDisabled())return;const i=yO({collisions:o});if(n.dispatch("collision",i),i.defaultPrevented)return;if(((e,t)=>e.map((({id:e})=>e)).join("")===t.map((({id:e})=>e)).join(""))(o,t))return;t=o;const[a]=o;_k((()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(r.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then((()=>{r.enable()})))}))}))}},kO=(e=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))(kO||{}),DO=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(DO||{});PO=[GD],RO=[YD],EO=[YD],CO=[YD],wO=[YD],SO=[YD],xO=[YD];var TO=class{constructor(){JT(AO,5,this),rO(this,IO,JT(AO,8,this,"idle")),JT(AO,11,this)}get current(){return this.value}get idle(){return"idle"===this.value}get initializing(){return"initializing"===this.value}get initialized(){const{value:e}=this;return"idle"!==e&&"initialization-pending"!==e}get dragging(){return"dragging"===this.value}get dropped(){return"dropped"===this.value}set(e){this.value=e}};AO=UT(null),IO=new WeakMap,ZT(AO,4,"value",PO,TO,IO),ZT(AO,2,"current",RO,TO),ZT(AO,2,"idle",EO,TO),ZT(AO,2,"initializing",CO,TO),ZT(AO,2,"initialized",wO,TO),ZT(AO,2,"dragging",SO,TO),ZT(AO,2,"dropped",xO,TO),XT(AO,TO);var OO,LO,qO,NO,jO,_O,zO,FO,HO,$O=class{constructor(e){this.manager=e}setDragSource(e){const{dragOperation:t}=this.manager;t.sourceIdentifier="string"==typeof e||"number"==typeof e?e:e.id}setDropTarget(e){return _k((()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=yO({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then((()=>n.defaultPrevented))}))}start(e){return _k((()=>{const{dragOperation:t}=this.manager;null!=e.source&&this.setDragSource(e.source);if(!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const r=new AbortController,{event:n,coordinates:o}=e;Nk((()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)}));const i=yO({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",i),i.defaultPrevented?(t.reset(),r.abort(),r):(t.status.set("initializing"),t.controller=r,this.manager.renderer.rendering.then((()=>{if(r.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&(t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:n,operation:t.snapshot(),cancelable:!1}))})),r)}))}move(e){return _k((()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=yO({nativeEvent:e.event,operation:n.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(r=e.propagate)||r)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask((()=>{var t,r,o,i,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:n.position.current.x+(null!=(r=null==(t=e.by)?void 0:t.x)?r:0),y:n.position.current.y+(null!=(i=null==(o=e.by)?void 0:o.y)?i:0)};n.position.current=l}))}))}stop(e={}){return _k((()=>{var t,r;const{dragOperation:n}=this.manager,{controller:o}=n;if(!o||o.signal.aborted)return;let i;o.abort();const a=()=>{this.manager.renderer.rendering.then((()=>{n.status.set("dropped");const e=_k((()=>{var e;return"dropping"===(null==(e=n.source)?void 0:e.status)})),t=()=>{n.controller===o&&(n.controller=void 0),n.reset()};if(e){const{source:e}=n,r=tD((()=>{"idle"===(null==e?void 0:e.status)&&(r(),t())}))}else this.manager.renderer.rendering.then(t)}))};n.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:n.snapshot(),canceled:null!=(r=e.canceled)&&r,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return i=new Promise(((t,r)=>{e.resume=t,e.abort=r})),e}}),i?i.then(a).catch((()=>n.reset())):a()}))}};NO=[GD],qO=[GD],LO=[GD],OO=[GD];var WO=class{constructor(e,t){rO(this,_O,JT(jO,8,this)),JT(jO,11,this),rO(this,zO,JT(jO,12,this)),JT(jO,15,this),rO(this,FO,JT(jO,16,this)),JT(jO,19,this),rO(this,HO,JT(jO,20,this)),JT(jO,23,this);const{effects:r,id:n,data:o={},disabled:i=!1,register:a=!0}=e;let s=n;this.manager=t,this.id=n,this.data=o,this.disabled=i,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==s)return null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==r?void 0:r())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&a&&queueMicrotask(this.register)}register(){var e;return null==(e=this.manager)?void 0:e.registry.register(this)}unregister(){var e;null==(e=this.manager)||e.registry.unregister(this)}destroy(){var e;null==(e=this.manager)||e.registry.unregister(this)}};jO=UT(null),_O=new WeakMap,zO=new WeakMap,FO=new WeakMap,HO=new WeakMap,ZT(jO,4,"manager",NO,WO,_O),ZT(jO,4,"id",qO,WO,zO),ZT(jO,4,"data",LO,WO,FO),ZT(jO,4,"disabled",OO,WO,HO),XT(jO,WO);var BO,VO,UO,GO,YO,KO,XO,JO,ZO,QO,eL,tL,rL,nL,oL,iL,aL,sL,lL,uL,cL,dL,pL,fL,hL=class{constructor(){this.map=Vk(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const r=this.map.peek(),n=r.get(e),o=()=>this.unregister(e,t);if(n===t)return o;if(n){const e=this.cleanupFunctions.get(n);null==e||e(),this.cleanupFunctions.delete(n)}const i=new Map(r);i.set(e,t),this.map.value=i;const a=XD(...t.effects());return this.cleanupFunctions.set(t,a),o},this.unregister=(e,t)=>{const r=this.map.peek();if(r.get(e)!==t)return;const n=this.cleanupFunctions.get(t);null==n||n(),this.cleanupFunctions.delete(t);const o=new Map(r);o.delete(e),this.map.value=o}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},mL=class extends(XO=WO,KO=[GD],YO=[GD],GO=[GD],UO=[YD],VO=[YD],BO=[YD],XO){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i}=r,a=VT(r,["modifiers","type","sensors"]);super(a,t),JT(JO,5,this),rO(this,ZO,JT(JO,8,this)),JT(JO,11,this),rO(this,QO,JT(JO,12,this)),JT(JO,15,this),rO(this,eL,JT(JO,16,this,this.isDragSource?"dragging":"idle")),JT(JO,19,this),this.type=o,this.sensors=i,this.modifiers=n,this.alignment=a.alignment}get isDropping(){return"dropping"===this.status&&this.isDragSource}get isDragging(){return"dragging"===this.status&&this.isDragSource}get isDragSource(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.source)?void 0:t.id)===this.id}};JO=UT(XO),ZO=new WeakMap,QO=new WeakMap,eL=new WeakMap,ZT(JO,4,"type",KO,mL,ZO),ZT(JO,4,"modifiers",YO,mL,QO),ZT(JO,4,"status",GO,mL,eL),ZT(JO,2,"isDropping",UO,mL),ZT(JO,2,"isDragging",VO,mL),ZT(JO,2,"isDragSource",BO,mL),XT(JO,mL);var gL=class extends(sL=WO,aL=[GD],iL=[GD],oL=[GD],nL=[GD],rL=[GD],tL=[YD],sL){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super(VT(r,["accept","collisionDetector","collisionPriority","type"]),t),JT(lL,5,this),rO(this,uL,JT(lL,8,this)),JT(lL,11,this),rO(this,cL,JT(lL,12,this)),JT(lL,15,this),rO(this,dL,JT(lL,16,this)),JT(lL,19,this),rO(this,pL,JT(lL,20,this)),JT(lL,23,this),rO(this,fL,JT(lL,24,this)),JT(lL,27,this),this.accept=n,this.collisionDetector=o,this.collisionPriority=i,this.type=a}accepts(e){const{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};lL=UT(sL),uL=new WeakMap,cL=new WeakMap,dL=new WeakMap,pL=new WeakMap,fL=new WeakMap,ZT(lL,4,"accept",aL,gL,uL),ZT(lL,4,"type",iL,gL,cL),ZT(lL,4,"collisionDetector",oL,gL,dL),ZT(lL,4,"collisionPriority",nL,gL,pL),ZT(lL,4,"shape",rL,gL,fL),ZT(lL,2,"isDropTarget",tL,gL),XT(lL,gL);var bL,vL=class extends lO{constructor(e,t){super(e,t),this.manager=e,this.options=t}},yL=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const t of null!=e?e:[])t.controller=this}onEvent(e){var t;if(!this.activated)if(null==(t=this.constraints)?void 0:t.length)for(const t of this.constraints)t.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},xL=class{constructor(e){this.options=e,rO(this,bL)}set controller(e){nO(this,bL,e),e.signal.addEventListener("abort",(()=>this.abort()))}activate(e){var t;null==(t=tO(this,bL))||t.activate(e)}};bL=new WeakMap;var SL,wL,CL,EL,RL,PL,AL,IL,ML,kL,DL,TL,OL,LL,qL,NL,jL,_L,zL,FL=class extends lO{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},HL=class{constructor(e){this.draggables=new hL,this.droppables=new hL,this.plugins=new dO(e),this.sensors=new dO(e),this.modifiers=new dO(e)}register(e,t){if(e instanceof mL)return this.draggables.register(e.id,e);if(e instanceof gL)return this.droppables.register(e.id,e);if(e.prototype instanceof FL)return this.modifiers.register(e,t);if(e.prototype instanceof vL)return this.sensors.register(e,t);if(e.prototype instanceof lO)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof WO)return e instanceof mL?this.draggables.unregister(e.id,e):e instanceof gL?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof FL)return this.modifiers.unregister(e);if(e.prototype instanceof vL)return this.sensors.unregister(e);if(e.prototype instanceof lO)return this.plugins.unregister(e);throw new Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}};ML=[YD],IL=[GD],AL=[GD],PL=[GD],RL=[GD],EL=[GD],CL=[YD],wL=[YD],SL=[YD];var $L=class{constructor(e){JT(OL,5,this),rO(this,kL),rO(this,DL),rO(this,TL,new ZD(void 0,((e,t)=>e&&t?e.equals(t):e===t))),this.status=new TO,rO(this,LL,JT(OL,8,this,!1)),JT(OL,11,this),rO(this,qL,JT(OL,12,this,null)),JT(OL,15,this),rO(this,NL,JT(OL,16,this,null)),JT(OL,19,this),rO(this,jL,JT(OL,20,this,null)),JT(OL,23,this),rO(this,_L,JT(OL,24,this,[])),JT(OL,27,this),this.position=new CT({x:0,y:0}),rO(this,zL,{x:0,y:0}),nO(this,kL,e)}get shape(){const{current:e,initial:t,previous:r}=tO(this,TL);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?tO(this,TL).current=e:tO(this,TL).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=tO(this,kL).registry.draggables.get(t);return r&&nO(this,DL,r),null!=(e=null!=r?r:tO(this,DL))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=tO(this,kL).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let r={x:e,y:t};for(const e of this.modifiers)r=e.apply(WT($T({},this.snapshot()),{transform:r}));return nO(this,zL,r),r}snapshot(){return _k((()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:tO(this,zL),shape:this.shape?QD(this.shape):null,position:QD(this.position),status:QD(this.status),canceled:this.canceled})))}reset(){Nk((()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,tO(this,TL).reset(),this.position.reset({x:0,y:0}),nO(this,zL,{x:0,y:0}),this.modifiers=[]}))}};OL=UT(null),kL=new WeakMap,DL=new WeakMap,TL=new WeakMap,LL=new WeakMap,qL=new WeakMap,NL=new WeakMap,jL=new WeakMap,_L=new WeakMap,zL=new WeakMap,ZT(OL,2,"shape",ML,$L),ZT(OL,4,"canceled",IL,$L,LL),ZT(OL,4,"activatorEvent",AL,$L,qL),ZT(OL,4,"sourceIdentifier",PL,$L,NL),ZT(OL,4,"targetIdentifier",RL,$L,jL),ZT(OL,4,"modifiers",EL,$L,_L),ZT(OL,2,"source",CL,$L),ZT(OL,2,"target",wL,$L),ZT(OL,2,"transform",SL,$L),XT(OL,$L);var WL={get rendering(){return Promise.resolve()}};function BL(e,t){return"function"==typeof e?e(t):null!=e?e:t}var VL=class{constructor(e){var t;this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach((e=>e.destroy())),this.registry.destroy(),this.collisionObserver.destroy()};const r=null!=e?e:{},n=BL(r.plugins,[]),o=BL(r.sensors,[]),i=BL(r.modifiers,[]),a=null!=(t=r.renderer)?t:WL,s=new vO(this),l=new HL(this);this.registry=l,this.monitor=s,this.renderer=a,this.actions=new $O(this),this.dragOperation=new $L(this),this.collisionObserver=new gO(this),this.plugins=[MO,...n],this.modifiers=i,this.sensors=o;const{destroy:u}=this,c=XD((()=>{var e,t,r;const n=_k((()=>this.dragOperation.modifiers)),o=this.modifiers;n!==o&&n.forEach((e=>e.destroy())),this.dragOperation.modifiers=null!=(r=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map((e=>{const{plugin:t,options:r}=sO(e);return new t(this,r)})))?r:o}));this.destroy=()=>{c(),u()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}},UL=e=>{throw TypeError(e)},GL=(e,t,r)=>t.has(e)||UL("Cannot "+r),YL=(e,t,r)=>(GL(e,t,"read from private field"),t.get(e)),KL=(e,t,r)=>t.has(e)?UL("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),XL=(e,t,r,n)=>(GL(e,t,"write to private field"),t.set(e,r),r),JL=(e,t,r)=>(GL(e,t,"access private method"),r);function ZL(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function QL(e,t){const r=e.getAnimations();if(r.length>0)for(const e of r){if("running"!==e.playState)continue;const{effect:r}=e,n=(ZL(r)?r.getKeyframes():[]).filter(t);if(n.length>0)return[n[n.length-1],e]}return null}function eq(e){const{width:t,height:r,top:n,left:o,bottom:i,right:a}=e.getBoundingClientRect();return{width:t,height:r,top:n,left:o,bottom:i,right:a}}function tq(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function rq(e){return"nodeType"in e}function nq(e){var t,r,n;return e?tq(e)?e:rq(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(n=null==(r=e.ownerDocument)?void 0:r.defaultView)?n:window:window:window}function oq(e){const{Document:t}=nq(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function iq(e){return!(!e||tq(e))&&(e instanceof nq(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function aq(e){return e instanceof nq(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function sq(e){return e?tq(e)?e.document:rq(e)?oq(e)?e:iq(e)||aq(e)?e.ownerDocument:document:document:document}function lq(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(e);return"visible"===r&&"visible"===n&&"visible"===o}function uq(e,t=e.getBoundingClientRect(),r=0){var n,o,i,a,s;let l=t;const{ownerDocument:u}=e,c=null!=(n=u.defaultView)?n:window;let d=e.parentElement;for(;d&&d!==u.documentElement;){if(!lq(d)){const e=d.getBoundingClientRect(),t=r*(e.bottom-e.top),n=r*(e.right-e.left),o=r*(e.bottom-e.top),i=r*(e.right-e.left);l={top:Math.max(l.top,e.top-t),right:Math.min(l.right,e.right+n),bottom:Math.min(l.bottom,e.bottom+o),left:Math.max(l.left,e.left-i),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top}d=d.parentElement}const p=c.visualViewport,f=null!=(o=null==p?void 0:p.offsetTop)?o:0,h=null!=(i=null==p?void 0:p.offsetLeft)?i:0,m=null!=(a=null==p?void 0:p.width)?a:c.innerWidth,g=null!=(s=null==p?void 0:p.height)?s:c.innerHeight,b=r*g,v=r*m;return l={top:Math.max(l.top,f-b),right:Math.min(l.right,h+m+v),bottom:Math.min(l.bottom,f+g+b),left:Math.max(l.left,h-v),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top,l.width<0&&(l.width=0),l.height<0&&(l.height=0),l}function cq(e){return{x:e.clientX,y:e.clientY}}var dq="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function pq(e=document,t=new Set){if(t.has(e))return[];t.add(e);const r=[e];for(const n of Array.from(e.querySelectorAll("iframe, frame")))try{const e=n.contentDocument;e&&!t.has(e)&&r.push(...pq(e,t))}catch(e){}try{const n=e.defaultView;if(n&&n!==window.top){const o=n.parent;o&&o.document&&o.document!==e&&r.push(...pq(o.document,t))}}catch(e){}return r}function fq(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function hq(){var e,t;const r=fq()?window.visualViewport:null;return{x:null!=(e=null==r?void 0:r.offsetLeft)?e:0,y:null!=(t=null==r?void 0:r.offsetTop)?t:0}}function mq(e){return!(!e||!rq(e))&&e instanceof nq(e).ShadowRoot}function gq(e){if(e&&rq(e)){let t=e.getRootNode();if(mq(t))return t;if(t instanceof Document)return t}return sq(e)}function bq(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function vq(e){return"value"in e}function yq(e){return"CANVAS"===e.tagName}function xq(e,{x:t,y:r}){const n=e.elementFromPoint(t,r);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(n)){const{contentDocument:e}=n;if(e){const{left:o,top:i}=n.getBoundingClientRect();return xq(e,{x:t-o,y:r-i})}}return n}var Sq=new WeakMap;var wq=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:r,listener:n,options:o}]=e;t.removeEventListener(r,n,o)}this.entries.clear()}}bind(e,t){const r=Array.isArray(e)?e:[e],n=Array.isArray(t)?t:[t],o=[];for(const e of r)for(const t of n){const{type:r,listener:n,options:i}=t,a=[e,t];e.addEventListener(r,n,i),this.entries.add(a),o.push(a)}return function(){for(const[e,{type:t,listener:r,options:n}]of o)e.removeEventListener(t,r,n)}}};function Cq(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function Eq(e,t){const r=()=>performance.now();let n,o;return function(...i){const a=this;o?(null==n||n(),n=function(e,t){const r=setTimeout(e,t);return()=>clearTimeout(r)}((()=>{e.apply(a,i),o=r()}),t-(r()-o))):(e.apply(a,i),o=r())}}var Rq,Pq=dq?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},Aq=class extends Pq{constructor(e){super((t=>{YL(this,Rq)?e(t,this):XL(this,Rq,!0)})),KL(this,Rq,!1)}};Rq=new WeakMap;var Iq,Mq,kq,Dq,Tq,Oq,Lq,qq,Nq,jq,_q,zq=Array.from({length:100},((e,t)=>t/100)),Fq=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,KL(this,Nq),this.disconnect=()=>{var e,t,r;XL(this,Lq,!0),null==(e=YL(this,kq))||e.disconnect(),null==(t=YL(this,Dq))||t.disconnect(),YL(this,Tq).disconnect(),null==(r=YL(this,Oq))||r.remove()},KL(this,Iq,!0),KL(this,Mq),KL(this,kq),KL(this,Dq),KL(this,Tq),KL(this,Oq),KL(this,Lq,!1),KL(this,qq,Eq((()=>{var e,t,r;const{element:n}=this;if(null==(e=YL(this,Dq))||e.disconnect(),YL(this,Lq)||!YL(this,Iq)||!n.isConnected)return;const o=null!=(t=n.ownerDocument)?t:document,{innerHeight:i,innerWidth:a}=null!=(r=o.defaultView)?r:window,s=n.getBoundingClientRect(),l=uq(n,s),{top:u,left:c,bottom:d,right:p}=l,f=-Math.floor(u),h=-Math.floor(c),m=`${f}px ${-Math.floor(a-p)}px ${-Math.floor(i-d)}px ${h}px`;this.boundingClientRect=s,XL(this,Dq,new IntersectionObserver((e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:ST.intersectionRatio(r,uq(n)))&&YL(this,qq).call(this)}),{threshold:zq,rootMargin:m,root:o})),YL(this,Dq).observe(n),JL(this,Nq,jq).call(this)}),75)),this.boundingClientRect=e.getBoundingClientRect(),XL(this,Iq,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=uq(e,t);return r>0&&n>0}(e,this.boundingClientRect));let n=!0;this.callback=e=>{n&&(n=!1,r.skipInitial)||t(e)};const o=e.ownerDocument;(null==r?void 0:r.debug)&&(XL(this,Oq,document.createElement("div")),YL(this,Oq).style.background="rgba(0,0,0,0.15)",YL(this,Oq).style.position="fixed",YL(this,Oq).style.pointerEvents="none",o.body.appendChild(YL(this,Oq))),XL(this,Tq,new IntersectionObserver((t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=YL(this,Iq);XL(this,Iq,a),(s||l)&&(u&&!a?(null==(r=YL(this,Dq))||r.disconnect(),this.callback(null),null==(n=YL(this,kq))||n.disconnect(),XL(this,kq,void 0),YL(this,Oq)&&(YL(this,Oq).style.visibility="hidden")):YL(this,qq).call(this),a&&!YL(this,kq)&&(XL(this,kq,new Aq(YL(this,qq))),YL(this,kq).observe(e)))}),{threshold:zq,root:o})),YL(this,Iq)&&!r.skipInitial&&this.callback(this.boundingClientRect),YL(this,Tq).observe(e)}};Iq=new WeakMap,Mq=new WeakMap,kq=new WeakMap,Dq=new WeakMap,Tq=new WeakMap,Oq=new WeakMap,Lq=new WeakMap,qq=new WeakMap,Nq=new WeakSet,jq=function(){YL(this,Lq)||(JL(this,Nq,_q).call(this),function(e,t){return e===t||!(!e||!t)&&e.top==t.top&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom}(this.boundingClientRect,YL(this,Mq))||(this.callback(this.boundingClientRect),XL(this,Mq,this.boundingClientRect)))},_q=function(){if(YL(this,Oq)){const{top:e,left:t,width:r,height:n}=uq(this.element);YL(this,Oq).style.overflow="hidden",YL(this,Oq).style.visibility="visible",YL(this,Oq).style.top=`${Math.floor(e)}px`,YL(this,Oq).style.left=`${Math.floor(t)}px`,YL(this,Oq).style.width=`${Math.floor(r)}px`,YL(this,Oq).style.height=`${Math.floor(n)}px`}};var Hq,$q,Wq,Bq,Vq=new WeakMap,Uq=new WeakMap;function Gq(e,t){let r=Vq.get(e);if(!r){const t=new Fq(e,(t=>{const r=Vq.get(e);r&&r.callbacks.forEach((e=>e(t)))}),{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),Vq.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&(Vq.delete(e),r.disconnect())}}var Yq=class{constructor(e,t,r){this.callback=t,KL(this,Hq),KL(this,$q,!1),KL(this,Wq),KL(this,Bq,Eq((e=>{if(!YL(this,$q)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of YL(this,Wq))if(e.target.contains(t)){this.callback(YL(this,Hq).boundingClientRect);break}}),75));const n=function(e){const t=new Set;let r=Cq(e);for(;r;)t.add(r),r=Cq(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=Gq(n,t);r.add(e)}return()=>r.forEach((e=>e()))}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!Uq.has(n)){const e=new AbortController,t=new Set;document.addEventListener("scroll",(e=>t.forEach((t=>t(e)))),{capture:!0,passive:!0,signal:e.signal}),Uq.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=Uq.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),Uq.delete(n))}):()=>{}}(e,YL(this,Bq));XL(this,Wq,n),XL(this,Hq,new Fq(e,t,r)),this.disconnect=()=>{YL(this,$q)||(XL(this,$q,!0),o(),i(),YL(this,Hq).disconnect())}}};function Kq(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function Xq(e){try{Kq(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function Jq(e){return!(!dq||!e)&&e===sq(e).scrollingElement}function Zq(e){var t,r;const n=nq(e),o=Jq(e)?function(e){var t,r,n,o;const{documentElement:i}=sq(e),a=nq(e).visualViewport,s=null!=(t=null==a?void 0:a.width)?t:i.clientWidth,l=null!=(r=null==a?void 0:a.height)?r:i.clientHeight,u=null!=(n=null==a?void 0:a.offsetTop)?n:0,c=null!=(o=null==a?void 0:a.offsetLeft)?o:0;return{top:u,left:c,right:c+s,bottom:u+l,width:s,height:l}}(e):eq(e),i=n.visualViewport,a=Jq(e)?{height:null!=(t=null==i?void 0:i.height)?t:n.innerHeight,width:null!=(r=null==i?void 0:i.width)?r:n.innerWidth}:{height:e.clientHeight,width:e.clientWidth},s={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-a.width,y:e.scrollHeight-a.height}};return{rect:o,position:s,isTop:s.current.y<=0,isLeft:s.current.x<=0,isBottom:s.current.y>=s.max.y,isRight:s.current.x>=s.max.x}}function Qq(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=Zq(e),{x:s,y:l}=null!=t?t:{x:0,y:0},u=!r&&a.current.y+l>0,c=!n&&a.current.y+l<a.max.y,d=!o&&a.current.x+s>0,p=!i&&a.current.x+s<a.max.x;return{top:u,bottom:c,left:d,right:p,x:d||p,y:u||c}}Hq=new WeakMap,$q=new WeakMap,Wq=new WeakMap,Bq=new WeakMap;var eN=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise((e=>this.resolvers.add(e)))}},tN=new eN((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),rN=new eN((e=>setTimeout(e,50))),nN=new Map,oN=nN.clear.bind(nN);function iN(e,t=!1){if(!t)return aN(e);let r=nN.get(e);return r||(r=aN(e),nN.set(e,r),rN.schedule(oN),r)}function aN(e){return nq(e).getComputedStyle(e)}var sN={excludeElement:!0,escapeShadowDOM:!0};function lN(e,t=sN){const{limit:r,excludeElement:n,escapeShadowDOM:o}=t,i=new Set;return e?function t(a){if(null!=r&&i.size>=r)return i;if(!a)return i;if(oq(a)&&null!=a.scrollingElement&&!i.has(a.scrollingElement))return i.add(a.scrollingElement),i;if(o&&mq(a))return t(a.host);if(!iq(a))return aq(a)?t(a.parentElement):i;if(i.has(a))return i;const s=iN(a,!0);if(n&&a===e||function(e,t=iN(e,!0)){const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const n=t[e];return"string"==typeof n&&r.test(n)}))}(a,s)&&i.add(a),function(e,t=iN(e,!0)){return"fixed"===t.position||"sticky"===t.position}(a,s)){const{scrollingElement:e}=a.ownerDocument;return e&&i.add(e),i}return t(a.parentNode)}(e):i}function uN(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=Cq(e);for(;n;){if(n===t)return r;const e=eq(n),{x:o,y:i}=cN(n,e);r.x=r.x+e.left,r.y=r.y+e.top,r.scaleX=r.scaleX*o,r.scaleY=r.scaleY*i,n=Cq(n)}return r}function cN(e,t=eq(e)){const r=Math.round(t.width),n=Math.round(t.height);if(iq(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=iN(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function dN(e){if("none"===e)return null;const[t,r,n="0"]=e.split(" "),o={x:parseFloat(t),y:parseFloat(r),z:parseInt(n,10)};return isNaN(o.x)&&isNaN(o.y)?null:{x:isNaN(o.x)?0:o.x,y:isNaN(o.y)?0:o.y,z:isNaN(o.z)?0:o.z}}function pN(e){var t,r,n,o,i,a,s,l,u;const{scale:c,transform:d,translate:p}=e,f=function(e){if("none"===e)return null;const t=e.split(" "),r=parseFloat(t[0]),n=parseFloat(t[1]);return isNaN(r)&&isNaN(n)?null:{x:isNaN(r)?n:r,y:isNaN(n)?r:n}}(c),h=dN(p),m=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(d);if(!m&&!f&&!h)return null;const g=null!=(t=null==f?void 0:f.x)?t:1,b=null!=(r=null==f?void 0:f.y)?r:1,v=null!=(n=null==h?void 0:h.x)?n:0,y=null!=(o=null==h?void 0:h.y)?o:0,x=null!=(i=null==m?void 0:m.x)?i:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:v+x,y:y+S,z:null!=(u=null==h?void 0:h.z)?u:0,scaleX:g*w,scaleY:b*C}}var fN=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(fN||{}),hN={x:.2,y:.2},mN={x:10,y:10};function gN(e,t,r,n=25,o=hN,i=mN){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=Zq(e),f=uN(e),h=pN(iN(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,b=new ST(l.left*f.scaleX+f.x,l.top*f.scaleY+f.y,l.width*f.scaleX,l.height*f.scaleY),v={x:0,y:0},y={x:0,y:0},x=b.height*o.y,S=b.width*o.x;return(!u||g&&!c)&&s<=b.top+x&&1!==(null==r?void 0:r.y)&&a>=b.left-i.x&&a<=b.right+i.x?(v.y=g?1:-1,y.y=n*Math.abs((b.top+x-s)/x)):(!c||g&&!u)&&s>=b.bottom-x&&-1!==(null==r?void 0:r.y)&&a>=b.left-i.x&&a<=b.right+i.x&&(v.y=g?-1:1,y.y=n*Math.abs((b.bottom-x-s)/x)),(!p||m&&!d)&&a>=b.right-S&&-1!==(null==r?void 0:r.x)&&s>=b.top-i.y&&s<=b.bottom+i.y?(v.x=m?-1:1,y.x=n*Math.abs((b.right-S-a)/S)):(!d||m&&!p)&&a<=b.left+S&&1!==(null==r?void 0:r.x)&&s>=b.top-i.y&&s<=b.bottom+i.y&&(v.x=m?1:-1,y.x=n*Math.abs((b.left+S-a)/S)),{direction:v,speed:y}}function bN(e,t=!1){if("scrollIntoViewIfNeeded"in(r=e)&&"function"==typeof r.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var r;if(!iq(e))return e.scrollIntoView();var n=function(e){const[t]=lN(e,{limit:1});return null!=t?t:null}(e);if(!iq(n))return;const o=iN(n,!0),i=parseInt(o.getPropertyValue("border-top-width")),a=parseInt(o.getPropertyValue("border-left-width")),s=e.offsetTop-n.offsetTop<n.scrollTop,l=e.offsetTop-n.offsetTop+e.clientHeight-i>n.scrollTop+n.clientHeight,u=e.offsetLeft-n.offsetLeft<n.scrollLeft,c=e.offsetLeft-n.offsetLeft+e.clientWidth-a>n.scrollLeft+n.clientWidth,d=s&&!l;(s||l)&&t&&(n.scrollTop=e.offsetTop-n.offsetTop-n.clientHeight/2-i+e.clientHeight/2),(u||c)&&t&&(n.scrollLeft=e.offsetLeft-n.offsetLeft-n.clientWidth/2-a+e.clientWidth/2),(s||l||u||c)&&!t&&e.scrollIntoView(d)}function vN({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function yN(e,t=iN(e).translate,r=!0){if(r){const t=QL(e,(e=>"translate"in e));if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=dN(e);if(t)return t}}}if(t){const e=dN(t);if(e)return e}return{x:0,y:0,z:0}}var xN=new eN((e=>setTimeout(e,0))),SN=new Map,wN=SN.clear.bind(SN);function CN(e,t){const r=function(e){const t=e.ownerDocument;let r=SN.get(t);if(r)return r;r=t.getAnimations(),SN.set(t,r),xN.schedule(wN);const n=r.filter((t=>ZL(t.effect)&&t.effect.target===e));return SN.set(e,n),r}(e).filter((e=>{var r,n;if(ZL(e.effect)){const{target:o}=e.effect;if(null==(n=o&&(null==(r=t.isValidTarget)?void 0:r.call(t,o)))||n)return e.effect.getKeyframes().some((e=>{for(const r of t.properties)if(e[r])return!0}))}})).map((e=>{const{effect:t,currentTime:r}=e,n=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof n&&"number"==typeof r&&r<n?(e.currentTime=n,()=>{e.currentTime=r}):void 0}));if(r.length>0)return()=>r.forEach((e=>null==e?void 0:e()))}var EN=class extends ST{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=uN(e),ignoreTransforms:s,getBoundingClientRect:l=eq}=t,u=CN(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||fq())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=iN(e),b=pN(g),v={x:null!=(r=null==b?void 0:b.scaleX)?r:1,y:null!=(n=null==b?void 0:b.scaleY)?n:1},y=function(e,t){var r;const n=e.getAnimations();let o=null;if(!n.length)return null;for(const e of n){if("running"!==e.playState)continue;const n=ZL(e.effect)?e.effect.getKeyframes():[],i=n[n.length-1];if(!i)continue;const{transform:a,translate:s,scale:l}=i;if(a||s||l){const e=pN({transform:"string"==typeof a&&a?a:t.transform,translate:"string"==typeof s&&s?s:t.translate,scale:"string"==typeof l&&l?l:t.scale});e&&(o=o?{x:o.x+e.x,y:o.y+e.y,z:null!=(r=o.z)?r:e.z,scaleX:o.scaleX*e.scaleX,scaleY:o.scaleY*e.scaleY}:e)}}return o}(e,g);null==u||u(),b&&(d=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left-i-(1-n)*parseFloat(r),l=e.top-a-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width/n:e.width,c=o?e.height/o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(c,b,g.transformOrigin),(s||y)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(o=null==d?void 0:d.width)?o:h,height:null!=(i=null==d?void 0:d.height)?i:m};if(y&&!s&&d){const e=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left+i+(1-n)*parseFloat(r),l=e.top+a+(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width*n:e.width,c=o?e.height*o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(d,y,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,v.x=y.scaleX,v.y=y.scaleY}a&&(s||(f*=a.scaleX,h*=a.scaleX,p*=a.scaleY,m*=a.scaleY),f+=a.x,p+=a.y),super(f,p,h,m),this.scale=v,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function RN(e){return"style"in e&&"object"==typeof e.style&&null!==e.style&&"setProperty"in e.style&&"removeProperty"in e.style&&"function"==typeof e.style.setProperty&&"function"==typeof e.style.removeProperty}var PN=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(RN(r))for(const[n,o]of Object.entries(e)){const e=`${t}${n}`;this.initial.has(e)||this.initial.set(e,r.style.getPropertyValue(e)),r.style.setProperty(e,"string"==typeof o?o:`${o}px`)}}remove(e,t=""){const{element:r}=this;if(RN(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(RN(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function AN(e){return!!e&&(e instanceof nq(e).Element||rq(e)&&e.nodeType===Node.ELEMENT_NODE)}function IN(e){if(!e)return!1;const{KeyboardEvent:t}=nq(e.target);return e instanceof t}var MN={};function kN(e){const t=null==MN[e]?0:MN[e]+1;return MN[e]=t,`${e}-${t}`}var DN=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const r=e.position.current;if(!r)return null;const{id:n}=t;if(!t.shape)return null;if(t.shape.containsPoint(r))return{id:n,value:1/xT.distance(t.shape.center,r),type:DO.PointerIntersection,priority:kO.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:r}=e;if(!t.shape||!(null==r?void 0:r.current))return null;const n=r.current.intersectionArea(t.shape);if(n){const{position:o}=e,i=xT.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:DO.ShapeIntersection,priority:kO.Normal}}return null})(e)},TN=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?ST.from(n.current.boundingRectangle).corners:void 0,a=ST.from(r.shape.boundingRectangle).corners.reduce(((e,t,r)=>{var n;return e+xT.distance(xT.from(t),null!=(n=null==i?void 0:i[r])?n:o.current)}),0),s=a/4;return{id:r.id,value:1/s,type:DO.Collision,priority:kO.Normal}},ON=Object.create,LN=Object.defineProperty,qN=Object.defineProperties,NN=Object.getOwnPropertyDescriptor,jN=Object.getOwnPropertyDescriptors,_N=Object.getOwnPropertySymbols,zN=Object.prototype.hasOwnProperty,FN=Object.prototype.propertyIsEnumerable,HN=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),$N=e=>{throw TypeError(e)},WN=(e,t,r)=>t in e?LN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,BN=(e,t)=>{for(var r in t||(t={}))zN.call(t,r)&&WN(e,r,t[r]);if(_N)for(var r of _N(t))FN.call(t,r)&&WN(e,r,t[r]);return e},VN=(e,t)=>qN(e,jN(t)),UN=(e,t)=>LN(e,"name",{value:t,configurable:!0}),GN=(e,t)=>{var r={};for(var n in e)zN.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&_N)for(var n of _N(e))t.indexOf(n)<0&&FN.call(e,n)&&(r[n]=e[n]);return r},YN=e=>{var t;return[,,,ON(null!=(t=null==e?void 0:e[HN("metadata")])?t:null)]},KN=["class","method","getter","setter","accessor","field","value","get","set"],XN=e=>void 0!==e&&"function"!=typeof e?$N("Function expected"):e,JN=(e,t,r,n,o)=>({kind:KN[e],name:t,metadata:n,addInitializer:e=>r._?$N("Already initialized"):o.push(XN(e||null))}),ZN=(e,t)=>WN(t,HN("metadata"),e[3]),QN=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},ej=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=KN[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&NN(d<4?o:{get[r](){return nj(this,i)},set[r](e){return ij(this,i,e)}},r));d?f&&d<4&&UN(i,(d>2?"set ":d>1?"get ":"")+r):UN(o,r);for(var y=n.length-1;y>=0;y--)u=JN(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>rj(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?nj:aj)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>ij(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?XN(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?$N("Object expected"):(XN(a=s.get)&&(v.get=a),XN(a=s.set)&&(v.set=a),XN(a=s.init)&&g.unshift(a));return d||ZN(e,o),v&&LN(o,r,v),f?4^d?i:v:o},tj=(e,t,r)=>t.has(e)||$N("Cannot "+r),rj=(e,t)=>Object(t)!==t?$N('Cannot use the "in" operator on this value'):e.has(t),nj=(e,t,r)=>(tj(e,t,"read from private field"),r?r.call(e):t.get(e)),oj=(e,t,r)=>t.has(e)?$N("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ij=(e,t,r,n)=>(tj(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),aj=(e,t,r)=>(tj(e,t,"access private method"),r),sj="button",lj="draggable",uj="dnd-kit-description",cj="dnd-kit-announcement",dj={draggable:"To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."},pj={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:r}){if(e)return r?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function fj(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var hj=["dragover","dragmove"],mj=class extends lO{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=uj,announcement:o=cj}={},announcements:i=pj,screenReaderInstructions:a=dj,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:kN(n),u=r?`${o}-${r}`:kN(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>tN.schedule(h),g=function(e,t){let r;const n=()=>{clearTimeout(r),r=setTimeout(e,t)};return n.cancel=()=>clearTimeout(r),n}(m,s),b=Object.entries(i).map((([e,t])=>this.manager.monitor.addEventListener(e,((r,n)=>{const o=p;if(!o)return;const i=null==t?void 0:t(r,n);i&&o.nodeValue!==i&&(f=i,hj.includes(e)?g():(m(),g.cancel()))})))),v=()=>{let e=[];(null==c?void 0:c.isConnected)||(c=function(e,t){const r=document.createElement("div");return r.id=e,r.style.setProperty("display","none"),r.textContent=t,r}(l,a.draggable),e.push(c)),(null==d?void 0:d.isConnected)||(d=function(e){const t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(u),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},y=new Set;function x(){for(const e of y)e()}this.registerEffect((()=>{var e;y.clear();for(const t of this.manager.registry.draggables.value){const r=null!=(e=t.handle)?e:t.element;if(r){c&&d||y.add(v),fj(r)&&!fq()||r.hasAttribute("tabindex")||y.add((()=>r.setAttribute("tabindex","0"))),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||y.add((()=>r.setAttribute("role",sj))),r.hasAttribute("aria-roledescription")||y.add((()=>r.setAttribute("aria-roledescription",lj))),r.hasAttribute("aria-describedby")||y.add((()=>r.setAttribute("aria-describedby",l)));for(const e of["aria-pressed","aria-grabbed"]){const n=String(t.isDragging);r.getAttribute(e)!==n&&y.add((()=>r.setAttribute(e,n)))}const e=String(t.disabled);r.getAttribute("aria-disabled")!==e&&y.add((()=>r.setAttribute("aria-disabled",e)))}}y.size>0&&tN.schedule(x)})),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),b.forEach((e=>e()))}}};var gj,bj,vj,yj,xj,Sj,wj,Cj,Ej,Rj,Pj,Aj=new Map,Ij=class extends(xj=cO,yj=[GD],vj=[YD],bj=[YD],gj=[YD],xj){constructor(e){super(e),QN(wj,5,this),oj(this,Ej),oj(this,Sj,new Set),oj(this,Cj,QN(wj,8,this,new Set)),QN(wj,11,this),this.registerEffect(aj(this,Ej,Rj))}register(e){return nj(this,Sj).add(e),()=>{nj(this,Sj).delete(e)}}addRoot(e){return _k((()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t})),()=>{_k((()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t}))}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return gq(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return gq(null!=(e=null==t?void 0:t.element)?e:null)}get roots(){const{status:e}=this.manager.dragOperation;if(e.initializing||e.initialized){const e=[this.sourceRoot,this.targetRoot].filter((e=>null!=e));return new Set([...e,...this.additionalRoots])}return new Set}};wj=YN(xj),Sj=new WeakMap,Cj=new WeakMap,Ej=new WeakSet,Rj=function(){const{roots:e}=this,t=[];for(const r of e)for(const e of nj(this,Sj))t.push(aj(this,Ej,Pj).call(this,r,e));return()=>{for(const e of t)e()}},Pj=function(e,t){let r=Aj.get(e);r||(r=new Map,Aj.set(e,r));let n=r.get(t);if(!n){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets),0;const o=oq(e)?e.defaultView:e.ownerDocument.defaultView,{CSSStyleSheet:i}=null!=o?o:{};if(!i)return()=>{};const a=new i;a.replaceSync(t),e.adoptedStyleSheets.push(a),n={sheet:a,refCount:0,cleanup:()=>{var n;if(oq(e)||mq(e)&&(null==(n=e.host)?void 0:n.isConnected)){const t=e.adoptedStyleSheets.indexOf(a);-1!==t&&e.adoptedStyleSheets.splice(t,1)}r.delete(t),0===r.size&&Aj.delete(e)}},r.set(t,n)}n.refCount++;let o=!1;return()=>{o||(o=!0,n.refCount--,0===n.refCount&&n.cleanup())}},ej(wj,4,"additionalRoots",yj,Ij,Cj),ej(wj,2,"sourceRoot",vj,Ij),ej(wj,2,"targetRoot",bj,Ij),ej(wj,2,"roots",gj,Ij),ZN(wj,Ij);var Mj="data-dnd-",kj=`${Mj}dropping`,Dj="--dnd-",Tj=`${Mj}dragging`,Oj=`${Mj}placeholder`,Lj=[Tj,Oj,"popover","aria-pressed","aria-grabbing"],qj=["view-transition-name"],Nj=`\n :is(:root,:host) [${Tj}] {\n position: fixed !important;\n pointer-events: none !important;\n touch-action: none;\n z-index: calc(infinity);\n will-change: translate;\n top: var(${Dj}top, 0px) !important;\n left: var(${Dj}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${Dj}width, auto);\n max-width: var(${Dj}width, auto);\n height: var(${Dj}height, auto);\n max-height: var(${Dj}height, auto);\n transition: var(${Dj}transition) !important;\n }\n\n :is(:root,:host) [${Oj}] {\n transition: none;\n }\n\n :is(:root,:host) [${Oj}='hidden'] {\n visibility: hidden;\n }\n\n [${Tj}] * {\n pointer-events: none !important;\n }\n\n [${Tj}]:not([${kj}]) {\n translate: var(${Dj}translate) !important;\n }\n\n [${Tj}][style*='${Dj}scale'] {\n scale: var(${Dj}scale) !important;\n transform-origin: var(${Dj}transform-origin) !important;\n }\n\n @layer {\n :where([${Tj}][popover]) {\n overflow: visible;\n background: unset;\n border: unset;\n margin: unset;\n padding: unset;\n color: inherit;\n\n &:is(input, button) {\n border: revert;\n background: revert;\n }\n }\n }\n [${Tj}]::backdrop, [${Mj}overlay]:not([${Tj}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function jj(e,t="hidden"){return _k((()=>{const{element:r,manager:n}=e;if(!r||!n)return;const o=function(e,t){const r=new Map;for(const n of t)if(n.element&&(e===n.element||e.contains(n.element))){const e=`${Mj}${kN("dom-id")}`;n.element.setAttribute(e,""),r.set(n,e)}return r}(r,n.registry.droppables),i=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",r=e.cloneNode(!0),n=Array.from(e.querySelectorAll(t));return Array.from(r.querySelectorAll(t)).forEach(((e,t)=>{const r=n[t];if(vq(e)&&vq(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),yq(e)&&yq(r)&&r.width>0&&r.height>0){const t=e.getContext("2d");null==t||t.drawImage(r,0,0)}})),r}(r),{remove:s}=a;return function(e,t,r){for(const[n,o]of e){if(!n.element)continue;const e=`[${o}]`,i=t.matches(e)?t:t.querySelector(e);if(n.element.removeAttribute(o),!i)continue;const a=n.element;n.proxy=i,i.removeAttribute(o),Sq.set(a,i),r.push((()=>{Sq.delete(a),n.proxy=void 0}))}}(o,a,i),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(Oj,t)}(a,t),a.remove=()=>{i.forEach((e=>e())),s.call(a)},a}))}function _j(e,t){return e===t||Cq(e)===Cq(t)}function zj(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&AN(t)&&t.hasAttribute("popover")&&requestAnimationFrame((()=>Xq(t)))}function Fj(e){return"TR"===e.tagName}var Hj,$j,Wj,Bj,Vj,Uj,Gj,Yj=250,Kj="ease";var Xj=class extends($j=lO,Hj=[GD],$j){constructor(e,t){super(e,t),oj(this,Vj),oj(this,Bj,QN(Wj,8,this)),QN(Wj,11,this),this.state={initial:{},current:{}};const r=e.registry.plugins.get(Ij),n=null==r?void 0:r.register(Nj);if(n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}this.registerEffect(aj(this,Vj,Uj).bind(this,r)),this.registerEffect(aj(this,Vj,Gj))}};Wj=YN($j),Bj=new WeakMap,Vj=new WeakSet,Uj=function(e){const{overlay:t}=this;if(!t||!e)return;const r=gq(t);return r?e.addRoot(r):void 0},Gj=function(){var e,t,r;const{state:n,manager:o,options:i}=this,{dragOperation:a}=o,{position:s,source:l,status:u}=a;if(u.idle)return n.current={},void(n.initial={});if(!l)return;const{element:c,feedback:d}=l;if(!c||"none"===d||!u.initialized||u.initializing)return;const{initial:p}=n,f=null!=(e=this.overlay)?e:c,h=uN(f),m=uN(c),g=!_j(c,f),b=new EN(c,{frameTransform:g?m:null,ignoreTransforms:!g}),v=m.scaleX/h.scaleX,y=m.scaleY/h.scaleY;let{width:x,height:S,top:w,left:C}=b;g&&(x/=v,S/=y);const E=new PN(f),{transition:R,translate:P,boxSizing:A,paddingBlockStart:I,paddingBlockEnd:M,paddingInlineStart:k,paddingInlineEnd:D,borderInlineStartWidth:T,borderInlineEndWidth:O,borderBlockStartWidth:L,borderBlockEndWidth:q}=iN(c),N="clone"===d,j="content-box"===A,_=j?parseInt(k)+parseInt(D)+parseInt(T)+parseInt(O):0,z=j?parseInt(I)+parseInt(M)+parseInt(L)+parseInt(q):0,F="move"===d||this.overlay?null:jj(l,N?"clone":"hidden"),H=_k((()=>IN(o.dragOperation.activatorEvent)));if("none"!==P){const e=dN(P);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=_k((()=>s.current));p.transformOrigin={x:(e.x-C*h.scaleX-h.x)/(x*h.scaleX),y:(e.y-w*h.scaleY-h.y)/(S*h.scaleY)}}const{transformOrigin:$}=p,W=w*h.scaleY+h.y,B=C*h.scaleX+h.x;if(!p.coordinates&&(p.coordinates={x:B,y:W},1!==v||1!==y)){const{scaleX:e,scaleY:t}=m,{x:r,y:n}=$;p.coordinates.x+=(x*e-x)*r,p.coordinates.y+=(S*t-S)*n}p.dimensions||(p.dimensions={width:x,height:S}),p.frameTransform||(p.frameTransform=h);const V=p.coordinates.x-B,U=p.coordinates.y-W,G=(p.dimensions.width*p.frameTransform.scaleX-x*h.scaleX)*$.x,Y=(p.dimensions.height*p.frameTransform.scaleY-S*h.scaleY)*$.y,K={x:V/h.scaleX+G,y:U/h.scaleY+Y},X=C+K.x,J=w+K.y;f.setAttribute(Tj,"true");const Z=_k((()=>a.transform)),Q=null!=(t=p.translate)?t:{x:0,y:0},ee=Z.x*h.scaleX+Q.x,te=Z.y*h.scaleY+Q.y,re=hq();if(E.set({width:x-_,height:S-z,top:J+re.y,left:X+re.x,translate:`${ee}px ${te}px 0`,transition:R?`${R}, translate 0ms linear`:"",scale:g?`${v} ${y}`:"","transform-origin":`${100*$.x}% ${100*$.y}%`},Dj),F&&(c.insertAdjacentElement("afterend",F),null==i?void 0:i.rootElement)){("function"==typeof i.rootElement?i.rootElement(l):i.rootElement).appendChild(c)}let ne,oe,ie;Kq(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),Xq(f),f.addEventListener("beforetoggle",zj));const ae=(se={placeholder:F,element:c,feedbackElement:f,frameTransform:h,transformOrigin:$,width:x,height:S,top:w,left:C,widthOffset:_,heightOffset:z,delta:K,styles:E,dragOperation:a,getElementMutationObserver:()=>ne,getSavedCellWidths:()=>ie,setSavedCellWidths:e=>{ie=e}},new ResizeObserver((()=>{var e,t;const r=new EN(se.placeholder,{frameTransform:se.frameTransform,ignoreTransforms:!0}),n=null!=(e=se.transformOrigin)?e:{x:1,y:1},o=(se.width-r.width)*n.x+se.delta.x,i=(se.height-r.height)*n.y+se.delta.y,a=hq();if(se.styles.set({width:r.width-se.widthOffset,height:r.height-se.heightOffset,top:se.top+i+a.y,left:se.left+o+a.x},Dj),null==(t=se.getElementMutationObserver())||t.takeRecords(),Fj(se.element)&&Fj(se.placeholder)){const e=Array.from(se.element.cells),t=Array.from(se.placeholder.cells);se.getSavedCellWidths()||se.setSavedCellWidths(e.map((e=>e.style.width)));for(const[r,n]of e.entries()){const e=t[r];n.style.width=`${e.getBoundingClientRect().width}px`}}se.dragOperation.shape=new EN(se.feedbackElement)})));var se;const le=new EN(f);_k((()=>a.shape=le));const ue=nq(f),ce=e=>{this.manager.actions.stop({event:e})},de=bq(ue);H&&ue.addEventListener("resize",ce),"idle"===_k((()=>l.status))&&requestAnimationFrame((()=>l.status="dragging")),F&&(ae.observe(F),ne=function(e,t,r){const n=new MutationObserver((n=>{let o=!1;for(const r of n){if(r.target!==e){o=!0;continue}if("attributes"!==r.type)continue;const n=r.attributeName;if(n.startsWith("aria-")||Lj.includes(n))continue;const i=e.getAttribute(n);if("style"===n){if(RN(e)&&RN(t)){const r=e.style;for(const e of Array.from(t.style))""===r.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(r)){if(qj.includes(e)||e.startsWith(Dj))continue;const n=r.getPropertyValue(e);t.style.setProperty(e,n)}}}else null!==i?t.setAttribute(n,i):t.removeAttribute(n)}o&&r&&(t.innerHTML=e.innerHTML)}));return n.observe(e,{attributes:!0,subtree:!0,childList:!0}),n}(c,F,N),oe=function(e,t,r){const n=new MutationObserver((n=>{for(const o of n)if(0!==o.addedNodes.length)for(const n of Array.from(o.addedNodes)){if(n.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void Xq(r);if(n.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void Xq(r)}}));return n.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),n}(c,F,f));const pe=null==(r=o.dragOperation.source)?void 0:r.id,fe=()=>{var e;if(!H||null==pe)return;const t=o.registry.draggables.get(pe),r=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;iq(r)&&r.focus()},he=()=>{var e;if(null==ne||ne.disconnect(),null==oe||oe.disconnect(),ae.disconnect(),ue.removeEventListener("resize",ce),Kq(f)&&(f.removeEventListener("beforetoggle",zj),f.removeAttribute("popover")),f.removeAttribute(Tj),E.reset(),ie&&Fj(c)){const t=Array.from(c.cells);for(const[r,n]of t.entries())n.style.width=null!=(e=ie[r])?e:""}l.status="idle";const t=null!=n.current.translate;F&&(t||F.parentElement!==f.parentElement)&&f.isConnected&&F.replaceWith(f),null==F||F.remove()},me=null==i?void 0:i.dropAnimation,ge=this,be=XD((()=>{var e;const{transform:t,status:r}=a;if((t.x||t.y||n.current.translate)&&r.dragging){const r=null!=(e=p.translate)?e:{x:0,y:0},o={x:t.x/h.scaleX+r.x,y:t.y/h.scaleY+r.y},i=n.current.translate,s=_k((()=>a.modifiers)),l=_k((()=>{var e;return null==(e=a.shape)?void 0:e.current})),u=H&&!de?"250ms cubic-bezier(0.25, 1, 0.5, 1)":"0ms linear";if(E.set({transition:`${R}, translate ${u}`,translate:`${o.x}px ${o.y}px 0`},Dj),null==ne||ne.takeRecords(),l&&l!==le&&i&&!s.length){const e=xT.delta(o,i);a.shape=ST.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new EN(f);n.current.translate=o}}),(function(){if(a.status.dropped){this.dispose(),l.status="dropping";const e=void 0!==ge.dropAnimation?ge.dropAnimation:me;let t=n.current.translate;const r=null!=t;if(t||c===f||(t={x:0,y:0}),!t||null===e)return void he();o.renderer.rendering.then((()=>{!function(e){var t,r,n,o;const{animation:i}=e;if("function"==typeof i){const t=i({element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});return void Promise.resolve(t).then((()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)}))}const{duration:a=Yj,easing:s=Kj}=null!=i?i:{};Xq(e.feedbackElement);const[,l]=null!=(t=QL(e.feedbackElement,(e=>"translate"in e)))?t:[];null==l||l.pause();const u=null!=(r=e.placeholder)?r:e.element,c={frameTransform:_j(e.feedbackElement,u)?null:void 0},d=new EN(e.feedbackElement,c),p=null!=(n=dN(iN(e.feedbackElement).translate))?n:e.translate,f=new EN(u,c),h=ST.delta(d,f,e.alignment),m=p.x-h.x,g=p.y-h.y,b=Math.round(d.intrinsicHeight)!==Math.round(f.intrinsicHeight)?{minHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`],maxHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`]}:{},v=Math.round(d.intrinsicWidth)!==Math.round(f.intrinsicWidth)?{minWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`],maxWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`]}:{};e.styles.set({transition:e.transition},Dj),e.feedbackElement.setAttribute(kj,""),null==(o=e.getElementMutationObserver())||o.takeRecords(),vN({element:e.feedbackElement,keyframes:VN(BN(BN({},b),v),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:bq(nq(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then((()=>{e.feedbackElement.removeAttribute(kj),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)}))}({element:c,feedbackElement:f,placeholder:F,translate:t,moved:r,transition:R,alignment:l.alignment,styles:E,animation:null!=e?e:void 0,getElementMutationObserver:()=>ne,cleanup:he,restoreFocus:fe})}))}}));return()=>{he(),be()}},ej(Wj,4,"overlay",Hj,Xj,Bj),ZN(Wj,Xj),Xj.configure=aO(Xj);var Jj,Zj,Qj,e_,t_,r_,n_,o_=Xj,i_=!0;Qj=[GD],e_=fN.Forward,Jj=[GD],Zj=fN.Reverse;var a_=class{constructor(){oj(this,r_,QN(t_,8,this,i_)),QN(t_,11,this),oj(this,n_,QN(t_,12,this,i_)),QN(t_,15,this)}isLocked(e){return e!==fN.Idle&&(null==e?this[fN.Forward]===i_&&this[fN.Reverse]===i_:this[e]===i_)}unlock(e){e!==fN.Idle&&(this[e]=false)}};t_=YN(null),r_=new WeakMap,n_=new WeakMap,ej(t_,4,e_,Qj,a_,r_),ej(t_,4,Zj,Jj,a_,n_),ZN(t_,a_);var s_,l_,u_,c_,d_,p_,f_=[fN.Forward,fN.Reverse],h_=class{constructor(){this.x=new a_,this.y=new a_}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},m_=class extends lO{constructor(e){super(e);const t=Vk(new h_);let r=null;this.signal=t,tD((()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new h_);const{delta:o}=e.dragOperation.position;if(r){const e={x:g_(o.x,r.x),y:g_(o.y,r.y)},n=t.peek();Nk((()=>{for(const t of kT)for(const r of f_)e[t]===r&&n[t].unlock(r);t.value=n}))}r=o}))}get current(){return this.signal.peek()}};function g_(e,t){return Math.sign(e-t)}var b_=class extends(l_=cO,s_=[GD],l_){constructor(e){super(e),oj(this,c_,QN(u_,8,this,!1)),QN(u_,11,this),oj(this,d_),oj(this,p_,(()=>{if(!nj(this,d_))return;const{element:e,by:t}=nj(this,d_);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)})),this.scroll=e=>{var t;if(this.disabled)return!1;const r=this.getScrollableElements();if(!r)return ij(this,d_,void 0),!1;const{position:n}=this.manager.dragOperation,o=null==n?void 0:n.current;if(o){const{by:n}=null!=e?e:{},i=n?{x:v_(n.x),y:v_(n.y)}:void 0,a=i?void 0:this.scrollIntentTracker.current;if(null==a?void 0:a.isLocked())return!1;for(const e of r){const r=Qq(e,n);if(r.x||r.y){const{speed:r,direction:s}=gN(e,o,i);if(a)for(const e of kT)a[e].isLocked(s[e])&&(r[e]=0,s[e]=0);if(s.x||s.y){const{x:o,y:i}=null!=n?n:s,a=o*r.x,l=i*r.y;if(a||l){const r=null==(t=nj(this,d_))?void 0:t.by;if(this.autoScrolling&&r){if(r.x&&!a||r.y&&!l)continue}return ij(this,d_,{element:e,by:{x:a,y:l}}),tN.schedule(nj(this,p_)),!0}}}}}return ij(this,d_,void 0),!1};let t=null,r=null;const n=VD((()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=xq(gq(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t})),o=VD((()=>{const t=n.value,{documentElement:o}=sq(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=lN(n,{excludeElement:!1});return r=e,e}}if(t){const e=lN(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null}),UD);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new m_(e),this.destroy=e.monitor.addEventListener("dragmove",(t=>{!this.disabled&&!t.defaultPrevented&&IN(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()}))}};function v_(e){return e>0?fN.Forward:e<0?fN.Reverse:fN.Idle}u_=YN(l_),c_=new WeakMap,d_=new WeakMap,p_=new WeakMap,ej(u_,4,"autoScrolling",s_,b_,c_),ZN(u_,b_);var y_,x_=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise((e=>this.resolvers.add(e)))}}((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),S_=class extends lO{constructor(e,t){super(e);const r=e.registry.plugins.get(b_);if(!r)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=tD((()=>{if(this.disabled)return;const{position:t,status:n}=e.dragOperation;if(n.dragging){if(r.scroll()){r.autoScrolling=!0;const e=setInterval((()=>x_.schedule(r.scroll)),10);return()=>{clearInterval(e)}}r.autoScrolling=!1}}))}},w_={capture:!0,passive:!0},C_=class extends cO{constructor(e){super(e),oj(this,y_),this.handleScroll=()=>{null==nj(this,y_)&&ij(this,y_,setTimeout((()=>{this.manager.collisionObserver.forceUpdate(!1),ij(this,y_,void 0)}),50))};const{dragOperation:t}=this.manager;this.destroy=tD((()=>{var e,r,n;if(t.status.dragging){const o=null!=(n=null==(r=null==(e=t.source)?void 0:e.element)?void 0:r.ownerDocument)?n:document;return o.addEventListener("scroll",this.handleScroll,w_),()=>{o.removeEventListener("scroll",this.handleScroll,w_)}}}))}};y_=new WeakMap;function E_(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var R_,P_=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var r;const n=null!=(r=t.handle)?r:t.element;return e.target!==n}}),A_=class extends vL{constructor(e,t){super(e),this.manager=e,this.options=t,oj(this,R_,[]),this.listeners=new wq,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!AN(e.target))return;if(t.disabled)return;const{keyboardCodes:n=P_.keyboardCodes,preventActivation:o=P_.preventActivation}=null!=r?r:{};n.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==o?void 0:o(e,t))||this.handleStart(e,t,r))}}bind(e,t=this.options){const r=tD((()=>{var r;const n=null!=(r=e.handle)?r:e.element,o=r=>{IN(r)&&this.handleSourceKeyDown(r,e,t)};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}}));return r}handleStart(e,t,r){const{element:n}=t;if(!n)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),bN(n);const{center:o}=new EN(n);if(this.manager.actions.start({event:e,coordinates:{x:o.x,y:o.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const i=sq(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];nj(this,R_).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=P_.keyboardCodes}=null!=r?r:{};if(k_(e,[...n.end,...n.cancel])){e.preventDefault();const t=k_(e,n.cancel);this.handleEnd(e,t)}else k_(e,n.up)?this.handleMove("up",e):k_(e,n.down)&&this.handleMove("down",e),k_(e,n.left)?this.handleMove("left",e):k_(e,n.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var r,n;const{shape:o}=this.manager.dragOperation,i=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(n=null==(r=this.options)?void 0:r.offset)?n:P_.offset;if("number"==typeof s&&(s={x:s,y:s}),o){switch(e){case"up":a={x:0,y:-s.y*i};break;case"down":a={x:0,y:s.y*i};break;case"left":a={x:-s.x*i,y:0};break;case"right":a={x:s.x*i,y:0}}(a.x||a.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:a}))}}sideEffects(){const e=this.manager.registry.plugins.get(S_);!1===(null==e?void 0:e.disabled)&&(e.disable(),nj(this,R_).push((()=>{e.enable()})))}cleanup(){nj(this,R_).forEach((e=>e())),ij(this,R_,[])}destroy(){this.cleanup(),this.listeners.clear()}};R_=new WeakMap,A_.configure=aO(A_),A_.defaults=P_;var I_,M_=A_;function k_(e,t){return t.includes(e.code)}var D_,T_;I_=new WeakMap;D_=new WeakMap,T_=new WeakMap;var O_=class{};O_.Delay=class extends xL{constructor(){super(...arguments),oj(this,D_),oj(this,T_)}onEvent(e){switch(e.type){case"pointerdown":ij(this,T_,cq(e)),ij(this,D_,setTimeout((()=>this.activate(e)),this.options.value));break;case"pointermove":if(!nj(this,T_))return;const{x:t,y:r}=cq(e);ET({x:t-nj(this,T_).x,y:r-nj(this,T_).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){nj(this,D_)&&(clearTimeout(nj(this,D_)),ij(this,T_,void 0),ij(this,D_,void 0))}},O_.Distance=class extends xL{constructor(){super(...arguments),oj(this,I_)}onEvent(e){switch(e.type){case"pointerdown":ij(this,I_,cq(e));break;case"pointermove":if(!nj(this,I_))return;const{x:t,y:r}=cq(e),n={x:t-nj(this,I_).x,y:r-nj(this,I_).y},{tolerance:o}=this.options;if(o&&ET(n,o))return void this.abort();ET(n,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){ij(this,I_,void 0)}};var L_,q_=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!AN(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?[new O_.Delay({value:250,tolerance:5})]:function(e){if(!AN(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(r=e).hasAttribute("contenteditable")&&"false"!==r.getAttribute("contenteditable");var r}(o)&&!e.defaultPrevented?[new O_.Delay({value:200,tolerance:0})]:[new O_.Delay({value:200,tolerance:10}),new O_.Distance({value:5})]},preventActivation(e,t){var r;const{target:n}=e;return n!==t.element&&(n!==t.handle&&(!!AN(n)&&(!(null==(r=t.handle)?void 0:r.contains(n))&&Boolean(n.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ')))))}}),N_=class extends vL{constructor(e,t){super(e),this.manager=e,this.options=t,oj(this,L_,new Set),this.listeners=new wq,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,r=this.options){const{activationConstraints:n=q_.activationConstraints}=null!=r?r:{};return"function"==typeof n?n(e,t):n}bind(e,t=this.options){const r=tD((()=>{var r;const n=new AbortController,{signal:o}=n,i=r=>{(function(e){if(!e)return!1;const{PointerEvent:t}=nq(e.target);return e instanceof t})(r)&&this.handlePointerDown(r,e,t)};let a=[null!=(r=e.handle)?r:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(H_(e.ownerDocument.defaultView),e.addEventListener("pointerdown",i,{signal:o}));return()=>n.abort()}));return r}handlePointerDown(e,t,r){if(this.disabled||!e.isPrimary||0!==e.button||!AN(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:n=q_.preventActivation}=null!=r?r:{};if(null==n?void 0:n(e,t))return;const{target:o}=e,i=iq(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=uN(t.element),{x:s,y:l}=cq(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const u=this.activationConstraints(e,t,r);e.sensor=this;const c=new yL(u,(e=>this.handleStart(t,e)));c.signal.onabort=()=>this.handleCancel(e),c.onEvent(e),this.controller=c;const d=pq(),p=this.listeners.bind(d,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"pointercancel",listener:this.handleCancel},{type:"dragstart",listener:i?this.handleCancel:__,options:{capture:!0}}]);nj(this,L_).add((()=>{p(),this.initialCoordinates=void 0}))}handlePointerMove(e,t){var r,n;if(!1!==(null==(r=this.controller)?void 0:r.activated)){if(this.manager.dragOperation.status.dragging){const r=cq(e),n=uN(t.element);r.x=r.x*n.scaleX+n.x,r.y=r.y*n.scaleY+n.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=r,tN.schedule(this.handleMove)}}else null==(n=this.controller)||n.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const r=!t.initialized;this.manager.actions.stop({event:e,canceled:r})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:r,initialCoordinates:n}=this;if(!n||!r.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(r.actions.start({coordinates:n,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const o=sq(t.target).body;o.setPointerCapture(t.pointerId);const i=AN(t.target)?[t.target,o]:o,a=this.listeners.bind(i,[{type:"touchmove",listener:__,options:{passive:!1}},{type:"click",listener:__},{type:"contextmenu",listener:__},{type:"keydown",listener:this.handleKeyDown}]);nj(this,L_).add(a)}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){this.latest={event:void 0,coordinates:void 0},nj(this,L_).forEach((e=>e())),nj(this,L_).clear()}destroy(){this.cleanup(),this.listeners.clear()}};L_=new WeakMap,N_.configure=aO(N_),N_.defaults=q_;var j_=N_;function __(e){e.preventDefault()}function z_(){}var F_=new WeakSet;function H_(e){e&&!F_.has(e)&&(e.addEventListener("touchmove",z_,{capture:!1,passive:!1}),F_.add(e))}var $_,W_,B_,V_,U_,G_,Y_,K_,X_,J_,Z_,Q_,ez,tz,rz,nz,oz,iz,az={modifiers:[],plugins:[mj,S_,class extends lO{constructor(e,t){super(e,t),this.manager=e;const r=VD((()=>{var e;return sq(null==(e=this.manager.dragOperation.source)?void 0:e.element)}));this.destroy=tD((()=>{var e;const{dragOperation:t}=this.manager,{cursor:n="grabbing",nonce:o}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=r.value,t=e.createElement("style");return o&&t.setAttribute("nonce",o),t.textContent=`* { cursor: ${n} !important; }`,e.head.appendChild(t),()=>t.remove()}}))}},o_,class extends lO{constructor(e,t){super(e,t),this.manager=e,this.destroy=tD((()=>{var e;const{dragOperation:t}=this.manager,{nonce:r}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=document.createElement("style");return r&&e.setAttribute("nonce",r),e.textContent="* { user-select: none !important; -webkit-user-select: none !important; }",document.head.appendChild(e),E_(),document.addEventListener("selectionchange",E_,{capture:!0}),()=>{document.removeEventListener("selectionchange",E_,{capture:!0}),e.remove()}}}))}}],sensors:[j_,M_]},sz=class extends VL{constructor(e={}){const t=BL(e.plugins,az.plugins),r=BL(e.sensors,az.sensors),n=BL(e.modifiers,az.modifiers);super(VN(BN({},e),{plugins:[C_,b_,Ij,...t],sensors:r,modifiers:n}))}},lz=class extends(V_=mL,B_=[GD],W_=[GD],$_=[GD],V_){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i,feedback:a="default"}=r,s=GN(r,["element","effects","handle","feedback"]);super(BN({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map(sO))?t:[...r.sensors]).map((e=>{const t=e instanceof vL?e:r.registry.register(e.plugin),n=e instanceof vL?void 0:e.options;return t.bind(this,n)}));return function(){n.forEach((e=>e()))}}]},s),t),oj(this,G_,QN(U_,8,this)),QN(U_,11,this),oj(this,Y_,QN(U_,12,this)),QN(U_,15,this),oj(this,K_,QN(U_,16,this)),QN(U_,19,this),this.element=n,this.handle=i,this.feedback=a}};U_=YN(V_),G_=new WeakMap,Y_=new WeakMap,K_=new WeakMap,ej(U_,4,"handle",B_,lz,G_),ej(U_,4,"element",W_,lz,Y_),ej(U_,4,"feedback",$_,lz,K_),ZN(U_,lz);var uz=class extends(Z_=gL,J_=[GD],X_=[GD],Z_){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=GN(r,["element","effects"]);const{collisionDetector:a=DN}=i,s=e=>{const{manager:t,element:r}=this;if(!r||null===e)return void(this.shape=void 0);if(!t)return;const n=new EN(r),o=_k((()=>this.shape));return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=Vk(!1);super(VN(BN({},i),{collisionDetector:a,effects:()=>[...o(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:r}=t,{source:n}=r;l.value=Boolean(n&&r.status.initialized&&e&&!this.disabled&&this.accepts(n))},()=>{const{element:e}=this;if(l.value&&e){const t=new Yq(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{var e;if(null==(e=this.manager)?void 0:e.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),oj(this,oz),oj(this,ez,QN(Q_,8,this)),QN(Q_,11,this),oj(this,iz,QN(Q_,12,this)),QN(Q_,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){ij(this,oz,e,nz)}get element(){var e;return null!=(e=this.proxy)?e:nj(this,oz,rz)}};function cz(e){var t;if(null!=e)return function(e){return null!=e&&"object"==typeof e&&"current"in e}(e)?null!=(t=e.current)?t:void 0:e}Q_=YN(Z_),ez=new WeakMap,oz=new WeakSet,iz=new WeakMap,tz=ej(Q_,20,"#element",J_,oz,ez),rz=tz.get,nz=tz.set,ej(Q_,4,"proxy",X_,uz,iz),ZN(Q_,uz);var dz="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?L:k;function pz(){const e=P(0)[1];return O((()=>{e((e=>e+1))}),[e])}function fz(e,t=[],r=!1){const n=A(e);return n.current=e,function(e,t=!1){const r=A(e.peek()),n=A(!1),o=pz();return dz((()=>tD((()=>{const i=r.current,a=e.value;if(i!==a){if(r.current=a,!n.current)return;t?W(o):o()}}))),[e,t,o]),{get value(){return n.current=!0,e.peek()}}}(R((()=>VD((()=>n.current()))),t),r)}function hz(e,t){const r=A(new Map),n=pz();return dz((()=>{if(e)return tD((()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=_k((()=>n[1])),u=e[s];l!==u&&(i=!0,r.current.set(s,u),a=null!=(o=null==t?void 0:t(s,l,u))&&o)}i&&(a?W(n):n())}));r.current.clear()}),[e]),R((()=>e?new Proxy(e,{get(e,t){const n=e[t];return r.current.set(t,n),n}}):e),[e])}function mz(e,t){e()}function gz(e){const t=A(e);return dz((()=>{t.current=e}),[e]),t}function bz(e,t,r=k,n=Object.is){const o=A(e);r((()=>{const r=o.current;n(e,r)||(o.current=e,t(e,r))}),[t,e])}function vz(e,t){const r=A(cz(e));dz((()=>{const n=cz(e);n!==r.current&&(r.current=n,t(n))}))}var yz=Object.getOwnPropertySymbols,xz=Object.prototype.hasOwnProperty,Sz=Object.prototype.propertyIsEnumerable,wz=new sz,Cz=I(wz),Ez=N(q((({children:e},t)=>{const[r,n]=P(0),o=A(null),i=A(null),a=R((()=>({renderer:{get rendering(){var e;return null!=(e=o.current)?e:Promise.resolve()}},trackRendering(e){o.current||(o.current=new Promise((e=>{i.current=e}))),_((()=>{e(),n((e=>e+1))}))}})),[]);return dz((()=>{var e;null==(e=i.current)||e.call(i),o.current=null}),[e,r]),z(t,(()=>a)),null}))),Rz=[void 0,UD];function Pz(e){var t=e,{children:r,onCollision:n,onBeforeDragStart:o,onDragStart:i,onDragMove:a,onDragOver:s,onDragEnd:l}=t,u=((e,t)=>{var r={};for(var n in e)xz.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&yz)for(var n of yz(e))t.indexOf(n)<0&&Sz.call(e,n)&&(r[n]=e[n]);return r})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const c=A(null),{plugins:d,modifiers:p,sensors:f}=u,h=BL(d,az.plugins),m=BL(f,az.sensors),g=BL(p,az.modifiers),b=gz(o),v=gz(i),y=gz(s),x=gz(a),S=gz(l),w=gz(n),C=function(e){const t=A(null);t.current||(t.current=e());return j((()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()}),[]),t.current}((()=>{var e;return null!=(e=u.manager)?e:new sz(u)}));return k((()=>{if(!c.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=c.current,{monitor:r}=C;C.renderer=e;const n=[r.addEventListener("beforedragstart",(e=>{const r=b.current;r&&t((()=>r(e,C)))})),r.addEventListener("dragstart",(e=>{var t;return null==(t=v.current)?void 0:t.call(v,e,C)})),r.addEventListener("dragover",(e=>{const r=y.current;r&&t((()=>r(e,C)))})),r.addEventListener("dragmove",(e=>{const r=x.current;r&&t((()=>r(e,C)))})),r.addEventListener("dragend",(e=>{const r=S.current;r&&t((()=>r(e,C)))})),r.addEventListener("collision",(e=>{var t;return null==(t=w.current)?void 0:t.call(w,e,C)}))];return()=>n.forEach((e=>e()))}),[C]),bz(h,(()=>C&&(C.plugins=h)),...Rz),bz(m,(()=>C&&(C.sensors=m)),...Rz),bz(g,(()=>C&&(C.modifiers=g)),...Rz),rr.jsxs(Cz.Provider,{value:C,children:[rr.jsx(Ez,{ref:c,children:r}),r]})}function Az(){return T(Cz)}function Iz({children:e,className:t,dropAnimation:r,style:n,tag:o,disabled:i}){var a;const s=A(null),l=Az(),u=null!=(a=fz((()=>null==l?void 0:l.dragOperation.source),[l]).value)?a:null,c="function"==typeof i?i(u):i;k((()=>{if(!s.current||!l||c)return;const e=l.plugins.find((e=>e instanceof o_));return e?(e.overlay=s.current,()=>{e.overlay=void 0}):void 0}),[l,c]),k((()=>{if(!l)return;const e=l.plugins.find((e=>e instanceof o_));return e?(e.dropAnimation=r,()=>{e.dropAnimation=void 0}):void 0}),[l,r]);const d=R((()=>{if(!l)return null;const e=new Proxy(l.registry,{get:(e,t)=>"register"===t||"unregister"===t?Mz:e[t]});return new Proxy(l,{get:(t,r)=>"registry"===r?e:t[r]})}),[l]);return rr.jsx(Cz.Provider,{value:d,children:S(o||"div",{ref:s,className:t,style:n,"data-dnd-overlay":!0},function(){if(!u||c)return null;if("function"==typeof e)return rr.jsx(kz,{source:u,children:e});return e}())})}function Mz(){return()=>{}}function kz({children:e,source:t}){return e(hz(t))}var Dz,Tz,Oz,Lz,qz,Nz=Object.create,jz=Object.defineProperty,_z=Object.getOwnPropertyDescriptor,zz=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Fz=e=>{throw TypeError(e)},Hz=["class","method","getter","setter","accessor","field","value","get","set"],$z=e=>void 0!==e&&"function"!=typeof e?Fz("Function expected"):e,Wz=(e,t,r,n,o)=>({kind:Hz[e],name:t,metadata:n,addInitializer:e=>r._?Fz("Already initialized"):o.push($z(e||null))}),Bz=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=Hz[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,_z(o,r)),h=n.length-1;h>=0;h--)(l=Wz(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,$z(a)&&(f[d]=a);return f&&jz(o,r,f),o},Vz=(e,t,r)=>t.has(e)||Fz("Cannot "+r),Uz=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},Gz=class extends(Oz=ZD,Tz=[YD],Dz=[YD],Oz){constructor(e){var t,r,n;super(Uz.from(e),((e,t)=>Uz.equals(e,t))),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(qz,5,this),t=this,n=0,(r=Lz).has(t)?Fz("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return Uz.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=Uz.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(Vz(a=this,s=Lz,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);Nk((()=>{((e,t,r)=>{Vz(e,t,"write to private field"),t.set(e,r)})(this,Lz,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(Uz.from(e)),this.velocity={x:0,y:0}}};qz=(e=>{var t;return[,,,Nz(null!=(t=null==e?void 0:e[zz("metadata")])?t:null)]})(Oz),Lz=new WeakMap,Bz(qz,2,"delta",Tz,Gz),Bz(qz,2,"direction",Dz,Gz),((e,t)=>{((e,t,r)=>{t in e?jz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,zz("metadata"),e[3])})(qz,Gz);var Yz=(e=>(e.Horizontal="x",e.Vertical="y",e))(Yz||{});function Kz(e){const t=Az();k((()=>{if(!t)return;const r=Object.entries(e).reduce(((e,[r,n])=>{if(n){const o=r.replace(/^on/,"").toLowerCase(),i=t.monitor.addEventListener(o,n);e.push(i)}return e}),[]);return()=>r.forEach((e=>null==e?void 0:e()))}),[t,e])}Object.values(Yz);const Xz=()=>{const[e,t]=P(!1);return Kz({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?rr.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},Jz=()=>{const{flags:e}=aM(rM,(e=>e.env)),t=aM(rM,(e=>e.baseProps.layout));return!e.isEnabled("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")||void 0===t.accessibleHeader||t.accessibleHeader},Zz=(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}),Qz=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),eF=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),tF=e=>e.atTop?2:1,rF=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],nF=e=>e?.setAttribute("tabIndex","0"),oF=e=>e?.setAttribute("tabIndex","-1"),iF=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(oF)},aF=e=>{e?.focus(),nF(e)},sF=e=>{setTimeout((()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${iE}`);aF(t)}),0)},lF=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{iF(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 oE.Down:u<s&&u++;break;case oE.Up:u>a&&u--;break;case oE.Right:if(i)break;[u,c]="rtl"===n?Qz({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):eF({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case oE.Left:if(i)break;[u,c]="rtl"===n?eF({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):Qz({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case oE.Home:(RI(e)||i)&&(u=a),i||(c=0);break;case oE.End:(RI(e)||i)&&(u=s),i||(c=l);break;case oE.PageDown:u=Math.min(s,u+10);break;case oE.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=rF(t,a);return aF(s),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(!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}},uF=(e,t,r,n)=>{iF(t),r(e),n.enabled&&!n.active?n.focus?.():aF(rF(t,e))},cF=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!!n?.contains(o),a=o?.closest(`.${tE}`);!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${BA.First}`),r=e.querySelector(`.${BA.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},dF=q(((e,t)=>rr.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:rr.jsx("path",{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10M3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0zM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0"})}))),pF=hc(Wh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...iI,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom",boxSizing:"border-box","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?r:n}}))),fF=hc("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})((({align:e,dir:t})=>({minWidth:rI,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),hF=parseInt(rI,10)/2,mF=hc("div")({position:"absolute",bottom:-hF,left:`calc(50% - ${hF}px)`}),gF={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},bF=hc(op)({height:"100%"}),vF=hc("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?{...gF,whiteSpace:"nowrap",display:r?"block":void 0}:{...gF,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"})),yF=hc("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),xF="cell-text",SF=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const{styleService:a}=aM(rM,(e=>e.baseProps));return o?rr.jsx(vF,{"data-testid":xF,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):rr.jsx(vF,{"data-testid":xF,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:i??a.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},wF=e=>{const{column:t,isInteractionEnabled:r,open:n,setOpen:o,isPagination:i,forwardRef:a}=e,{changeSortOrder:s,interactions:l,embed:u,styleService:c,layout:d,direction:p}=aM(rM,(e=>e.baseProps)),f=oR(sR),h=oR(aR),m=aM(rM,(e=>e.columnWidths[t.pageColIdx])),g=aM(rM,(e=>e.baseProps.model)),b=A(null),v=A(null),y=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=BC({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:nI});let o=!1,i=!1,a=!1;const s=t.isLocked,l=t.isActivelySorted,u=r-25,c=s?20:0,d=l?20:0;let p=n(t.label);return s&&p+c<=u&&(a=!0,p+=c,l&&p+d<=u&&(i=!0,p+=d)),!s&&l&&p+d<=u&&(i=!0,p+=d),p+24<=u&&(o=!0,p+=24),{shouldShowMenuIcon:o,shouldShowSortIcon:i,shouldShowLockIcon:a}})({styleService:c,column:t,columnWidth:m}),{StartIcon:x,EndIcon:S,LockIcon:w}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?rr.jsx(FM,{height:rI,"data-testid":"head-cell-sort-ascending-icon"}):rr.jsx(WM,{height:rI,"data-testid":"head-cell-sort-descending-icon"}),a=r?rr.jsx(fF,{align:t,dir:o,children:i}):void 0,s=n?rr.jsx(vI,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:rr.jsx(dF,{height:rI,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,y,p);return rr.jsxs(bI,{shouldShowMenuIcon:y.shouldShowMenuIcon,shouldShowLockIcon:y.shouldShowLockIcon,alignment:cI(t,i,p),children:[w,rr.jsxs(gI,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:p,isPagination:i,children:[x,rr.jsx(SF,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),S]}),r?rr.jsxs(rr.Fragment,{children:[rr.jsx(nk,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:f,anchorRef:b,menuAvailabilityFlags:{[ek.Sorting]:!0,[ek.Searching]:!0,[ek.Selections]:!0,[ek.AdjusterHeaderSize]:!0},open:n,setOpen:o,interactions:l,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),s(t,r))},searchRelatedArgs:{embed:u,listboxRef:v},selectionRelatedArgs:{app:h,qStateName:d.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:sF},shouldShowMenuIcon:y.shouldShowMenuIcon,model:g,direction:p,isPagination:i,isAccessibleHeader:!0}),rr.jsx(mI,{ref:v,direction:p,isPagination:i}),rr.jsx(mI,{ref:b,direction:p})]}):null]})},CF=q(((e,t)=>rr.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:rr.jsx("path",{d:"M6 2h10V1H6zm5 5h5V6h-5zm5 5h-5v-1h5zM5 10h1v2.663a3.5 3.5 0 1 0-2.922.036l-.406.914A4.501 4.501 0 1 1 7.329 13H9v1H5z"})}))),EF=(e,t)=>e.isCyclic&&t,RF=({column:e})=>{const{direction:t,model:r,styleService:n}=aM(rM,(e=>e.baseProps)),o=x.useRef(null),[i,a]=x.useState(!1),s=fM({model:r,headerData:{...e,dimensionInfoIndex:e.colIdx}});return rr.jsxs(rr.Fragment,{children:[rr.jsx(xI,{hoverBackground:n.headerMenuHoverBackground,activeBackground:n.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:rr.jsx(CF,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),rr.jsx(LM,{open:i,onClose:()=>{a(!1)},menuGroups:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),a(!1),s?.(r)},enabled:!0,icon:BM,isActive:e.groupDimensionPos===r})))}]],anchorEl:o.current,direction:t,isPagination:!1})]})},PF=e=>e.isLocked,AF=({column:e})=>{const t=oR(aR),r=aM(rM,(e=>e.baseProps.layout.qStateName)),n=aM(rM,(e=>e.baseProps.styleService));return rr.jsx(xI,{tabIndex:-1,hoverBackground:n.headerMenuHoverBackground,onClick:n=>{n.stopPropagation(),(async(e,t,r)=>{const n=NM(t??"$",r);let o;try{const t=await(e?.createSessionObject(n));o=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){console.error("Failed to unlock field from table header",e)}finally{o&&(await(e?.destroySessionObject(o))||console.error("Failed to destroy session object when unlocking field from table header"))}})(t,r,e)},children:rr.jsx(dF,{height:16,"data-testid":"head-cell-lock-icon"})})},IF=({column:e,open:t,setOpen:r,isPagination:n})=>{const{interactions:o,layout:i,direction:a,changeSortOrder:s,embed:l,styleService:u}=aM(rM,(e=>e.baseProps)),c=oR(sR),d=oR(aR),p=aM(rM,(e=>e.baseProps.model)),f=x.useRef(null),h=x.useRef(null);return rr.jsxs(xI,{tabIndex:-1,hoverBackground:u.headerMenuHoverBackground,activeBackground:u.headerMenuActiveBackground,isActive:t,order:e.isDim?void 0:-1,children:[rr.jsx(nk,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:c,anchorRef:f,menuAvailabilityFlags:{[ek.Sorting]:!0,[ek.Searching]:!0,[ek.Selections]:!0,[ek.AdjusterHeaderSize]:!0},open:t,setOpen:r,interactions:o,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),s(e,r))},searchRelatedArgs:{embed:l,listboxRef:h},selectionRelatedArgs:{app:d,qStateName:i.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:sF},shouldShowMenuIcon:!0,model:p,direction:a,isPagination:n,isAccessibleHeader:!1,iconSize:16}),rr.jsx(mI,{ref:h,direction:a,isPagination:n}),rr.jsx(mI,{ref:f,direction:a})]})},MF=e=>e.at(0)?.contentBoxSize.at(0)?.blockSize,kF=(e,t)=>{const r=A(t);r.current=t,L((()=>{if(!e.current)return()=>{};const t=new ResizeObserver((e=>{r.current(e)}));return t.observe(e.current),()=>{t.disconnect()}}),[e])},DF=hc(op)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),TF=({children:e})=>{const t=x.useRef(null),[r,n]=P((()=>new Set(e.filter((({props:e})=>void 0!==e.prio&&e.children)).map((({key:e})=>e))))),o=R((()=>Array.from(e).sort(((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)))),[e]),i=O((e=>{const t=new Set,r=e.at(0)?.contentBoxSize.at(0)?.inlineSize??0;let i=0;o.forEach((e=>{if(e.props.ignore||!e.props.children)return;const n=e.props.minWidth+1;void 0===e.props.prio||i+n<=r?i+=n:t.add(e.key)})),n((e=>e.size===t.size&&[...e].every((e=>t.has(e)))?e:t))}),[o]);return kF(t,i),rr.jsx(DF,{ref:t,"data-testid":"responsive-container",children:e.filter((e=>!r.has(e.key)))})},OF=({children:e})=>e,LF=(e,t)=>!e.isLocked&&e.isDim&&t,qF=({column:e,open:t,setOpen:r})=>{const{embed:n,direction:o,layout:i,styleService:a}=aM(rM,(e=>e.baseProps));oR(aR);const s=x.useRef(null),l=O((()=>{r(!1)}),[r]),u=qM({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:n,listboxRef:s},selectionRelatedArgs:{qStateName:i.qStateName},direction:o,onPopoverClose:l});return rr.jsx(xI,{tabIndex:-1,hoverBackground:a.headerMenuHoverBackground,activeBackground:a.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),u(),r(!0)},children:rr.jsx(YM,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},NF=q(((e,t)=>rr.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:rr.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"})}))),jF=q(((e,t)=>rr.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:rr.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"})}))),_F=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?rr.jsx(jF,{height:rI,"data-testid":"head-cell-sort-ascending-icon"}):rr.jsx(NF,{height:rI,"data-testid":"head-cell-sort-descending-icon"});return r?rr.jsx(mF,{children:n}):void 0},zF=()=>{const e=aM(rM,(e=>e.baseProps.interactions.active)),t=aM(rM,(e=>e.baseProps.selectionsAPI?.isModal()));return!!e&&!t},FF=0,HF=1,$F=2,WF=3,BF=e=>{const{column:t,open:r,setOpen:n,isPagination:o,forwardRef:i}=e,{styleService:a}=aM(rM,(e=>e.baseProps)),s=zF(),{measureText:l}=BC(a.header),[u,c]=x.useState(!1);return rr.jsxs(TF,{children:[rr.jsx(OF,{prio:$F,minWidth:hI,children:PF(t)?rr.jsx(AF,{column:t}):null},"Lock"),rr.jsx(OF,{prio:HF,minWidth:hI,children:EF(t,s)?rr.jsx(RF,{column:t}):null},"Cyclic"),rr.jsx(OF,{ignore:!0,children:rr.jsx(_F,{column:t})},"Sort"),rr.jsx(OF,{minWidth:l(t.label)+8,children:rr.jsx(yI,{justifyContent:t.headTextAlign,children:rr.jsx(SF,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),rr.jsx(OF,{prio:FF,minWidth:hI,children:u||LF(t,s)?rr.jsx(qF,{open:u,setOpen:c,column:t}):null},"Search"),rr.jsx(OF,{prio:WF,minWidth:hI,children:s?rr.jsx(IF,{column:t,open:r,setOpen:n,isPagination:o}):null},"Menu")]})},VF=hc("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e})((({background:e,applicableStyle:t})=>({...t,background:e}))),UF=()=>{},GF=({column:e,isPagination:t})=>{const{styleService:r,direction:n}=aM(rM,(e=>e.baseProps)),o=aM(rM,(e=>e.showRightBorder)),i=aM(rM,(e=>e.tableData.totalsPosition)),a=!1,s=Jz()?wF:BF;return rr.jsx(VF,{className:"sn-table-cell",applicableStyle:{...r.header,...Zz(r,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:pI(n,a,o),borderLeftWidth:fI(n,a,o),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:e.headTextAlign,boxSizing:"border-box",flexDirection:"right"===e.headTextAlign?"row-reverse":"row",userSelect:"none",width:"100%"},background:r.header.background,children:rr.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:UF})})},YF=({isPagination:e})=>{const{columns:t}=aM(rM,(e=>e.tableData)),[r,n]=P();Kz({onDragStart:e=>{const t=e.operation.source?.id;n(t)},onDragEnd:()=>{}});const o=r?t.find((e=>e.id===r)):void 0;return o?rr.jsx(Iz,{children:rr.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:rr.jsx(GF,{column:o,isPagination:e})})}):null},KF=[j_.configure({activationConstraints:[new O_.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],XF=az.plugins.filter((e=>e!==mj)),JF=({children:e})=>{const{model:t}=aM(rM,(e=>e.baseProps)),{columns:r}=aM(rM,(e=>e.tableData));return rr.jsx(Pz,{onDragOver:e=>{const n=e.operation.source?.id,o=e.operation.target?.id;void 0!==o&&n!==o&&(async(e,t,r,n)=>{if(!e||!("getEffectiveProperties"in e))return;const o=t.findIndex((e=>e.id===r)),i=t.findIndex((e=>e.id===n)),a=[...t],[s]=a.splice(o,1);a.splice(i,0,s);const l=[{qPath:"/qHyperCubeDef/qColumnOrder",qOp:"Replace",qValue:`[${a.map((e=>e.colIdx)).join(",")}]`}];e.applyPatches(l,!0)})(t,r,n,o)},sensors:KF,plugins:XF,children:e})};function ZF(e,t){const r=A(!1);k((()=>{r.current?e():r.current=!0}),t)}function QF(e,t){let r=null;const n=new Map,o=new Set;function i(t){let o;if(o=n.get(t),void 0!==o){if(!r?.(o[1],t))return o[0];i.remove(t)}const s=e(t);return n.set(t,[s,Date.now()]),a("CREATE",t,s),s}function a(e,t,r){for(const n of o)n({type:e,param:t,atom:r})}return i.unstable_listen=e=>(o.add(e),()=>{o.delete(e)}),i.getParams=()=>n.keys(),i.remove=e=>{{if(!n.has(e))return;const[t]=n.get(e);n.delete(e),a("REMOVE",e,t)}},i.setShouldRemove=e=>{if(r=e,r)for(const[e,[t,o]]of n)r(o,e)&&(n.delete(e),a("REMOVE",e,t))},i}const eH=UE(VA),tH=QF((e=>UE((t=>{const[r,n]=t(eH);return 0===r&&n===e})))),rH=()=>{const{downloadService:e}=aM(rM,(e=>e.baseProps));k((()=>{e.notifyIsDoneRendering()}))},nH=(e,t,r)=>{const{rootElement:n,keyboard:o}=aM(rM,(e=>e.baseProps)),{totalColumnCount:i,totalRowCount:a,rows:s,totalsPosition:l}=aM(rM,(e=>e.tableData)),[u,c]=function(e){return[oR(e),iR(e)]}(eH),d=aM(rM,(e=>e.baseProps.selectionsAPI?.isModal()));ZF((()=>{const r=((e,t,r=!1)=>{const n=[tF(t),e[1]];return r?n:VA})(u,l,d);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(iF(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=rF(t,e);r.current?(aF(s),r.current=!1):nF(s),n&&(a({keys:[s?.textContent??""]}),EI(a,s,n))})({resetCellCoord:r,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:d,keyboard:o,announce:t})}),[s.length,a,i,r])},oH=(e,t,r)=>{k((()=>{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=>{r.scrollLeft=e.currentTarget?.scrollLeft||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}}),[e,t,r])},iH=e=>{LC(e),RI(e)&&fE(e.currentTarget)},aH=e=>{MI(e.evt)&&(LC(e.evt),lF(e))},sH=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!MI(t))return;LC(t);const i=((e,t)=>[e.pageRowIdx+tF(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?tF(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=lF({...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:$A.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):EI(o,a,i)})({...e,nextCell:s})},lH=e=>{const{evt:t}=e;PI(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{LC(e);const a=Math.ceil(t/r)-1;e.key===oE.Right&&n<a?(o(),i(n+1)):e.key===oE.Left&&n>0&&(o(),i(n-1))})(e):t.key===oE.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(LC(e),t.blur?.(!0))})(e):AI(t.key)&&LC(t)},uH=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(HA.Disabled))return void LC(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case oE.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{LC(e),t.isSelectable&&r&&n({type:$A.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case oE.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{LC(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case oE.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(LC(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case oE.C:iH(t);break;case oE.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(LC(e),OC(e.currentTarget,t,e.shiftKey))})(n);break;default:sH(n)}},cH=e=>{const t=aM(rM,(e=>e.isAdjustingWidth)),r=aM(rM,(e=>e.setXScrollbarWidth)),n=aM(rM,(e=>e.setYScrollbarWidth)),o=aM(rM,(e=>e.eventEmitter)),i=A();kF(e,(a=>{const s=()=>{if(e.current){const e=a.at(0)?.borderBoxSize.at(0)?.inlineSize??0,t=a.at(0)?.borderBoxSize.at(0)?.blockSize??0,o=a.at(0)?.contentBoxSize.at(0)?.inlineSize??0,i=t-(a.at(0)?.contentBoxSize.at(0)?.blockSize??0);n(e-o),r(i)}};t?(i.current&&o.off("done-adjusting-column-width",i.current),o.once("done-adjusting-column-width",s),i.current=s):s()})),k((()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}}),[o])},dH=hc("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),pH=hc(Gh,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"}))),fH=hc(Dh,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),hH=()=>rr.jsxs(rr.Fragment,{children:[rr.jsx(dH,{className:BA.First,"data-testid":BA.First,"aria-live":"polite","aria-atomic":"true"}),rr.jsx(dH,{className:BA.Second,"data-testid":BA.Second,"aria-live":"polite","aria-atomic":"true"})]}),mH=e=>{const t=A(new Map),r=A(null);k((()=>{r.current=e(t.current),t.current.forEach(((e,t)=>{r.current?.observe(t)}));const n=t.current,o=r.current;return()=>{o.disconnect(),n.clear()}}),[e,r,t]);const n=O(((e,n)=>{t.current.set(e,n),r.current?.observe(e)}),[t,r]),o=O((e=>{t.current.delete(e),r.current?.unobserve(e)}),[r,t]);return R((()=>({addTask:n,removeTask:o})),[n,o])},gH=e=>new ResizeObserver((t=>{t.forEach((t=>{const r=e.get(t.target);r?.(t)}))})),bH=()=>mH(gH),vH=({selectionsAPI:e,selectionDispatch:t,updateShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{k((()=>{const i=()=>{t({type:$A.Reset})},a=()=>{t({type:$A.Clear})},s=()=>{o.current?.contains(document.activeElement)?r():n.enabled&&n.blur?.(!0),i()};return e?.on("deactivated",i),e?.on("canceled",i),e?.on("confirmed",s),e?.on("cleared",a),()=>{e?.removeListener("deactivated",i),e?.removeListener("canceled",i),e?.removeListener("confirmed",s),e?.removeListener("cleared",a)}}),[e,n,t,r,o])},yH=e=>{e.stopPropagation()},xH=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:yH,color:AC.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),SH=({href:e,text:t,interactions:r,color:n})=>rr.jsx(rf,{...xH({href:e,text:t,interactions:r,color:n}),children:t}),wH=window.requestIdleCallback??(e=>setTimeout((()=>{e({})}),0)),CH=window.cancelIdleCallback??(e=>{clearTimeout(e)}),EH="qDimensionInfo/0",RH="qMeasureInfo/0",PH="x",AH="y",IH=e=>({key:"bars",type:"box",data:{extract:{field:EH,props:{start:0,end:{field:RH}}}},settings:{major:{scale:PH},minor:{scale:AH},box:{maxWidthPx:8,fill:{fn:e}}}}),MH=e=>({key:"p",type:"point",data:{extract:{field:EH,props:{y:{field:RH}}}},settings:{x:{scale:PH},y:{scale:AH},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),kH=({qNum:e})=>void 0===e?0:Math.sign(e),DH=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=DC(e,t?.negative,r),a=DC(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:EH,props:{start:0,end:{field:RH,value:kH}}}},settings:{major:{scale:PH},minor:{scale:AH},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}}}}},TH=(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=DC(e,t?.main,o),l=DC(e,t?.max,s),u=DC(e,t?.min,s),c=DC(e,t?.first,s),d=DC(e,t?.last,s);return e=>{const t=AH in e.datum?AH:"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[IH(a)];case"dots":return[MH(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:EH,props:{v:{field:RH}}}},settings:{coordinates:{major:{scale:PH},minor:{scale:AH,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(DC(e,n?.main,e.getDataColorSpecials().primary));return r?[t,MH(a)]:[t]}case"posNeg":return[DH(e,n)];default:return[]}},OH=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"}),LH=(e,t,r,n)=>({y:{data:{field:RH},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:EH}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),qH=V();qH.use(B),qH.renderer.prio(["canvas"]);const NH={resolve:()=>{},promise:{}},jH=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=A(e.isDownloadedAsPDForImage?Mt():NH);return{addChartPromiseToQueue:O((()=>{e.waitForPromise(t.current.promise)}),[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:O((()=>{if(null===t.current||null!==e.current)return;u();r.current=wH((()=>{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 qH.chart({element:e,data:{type:"q",key:"qHyperCube",data:OH(s)},settings:{scales:LH(a,l,u,i),components:TH(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:O((()=>{null!==r.current&&CH(r.current),r.current=null,l()}),[r,l])}},_H=e=>{const t=A(null),r=A(!1);return O((n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(CH(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=wH((()=>{e.current?.update()}),{timeout:2e3})):r.current=!1:r.current=!0}),[e])},zH=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=A(null),l=A(null),u=A(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=jH({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=O((e=>{e.isIntersecting?n():r()}),[n,r]);k((()=>{if(!e.current||!t)return()=>{};const n=e.current;return t.addTask(n,i),()=>{t.removeTask(n),r(),o.current?.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})=>{k((()=>n?()=>{}:(e(),()=>{t(),r.current?.destroy(),r.current=null})),[n,t,e,r])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:r})=>{const n=_H(t);k((()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}}),[e,n,r])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},FH=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=zH({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return rr.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},HH=e=>{let t="center",r="center";return"flex-start"===e?.vertical?t="top":"flex-end"===e?.vertical&&(t="bottom"),"flex-start"===e?.horizontal?r="left":"flex-end"===e?.horizontal&&(r="right"),`${r} ${t}`},$H=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},WH=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{direction:o}=aM(rM,(e=>e.baseProps)),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=rr.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:$H(s),objectPosition:HH(l),overflow:"hidden"}});return n?rr.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?sI(o,e):void 0},children:c}):c},BH=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})}))),VH=q(((e,t)=>rr.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:rr.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"})}))),UH=q(((e,t)=>rr.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:[rr.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"}),rr.jsx("use",{fillRule:"evenodd"})]}))),GH=q(((e,t)=>rr.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:rr.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"})}))),YH=q(((e,t)=>rr.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:rr.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"})}))),KH=q(((e,t)=>rr.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:rr.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"})}))),XH=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M2 7.5h12v1H2z"})}))),JH=q(((e,t)=>rr.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:rr.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"})}))),ZH=q(((e,t)=>rr.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:rr.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"})}))),QH=q(((e,t)=>rr.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:rr.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"})}))),e$=q(((e,t)=>rr.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:rr.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"})}))),t$={m:q(((e,t)=>rr.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:rr.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),"ï":QH,R:jF,S:NF,T:q(((e,t)=>rr.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:rr.jsx("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})}))),U:q(((e,t)=>rr.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:rr.jsx("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})}))),P:ZH,Q:KH,"è":q(((e,t)=>rr.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:rr.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"})}))),"¢":GH,"©":UH,"23F4":YH,2013:e$,"&":JH,add:BH,"minus-2":XH,dot:VH},r$=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&t$[t];return o&&rr.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:rr.jsx(o,{style:{height:e}})})},n$=({representation:e,cellValue:t,paginationCellAlign:r})=>{const{styleService:n,theme:o,direction:i}=aM(rM,(e=>e.baseProps)),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=QA(e,t,i,o),d=(e=>parseInt(e||rI,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=c||{};return l?rr.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:r??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:u?p:void 0},children:["left"===h&&r$({size:d,iconKey:f,color:p}),rr.jsx(SF,{isNumeric:!0,children:a}),"right"===h&&r$({size:d,iconKey:f,color:p})]}):r$({size:d,iconKey:f,color:p})},o$=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(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}=aM(rM,(e=>e.baseProps)),h=aM(rM,(e=>e.selectionState.api?.isActive()));let m=t.representation.text;if(t.representation.type!==OR.Link||h||(m=rr.jsx(SH,{href:t.representation.url,text:t.representation.text,interactions:l,color:r.cellForegroundColor})),t.representation.type===OR.Image)return rr.jsx(WH,{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!==OR.Indicator||Number.isNaN(g)?t.representation.type===OR.MiniChart&&t.representation.miniChart&&!t.isNull?rr.jsx(FH,{height:o$(u,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:c,isSnapshot:!!d.snapshotData,direction:f,downloadService:p}):rr.jsx(SF,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:m}):rr.jsx(n$,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:s})},a$=()=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:rr.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),s$=hc("div")({"& path":{stroke:"none !important"}}),l$=({children:e,cellSelectionState:t})=>t===HA.Selected?rr.jsxs(yF,{children:[e,rr.jsx(s$,{children:rr.jsx(a$,{})})]}):e,u$=e=>{const t=function(){const e=Az(),t=fz((()=>null==e?void 0:e.dragOperation.source),[e]),r=fz((()=>null==e?void 0:e.dragOperation.target),[e]);return{get source(){return t.value},get target(){return r.value}}}();return t.source&&t.source.id!==e?.5:1},c$=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:$A.SelectMultiEnd})};r({type:$A.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:$A.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:$A.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),d$=(e,t)=>{const{paginationNeeded:r,totalsPosition:n}=aM(rM,(e=>e.tableData)),{selectionsAPI:o,rootElement:i,keyboard:a,interactions:s,direction:l}=aM(rM,(e=>e.baseProps)),u=iR(eH),c=aM(rM,(e=>e.selectionDispatch)),d=!!s.active&&!!s.select,p=s=>{uH({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===oE.Shift&&t({type:$A.SelectMultiEnd})})(e,c)},h=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;uF([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}=c$(h,e,c,t);return{onKeyDown:p,onKeyUp:f,onMouseDown:m,onMouseUp:b,onMouseOver:g}},p$=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=HA.Inactive;return o?.isModal()&&(i=r!==e.selectionColIdx?HA.Disabled:n.has(e.qElemNumber)?HA.Selected:HA.Possible),i},f$=(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},h$=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},m$=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return h$(t,e,n?"even":"odd")}return e},g$=(e,t)=>{const{styleService:r}=aM(rM,(e=>e.baseProps)),n=aM(rM,(t=>p$(e,t.selectionState)));let o=t.isDim?r.dimension.values:r.measure.values;o=m$(o,r,e),o=f$(o,r,e);const i=WI(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===HA.Selected?{...e,...r}:t===HA.Disabled?{...e,background:`${eI}, ${e.background}`}:e}(R((()=>e.isNull?o:WI(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}},b$=hc(_h,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),v$=hc(im,{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}}}))),y$=hc(Wh,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...iI,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"}))),x$=hc(Wh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...iI,...e,fontWeight:nI,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",boxSizing:"border-box",zIndex:t?1:void 0}))),S$=({cell:e,announce:t,column:r,columnIndex:n,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i})=>{const{interactions:a,direction:s}=aM(rM,(e=>e.baseProps)),{onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p}=d$(e,t),{cellStyle:f,representationStyle:h,cellSelectionState:m}=g$(e,r),g=u$(r.id);return rr.jsx(y$,{cellStyle:{...f,opacity:g},scope:0===n?"row":void 0,component:0===n?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${m} ${nE}`,title:a.passive?e.representation.text:void 0,onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p,children:rr.jsx(l$,{cellSelectionState:m,children:rr.jsx(i$,{cell:e,style:h,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i,paginationCellAlign:dI(s,e.align)})})})},w$=UE(0),C$=({column:e,totalsPosition:t,onKeyDown:r,onMouseDown:n})=>{const{styleService:o,interactions:i}=aM(rM,(e=>e.baseProps)),a=oR(w$),s=u$(e.id);return rr.jsx(x$,{totalsStyle:{...o.totalRow,...Zz(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${nE}`,tabIndex:-1,title:i.passive?e.totalInfo:void 0,onKeyDown:r,onMouseDown:n,children:rr.jsx(SF,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},E$=()=>{const{columns:e,totalsPosition:t,rows:r}=aM(rM,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,interactions:a,direction:s}=aM(rM,(e=>e.baseProps)),l=iR(eH),u=!!o?.isModal(),c=!!a.active;return rr.jsx(im,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,o)=>{const a=[t.atTop?1:r.length+1,o];return rr.jsx(C$,{column:e,totalsPosition:t,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case oE.C:iH(r);break;case oE.Space:r.preventDefault();break;default:aH(e)}else LC(r)})({evt:e,rootElement:n,cellCoord:a,setFocusedCellCoord:l,isSelectionMode:u,isInteractionEnabled:c,direction:s})},onMouseDown:()=>{uF(a,n,l,i)}},e.id)}))})};var R$=N(E$);const P$=({updateShouldRefocus:e,tableWrapperRef:t,announce:r})=>{const{rows:n,columns:o,totalsPosition:i}=aM(rM,(e=>e.tableData)),{selectionsAPI:a,keyboard:s,layout:l,styleService:u}=aM(rM,(e=>e.baseProps)),c=aM(rM,(e=>e.selectionDispatch)),d=!!zI(l)?.content?.hoverEffect;vH({keyboard:s,selectionDispatch:c,selectionsAPI:a,updateShouldRefocus:e,tableWrapperRef:t});const p=(e=>{const t=O((t=>new IntersectionObserver((e=>{e.forEach((e=>{const r=t.get(e.target);r?.(e)}))}),{root:e.current})),[e]);return mH(t)})(t),f=bH();return rr.jsxs(b$,{lastRowBottomBorder:u.grid.lastRowBottomBorder,children:[i.atTop?rr.jsx(R$,{}):void 0,n.map(((e,t)=>rr.jsx(v$,{hoverColors:u.grid.hoverColors,hover:d,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:u.contentMinRowHeight,children:o.map(((t,n)=>{const{id:o}=t,i=e[n];return rr.jsx(S$,{columnIndex:n,cell:i,column:t,announce:r,intersectionObserverTaskScheduler:p,resizeObserverTaskScheduler:f},o)}))},`row-${t}`))),i.atBottom?rr.jsx(R$,{}):void 0]})};var A$=N(P$);const I$=(e,t)=>!!e.viewState?.skipHeader||!!t.hideHeader,M$=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:s,direction:l}=aM(rM,(e=>e.baseProps)),u=oR(sR),c=aM(rM,(e=>e.columnWidths)),d=aM(rM,(e=>e.setColumnWidths));if(!s.active)return null;return rr.jsx(dM,{columnWidth:c[o],isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{r?.();const t=[...c];t[o]=e,d(t)},confirmWidthCallback:t=>{a(t,e)},handleBlur:e=>{(e=>{oF(e);const t=e.closest(".sn-table-cell");aF(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:u,columnLabel:i},direction:l})},k$=e=>e.target?.getAttribute("class")?.includes(iE),D$=({isInteractionEnabled:e,column:t})=>{const[r,n]=P(!1),{changeSortOrder:o}=aM(rM,(e=>e.baseProps)),i=aM(rM,(e=>e.isAdjustingWidth)),a=aM(rM,(e=>e.setIsAdjustingWidth));return{open:r,setOpen:n,handleOpenMenu:t=>{!e||k$(t)||i||n(!0)},setIsAdjustingWidth:a,toggleSortOrder:r=>{e&&!k$(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o(t,"A"===t.sortDirection?"D":"A"))}}};var T$=Object.defineProperty,O$=Object.defineProperties,L$=Object.getOwnPropertyDescriptors,q$=Object.getOwnPropertySymbols,N$=Object.prototype.hasOwnProperty,j$=Object.prototype.propertyIsEnumerable,_$=(e,t,r)=>t in e?T$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,z$=(e,t)=>{for(var r in t||(t={}))N$.call(t,r)&&_$(e,r,t[r]);if(q$)for(var r of q$(t))j$.call(t,r)&&_$(e,r,t[r]);return e},F$=(e,t)=>O$(e,L$(t)),H$=class extends FL{apply({transform:e}){if(!this.options)return e;const{axis:t,value:r}=this.options;return F$(z$({},e),{[t]:r})}};H$.configure=aO(H$);var $$=H$;$$.configure({axis:"x",value:0}),$$.configure({axis:"y",value:0});var W$=class extends FL{apply({transform:e}){var t;const{size:r=20}=null!=(t=this.options)?t:{},n="number"==typeof r?r:r.x,o="number"==typeof r?r:r.y;return F$(z$({},e),{x:Math.ceil(e.x/n)*n,y:Math.ceil(e.y/o)*o})}};W$.configure=aO(W$);var B$=class extends FL{constructor(e,t){super(e,t),this.boundingRectangle=Vk(null),this.destroy=tD((()=>{if(!this.options)return;const{dragOperation:t}=e,{status:r}=t;if(r.initialized){const{element:e}=this.options,r="function"==typeof e?e(t):e;if(!r)return;let n;const o=()=>{this.boundingRectangle.value=eq(r)},i=()=>{n||(n=setTimeout((()=>{o(),n=void 0}),25))},a=new ResizeObserver(o);return a.observe(r),document.addEventListener("scroll",i,{passive:!0,capture:!0}),()=>{document.removeEventListener("scroll",i,{capture:!0}),a.disconnect(),this.boundingRectangle.value=null}}}))}apply(e){const{shape:t,transform:r}=e;if(!t)return r;const n=this.boundingRectangle.value;if(!n)return r;const{initial:o,current:i}=t,{height:a,width:s}=i.boundingRectangle,l=o.center.x-s/2,u=o.center.y-a/2,c=function(e,t,r){const n=z$({},t);return e.boundingRectangle.top+t.y<=r.top?n.y=r.top-e.boundingRectangle.top:e.boundingRectangle.bottom+t.y>=r.top+r.height&&(n.y=r.top+r.height-e.boundingRectangle.bottom),e.boundingRectangle.left+t.x<=r.left?n.x=r.left-e.boundingRectangle.left:e.boundingRectangle.right+t.x>=r.left+r.width&&(n.x=r.left+r.width-e.boundingRectangle.right),n}(new ST(l,u,s,a),r,n);return c}};B$.configure=aO(B$);var V$=B$,U$=Object.create,G$=Object.defineProperty,Y$=Object.defineProperties,K$=Object.getOwnPropertyDescriptor,X$=Object.getOwnPropertyDescriptors,J$=Object.getOwnPropertySymbols,Z$=Object.prototype.hasOwnProperty,Q$=Object.prototype.propertyIsEnumerable,eW=e=>{throw TypeError(e)},tW=(e,t,r)=>t in e?G$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rW=(e,t)=>{for(var r in t||(t={}))Z$.call(t,r)&&tW(e,r,t[r]);if(J$)for(var r of J$(t))Q$.call(t,r)&&tW(e,r,t[r]);return e},nW=(e,t)=>Y$(e,X$(t)),oW=["class","method","getter","setter","accessor","field","value","get","set"],iW=e=>void 0!==e&&"function"!=typeof e?eW("Function expected"):e,aW=(e,t,r,n,o)=>({kind:oW[e],name:t,metadata:n,addInitializer:e=>r._?eW("Already initialized"):o.push(iW(e||null))}),sW=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},lW=(e,t,r,n,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=oW[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,K$({get[r](){return cW(this,i)},set[r](e){return pW(this,i,e)}},r)),b=n.length-1;b>=0;b--)(u=aW(d,r,l={},e[3],m)).static=false,u.private=false,c=u.access={has:e=>r in e},c.get=e=>e[r],c.set=(e,t)=>e[r]=t,s=(0,n[b])({get:g.get,set:g.set},u),l._=1,void 0===s?iW(s)&&(g[f]=s):"object"!=typeof s||null===s?eW("Object expected"):(iW(a=s.get)&&(g.get=a),iW(a=s.set)&&(g.set=a),iW(a=s.init)&&h.unshift(a));return g&&G$(o,r,g),o},uW=(e,t,r)=>t.has(e)||eW("Cannot "+r),cW=(e,t,r)=>(uW(e,t,"read from private field"),t.get(e)),dW=(e,t,r)=>t.has(e)?eW("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),pW=(e,t,r,n)=>(uW(e,t,"write to private field"),t.set(e,r),r);function fW(e){return e instanceof WW||e instanceof $W}var hW=Object.defineProperty,mW=Object.defineProperties,gW=Object.getOwnPropertyDescriptors,bW=Object.getOwnPropertySymbols,vW=Object.prototype.hasOwnProperty,yW=Object.prototype.propertyIsEnumerable,xW=(e,t,r)=>t in e?hW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,SW=(e,t)=>{for(var r in t||(t={}))vW.call(t,r)&&xW(e,r,t[r]);if(bW)for(var r of bW(t))yW.call(t,r)&&xW(e,r,t[r]);return e},wW=(e,t)=>mW(e,gW(t));function CW(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function EW(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function RW(e,t){return function(e,t,r){var n,o,i;const{source:a,target:s,canceled:l}=t.operation;if(!a||!s||l)return"preventDefault"in t&&t.preventDefault(),e;const u=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const n=e.findIndex((e=>u(e,a.id))),o=e.findIndex((e=>u(e,s.id)));if(-1===n||-1===o){if(EW(a)){const n=a.initialIndex,o=a.index;return n===o||n<0||n>=e.length?("preventDefault"in t&&t.preventDefault(),e):r(e,n,o)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==n)return r(e,n,t)}return r(e,n,o)}const c=Object.entries(e);let d,p,f=-1,h=-1;for(const[e,t]of c)if(-1===f&&(f=t.findIndex((e=>u(e,a.id))),-1!==f&&(d=e)),-1===h&&(h=t.findIndex((e=>u(e,s.id))),-1!==h&&(p=e)),-1!==f&&-1!==h)break;if(-1===f&&EW(a)){const n=a.initialGroup,o=a.initialIndex,i=a.group,s=a.index;if(null==n||null==i||!(n in e)||!(i in e))return"preventDefault"in t&&t.preventDefault(),e;if(n===i&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(n===i)return wW(SW({},e),{[n]:r(e[n],o,s)});const l=e[n][o];return wW(SW({},e),{[n]:[...e[n].slice(0,o),...e[n].slice(o+1)],[i]:[...e[i].slice(0,s),l,...e[i].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(o=null==(n=m.shape)?void 0:n.current.center)?o:m.position.current;if(null==p&&s.id in e){const t=s.shape&&g.y>s.shape.center.y?e[s.id].length:0;p=s.id,h=t}if(null==d||null==p||d===p&&f===h){if(null!=d&&d===p&&f===h&&EW(a)){const t=null!=a.group&&a.group!==d,n=a.index!==f;if(t||n){const t=null!=(i=a.group)?i:d;if(t in e){if(d===t)return wW(SW({},e),{[d]:r(e[d],f,a.index)});const n=e[d][f];return wW(SW({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),n,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return wW(SW({},e),{[d]:r(e[d],f,h)});const b=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,v=e[d][f];return wW(SW({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+b),v,...e[p].slice(h+b)]})}(e,t,CW)}var PW="__default__";function AW(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function IW(e,t){return e.index-t.index}function MW(e){return Array.from(e).sort(IW)}var kW,DW,TW,OW,LW,qW,NW,jW,_W=[class extends lO{constructor(e){super(e);const t=tD((()=>{const{dragOperation:t}=e;if(IN(t.activatorEvent)&&fW(t.source)&&t.status.initialized){const t=e.registry.plugins.get(b_);if(t)return t.disable(),()=>t.enable()}})),r=e.monitor.addEventListener("dragmove",((e,t)=>{queueMicrotask((()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:r}=t;if(!IN(e.nativeEvent))return;if(!fW(r.source))return;if(!r.shape)return;const{actions:n,collisionObserver:o,registry:i}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:r}=e;if(t>0)return"right";if(t<0)return"left";if(r>0)return"down";if(r<0)return"up"}(a),{source:l,target:u}=r,{center:c}=r.shape.current,d=[],p=[];Nk((()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&fW(e)||!e.element)continue;let r=e.shape;const n=new EN(e.element,{getBoundingClientRect:e=>uq(e,void 0,.2)});n.height&&n.width&&(("down"==s&&c.y+10<n.center.y||"up"==s&&c.y-10>n.center.y||"left"==s&&c.x-10>n.center.x||"right"==s&&c.x+10<n.center.x)&&(d.push(e),e.shape=n,p.push((()=>e.shape=r))))}})),e.preventDefault(),o.disable();const f=o.computeCollisions(d,TN);Nk((()=>p.forEach((e=>e()))));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:b}=l.sortable;n.setDropTarget(m).then((()=>{const{source:e,target:t,shape:i}=r;if(!e||!fW(e)||!i)return;const{index:a,group:s,target:l}=e.sortable,u=g!==a||b!==s,c=u?l:null==t?void 0:t.element;if(!c)return;bN(c);const d=new EN(c);if(!d)return;const p=ST.delta(d,ST.from(i.current.boundingRectangle),e.alignment);n.move({by:p}),u?n.setDropTarget(e.id).then((()=>o.enable())):o.enable()}))}))}));this.destroy=()=>{r(),t()}}},class extends lO{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof WW){const{sortable:e}=r,{group:n}=e;let o=t.get(n);o||(o=new Set,t.set(n,o)),o.add(e)}for(const[e,r]of t)t.set(e,new Set(MW(r)));return t},r=[e.monitor.addEventListener("dragover",((e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!fW(o)||!fW(i))return;if(o.sortable===i.sortable)return;const a=t(),s=o.sortable.group===i.sortable.group,l=a.get(o.sortable.group),u=s?l:a.get(i.sortable.group);l&&u&&queueMicrotask((()=>{e.defaultPrevented||r.renderer.rendering.then((()=>{var n,c,d;const p=t();for(const[e,t]of a.entries()){const r=Array.from(t).entries();for(const[t,o]of r)if(o.index!==t||o.group!==e||!(null==(n=p.get(e))?void 0:n.has(o)))return}const f=o.sortable.element,h=i.sortable.element;if(!h||!f)return;if(!s&&i.id===o.sortable.group)return;const m=MW(l),g=s?m:MW(u),b=null!=(c=o.sortable.group)?c:PW,v=null!=(d=i.sortable.group)?d:PW,y={[b]:m,[v]:g},x=RW(y,e);if(y===x)return;const S=x[v].indexOf(o.sortable),w=x[v].indexOf(i.sortable);r.collisionObserver.disable(),AW(f,S,h,w),Nk((()=>{for(const[e,t]of x[b].entries())t.index=e;if(!s)for(const[e,t]of x[v].entries())t.group=i.sortable.group,t.index=e})),r.actions.setDropTarget(o.id).then((()=>r.collisionObserver.enable()))}))}))})),e.monitor.addEventListener("dragend",((e,r)=>{if(!e.canceled)return;const{dragOperation:n}=r,{source:o}=n;fW(o)&&(o.sortable.initialIndex===o.sortable.index&&o.sortable.initialGroup===o.sortable.group||queueMicrotask((()=>{const e=t(),n=e.get(o.sortable.initialGroup);n&&r.renderer.rendering.then((()=>{for(const[t,r]of e.entries()){const e=Array.from(r).entries();for(const[r,n]of e)if(n.index!==r||n.group!==t)return}const t=MW(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(AW(r,i.index,a,o.index),Nk((()=>{for(const[t,r]of e.entries()){const e=Array.from(r).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}})))}))})))}))];this.destroy=()=>{for(const e of r)e()}}}],zW={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},FW=new class{constructor(){$D(this,JD,new WeakMap)}get(e,t){var r;return e?null==(r=HD(this,JD).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return HD(this,JD).has(e)||HD(this,JD).set(e,new Map),null==(n=HD(this,JD).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=HD(this,JD).get(e))?void 0:t.clear():void 0}};DW=[GD],kW=[GD];var HW=class{constructor(e,t){dW(this,OW,sW(TW,8,this)),sW(TW,11,this),dW(this,LW),dW(this,qW),dW(this,NW,sW(TW,12,this)),sW(TW,15,this),dW(this,jW),this.register=()=>(Nk((()=>{var e,t;null==(e=this.manager)||e.registry.register(this.droppable),null==(t=this.manager)||t.registry.register(this.draggable)})),()=>this.unregister()),this.unregister=()=>{Nk((()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)}))},this.destroy=()=>{Nk((()=>{this.droppable.destroy(),this.draggable.destroy()}))};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=zW,plugins:u=_W}=r,c=((e,t)=>{var r={};for(var n in e)Z$.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&J$)for(var n of J$(e))t.indexOf(n)<0&&Q$.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new WW(c,t,this),this.draggable=new $W(nW(rW({},c),{effects:()=>[()=>{var e,t,r;const n=null==(e=this.manager)?void 0:e.dragOperation.status;(null==n?void 0:n.initializing)&&this.id===(null==(r=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:r.id)&&FW.clear(this.manager),(null==n?void 0:n.dragging)&&FW.set(this.manager,this.id,_k((()=>({initialIndex:this.index,initialGroup:this.group}))))},()=>{const{index:e,group:t,manager:r}=this,n=cW(this,qW),o=cW(this,LW);e===n&&t===o||(pW(this,qW,e),pW(this,LW,t),this.animate())},()=>{const{target:e}=this,{feedback:t,isDragSource:r}=this.draggable;"move"==t&&r&&(this.droppable.disabled=!e)},()=>{const{manager:e}=this;for(const t of u)null==e||e.registry.register(t)},...n()],type:s,sensors:a}),t,this),pW(this,jW,c.element),this.manager=t,this.index=i,pW(this,qW,i),this.group=o,pW(this,LW,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=FW.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=FW.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){_k((()=>{const{manager:e,transition:t}=this,{shape:r}=this.droppable;if(!e)return;const{idle:n}=e.dragOperation.status;r&&t&&(!n||t.idle)&&e.renderer.rendering.then((()=>{const{element:n}=this;if(!n)return;const o=this.refreshShape();if(!o)return;const i=r.boundingRectangle.left-o.boundingRectangle.left,a=r.boundingRectangle.top-o.boundingRectangle.top,{translate:s}=iN(n),l=yN(n,s,!1),u=yN(n,s);if(i||a){const r=bq(nq(n))?nW(rW({},t),{duration:0}):t;vN({element:n,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${u.x}px ${u.y}px ${u.z}`]},options:r}).then((()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)}))}}))}))}get manager(){return this.draggable.manager}set manager(e){Nk((()=>{this.draggable.manager=e,this.droppable.manager=e}))}set element(e){Nk((()=>{const t=cW(this,jW),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),pW(this,jW,e)}))}get element(){var e,t;const r=cW(this,jW);if(r)return null!=(t=null!=(e=Sq.get(r))?e:r)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){return this.draggable.disabled&&this.droppable.disabled}set feedback(e){this.draggable.feedback=e}set disabled(e){Nk((()=>{this.droppable.disabled=e,this.draggable.disabled=e}))}set data(e){Nk((()=>{this.droppable.data=e,this.draggable.data=e}))}set handle(e){this.draggable.handle=e}set id(e){Nk((()=>{this.droppable.id=e,this.draggable.id=e}))}get id(){return this.droppable.id}set sensors(e){this.draggable.sensors=e}set modifiers(e){this.draggable.modifiers=e}set collisionPriority(e){this.droppable.collisionPriority=e}set collisionDetector(e){this.droppable.collisionDetector=null!=e?e:DN}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){Nk((()=>{this.droppable.type=e,this.draggable.type=e}))}get type(){return this.draggable.type}set accept(e){this.droppable.accept=e}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(e){return this.droppable.accepts(e)}};TW=[,,,U$(null)],OW=new WeakMap,LW=new WeakMap,qW=new WeakMap,NW=new WeakMap,jW=new WeakMap,lW(TW,4,"index",DW,HW,OW),lW(TW,4,"group",kW,HW,NW),((e,t)=>{return tW(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(TW,HW);var $W=class extends lz{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},WW=class extends uz{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get group(){return this.sortable.group}},BW=Object.defineProperty,VW=Object.defineProperties,UW=Object.getOwnPropertyDescriptors,GW=Object.getOwnPropertySymbols,YW=Object.prototype.hasOwnProperty,KW=Object.prototype.propertyIsEnumerable,XW=(e,t,r)=>t in e?BW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,JW=(e,t)=>{for(var r in t||(t={}))YW.call(t,r)&&XW(e,r,t[r]);if(GW)for(var r of GW(t))KW.call(t,r)&&XW(e,r,t[r]);return e};function ZW(e){const{accept:t,collisionDetector:r,collisionPriority:n,id:o,data:i,element:a,handle:s,index:l,group:u,disabled:c,feedback:d,modifiers:p,sensors:f,target:h,type:m}=e,g=JW(JW({},zW),e.transition),b=function(e){var t;const r=null!=(t=Az())?t:void 0,[n]=P((()=>e(r)));return n.manager!==r&&(n.manager=r),dz(n.register,[r,n]),n}((t=>new HW(((e,t)=>VW(e,UW(t)))(JW({},e),{transition:g,register:!1,handle:cz(s),element:cz(a),target:cz(h),feedback:d}),t))),v=hz(b,QW);return bz(o,(()=>b.id=o)),dz((()=>{Nk((()=>{b.group=u,b.index=l}))}),[b,u,l]),bz(m,(()=>b.type=m)),bz(t,(()=>b.accept=t),void 0,UD),bz(i,(()=>i&&(b.data=i))),bz(l,(()=>{var e;(null==(e=b.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&b.refreshShape()}),mz),vz(s,(e=>b.handle=e)),vz(a,(e=>b.element=e)),vz(h,(e=>b.target=e)),bz(c,(()=>b.disabled=!0===c)),bz(f,(()=>b.sensors=f)),bz(r,(()=>b.collisionDetector=r)),bz(n,(()=>b.collisionPriority=n)),bz(d,(()=>b.feedback=null!=d?d:"default")),bz(g,(()=>b.transition=g),void 0,UD),bz(p,(()=>b.modifiers=p),void 0,UD),bz(e.alignment,(()=>b.alignment=e.alignment)),{sortable:v,get isDragging(){return v.isDragging},get isDropping(){return v.isDropping},get isDragSource(){return v.isDragSource},get isDropTarget(){return v.isDropTarget},handleRef:O((e=>{b.handle=null!=e?e:void 0}),[b]),ref:O((e=>{var t,r;(e||!(null==(t=b.element)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.element=null!=e?e:void 0)}),[b]),sourceRef:O((e=>{var t,r;(e||!(null==(t=b.source)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.source=null!=e?e:void 0)}),[b]),targetRef:O((e=>{var t,r;(e||!(null==(t=b.target)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.target=null!=e?e:void 0)}),[b])}}function QW(e,t,r){return!("isDragSource"!==e||r||!t)}const eB=({invert:e})=>({dragOperation:t,droppable:r})=>{if(!r.shape)return null;const{shape:n}=t;if(!n)return null;const o=function(e){return e.sortable?.index}(r);if(void 0===o)return null;const i=function(e){return e.source.index}(t);if(void 0===i)return null;if(i===o)return null;const a=i<o!==e?"right":"left",{center:s,boundingRectangle:l}=n.current;return"left"===a&&l.left+.3*l.width<=r.shape.center.x||"right"===a&&l.right-.3*l.width>=r.shape.center.x?{id:r.id,value:1/xT.distance(r.shape.center,s),type:DO.Collision,priority:kO.Normal}:null},tB=[V$.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],rB=(e,t)=>{const{direction:r}=aM(rM,(e=>e.baseProps)),{flags:n}=aM(rM,(e=>e.env)),o=!zF()||!n.isEnabled("TLV-1531_DRAG_AND_DROP_COLUMNS");return ZW({id:e.id,disabled:o,index:t,type:"item",accept:"item",group:"column",modifiers:tB,data:e,feedback:"clone",collisionDetector:eB({invert:"rtl"===r})})},nB=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a,direction:s}=aM(rM,(e=>e.baseProps)),{columns:l,totalsPosition:u}=aM(rM,(e=>e.tableData)),c=aM(rM,(e=>e.columnWidths[t])),d=aM(rM,(e=>e.baseProps.selectionsAPI?.isModal())),p=iR(eH),f=oR(tH(t)),h=!!n.active&&!d,{open:m,setOpen:g,handleOpenMenu:b,setIsAdjustingWidth:v,toggleSortOrder:y}=D$({isInteractionEnabled:h,column:e}),{ref:x,isDragging:S}=rB(e,t),w=u$(e.id),C=Jz(),E=C?wF:BF,R=e.isActivelySorted?WA[e.sortDirection]:void 0,P=m?rE:void 0,A=m?"true":void 0,I=t===r-1,M=[0,e.pageColIdx],k={width:c,zIndex:l.length-t},D=f&&0===t&&!i.enabled&&h?0:-1;return rr.jsxs(pF,{"data-dragging":S,ref:x,headerStyle:{...a.header,...Zz(a,u,!0),opacity:w},background:C&&m?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:n,style:k,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${nE}`,tabIndex:D,title:n.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case oE.C:iH(r);break;case oE.Enter:case oE.Space:n?.(r);break;default:aH(e)}else LC(r)})({evt:e,rootElement:o,cellCoord:M,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&&uF(r,t,n,o)})({evt:e,rootElement:o,cellCoord:M,setFocusedCellCoord:p,keyboard:i,isInteractionEnabled:h})},onClick:C?b:y,"aria-sort":R,"aria-controls":P,"aria-expanded":A,"aria-haspopup":"true",children:[rr.jsx(E,{column:e,isInteractionEnabled:h,open:m,setOpen:g,isPagination:!0}),rr.jsx(M$,{column:e,isLastColumn:I,setIsAdjustingWidth:v})]},e.id)},oB=()=>{const{columns:e}=aM(rM,(e=>e.tableData)),{styleService:t,viewService:r,layout:n}=aM(rM,(e=>e.baseProps)),o=iR(w$),i=aM(rM,(e=>e.columnWidths)),a=A(null),s=I$(r,n);return k((()=>{a.current&&o(a.current.getBoundingClientRect().height)}),[t.header.fontSize,i,o,s]),rr.jsx(Qh,{style:{visibility:s?"collapse":void 0},children:rr.jsx(im,{ref:a,className:"sn-table-row sn-table-head-row",style:{position:"sticky",top:0},children:e.map(((t,r)=>rr.jsx(nB,{column:t,columnIndex:r,columnsLength:e.length},t.id)))})})};var iB=N(oB);const aB=e=>{const{pageInfo:t,setPageInfo:r,footerContainer:n,announce:o}=e,{page:i,rowsPerPage:a}=t,{totalColumnCount:s,totalRowCount:l,totalPages:u,paginationNeeded:c,rows:d,columns:p}=aM(rM,(e=>e.tableData)),{rootElement:f,keyboard:h,theme:m,interactions:g,styleService:b,viewService:v,layout:y,rect:x,direction:S}=aM(rM,(e=>e.baseProps)),w=oR(sR),C=aM(rM,(e=>e.showRightBorder)),E=aM(rM,(e=>e.selectionDispatch)),R=aM(rM,(e=>e.baseProps.selectionsAPI?.isModal())),P=A(!1),I=A(null),M=A(null),D=`${w.get("SNTable.Accessibility.RowsAndColumns",[String(d.length),String(p.length)])} ${w.get("SNTable.Accessibility.NavigationInstructions")}`,T=qA(y,v),L=T?v.scrollLeft??0:0,q=T?v.rowPartialHeight??0:0,N=O((()=>{P.current=f.getElementsByTagName("table")[0].contains(document.activeElement)}),[f]),j=O((e=>{r({...t,page:e}),o({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),u.toString()]],politeness:"assertive"})}),[t,r,u,o]),_=O((e=>{r({...t,page:0,rowsPerPage:e}),o({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[o,t,r]);return oH(I,S,v),((e,t)=>{const{keyboard:r}=aM(rM,(e=>e.baseProps));k((()=>{const n=e.current;if(!n)return;const o=e=>{cF(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(M,P),(()=>{const{rootElement:e,keyboard:t}=aM(rM,(e=>e.baseProps)),r=oR(eH);YC((()=>{const n=rF(e,r);t.active?aF(n):(n?.blur(),iF(e))}),[t.active,e])})(),nH(P,o,i),k((()=>{const e=I.current;e&&(e.scrollLeft=L,e.scrollTop=q)}),[t,l,L,q]),ZF((()=>{E({type:$A.UpdatePageRows,payload:{pageRows:d}})}),[d]),rH(),cH(I),rr.jsxs(JF,{children:[rr.jsxs(bF,{ref:M,dir:S,onKeyDown:e=>{lH({evt:e,totalRowCount:l,page:i,rowsPerPage:a,handleChangePage:j,updateShouldRefocus:N,keyboard:h,isSelectionMode:R})},"data-testid":"sn-table",children:[rr.jsx(hH,{}),rr.jsxs(pH,{ref:I,className:"sn-table-container",fullHeight:!!n||!g.active||!c,interactions:g,tabIndex:-1,role:"application","data-testid":"table-container",children:[rr.jsxs(fH,{stickyHeader:!0,"aria-label":D,borderRight:C?`1px solid ${b.grid.border}`:void 0,children:[rr.jsx(iB,{}),rr.jsx(A$,{...e,updateShouldRefocus:N,tableWrapperRef:M})]}),rr.jsx(Xz,{})]}),rr.jsx(Ok,{footerContainer:n,pageInfo:t,paginationNeeded:c,theme:m,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:h,translator:w,interactions:g,rect:x,layout:y,handleChangePage:j,handleChangeRowsPerPage:_,isSelectionMode:R,direction:S})]}),rr.jsx(YF,{isPagination:!0})]})};var sB=N(aB);function lB(){return lB=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},lB.apply(null,arguments)}function uB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cB(e,t){return cB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cB(e,t)}function dB(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cB(e,t)}var pB=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function fB(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||pB(n)&&pB(o)))return!1;var n,o;return!0}function hB(e,t){var r;void 0===t&&(t=fB);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}}function mB(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}var gB="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function bB(e){cancelAnimationFrame(e.id)}function vB(e,t){var r=gB();var n={id:requestAnimationFrame((function o(){gB()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var yB=-1;function xB(e){if(void 0===e&&(e=!1),-1===yB||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),yB=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return yB}var SB=null;function wB(e){if(void 0===e&&(e=!1),null===SB||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?SB="positive-descending":(t.scrollLeft=1,SB=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),SB}return SB}var CB=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function EB(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,uB(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:uB(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=hB((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=hB((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=hB((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(wB()){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&&bB(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=vB(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}dB(t,e),t.getDerivedStateFromProps=function(e,t){return RB(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=xB();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(wB()){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&&bB(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?CB:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,w=this._getHorizontalRangeToRender(),C=w[0],E=w[1],R=this._getVerticalRangeToRender(),P=R[0],A=R[1],I=[];if(n>0&&g)for(var M=P;M<=A;M++)for(var k=C;k<=E;k++)I.push(S(t,{columnIndex:k,data:d,isScrolling:v?x:void 0,key:f({columnIndex:k,data:d,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,k)}));var D=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return S(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:lB({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},S(u||c||"div",{children:I,ref:l,style:{height:D,pointerEvents:x?"none":void 0,width:T}}))},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}(F),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var RB=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},PB=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},AB=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},IB=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]},MB=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?kB(e,t,r,i,0,n):DB(e,t,r,Math.max(0,i),n)},kB=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=IB(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},DB=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&IB(e,t,n,r).offset<o;)n+=a,a*=2;return kB(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},TB=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=IB(e,t,r,i),u="column"===e?AB(t,i):PB(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}},OB=EB({getColumnOffset:function(e,t,r){return IB("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return MB("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=IB("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=IB("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:PB,getEstimatedTotalWidth:AB,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return TB("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return TB("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return IB("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return MB("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=IB("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=IB("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}}),LB=function(e,t){return e};function qB(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,uB(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:uB(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=hB((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=hB((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=hB((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(wB()){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&&bB(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=vB(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}dB(t,e),t.getDerivedStateFromProps=function(e,t){return NB(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?xB():0:l.scrollHeight>l.clientHeight?xB():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(wB()){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&&bB(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?LB: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,w=x?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],R=C[1],P=[];if(u>0)for(var A=E;A<=R;A++)P.push(S(t,{data:c,key:p(A,c),index:A,isScrolling:b?y:void 0,style:this._getItemStyle(A)}));var I=n(this.props,this._instanceProps);return S(h||m||"div",{className:r,onScroll:w,ref:this._outerRefSetter,style:lB({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},S(s||l||"div",{children:P,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}(F),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var NB=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},jB=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]},_B=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=jB(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},zB=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&jB(e,r,t).offset<n;)r+=i,i*=2;return _B(e,t,Math.min(r,o-1),Math.floor(r/2),n)},FB=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},HB=qB({getItemOffset:function(e,t,r){return jB(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:FB,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=jB(e,t,o),p=FB(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?_B(e,t,o,0,r):zB(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=jB(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=jB(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 $B(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 WB=["style"],BB=["style"];function VB(e,t){var r=e.style,n=mB(e,WB),o=t.style,i=mB(t,BB);return!$B(r,o)&&!$B(n,i)}const UB=UE(-1),GB=QF((e=>UE((t=>t(UB)===e)))),YB=({style:e})=>rr.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var KB=x.memo(YB,VB);const XB=()=>{},JB=e=>{e.preventDefault()};const ZB=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u}=n,c=oR(GB(t)),d=iR(UB),{interactions:p,styleService:f,direction:h}=aM(rM,(e=>e.baseProps)),m=aM(rM,(e=>e.showRightBorder)),g=o[t]?.[e],{handleMouseDown:b,handleMouseOver:v,handleMouseUp:y,cellSelectionState:x}=function(e){const{interactions:t}=aM(rM,(e=>e.baseProps)),r=aM(rM,(e=>e.selectionDispatch)),n="object"==typeof e,o=aM(rM,(t=>n?p$(e,t.selectionState):HA.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=c$(JB,e,r,XB);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g),S=((e,t,r,n)=>{const o=A(null),i=r&&!r.isNumeric,a=O((r=>{const o=MF(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return kF(o,a),o})(t,e,g,s),w=i[e]?.isDim?f.dimension.values:f.measure.values,C=u$(i[e].id);if("object"==typeof g){const n=((e,t,r,n,o,i)=>{let a=m$(o,i,e);a=f$(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?WI(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===HA.Selected?{...s,...i.selectedColors}:n===HA.Disabled?{...s,color:r?i.grid.hoverColors?.color:s.color,background:`${eI}, ${r?i.grid.hoverColors?.background:s.background}`}:r?{...s,...i.grid.hoverColors}:s})(g,i[e],a&&c,x,w,f),o={rowindex:t,columnindex:e};return rr.jsx("div",{className:`sn-table-cell ${x} ${nE}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:f.grid.border,borderTop:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:pI(h,g.isLastColumn,m),borderLeftWidth:fI(h,g.isLastColumn,m),justifyContent:lI(g,h),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:g.align,opacity:C},onMouseDown:b,onMouseUp:y,onMouseOver:v,onMouseEnter:a?()=>{d(t)}:void 0,onMouseLeave:a?()=>{d(-1)}:void 0,title:p.passive?g.representation.text:void 0,...o,children:rr.jsx(l$,{cellSelectionState:x,children:rr.jsx(i$,{forwardRef:f.contentStaticLineCount||1===l?void 0:S,cell:g,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})})}return rr.jsx(KB,{style:{...r,...w,borderColor:f.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:C}})};var QB=N(ZB,VB);const eV=e=>{const t=A(e);return t.current=e,t},tV=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,rV=(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(t?.rowIdx!==o)return!0}return!1},nV=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!e[t]))},oV=(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)=>{const{qSize:c}=a.qHyperCube,d=n.qTop+r,p=o+r,f=e[p]??[];return t.forEach(((e,t)=>{const r=t+n.qLeft;if(f.at(r))return;const{colIdx:o,isDim:h,isLocked:m,bodyTextAlign:g,selectionColIdx:b,qAttrExprInfoIndex:v,representation:y,conditionalColoring:x,qMiniChart:S}=i[r],w=PA(h,e,a),C=!h&&e.qIsNull,E=C?OP(w):TP(e);f[r]={id:MP(),...e,align:OA(E,g,u),rowIdx:d,colIdx:o,isSelectable:h&&!m,pageRowIdx:p,pageColIdx:r,selectionColIdx:b,isLastRow:d===c.qcy-1,isLastColumn:r===c.qcx-1,isNumeric:E,isNull:(!C||!E)&&RA(e,h),representation:EA({cell:e,representationProperties:y,attrExprInfoIndex:v,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>C?w:e.qText,direction:u,enabledFeatures:{[OR.Image]:!0,[OR.Indicator]:!0,[OR.MiniChart]:!0}})},l(f[r],d,r)})),{row:f,pageRowIdx:p}})(r,l,u,e.qArea,c,n,o,i,a,s);r[p]=d}))}))},iV=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:s,columns:l,gridState:u,setEstimatedCellHeight:c})=>{const d=aM(rM,(e=>e.env)),{direction:p}=aM(rM,(e=>e.baseProps)),f=A([]),h=O(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return oV(t,o,n,l,e,d,c,p),f.current=n,n}),[i,o,l,e,d,c,p]),[m,g]=P((()=>h(n??[])));YC((()=>{g(h(n??[]))}),[n,p]);const b=((e,t)=>{const r=A(new Set),n=A(new Set),o=A(new Set),i=eV(e),a=eV(t),s=R((()=>({enqueue:e=>{const t=tV(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(tV(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=O(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(nV(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}}),[f,b]),y=O(((e,t,r,n)=>{for(let i=t;i<t+n;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(rV(f.current,e,t,r,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:r};b.enqueue(t)}}}),[f,b,o]);return k((()=>{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}},aV=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},sV=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,lV=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=aM(rM,(e=>e.baseProps.styleService)),i=aM(rM,(e=>e.columnWidths)),{estimateLineCount:a}=BC(o.dimension.values),s=JI(o.dimension.values.fontSize),l=e||t||1===r;return O(((e,t,o)=>{if(l||e.representation.type===OR.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])},uV=({isStaticNbrOfLines:e,minRowHeight:t,state:r,staticRowHeight:n=0,viewService:o})=>{L((()=>{const i=e?n:(e=>{let t=0;e.forEach((e=>{t+=e}));const r=0===e.size?0:t/e.size;return Math.ceil(r)})(r.rowHeights);o.estimatedRowHeight=Math.max(i,t)}),[e,t,r,n,o])},cV=({rowCount:e,isSnapshot:t,viewService:r,gridRef:n,pageInfo:o})=>{const{styleService:i}=aM(rM,(e=>e.baseProps)),[a,s]=P({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})=>{const{layout:n}=aM(rM,(e=>e.baseProps)),o=aM(rM,(e=>e.columnWidths)),i=n.multiline?.wrapTextInCells,a=n.nullValueRepresentation?.text;YC((()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map})}),[n.qHyperCube.qSize.qcx,n.qHyperCube.qSize.qcy,r.page,i,a]),YC((()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[o])})({gridRef:n,setState:s,pageInfo:o});const m=(({setState:e,maxCellHeight:t,minRowHeight:r,gridRef:n})=>O(((o,i,a)=>{_((()=>{e((e=>{const s=Math.max(r,o+9),l=Math.min(t,s),u=e.cellHeightsInGrid.get(i)??e.cellHeightsInGrid.set(i,new Map).get(i);if(!sV(u.get(a),l))return e;const c={...e};return u.set(a,l),c.rowHeights.set(i,aV(u)),n.current?.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),c}))}))}),[e,r,t,n]))({maxCellHeight:p,minRowHeight:u,setState:s,gridRef:n}),g=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>O(((o,i,a)=>{e||t||1===r||n(o,i,a)}),[e,t,r,n]))({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:m}),b=lV({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:m}),v=O((e=>c?h??u:a.rowHeights.get(e)??u),[c,u,a.rowHeights,h]);return uV({isStaticNbrOfLines:c,minRowHeight:u,state:a,staticRowHeight:h,viewService:r}),{setMeasuredCellHeight:g,setEstimatedCellHeight:b,getRowHeight:v,lineClamp:f}},dV=(e,t)=>{L((()=>()=>{t(0)}),[e,t]);const r=O((e=>{const r=MF(e);void 0!==r&&t(r)}),[t]);kF(e,r)};let pV=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const fV=({layout:e,loadRows:t,loadColumns:r,rowCount:n,pageInfo:o,gridState:i,viewService:a})=>O((({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=pV.None,i=pV.None;return o=n>t?pV.Down:n<t?pV.Up:pV.None,i=r>e?pV.Right:r<e?pV.Left:pV.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===pV.Down){const e=x+25;t(b,v,y,u+e>n?n-u:e)}else if(m===pV.Up){const e=x+25,r=o.page*o.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(g===pV.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(g===pV.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]),hV={enabled:!1},mV=()=>{},gV={current:null};const bV=(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=R((()=>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}},vV=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},yV={overflow:"hidden",willChange:"auto"};var xV=N(q(((e,t)=>{const{rect:r,columns:n,pageInfo:o,setInnerBodyHeight:i,bodyHeight:a}=e,{layout:s,model:l,theme:u,viewService:c,styleService:d,direction:p}=aM(rM,(e=>e.baseProps)),f=aM(rM,(e=>e.columnWidths)),h=aM(rM,(e=>e.initialDataPages)),m=A(null),g=A(null),b=A({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),v=A(0),y=!!zI(s)?.content?.hoverEffect,{rowCount:x,visibleRowCount:S,visibleColumnCount:w}=bV(s,o,r,f,d.contentMinRowHeight),{setMeasuredCellHeight:C,setEstimatedCellHeight:E,getRowHeight:P,lineClamp:I}=cV({rowCount:x,isSnapshot:!!s.snapshotData,viewService:c,gridRef:m,pageInfo:o}),{rowsInPage:M,loadRows:D,loadColumns:T}=iV({layout:s,model:l,theme:u,initialDataPages:h,pageInfo:o,rowCount:x,visibleRowCount:S,visibleColumnCount:w,columns:n,gridState:b,setEstimatedCellHeight:E}),O=fV({layout:s,loadRows:D,loadColumns:T,rowCount:x,pageInfo:o,gridState:b,viewService:c}),q=bH(),N=R((()=>({rowsInPage:M,columns:n,isHoverEnabled:y,lineClamp:I,setMeasuredCellHeight:C,resizeObserverTaskScheduler:q})),[M,n,y,I,C,q]);return L((()=>{1===v.current&&m.current?.scrollToItem({rowIndex:x-1,align:"start"})})),function(e){const{selectionsAPI:t}=aM(rM,(e=>e.baseProps)),r=aM(rM,(e=>e.selectionDispatch));k((()=>{r({type:$A.UpdatePageRows,payload:{pageRows:e}})}),[r,e]),vH({selectionsAPI:t,selectionDispatch:r,updateShouldRefocus:mV,keyboard:hV,tableWrapperRef:gV})}(M),z(t,(()=>({interpolatedScrollTo:(e,t)=>{const r=(g.current?.clientHeight??a)-a,n=Math.round(r*e);v.current=e,1===v.current?(m.current?.scrollToItem({rowIndex:x-1,align:"start"}),m.current?.scrollTo({scrollLeft:t})):m.current?.scrollTo({scrollTop:n,scrollLeft:t})}})),[g,a,x]),dV(g,i),rr.jsx(OB,{"data-key":"body",ref:m,innerRef:g,style:yV,columnCount:s.qHyperCube.qSize.qcx,columnWidth:e=>f[e],height:a,rowCount:x,rowHeight:P,estimatedRowHeight:c.estimatedRowHeight,width:r.width,itemData:N,onItemsRendered:O,itemKey:vV,className:"sn-table-body",direction:p,children:QB})})));const SV=({width:e,height:t,children:r})=>rr.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),wV=(e,t)=>{const r=A(null),n=aM(rM,(e=>e.columnWidths));L((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=O((r=>{const n=MF(r);n&&t(n+9,e)}),[e,t]);return kF(r,o),r},CV=hc("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e})((({interactions:e,hoverBackground:t,background:r,applicableStyle:n})=>({...n,background:r,"&&:hover:not(:has(button:hover))":{background:e.active?t:void 0}}))),EV=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i}=r,{interactions:a,styleService:s,direction:l}=aM(rM,(e=>e.baseProps)),u=aM(rM,(e=>e.baseProps.selectionsAPI?.isModal())),c=aM(rM,(e=>e.showRightBorder)),d=aM(rM,(e=>e.tableData.totalsPosition)),p=!!a.active&&!u,f=n[e],{open:h,setOpen:m,handleOpenMenu:g,setIsAdjustingWidth:b,toggleSortOrder:v}=D$({isInteractionEnabled:p,column:f}),y=Jz(),x=wV(e,i),S=n.length-1===e,w=y?wF:BF,{ref:C,isDragging:E}=rB(f,e),R=u$(f.id);return rr.jsxs(CV,{"data-dragging":E,ref:C,className:`sn-table-cell ${nE}`,title:a.passive?f.label:void 0,onClick:y?g:v,applicableStyle:{...s.header,...Zz(s,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:pI(l,S,c),borderLeftWidth:fI(l,S,c),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:f.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:"right"===f.headTextAlign?"row-reverse":"row",userSelect:"none",opacity:R},interactions:a,hoverBackground:s.headerMenuHoverBackground,background:y&&h?s.headerMenuActiveBackground:s.header.background,children:[rr.jsx(w,{forwardRef:x,column:f,isInteractionEnabled:p,open:h,setOpen:m}),rr.jsx(M$,{column:f,isLastColumn:S,onColumnResize:o,setIsAdjustingWidth:b})]})},RV=e=>{const[t,r]=P(new Map);YC((()=>{r(new Map)}),[e.length]);const n=O(((e,t)=>{r((r=>sV(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:R((()=>aV(t)),[t]),setMeasuredCellHeight:n}},PV=(e,t)=>{z(e,(()=>({scrollTo:e=>t.current?.scrollTo(e)})),[t])},AV=(e,t,r,n,o)=>{YC((()=>{e.current?.resetAfterIndex(0,!1)}),[t,r,e,n,o])},IV={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},MV=q(((e,t)=>{const{rect:r,columns:n,pageInfo:o,columResizeHandler:i,setHeaderRowHeight:a}=e,s=x.useRef(null),l=A(null),{layout:u,theme:c,styleService:d,direction:p,viewService:f}=aM(rM,(e=>e.baseProps)),h=aM(rM,(e=>e.columnWidths)),{rowHeight:m,setMeasuredCellHeight:g}=RV(n),b=I$(f,u);return PV(t,s),AV(s,u,o,h,c),dV(l,a),rr.jsx(HB,{className:"sn-table-head-row",ref:s,outerRef:l,layout:"horizontal",style:{...IV,...b?{display:"none"}:void 0},itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>h[e],height:Math.max(m+8,d.headerMinRowHeight),width:r.width,itemKey:e=>n[e].id,itemData:{columns:n,columResizeHandler:i,setMeasuredCellHeight:g},direction:p,children:EV})}));var kV=N(MV);const DV=q(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a,direction:s}=aM(rM,(e=>e.baseProps));return rr.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.scroll?"auto":"hidden",width:n,height:o},onScroll:i,dir:s,tabIndex:-1,children:r})})),TV=({children:e,rect:t})=>{const{direction:r}=aM(rM,(e=>e.baseProps));return rr.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})},OV=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,{layout:a,interactions:s,styleService:l,direction:u}=aM(rM,(e=>e.baseProps)),c=aM(rM,(e=>e.showRightBorder)),d=wV(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:h}=n[e],m=a.qHyperCube.qSize.qcx-1===e,g=u$(n[e].id);return rr.jsx("div",{className:`sn-table-cell ${nE}`,title:s.passive?p:void 0,style:{...t,...l.totalRow,...Zz(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:pI(u,m,c),borderLeftWidth:fI(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",opacity:g},children:rr.jsx(SF,{forwardRef:h?void 0:d,isNumeric:h,children:p})})},LV=q(((e,t)=>{const{rect:r,pageInfo:n,totals:o,columns:i,setTotalsRowHeight:a}=e,s=A(null),l=A(null),{layout:u,theme:c,styleService:d,direction:p}=aM(rM,(e=>e.baseProps)),f=aM(rM,(e=>e.columnWidths)),{rowHeight:h,setMeasuredCellHeight:m}=RV(i);return PV(t,s),AV(s,u,n,f,c),dV(l,a),rr.jsx(HB,{ref:s,outerRef:l,layout:"horizontal",style:IV,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:OV})}));var qV=N(LV);const NV=(e,t,r,n,o)=>O((i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,u=((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),c=Math.max(0,Math.min(1,l/(a-s)));n.scrollTopRatio=c,n.scrollLeft=u,r.current?.interpolatedScrollTo(Number.isNaN(c)?0:c,u),e.current?.scrollTo(u),t.current?.scrollTo(u)}),[n,r,e,t,o]),jV=e=>{const{pageInfo:t}=e,{totalsPosition:r,columns:n,paginationNeeded:o}=aM(rM,(e=>e.tableData)),{layout:i,theme:a,rect:s,viewService:l,direction:u}=aM(rM,(e=>e.baseProps)),c=aM(rM,(e=>e.columnWidths)),d=A(null),p=A(null),f=A(null),h=A(null),m=R((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(s,o)),[s,o]),g=aM(rM,(e=>e.yScrollbarWidth)),b=aM(rM,(e=>e.xScrollbarWidth)),v=R((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(m,b,g)),[m,b,g]),{rowCount:y}=bV(i,t,v,c,0),{headerAndTotalsHeight:x,innerBodyHeight:S,setHeaderRowHeight:w,setTotalsRowHeight:C,setInnerBodyHeight:E}=(()=>{const[e,t]=P(0),[r,n]=P(0),[o,i]=P(0);return{headerAndTotalsHeight:e+r,innerBodyHeight:o,setHeaderRowHeight:t,setTotalsRowHeight:n,setInnerBodyHeight:i}})(),{width:I,height:M}=(({innerBodyHeight:e,headerAndTotalsHeight:t,rowCount:r,stickyContainerRect:n,columnWidths:o})=>{const{styleService:i}=aM(rM,(e=>e.baseProps)),a=e+t;let s=r*i.contentMinRowHeight+t;return a<2*n.height&&(s=a),{width:o.reduce(((e,t)=>e+t),0),height:s}})({innerBodyHeight:S,headerAndTotalsHeight:x,rowCount:y,stickyContainerRect:v,columnWidths:c}),k=NV(p,f,h,l,u),D=((e,t,r)=>Math.min(e.height-t,r))(v,x,S),T=O((()=>{d.current&&(d.current.scrollTop=0)}),[d]);rH(),L((()=>{d.current&&(d.current.scrollLeft=0,d.current.scrollTop=0)}),[n.length]),L((()=>{d.current&&(d.current.scrollTop=0)}),[t,y,a]),cH(d);const q=rr.jsx(qV,{rect:v,pageInfo:t,columns:n,ref:f,totals:r,setTotalsRowHeight:C},"totals");return rr.jsxs(JF,{children:[rr.jsx(DV,{ref:d,width:m.width,height:m.height,onScroll:k,children:rr.jsxs(SV,{width:I,height:M,children:[rr.jsxs(TV,{rect:v,children:[rr.jsx(kV,{rect:v,pageInfo:t,columns:n,ref:p,columResizeHandler:T,setHeaderRowHeight:w}),r.atTop?q:null,rr.jsx(xV,{ref:h,rect:v,pageInfo:t,columns:n,setInnerBodyHeight:E,bodyHeight:D}),r.atBottom?q:null]}),rr.jsx(Xz,{})]})}),rr.jsx(YF,{isPagination:!1})]})};var _V=N(jV);const zV=()=>{const{theme:e,keyboard:t,interactions:r,rect:n,layout:o}=aM(rM,(e=>e.baseProps)),{paginationNeeded:i,totalRowCount:a,totalColumnCount:s,totalPages:l}=aM(rM,(e=>e.tableData)),u=oR(sR),c=aM(rM,(e=>e.pageInfo)),d=aM(rM,(e=>e.setPage));return rr.jsxs(bF,{"data-testid":"sn-table",children:[rr.jsx(_V,{pageInfo:c}),rr.jsx(Ok,{paginationNeeded:i,handleChangePage:e=>{d(e)},pageInfo:c,totalRowCount:a,totalColumnCount:s,totalPages:l,keyboard:t,translator:u,theme:e,interactions:r,rect:n,layout:o})]})};var FV=N(zV);var HV={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 $V=(t,r)=>{const n=r.get(sR);return e((()=>(function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(HV).forEach((t=>{e.add(HV[t])}))}(n),((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(`.${BA.First}`),s=e.querySelector(`.${BA.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;r===BA.First?(l=s,r=BA.Second):(l=a,r=BA.First),l.innerHTML=l.innerHTML.endsWith(" ")?i:`${i} `,l.setAttribute("aria-live",o)}})(t,n))),[t,n.language()])},WV={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},BV=(e,r)=>{const{model:i,rootElement:a,layout:s,reactRoot:l,isFontLoaded:u,viewService:c,env:d}=e,{direction:p,footerContainer:f}=t(),h=NA(s,c),m=$V(a,r),[g,b]=n(((e,t)=>qA(e,t)?{page:t.page||WV.page,rowsPerPage:t.rowsPerPage||WV.rowsPerPage,rowsPerPageOptions:WV.rowsPerPageOptions}:WV)(s,c)),[v,y]=HC((async()=>h?async function(e,t,r,n,o,i,a,s){const{page:l,rowsPerPage:u,rowsPerPageOptions:c}=r,d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/u),h=o.visibleTop??l*u,m=o.visibleHeight??Math.min(u,p-h);if(l>0&&h>=p)return n({...r,page:0}),null;if(m*d>AA)return n({...r,rowsPerPage:IA(d,c),page:0}),null;const g=p>10,b=MA(t,o),v=LA(t,a,s),y=!!t.snapshotData,x=await(async(e,t,r)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const n=t.qHyperCube.qDataPages.at(0),o=n?.qArea;return n&&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:h,qHeight:m,qWidth:d});y||(o.qTop=h,o.qHeight=m,o.rowsPerPage=r.rowsPerPage,o.page=r.page);const S=x.at(0)?.qMatrix.map(((e,r)=>{const n=[];return v.forEach(((o,l)=>{const u=e[l],c=PA(o.isDim,u,t),d=!o.isDim&&u.qIsNull,p=d?OP(c):TP(u);n[l]={id:MP(),...u,align:OA(p,o.bodyTextAlign,s,a),rowIdx:r+h,colIdx:o.colIdx,pageRowIdx:r,pageColIdx:l,selectionColIdx:o.selectionColIdx,isSelectable:o.isDim&&!o.isLocked,isLastRow:r===m-1,isNumeric:p,isNull:(!d||!p)&&RA(u,o.isDim),representation:EA({cell:u,representationProperties:o.representation,attrExprInfoIndex:o.qAttrExprInfoIndex,env:i,conditionalColoring:o.conditionalColoring,miniChartOnMeasure:o.qMiniChart,getText:()=>d?c:u.qText,direction:s,enabledFeatures:{[OR.Image]:!0,[OR.Indicator]:!0,[OR.MiniChart]:!0}})}})),n}))??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(i,s,g,b,c,d,!0,p):null),[s,g,i,h,p]);o((()=>{h&&e.model&&e.changeSortOrder&&v&&u&&!y&&function(e,t,r){const{direction:n,...o}=e,i=sM(n);t.render(rr.jsx(mi,{stylisPlugins:"rtl"===n?[FA]:void 0,children:rr.jsx(gc,{theme:i,children:rr.jsx(ZE,{store:r,children:rr.jsx(iM,{...e,children:rr.jsx(sB,{...o})})})})}))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:v,pageInfo:g,setPageInfo:b,direction:p,footerContainer:f,announce:m},l,r)}),[m,p,f,u,g,l,e,h,v,y,r])},VV=(t,r)=>e((()=>((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){const e=c.qHyperCubeDef.qMeasures.at(u)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${u}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===s?1:-1})})}l||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),t.applyPatches(p,!0)}})(t.qDimensionInfo.length,r)),[t.qDimensionInfo.length,r]);const UV=({model:e,layout:t,shouldRender:r,page:n})=>{const[o,i]=HC((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(SI,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}},GV=(t,r)=>{const{layout:i,model:a,keyboard:s,interactions:l,reactRoot:u,isFontLoaded:c,viewService:d,direction:p}=t,f=!NA(i,d),[h,m]=n(!1);h&&m(!1);const g=e((()=>function(e,t,r,n,o){const i=LA(e,o,n),a=MA(e,r),s=e.qHyperCube.qSize.qcy,l=Math.min(SI,s),u=s>SI&&!!t.active;return{totalsPosition:a,columns:i,rows:[],totalRowCount:s,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(s/l),paginationNeeded:u}}(i,l,d,p,h)),[i,l,d,p,h]),{pageInfo:b,setPage:v}=((t,r)=>{const[o,i]=n(0),a=Math.min(SI,t.qHyperCube.qSize.qcy),s=e((()=>({page:o,rowsPerPage:a,rowsPerPageOptions:[]})),[a,o]);if(r){const e=Math.floor(t.qHyperCube.qSize.qcy/SI);e<o&&i(e)}return{pageInfo:s,setPage:i}})(i,f),{initialDataPages:y,isLoading:S}=UV({model:a,layout:i,page:b.page,shouldRender:f});o((()=>{f&&s.active&&s.blur?.(!1)}),[s,f]),o((()=>{f&&t.model&&t.changeSortOrder&&y&&!S&&c&&function(e,t,r){const{direction:n}=e,o=sM(n);t.render(rr.jsx(x.StrictMode,{children:rr.jsx(gc,{theme:o,children:rr.jsx(ZE,{store:r,children:rr.jsx(iM,{...e,children:rr.jsx(FV,{})})})})}))}({...t,model:t.model,changeSortOrder:t.changeSortOrder,tableData:g,pageInfo:b,setPage:v,initialDataPages:y},u,r)}),[y,c,S,b,u,t,v,f,g,r])},YV={version:JSON.stringify("6.5.7"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[]};function KV(e,t){const r=e.getElementsByClassName("sn-table-container")[0];if(!r)return{};const n=r.getBoundingClientRect(),o=e.getElementsByClassName("sn-table-head-row")[0],i=o?.getBoundingClientRect()??{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],s=a?.getBoundingClientRect()??{height:0},l=e.getElementsByClassName("sn-table-data-row"),u={top:n.y+i.height+(t.atTop?s.height:0),bottom:n.y+n.height-(t.atBottom?s.height:0)},c=((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})(l,u),d=((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})(l,u),p=((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)})(l,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const XV=(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]}},JV=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const ZV=(e,t,r,n)=>{if(e<0)return 0;const o=r.qHyperCube.qSize.qcy,i=n.rowsPerPage||WV.rowsPerPage,a=n.viewState?.isMultiPage?0:3;return Math.min(o,i,e-t+1+a)},QV=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=MA(e,t);if(NA(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=KV(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:ZV(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=r?.getBoundingClientRect(),o=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=XV(d,o),h=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=(JV(h,m,g)?d:d+1)+c;let v=p+c;const y=XV(p,o),x=y?.getBoundingClientRect();return y&&x&&(JV(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:ZV(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},eU=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),tU=e=>e.getStyle("object","straightTableV2","backgroundColor");function rU(r){return{qae:{properties:{initial:YV},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>PR({...e}),exportProperties:xR,exploration:AR},ext:SP(r),component(){const n=e((()=>KE()),[]),i=c(),y=(t=>{const r=e((()=>VC(t)),[t]);return o((()=>()=>{r.unmount()}),[r]),r})(i),x=d();n.set(aR,p());const S=f(),w=(e=>{const t=a();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(!!x.snapshotData);n.set(sR,h());const C=m(),E=g(),R=t(),{freeResize:P}=R,A=b(),I=e((()=>x.snapshotData?.content&&!P?{...A,...x.snapshotData.content.size}:A),[A,P,x.snapshotData?.content]),M=(r=>{const{viewState:n}=t();return e((()=>((e,t)=>({qTop:0,qHeight:0,rowPartialHeight:t?.content?.rowPartialHeight??0,visibleTop:t?.content?.visibleTop??e?.visibleTop,visibleHeight:t?.content?.visibleHeight??e?.visibleHeight,scrollLeft:t?.content?.scrollLeft??e?.scrollLeft??0,scrollTopRatio:t?.content?.scrollTopRatio??e?.scrollTopRatio,rowsPerPage:t?.content?.rowsPerPage??e?.rowsPerPage,page:t?.content?.page??e?.page,viewState:e,estimatedRowHeight:t?.content?.estimatedRowHeight??0}))(n,r.snapshotData)),[n,r.snapshotData,r.usePagination])})(x),k=v(),D=FC(x,i,eU,tU),T=R.direction,O=VV(x.qHyperCube,S),L=wP(x.qHyperCube,S),q=((e,t,r)=>{const[,n,o]=HC((async()=>{const t=ye(r.flags),n=e.getStyle("","","fontFamily"),o=e.getStyle("object","label.name","fontFamily"),i=e.getStyle("object","label.value","fontFamily"),a=e.getStyle("","","fontFamilies")??[];return Promise.all([...t,...a,n,o,i,GC].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})(D,x,r),N=Tt(),j=e((()=>new JC),[]),_={layout:x,model:S,rect:I,theme:D,keyboard:E,interactions:w,selectionsAPI:C,changeSortOrder:O,rootElement:i,embed:k,reactRoot:y,applyColumnWidths:L,isFontLoaded:q,downloadService:N,viewService:M,direction:T,env:r,eventEmitter:j};s?.(((e,t)=>{const r=t.target,n=r?.closest(`.${nE}`);n?.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:async()=>{fE(n)}})})),(({layout:e,viewService:t,model:r,rootElement:n,contentRect:o})=>{l((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}=QV(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})),u((()=>({getViewState:()=>QV(e,t,n)})),[e,t,n])})({layout:x,viewService:M,model:S,rootElement:i,contentRect:A}),GV(_,n),BV(_,n)}}}export{rU as default};
|
|
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"),w=new RegExp("("+l+g+"[^;}]+;?)","gi"),C=new RegExp("("+l+"[^\\}]*?})","gi"),E=new RegExp("("+i+")ltr","gi"),R=new RegExp("("+i+")rtl","gi"),P=new RegExp(s+"(left)"+m+b+g,"gi"),A=new RegExp(s+"(right)"+m+b+g,"gi"),I=new RegExp(s+"(left)"+v,"gi"),M=new RegExp(s+"(right)"+v,"gi"),k=new RegExp(s+"(ltr)"+v,"gi"),D=new RegExp(s+"(rtl)"+v,"gi"),T=new RegExp(s+"([ns]?)e-resize","gi"),O=new RegExp(s+"([ns]?)w-resize","gi"),L=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"),N=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+d+")","gi"),j=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),_=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"),H=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+p,"gi"),$=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),W=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),B=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 U(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 G(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?U(n)+" / "+U(o):U(n))+i}function Y(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function K(e,t,r){return t+Y(r)}function X(e,t,r,n,o){return t+r+Y(n)+o}function J(e,t,r,n,o){return t+r+n+Y(o)}return{transform:function(r,o){var i=new n(w,"`NOFLIP_SINGLE`"),a=new n(C,"`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(D,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(r=r.replace(I,"$1"+e).replace(M,"$1left").replace(x,"right")),r=r.replace(E,"$1"+e).replace(R,"$1ltr").replace(x,"rtl").replace(P,"$1"+e).replace(A,"$1left").replace(x,"right").replace(T,"$1$2"+e).replace(O,"$1$2e-resize").replace(x,"w-resize").replace(_,G).replace(z,K).replace(F,J).replace(H,J).replace($,K).replace(W,X).replace(B,X).replace(L,"$1$2$3$8$5$6$7$4$9").replace(q,"$1$2$3$8$5$6$7$4$9").replace(N,V).replace(j,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)}(eI,eI.exports);var tI=Vt(eI.exports);function rI(e,t,r){switch(e.type){case Xr:case Kr:case Gr:return e.return=e.return||e.value;case Yr:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===Gr&&(e.children=e.value)}))}var n=zn(Array.prototype.concat(e.children),rI);return ln(n)?e.return=e.value+"{"+n+"}":""}function nI(e,t,r,n){if(e.type===Jr||"@supports"===e.type||e.type===Yr&&(!e.parent||"@media"===e.parent.type||e.parent.type===Yr)){var o=tI.transform(rI(e));e.children=o?On(o)[0].children:[],e.return=""}}Object.defineProperty(nI,"name",{value:"stylisRTLPlugin"});class oI{#e={on:new Map,once:new Map};#t=10;#r(e){this.listenerCount(e)>this.#t&&console.warn(`Possible EventEmitter memory leak detected. ${this.listenerCount(e)} listeners added to "${String(e)}".`)}#n(e,t,r){const n=this.#e[e].get(t)??new Set;n.add(r),this.#e[e].set(t,n),this.#r(t)}setMaxListeners(e){this.#t=e}on(e,t){this.#n("on",e,t)}once(e,t){this.#n("once",e,t)}off(e,t){this.#e.on.get(e)?.delete(t),this.#e.once.get(e)?.delete(t)}emit(e,...t){this.#e.on.get(e)?.forEach((e=>{e(...t)})),this.#e.once.get(e)?.forEach((e=>{e(...t)})),this.#e.once.delete(e)}listenerCount(e){return(this.#e.on.get(e)?.size??0)+(this.#e.once.get(e)?.size??0)}removeAllListeners(e){void 0===e?(this.#e.on.clear(),this.#e.once.clear()):(this.#e.on.delete(e),this.#e.once.delete(e))}}const iI=$E((()=>new oI));let aI=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),sI=function(e){return e.Select="Select",e.SelectMouseDown="SelectMouseDown",e.SelectMouseUp="SelectMouseUp",e.SelectMultiAdd="SelectMultiAdd",e.SelectMultiEnd="SelectMultiEnd",e.Reset="Reset",e.Clear="Clear",e.UpdatePageRows="UpdatePageRows",e}({}),lI=function(e){return e.A="ascending",e.D="descending",e}({}),uI=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const cI=[0,0],dI=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),pI=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},fI=(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&&ne(e.localPaletteColors[t].color).blend(ne(s.color),s.t)},hI=(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:dI(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:pI(n,t,r)})))),n},mI=(e,t,r,n)=>{const o=hI(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=fI(e,a,t);break}n=i}return r})(o,t);return a},gI=(e,t)=>{const r=(e=>e.map((e=>e.value??e)).sort(((e,t)=>e-t)))(e),n=r.some((e=>!XP(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||!XP(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)},bI=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=gI(e,t),o=Math.abs(t);return{min:r??t-o,max:n??t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!XP(t))return 0;let a=r&&XP(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}},vI=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=bI(o,t),a=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,r.limitPaletteColorIndex))return pI(o,r.limitPaletteColorIndex,n);const a=dI(r.limitRange,t);return mI(o,a,r.limitRange,n)})(o,t,i,n),s=o.segments.paletteColors[i?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let u=l?.position||"right";return"rtl"===r&&(u="right"===u?"left":"right"),{color:a,iconKey:s,position:u}},yI=(CC().palette.primary.light,"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"),xI=4/3,SI="12px",wI="600",CI="Source Sans Pro, sans-serif",EI={height:"auto",fontSize:SI,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"}},RI={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:wI},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},PI=(e,t)=>"rtl"===e&&"center"!==t.resolvedImagePosition?.horizontal?t.resolvedImagePosition?.horizontal&&(e=>"flex-start"===e?"flex-end":"flex-start")(t.resolvedImagePosition?.horizontal):t.resolvedImagePosition?.horizontal,AI=(e,t)=>e.representation.type===ZR.Image&&"fitHeight"===e.representation.imageSize?PI(t,e.representation):e.align,II=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",MI=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},kI=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,DI=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",TI=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",OI=24,LI=pc("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0}))),qI=pc(rp,{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?II(e,n):void 0}))),NI=pc(rp,{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},[`& .${JC}`]:{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"},[`& .${JC}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),jI=pc(rp,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"}))),_I=pc(rp,{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"}))),zI=pc(pd,{shouldForwardProp:e=>"hoverBackground"!==e&&"activeBackground"!==e&&"isActive"!==e&&"order"!==e})((({hoverBackground:e,activeBackground:t,isActive:r,order:n})=>({padding:"4px !important",width:"fit-content",height:"auto",background:r?t:void 0,"&:hover":{background:e},color:"inherit",order:n}))),FI=25e4,HI=(e,t,r)=>{if(!e.length)return[];const n=[],o=[];let i=t;if(e.forEach(((e,a)=>{const{columnWidth:{type:s,pixels:l,percentage:u},label:c,qApprMaxGlyphCount:d,totalInfo:p}=e;let f=0;const h=()=>{n[a]=Math.min(nE.PixelsMax,Math.max(nE.PixelsMin,f)),i-=n[a]};switch(s){case oE.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?nE.PixelsDefault:+e)(l),h();break;case oE.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?nE.PercentageDefault:+e)(u)/100*t,h();break;case oE.FitToContent:e.representation?.type===ZR.Image?o.push(a):(f=r(c,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case oE.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}})),o.length){const e=i/o.length;o.forEach((t=>{n[t]=Math.max(nE.AutoMinTable,e)}))}return n},$I=(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"]})},WI=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},BI=e=>e.ctrlKey||e.metaKey,VI=e=>e.shiftKey&&BI(e),UI=e=>[tE.Left,tE.Right,tE.Up,tE.Down].includes(e),GI=e=>e.shiftKey&&UI(e.key),YI=e=>(e=>UI(e)||[tE.Home,tE.End,tE.PageUp,tE.PageDown].includes(e))(e.key)&&!VI(e),KI=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l=new Map;if(-1===o)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),$I(a,n,l),l.size?(r?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(l.values()),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(r?.cancel(),{...e,rows:l,colIdx:-1})},XI=(e,t)=>{const{api:r,rows:n,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:u}=t;if(!(a||"key"in u&&GI(u)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const c=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&GI(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===tE.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})(i,n,s,u,a);return $I(l,n,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},JI=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&t?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(r.values()),[n]]}),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},ZI=(e,t)=>{switch(t.type){case sI.Select:return KI(e,t.payload);case sI.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 sI.SelectMouseUp:return((e,t)=>JI(e.isSelectMultiValues||e.firstCell!==t.cell?e:KI(e,t)))(e,t.payload);case sI.SelectMultiAdd:return XI(e,t.payload);case sI.SelectMultiEnd:return JI(e);case sI.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case sI.Clear:return e.rows.size?{...e,rows:new Map}:e;case sI.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},QI=4/3,eM=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function tM(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const rM=(e,t)=>e?{borderBottomColor:RC.DARK_MODE_BORDER,borderRightColor:RC.DARK_MODE_BORDER,borderLeftColor:RC.DARK_MODE_BORDER,borderTopColor:RC.DARK_MODE_BORDER}:{borderLeftColor:RC.BORDER_MEDIUM,borderRightColor:RC.BORDER_MEDIUM,borderTopColor:RC.BORDER_HEAVY,borderBottomColor:t?RC.BORDER_HEAVY:RC.BORDER_LIGHT},nM=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*QI+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},oM=e=>e.components?.find((e=>"theme"===e.key)),iM=(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:eM(r?.fontColor)?tM(RC.TEXT,t,r?.fontColor):i||RC.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...rM(t.background.isDark,n)};return Object.keys(s).forEach((e=>{const t=e;null==s[t]&&delete s[t]})),s};function aM(e,t,r){const n=oM(e)?.header,o=iM("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=ne(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=IC(o.background??RC.WHITE,iE),o.activeBackground=IC(o.background??RC.WHITE,aE),o}const sM=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach((e=>(e=>e in RI)(e)&&Object.assign(t,RI[e]))),t};function lM(e,t,r){const n={};let o={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return t?.qValues?.forEach(((e,t)=>{const i=e.qText,a=i&&kC(i);a&&"none"!==a&&(n[r[t]]=a),o=i?sM(i,o):o})),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=PC(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const uM=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},cM=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=uM(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},dM=(e,t,r,n=RC.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=cM(e,t,r);return qC(i,o,a,n)??n},pM=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return SI}},fM=e=>e?.some((e=>"italic"===e))?"italic":"normal",hM=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?wI:"normal",mM=e=>!1===e?1:3,gM=e=>parseInt(e??EI.fontSize,10)*xI,bM=e=>e?.some((e=>"underline"===e))?"underline":"none",vM=(e,t,r,n,o)=>{const{header:i,dimensionValues:a,measureValues:s,totalValues:l,nullValues:u,grid:c,content:d}=oM(t)??{},p=vR(t,o)?RC.WHITE:RC.TRANSPARENT,f=dM(n,i,"object.straightTableV2.dimension.label.name.backgroundColor",p),h=o?.maxLineCount??d?.rowHeight??n.getStyle("object.straightTableV2","grid","lineClamp"),m={header:{fontFamily:i?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??r.head.fontFamily??CI,fontSize:pM(i?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??r.head.fontSize),fontStyle:fM(i?.fontStyle),fontWeight:hM(i?.fontStyle,wI),textDecoration:bM(i?.fontStyle),color:uM(n,i?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??r.head.color??RC.TEXT,background:f},headerMenuHoverBackground:IC(f,iE),headerMenuActiveBackground:IC(f,aE),dimension:{values:{fontFamily:a?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??r.body.fontFamily??CI,fontSize:pM(a?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??r.body.fontSize),fontStyle:fM(a?.fontStyle),fontWeight:hM(a?.fontStyle,"normal"),textDecoration:bM(a?.fontStyle),color:uM(n,a?.fontColor)??uM(n,d?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??r.body.color??RC.TEXT,background:cM(n,a,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??r.body.background??RC.TRANSPARENT}},measure:{values:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??r.body.fontFamily??CI,fontSize:pM(s?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??r.body.fontSize),fontStyle:fM(s?.fontStyle),fontWeight:hM(s?.fontStyle,"normal"),textDecoration:bM(s?.fontStyle),color:uM(n,s?.fontColor)??uM(n,d?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??r.body.color??RC.TEXT,background:cM(n,s,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??r.body.background??RC.TRANSPARENT}},totalRow:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??r.totals.fontFamily??CI,fontSize:pM(l?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??r.totals.fontSize),fontStyle:fM(l?.fontStyle),fontWeight:hM(l?.fontStyle,wI),textDecoration:bM(l?.fontStyle),color:uM(n,l?.fontColor)??uM(n,d?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??r.totals.color??RC.TEXT,background:dM(n,l,"object.straightTableV2.total.label.value.backgroundColor",p)},nullValues:{fontStyle:fM(u?.fontStyle),fontWeight:hM(u?.fontStyle,"normal"),textDecoration:bM(u?.fontStyle),color:uM(n,u?.fontColor)??uM(n,d?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??r.body.color??RC.TEXT,background:uM(n,u?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??RC.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:h??mM(t.multiline?.wrapTextInCells),headerLineClamp:mM(t.multiline?.wrapTextInHeaders),border:uM(n,c?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?RC.DARK_MODE_BORDER:RC.BORDER_MEDIUM),divider:uM(n,c?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??RC.BORDER_HEAVY,hoverColors:{color:uM(n,d?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??r.body.hoverColors?.color,background:uM(n,d?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??r.body.hoverColors?.background},zebraStripes:{show:!!c?.zebraStripes?.show,odd:{color:uM(n,c?.zebraStripes?.color?.odd),background:uM(n,c?.zebraStripes?.background?.odd)},even:{color:uM(n,c?.zebraStripes?.color?.even),background:uM(n,c?.zebraStripes?.background?.even)},overrideNullValueBackground:void 0===uM(n,u?.background),overrideNullValueColor:void 0===uM(n,u?.fontColor)},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:AC(n),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:h},{headerMinRowHeight:g,totalRowLineHeight:b,totalRowMinHeight:v,contentLineHeight:y,contentMinRowHeight:x}=(e=>{const t=Math.max(gM(e.header.fontSize)+8,32),r=gM(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(gM(e.dimension.values.fontSize),gM(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)}})(m);return m.headerMinRowHeight=g,m.totalRowLineHeight=b,m.totalRowMinHeight=v,m.contentLineHeight=y,m.contentMinRowHeight=x,m},yM=(e,t,r,n)=>{const o=R((()=>{const o=r.totalsPosition.atTop,i=function(e,t,r,n){const o=oM(e)?.content,i=iM("content",t,o);i.background=t.background.color;const a=nM(i.fontSize,r,n),s=o?.hoverColor,l=o?.hoverFontColor,u=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),c=t.getStyle("object","","straightTableV2.content.hover.color"),d=eM(l)||!!c,p=eM(s)||!!u,f=d||p;let h;h=eM(s)?tM(RC.HOVER,t,s):u||(d?"":RC.HOVER);const m=f?tM(PC(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(e,t,r.rows.length,n),a=aM(e,t,!o),s=function(e,t,r){const n=oM(e)?.content,o=iM("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=aM(e,t,r);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(e,t,o);return{body:i,head:a,totals:s}}),[e,t,r,n]);return o},xM=new Map;const SM=I({}),wM=function(e){const t=I([()=>{},new Set]);return xM.set(e,t),({children:r,value:n})=>{const o=A(n),i=A(new Set);k((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=O((()=>o.current),[o]),s=R((()=>[a,i.current]),[a]);return rr.jsx(e.Provider,{value:n,children:rr.jsx(t.Provider,{value:s,children:r})})}}(SM),CM={rows:[],columns:[],totalsPosition:{}},EM=({children:e,tableData:t=CM,layout:r,theme:n,rootElement:o,embed:i,changeSortOrder:a,applyColumnWidths:s,setPage:l,pageInfo:u,initialDataPages:c,rect:d,viewService:p,downloadService:f})=>{const[h,m]=(e=>{const t=eR(uR),[r,n]=M(ZI,{pageRows:e,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(t.rows),g=yM(r,n,t,o),b=((e,t,r)=>{const n=eR(wR),o=eR(nR);return R((()=>vM(0,e,t,r,n)),[e,t,o,r,n])})(r,g,n),{xScrollbarWidth:v,yScrollbarWidth:y,setXScrollbarWidth:x,setYScrollbarWidth:S}=(()=>{const[e,t]=P(0),[r,n]=P(0);return{xScrollbarWidth:e,yScrollbarWidth:r,setYScrollbarWidth:n,setXScrollbarWidth:t}})(),{columnWidths:w,setColumnWidths:C,showRightBorder:E,isAdjustingWidth:A,setIsAdjustingWidth:I}=(({columns:e,totalsPosition:t,tableWidth:r,styleService:n,yScrollbarWidth:o,accessibleHeader:i=!0})=>{const a=eR(iI),s=t.atBottom||t.atTop,l=$C({...n.header,fontWeight:wI},{maxNbrLinesOfText:3}).measureText,u=$C({...n.totalRow,fontWeight:wI},{maxNbrLinesOfText:3}).measureText,{estimateWidth:c}=$C(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:d}=$C(n.measure.values,{maxNbrLinesOfText:3}),p=R((()=>(e,t,r,n,o,a,p)=>{let f=0;if(i){const t=4;let r=25;r+=t+24,n&&(r+=20+t),o&&(r+=20),f=l(e)+r}else{let t=9;t+=16,p&&(t+=OI),t+=OI,t+=OI,f=l(e)+t}const h=a?c:d;return Math.max(f,s?u(t)+24+1:0,h(r))}),[c,d,l,u,s,i]),[f,h]=P(!1),[m,g]=P((()=>HI(e,r,p)));L((()=>{const t=HI(e,r-o,p);g(t),h(!1)}),[e,r,o,p]),L((()=>{f||a.emit("done-adjusting-column-width")}),[f,a]);const b=R((()=>((e,t,r)=>e.length>0&&e.reduce(((e,t)=>e+t))+t<r)(m,o,r)),[m,o,r]);return{columnWidths:m,setColumnWidths:g,showRightBorder:b,isAdjustingWidth:f,setIsAdjustingWidth:h}})({columns:t.columns,totalsPosition:t.totalsPosition,tableWidth:d.width,styleService:b,accessibleHeader:r.accessibleHeader,yScrollbarWidth:y}),k=R((()=>({layout:r,theme:n,rootElement:o,embed:i,changeSortOrder:a,applyColumnWidths:s,rect:d,viewService:p,styleService:b,downloadService:f})),[r,n,o,i,a,s,d,p,b,f]);return rr.jsx(wM,{value:{selectionState:h,selectionDispatch:m,columnWidths:w,setColumnWidths:C,baseProps:k,tableData:t,setPage:l,pageInfo:u,initialDataPages:c,showRightBorder:E,isAdjustingWidth:A,setIsAdjustingWidth:I,setYScrollbarWidth:S,setXScrollbarWidth:x,xScrollbarWidth:v,yScrollbarWidth:y},children:e})};function RM(e,t){const r=function(e){return xM.get(e)}(e),[n,o]=T(r),[,i]=M((e=>e+1),0),a=A(t),s=A(),l=n();if(void 0===l)throw new Error("You must call useContextSelector inside a valid context.");const u=R((()=>t(l)),[l,t]);return k((()=>{a.current=t,s.current=u}),[l,u,t]),k((()=>{const e=e=>{a.current(e)!==s.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function PM(e){const t=CC();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),Mu({...t,direction:e})}const AM={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},IM={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},MM=pc("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":{...AM},"&::-moz-range-track":{...AM},"&::-ms-track":{...AM},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...IM},"&::-moz-range-thumb":{...IM},"&::-ms-thumb":{...IM},"&: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"}}))),kM=({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=YC({translator:c.translator}),f=A({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:t??f.current.initX}};UC((()=>{m&&v()}),[e]);const y=e=>{const t=Math.max(e,nE.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:oE.Pixels,pixels:f.current.columnWidth};a(e)}else l?.(!1)},S=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},w=e=>{TC(e),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",w),x()},C=e=>{const t="rtl"===d?f.current.initWidth+-f.current.initX-e.touches[0].clientX:f.current.initWidth+e.touches[0].clientX-f.current.initX;y(t)},E=e=>{TC(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===tE.Left||e.key===tE.Right){TC(e);const t=5,r=e.key===tE.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===tE.Space||e.key===tE.Enter?(TC(e),s(e),l?.(!1),x()):e.key===tE.Esc&&(TC(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,P=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return rr.jsx(MM,{style:b,hoverColor:o,isLastColumn:r,className:rE,"data-testid":rE,onMouseDown:e=>{TC(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:oE.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(TC(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),v(e.touches[0].clientX))},onKeyDown:R,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,"aria-label":P,"aria-valuemin":nE.PixelsMin,"aria-valuemax":nE.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},DM=q(((e,t)=>rr.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:rr.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})}))),TM=({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const r=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",r,t)}catch(e){console.error(e)}}}return null},OM=pc(rp,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})((({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:r})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:r?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:r?"100%":void 0,alignItems:"center",justifyContent:"center"}))),LM=pc(DM,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),qM=pc(_f)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),NM=pc(Lp)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),jM=pc(Wf)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),_M=pc(Wf,{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"}))),zM=pc("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"}))),FM=pc("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),HM=pc(vd)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),$M=pc(df,{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}))),WM=q(((e,t)=>rr.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:rr.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),BM=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?BM(t):t:e.parentElement?.children?.[0]},VM=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?VM(t):t},UM=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===tE.Down||t===tE.Up){const r=e=>t===tE.Down?BM(e):VM(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},GM=(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 YM={};const KM=({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]=P(!1),f=x.useRef(null),h=O((e=>{e.stopPropagation(),p(!1)}),[p]);return rr.jsxs(rr.Fragment,{children:[rr.jsxs(_M,{ref:a?f:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),YM={}),a?.length&&(p(!0),YM[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:UM,children:[l?rr.jsx(zM,{direction:u,isPagination:c}):null,rr.jsxs(FM,{children:[rr.jsx($M,{direction:u,isPagination:c,children:rr.jsx(o,{})}),rr.jsx(HM,{variant:"body2",children:n})]}),a?.length?rr.jsx(WM,{}):null]},t),a?.length?rr.jsx(QM,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:GM(a,YM),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},XM=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&rr.jsx(jM,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map((e=>rr.jsx(KM,{...e,isSubMenu:t,direction:r,isPagination:n},e.id)))].filter(Boolean)])),JM=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[XM({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?rr.jsx(NM,{"data-testid":"group-divider",variant:"middle"}):void 0])),ZM={appear:0,enter:0,exit:0},QM=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?rr.jsx(qM,{className:ZC,open:t,anchorEl:e,onClose:r,transitionDuration:ZM,MenuListProps:{id:QC},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:JM({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,ek=({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:o,onPopoverClose:i})=>O((()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(r?.embed){const{embed:e,listboxRef:t}=r;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:r.sortCriteria,stateName:n?.qStateName,direction:o,onPopoverClose:i})}}),[e,t,r,n?.qStateName,o,i]),tk=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),rk=(e,t)=>e.some((e=>t[e]>0)),nk={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},ok=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=P(null),[a,s]=P(nk);return UC((()=>{e||(s(nk),i(null))}),[e]),k((()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=tk(t,r),u=await n.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject?.qDimensionInfo??{};o=c.qInfo?.qId,a?l():(i(u),d&&s((e=>({canSelectAll:rk(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:rk(["qSelected"],e),canSelectPossible:rk(["qOption"],e),canSelectAlternative:rk(["qAlternative"],e),canSelectExcluded:rk(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},ik=q(((e,t)=>rr.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:rr.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"})}))),ak=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm9 1.5H6v-1h4zm5.354-8.646L12.707 10l2.646 2.646-.707.707L12 10.708l-2.646 2.646-.708-.707L11.293 10 8.646 7.354l.708-.708L12 9.293l2.646-2.647zM1 10H0V6h1zm2-9H1.5a.5.5 0 0 0-.5.5V3H0V1.5A1.5 1.5 0 0 1 1.5 0H3zm11.5-1A1.5 1.5 0 0 1 16 1.5V3h-1V1.5a.5.5 0 0 0-.5-.5H13V0zM10 1H6V0h4z"})}))),sk=q(((e,t)=>rr.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:rr.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"})}))),lk=q(((e,t)=>rr.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:rr.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"})}))),uk=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.455.858v6.484a1 1 0 0 1-.577.906L8.5 14.663V7.17z"})}))),ck=q(((e,t)=>rr.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:rr.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"})}))),dk=q(((e,t)=>rr.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:rr.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"})}))),pk=q(((e,t)=>rr.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:rr.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"})}))),fk=q(((e,t)=>rr.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:rr.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"})}))),hk=q(((e,t)=>rr.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:rr.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"})}))),mk=q(((e,t)=>rr.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:rr.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"})}))),gk=q(((e,t)=>rr.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:rr.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"})}))),bk=q(((e,t)=>rr.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:rr.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"})}))),vk=q(((e,t)=>rr.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:rr.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 yk=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const xk="/qListObjectDef",Sk=({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[yk.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(o?.(e,"A")),n(!1)},icon:ik,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),n(!1)},icon:lk,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:pk,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:uk,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[yk.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:fk,enabled:!0}]}]),!e.isLocked&&r[yk.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:vk,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(xk))},icon:hk,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(xk))},icon:bk,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(xk))},icon:mk,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(xk))},icon:gk,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(xk))},icon:ak,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:dk,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:ck,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[yk.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:sk,enabled:!0}]}]),f},wk=({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,isAccessibleHeader:g,iconSize:b=KC})=>{const v=A(null),y=YC({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=ok({open:e,headerData:n,app:C,qStateName:c?.qStateName}),P=TM({model:f,headerData:n}),I=ek({qLibraryId:x,fieldId:S,searchRelatedArgs:u,selectionRelatedArgs:c,direction:h}),M=O((e=>{e.stopPropagation(),t(!1)}),[t]),k=O((e=>{e.stopPropagation(),t((e=>!e))}),[t]);return i.active?rr.jsxs(OM,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:JC,onClick:!1===g?k:void 0,ref:v,isAccessibleHeader:g,children:[s?rr.jsx(LM,{height:b,className:XC,"data-testid":XC,isInteractionsActive:i.active??!1,children:rr.jsx(DM,{})}):null,rr.jsx(QM,{open:e,anchorEl:!1===g?v.current:r.current,onClose:M,menuGroups:Sk({headerData:n,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:I,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:r,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:P,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},Ck=e=>e.isDark?{background:e.color,borderColor:RC.DARK_MODE_BORDER,color:RC.DARK_MODE_TEXT,disabledColor:RC.DARK_MODE_DISABLED,iconColor:RC.DARK_MODE_TEXT}:{background:e.color,borderColor:RC.BORDER_MEDIUM,color:RC.TEXT,disabledColor:RC.DISABLED},Ek=pc(rp,{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}`}))),Rk=pc(Ch,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),Pk=pc(pp,{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)}))),Ak=pc(vd)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),Ik=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=R((()=>Ck(n.background)),[n]);if(!r.active)return null;const a=o?rr.jsx(Ek,{footerStyle:i,children:e}):null;return t?$.createPortal(e,t):a},Mk=I({}),kk=()=>T(Mk),Dk=({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,visibilityThreshold:g})=>{const b=(e=>!e.enabled||e.active)(c)?0:-1,v=R((()=>Ck(p.background)),[p]),y=o?o.getBoundingClientRect().width:h.width,x=YC({translator:d}),S=R((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator:x,theme:p,interactions:f,rect:h,layout:m,footerStyle:v,tabIndex:b,width:y,visibilityThreshold:g})),[t,r,n,o,i,a,s,l,u,c,x,p,f,h,m,v,b,y,g]);return rr.jsx(Mk.Provider,{value:S,children:e})};let Tk=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),Ok=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 Lk=q(((e,t)=>rr.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:rr.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),qk=q(((e,t)=>rr.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:rr.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),Nk=q(((e,t)=>rr.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:rr.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),jk={FirstPage:qk,PreviousPage:Lk,NextPage:WM,LastPage:Nk,FirstPageRTL:Nk,PreviousPageRTL:WM,NextPageRTL:Lk,LastPageRTL:qk},_k=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=kk(),u=r.concat("rtl"===n?"RTL":""),c=jk[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}},zk=()=>{const{pageInfo:e,width:t,interactions:r,visibilityThreshold:n}=kk(),o=0===e.page,{IconComponent:i,styledProps:a}=_k({type:Tk.FirstPage,disabledCondition:o,pageNumber:0});return t<=(n?.firstPage||Ok.FirstPage)?null:rr.jsx(Pk,{...a,disabled:!r.active,children:rr.jsx(i,{height:KC})})},Fk=(e,t,r=!1)=>{r&&e.key===tE.Tab&&!e.shiftKey&&(TC(e),DC(e.target,t,!1))},Hk=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i,visibilityThreshold:a}=kk(),s=e.page>=r-1,{IconComponent:l,styledProps:u}=_k({type:Tk.LastPage,disabledCondition:s,pageNumber:r-1}),c=t.enabled?e=>{Fk(e,t,n)}:void 0;return o<=(a?.lastPage||Ok.LastPage)?null:rr.jsx(Pk,{...u,onKeyDown:c,disabled:!i.active,children:rr.jsx(l,{height:KC})})},$k=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=kk(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=_k({type:Tk.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>Ok.FirstPage&&o>Ok.LastPage)&&t.enabled?e=>{Fk(e,t,n)}:void 0;return rr.jsx(Pk,{...l,onKeyDown:u,disabled:!i.active,children:rr.jsx(s,{height:KC})})},Wk=()=>{const{pageInfo:e,interactions:t}=kk(),r=0===e.page,{IconComponent:n,styledProps:o}=_k({type:Tk.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return rr.jsx(Pk,{...o,disabled:!t.active,children:rr.jsx(n,{height:KC})})},Bk=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=kk(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||Ok.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return rr.jsx(Ak,{variant:"caption",dir:"ltr",children:s})},Vk=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=kk(),u=o.qInfo.qId,c=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${u}`,f={tabIndex:s,id:`${d}-${u}`,"data-testid":d,"aria-labelledby":p};return rr.jsxs(rr.Fragment,{children:[rr.jsxs(Ak,{variant:"caption",id:p,children:[c,":"]}),rr.jsx(Rk,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},Uk=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=kk();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||Ok.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=rr.jsx(rr.Fragment,{children:e.rowsPerPageOptions.map((e=>rr.jsx("option",{value:e,children:e},e)))});return rr.jsx(Vk,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},Gk=1e3,Yk="…",Kk=({totalPages:e,page:t})=>{const r=Math.min(e,Gk),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-Gk):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return rr.jsx("option",{value:t,children:t+1},t)}));return i>0&&a.unshift(rr.jsx("option",{value:Yk,disabled:!0,children:Yk},"startMoreOptions")),o<e-1&&a.push(rr.jsx("option",{value:Yk,disabled:!0,children:Yk},"endMoreOptions")),rr.jsx(rr.Fragment,{children:a})},Xk=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=kk(),{page:i}=e;if(t<=(o?.selectPage||Ok.SelectPage))return null;const a=rr.jsx(Kk,{totalPages:r,page:i});return rr.jsx(Vk,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var Jk=N((e=>rr.jsxs(Dk,{...e,children:[rr.jsx(Uk,{}),rr.jsx(Xk,{}),rr.jsx(Bk,{}),rr.jsx(zk,{}),rr.jsx(Wk,{}),rr.jsx($k,{}),rr.jsx(Hk,{})]})));const Zk=e=>rr.jsx(Ik,{...e,children:rr.jsx(Jk,{...e})});var Qk=Symbol.for("preact-signals");function eD(){if(iD>1)iD--;else{for(var e,t=!1;void 0!==oD;){var r=oD;for(oD=void 0,aD++;void 0!==r;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&dD(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(aD=0,iD--,t)throw e}}function tD(e){if(iD>0)return e();iD++;try{return e()}finally{eD()}}var rD=void 0;function nD(e){var t=rD;rD=void 0;try{return e()}finally{rD=t}}var oD=void 0,iD=0,aD=0,sD=0;function lD(e){if(void 0!==rD){var t=e.n;if(void 0===t||t.t!==rD)return t={i:0,S:e,p:rD.s,n:void 0,t:rD,e:void 0,x:void 0,r:t},void 0!==rD.s&&(rD.s.n=t),rD.s=t,e.n=t,32&rD.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=rD.s,t.n=void 0,rD.s.n=t,rD.s=t),t}}function uD(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function cD(e,t){return new uD(e,t)}function dD(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function pD(e){for(var t=e.s;void 0!==t;t=t.n){var r=t.S.n;if(void 0!==r&&(t.r=r),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function fD(e){for(var t=e.s,r=void 0;void 0!==t;){var n=t.p;-1===t.i?(t.S.U(t),void 0!==n&&(n.n=t.n),void 0!==t.n&&(t.n.p=n)):r=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=n}e.s=r}function hD(e,t){uD.call(this,void 0),this.x=e,this.s=void 0,this.g=sD-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function mD(e,t){return new hD(e,t)}function gD(e){var t=e.u;if(e.u=void 0,"function"==typeof t){iD++;var r=rD;rD=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,bD(e),t}finally{rD=r,eD()}}}function bD(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,gD(e)}function vD(e){if(rD!==this)throw new Error("Out-of-order effect");fD(this),rD=e,this.f&=-2,8&this.f&&bD(this),eD()}function yD(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=null==t?void 0:t.name}function xD(e,t){var r=new yD(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}uD.prototype.brand=Qk,uD.prototype.h=function(){return!0},uD.prototype.S=function(e){var t=this,r=this.t;r!==e&&void 0===e.e&&(e.x=r,this.t=e,void 0!==r?r.e=e:nD((function(){var e;null==(e=t.W)||e.call(t)})))},uD.prototype.U=function(e){var t=this;if(void 0!==this.t){var r=e.e,n=e.x;void 0!==r&&(r.x=n,e.e=void 0),void 0!==n&&(n.e=r,e.x=void 0),e===this.t&&(this.t=n,void 0===n&&nD((function(){var e;null==(e=t.Z)||e.call(t)})))}},uD.prototype.subscribe=function(e){var t=this;return xD((function(){var r=t.value,n=rD;rD=void 0;try{e(r)}finally{rD=n}}),{name:"sub"})},uD.prototype.valueOf=function(){return this.value},uD.prototype.toString=function(){return this.value+""},uD.prototype.toJSON=function(){return this.value},uD.prototype.peek=function(){var e=rD;rD=void 0;try{return this.value}finally{rD=e}},Object.defineProperty(uD.prototype,"value",{get:function(){var e=lD(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(aD>100)throw new Error("Cycle detected");this.v=e,this.i++,sD++,iD++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{eD()}}}}),hD.prototype=new uD,hD.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===sD)return!0;if(this.g=sD,this.f|=1,this.i>0&&!dD(this))return this.f&=-2,!0;var e=rD;try{pD(this),rD=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return rD=e,fD(this),this.f&=-2,!0},hD.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}uD.prototype.S.call(this,e)},hD.prototype.U=function(e){if(void 0!==this.t&&(uD.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},hD.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(hD.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=lD(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),yD.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.u=t)}finally{e()}},yD.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,gD(this),pD(this),iD++;var e=rD;return rD=this,vD.bind(this,e)},yD.prototype.N=function(){2&this.f||(this.f|=2,this.o=oD,oD=this)},yD.prototype.d=function(){this.f|=8,1&this.f||bD(this)},yD.prototype.dispose=function(){this.d()};var SD,wD,CD,ED,RD,PD,AD,ID,MD,kD,DD,TD,OD,LD,qD,ND,jD,_D,zD,FD,HD=Object.create,$D=Object.defineProperty,WD=Object.defineProperties,BD=Object.getOwnPropertyDescriptor,VD=Object.getOwnPropertyDescriptors,UD=Object.getOwnPropertySymbols,GD=Object.prototype.hasOwnProperty,YD=Object.prototype.propertyIsEnumerable,KD=e=>{throw TypeError(e)},XD=(e,t,r)=>t in e?$D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,JD=(e,t)=>$D(e,"name",{value:t,configurable:!0}),ZD=["class","method","getter","setter","accessor","field","value","get","set"],QD=e=>void 0!==e&&"function"!=typeof e?KD("Function expected"):e,eT=(e,t,r,n,o)=>({kind:ZD[e],name:t,metadata:n,addInitializer:e=>r._?KD("Already initialized"):o.push(QD(e||null))}),tT=(e,t)=>{return XD(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},rT=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},nT=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=ZD[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&BD(d<4?o:{get[r](){return aT(this,i)},set[r](e){return lT(this,i,e)}},r));d?f&&d<4&&JD(i,(d>2?"set ":d>1?"get ":"")+r):JD(o,r);for(var y=n.length-1;y>=0;y--)u=eT(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>iT(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?aT:uT)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>lT(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?QD(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?KD("Object expected"):(QD(a=s.get)&&(v.get=a),QD(a=s.set)&&(v.set=a),QD(a=s.init)&&g.unshift(a));return d||tT(e,o),v&&$D(o,r,v),f?4^d?i:v:o},oT=(e,t,r)=>t.has(e)||KD("Cannot "+r),iT=(e,t)=>Object(t)!==t?KD('Cannot use the "in" operator on this value'):e.has(t),aT=(e,t,r)=>(oT(e,t,"read from private field"),r?r.call(e):t.get(e)),sT=(e,t,r)=>t.has(e)?KD("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),lT=(e,t,r,n)=>(oT(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),uT=(e,t,r)=>(oT(e,t,"access private method"),r);function cT(e,t){if(t){let r;return mD((()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)}))}return mD(e)}function dT(e,t){if(Object.is(e,t))return!0;if(null===e||null===t)return!1;if("function"==typeof e&&"function"==typeof t)return e===t;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;return!e.some(((e,r)=>!dT(e,t[r])))}if("object"==typeof e&&"object"==typeof t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;const o=r.some((r=>!dT(e[r],t[r])));return!o}return!1}function pT({get:e},t){return{init:e=>cD(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function fT(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=cT(e.bind(this)),r.set(this,t)),t.value}}function hT(e=!0){return function(t,r){r.addInitializer((function(){const t="field"===r.kind||r.static?this:Object.getPrototypeOf(this),n=Object.getOwnPropertyDescriptor(t,r.name);n&&Object.defineProperty(t,r.name,((e,t)=>WD(e,VD(t)))(((e,t)=>{for(var r in t||(t={}))GD.call(t,r)&&XD(e,r,t[r]);if(UD)for(var r of UD(t))YD.call(t,r)&&XD(e,r,t[r]);return e})({},n),{enumerable:e}))}))}}function mT(...e){const t=e.map((e=>xD(e)));return()=>t.forEach((e=>e()))}PD=[pT],RD=[pT],ED=[pT],CD=[hT()],wD=[hT()],SD=[hT()];var gT,bT=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,rT(AD,5,this),sT(this,TD),sT(this,ID,rT(AD,8,this)),rT(AD,11,this),sT(this,OD,rT(AD,12,this)),rT(AD,15,this),sT(this,jD,rT(AD,16,this)),rT(AD,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return aT(this,TD,zD)}get initial(){return aT(this,TD,kD)}get previous(){return aT(this,TD,qD)}set current(e){const t=nD((()=>aT(this,TD,zD)));e&&t&&this.equals(t,e)||tD((()=>{aT(this,TD,kD)||lT(this,TD,e,DD),lT(this,TD,t,ND),lT(this,TD,e,FD)}))}reset(e=this.defaultValue){tD((()=>{lT(this,TD,void 0,ND),lT(this,TD,e,DD),lT(this,TD,e,FD)}))}};function vT(e){return nD((()=>{const t={};for(const r in e)t[r]=e[r];return t}))}AD=[,,,HD(null)],ID=new WeakMap,TD=new WeakSet,OD=new WeakMap,jD=new WeakMap,MD=nT(AD,20,"#initial",PD,TD,ID),kD=MD.get,DD=MD.set,LD=nT(AD,20,"#previous",RD,TD,OD),qD=LD.get,ND=LD.set,_D=nT(AD,20,"#current",ED,TD,jD),zD=_D.get,FD=_D.set,nT(AD,2,"current",CD,bT),nT(AD,2,"initial",wD,bT),nT(AD,2,"previous",SD,bT),tT(AD,bT);gT=new WeakMap;var yT,xT,ST,wT,CT,ET=Object.create,RT=Object.defineProperty,PT=Object.getOwnPropertyDescriptor,AT=Object.getOwnPropertySymbols,IT=Object.prototype.hasOwnProperty,MT=Object.prototype.propertyIsEnumerable,kT=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),DT=e=>{throw TypeError(e)},TT=Math.pow,OT=(e,t,r)=>t in e?RT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,LT=["class","method","getter","setter","accessor","field","value","get","set"],qT=e=>void 0!==e&&"function"!=typeof e?DT("Function expected"):e,NT=(e,t,r,n,o)=>({kind:LT[e],name:t,metadata:n,addInitializer:e=>r._?DT("Already initialized"):o.push(qT(e||null))}),jT=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=LT[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,PT(o,r)),h=n.length-1;h>=0;h--)(l=NT(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,qT(a)&&(f[d]=a);return f&&RT(o,r,f),o},_T=(e,t,r)=>t.has(e)||DT("Cannot "+r),zT=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},FT=class e{constructor(e,t,r,n){this.left=e,this.top=t,this.width=r,this.height=n,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(t,r){const{top:n,left:o,width:i,height:a,scale:s}=this,l=new e(o+t,n+r,i,a);return l.scale=((e,t)=>{for(var r in t||(t={}))IT.call(t,r)&&OT(e,r,t[r]);if(AT)for(var r of AT(t))MT.call(t,r)&&OT(e,r,t[r]);return e})({},s),l}get boundingRectangle(){const{width:e,height:t,left:r,top:n,right:o,bottom:i}=this;return{width:e,height:t,left:r,top:n,right:o,bottom:i}}get center(){const{left:e,top:t,right:r,bottom:n}=this;return new zT((e+r)/2,(t+n)/2)}get area(){const{width:e,height:t}=this;return e*t}equals(t){if(!(t instanceof e))return!1;const{left:r,top:n,width:o,height:i}=this;return r===t.left&&n===t.top&&o===t.width&&i===t.height}containsPoint(e){const{top:t,left:r,bottom:n,right:o}=this;return t<=e.y&&e.y<=n&&r<=e.x&&e.x<=o}intersectionArea(t){return t instanceof e?function(e,t){const r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-n,s=i-r;if(n<o&&r<i){return a*s}return 0}(this,t):0}intersectionRatio(e){const{area:t}=this,r=this.intersectionArea(e);return r/(e.area+t-r)}get bottom(){const{top:e,height:t}=this;return e+t}get right(){const{left:e,width:t}=this;return e+t}get aspectRatio(){const{width:e,height:t}=this;return e/t}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:t,left:r,width:n,height:o}){return new e(r,t,n,o)}static delta(e,t,r={x:"center",y:"center"}){const n=(e,t)=>{const n=r[t],o="x"===t?e.left:e.top,i="x"===t?e.width:e.height;return"start"==n?o:"end"==n?o+i:o+i/2};return zT.delta({x:n(e,"x"),y:n(e,"y")},{x:n(t,"x"),y:n(t,"y")})}static intersectionRatio(t,r){return e.from(t).intersectionRatio(e.from(r))}};var HT,$T=class extends(ST=bT,xT=[fT],yT=[fT],ST){constructor(e){var t,r,n;super(zT.from(e),((e,t)=>zT.equals(e,t))),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(CT,5,this),t=this,n=0,(r=wT).has(t)?DT("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return zT.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=zT.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(_T(a=this,s=wT,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);tD((()=>{((e,t,r)=>{_T(e,t,"write to private field"),t.set(e,r)})(this,wT,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(zT.from(e)),this.velocity={x:0,y:0}}};function WT({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(TT(n,2)+TT(o,2))>r:"x"in r&&"y"in r?n>r.x&&o>r.y:"x"in r?n>r.x:"y"in r&&o>r.y}CT=(e=>{var t;return[,,,ET(null!=(t=null==e?void 0:e[kT("metadata")])?t:null)]})(ST),wT=new WeakMap,jT(CT,2,"delta",xT,$T),jT(CT,2,"direction",yT,$T),HT=CT,OT($T,kT("metadata"),HT[3]);var BT,VT,UT,GT,YT=(e=>(e.Horizontal="x",e.Vertical="y",e))(YT||{}),KT=Object.values(YT),XT=Object.create,JT=Object.defineProperty,ZT=Object.defineProperties,QT=Object.getOwnPropertyDescriptor,eO=Object.getOwnPropertyDescriptors,tO=Object.getOwnPropertySymbols,rO=Object.prototype.hasOwnProperty,nO=Object.prototype.propertyIsEnumerable,oO=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),iO=e=>{throw TypeError(e)},aO=(e,t,r)=>t in e?JT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,sO=(e,t)=>{for(var r in t||(t={}))rO.call(t,r)&&aO(e,r,t[r]);if(tO)for(var r of tO(t))nO.call(t,r)&&aO(e,r,t[r]);return e},lO=(e,t)=>ZT(e,eO(t)),uO=(e,t)=>JT(e,"name",{value:t,configurable:!0}),cO=(e,t)=>{var r={};for(var n in e)rO.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&tO)for(var n of tO(e))t.indexOf(n)<0&&nO.call(e,n)&&(r[n]=e[n]);return r},dO=e=>{var t;return[,,,XT(null!=(t=null==e?void 0:e[oO("metadata")])?t:null)]},pO=["class","method","getter","setter","accessor","field","value","get","set"],fO=e=>void 0!==e&&"function"!=typeof e?iO("Function expected"):e,hO=(e,t,r,n,o)=>({kind:pO[e],name:t,metadata:n,addInitializer:e=>r._?iO("Already initialized"):o.push(fO(e||null))}),mO=(e,t)=>aO(t,oO("metadata"),e[3]),gO=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},bO=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=pO[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&QT(d<4?o:{get[r](){return xO(this,i)},set[r](e){return wO(this,i,e)}},r));d?f&&d<4&&uO(i,(d>2?"set ":d>1?"get ":"")+r):uO(o,r);for(var y=n.length-1;y>=0;y--)u=hO(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>yO(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?xO:CO)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>wO(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?fO(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?iO("Object expected"):(fO(a=s.get)&&(v.get=a),fO(a=s.set)&&(v.set=a),fO(a=s.init)&&g.unshift(a));return d||mO(e,o),v&&JT(o,r,v),f?4^d?i:v:o},vO=(e,t,r)=>t.has(e)||iO("Cannot "+r),yO=(e,t)=>Object(t)!==t?iO('Cannot use the "in" operator on this value'):e.has(t),xO=(e,t,r)=>(vO(e,t,"read from private field"),r?r.call(e):t.get(e)),SO=(e,t,r)=>t.has(e)?iO("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),wO=(e,t,r,n)=>(vO(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),CO=(e,t,r)=>(vO(e,t,"access private method"),r);function EO(e,t){return{plugin:e,options:t}}function RO(e){return t=>EO(e,t)}function PO(e){return"function"==typeof e?{plugin:e,options:void 0}:e}BT=[pT];var AO=class{constructor(e,t){this.manager=e,this.options=t,SO(this,UT,gO(VT,8,this,!1)),gO(VT,11,this),SO(this,GT,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return nD((()=>this.disabled))}configure(e){this.options=e}registerEffect(e){const t=xD(e.bind(this));return xO(this,GT).add(t),t}destroy(){xO(this,GT).forEach((e=>e()))}static configure(e){return EO(this,e)}};VT=dO(null),UT=new WeakMap,GT=new WeakMap,bO(VT,4,"disabled",BT,AO,UT),mO(VT,AO);var IO,MO=class extends AO{},kO=class{constructor(e){this.manager=e,this.instances=new Map,SO(this,IO,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(PO).reduceRight(((e,t)=>e.some((({plugin:e})=>e===t.plugin))?e:[t,...e]),[]),r=t.map((({plugin:e})=>e));for(const e of xO(this,IO))if(!r.includes(e)){if(e.prototype instanceof MO)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);wO(this,IO,r)}get(e){return this.instances.get(e)}register(e,t){const r=this.instances.get(e);if(r)return r.options!==t&&(r.options=t),r;const n=new e(this.manager,t);return this.instances.set(e,n),n}unregister(e){const t=this.instances.get(e);t&&(t.destroy(),this.instances.delete(e))}destroy(){for(const e of this.instances.values())e.destroy();this.instances.clear()}};function DO(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}IO=new WeakMap;var TO,OO,LO=[],qO=class extends AO{constructor(e){super(e),SO(this,TO),SO(this,OO),this.computeCollisions=this.computeCollisions.bind(this),wO(this,OO,cD(LO)),this.destroy=mT((()=>{const e=this.computeCollisions(),t=nD((()=>this.manager.dragOperation.position.current));if(e!==LO){const e=xO(this,TO);if(wO(this,TO,t),e&&t.x==e.x&&t.y==e.y)return}else wO(this,TO,void 0);xO(this,OO).value=e}),(()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()}))}forceUpdate(e=!0){nD((()=>{e?xO(this,OO).value=this.computeCollisions():wO(this,TO,void 0)}))}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return LO;const s=[],l=[];for(const i of null!=e?e:r.droppables){if(i.disabled)continue;if(o&&!i.accepts(o))continue;const e=null!=t?t:i.collisionDetector;if(!e)continue;l.push(i),i.shape;const r=nD((()=>e({droppable:i,dragOperation:n})));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?LO:(s.sort(DO),s)}get collisions(){return xO(this,OO).value}};TO=new WeakMap,OO=new WeakMap;var NO=class{constructor(){this.registry=new Map}addEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));return n.add(t),r.set(e,n),()=>this.removeEventListener(e,t)}removeEventListener(e,t){const{registry:r}=this,n=new Set(r.get(e));n.delete(t),r.set(e,n)}dispatch(e,...t){const{registry:r}=this,n=r.get(e);if(n)for(const e of n)e(...t)}},jO=class extends NO{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function _O(e,t=!0){let r=!1;return lO(sO({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var zO,FO,HO,$O,WO,BO,VO,UO,GO,YO=class extends MO{constructor(e){super(e);let t=[];this.destroy=mT((()=>{const{dragOperation:r,collisionObserver:n}=e;r.status.initializing&&(t=[],n.enable())}),(()=>{const{collisionObserver:r,monitor:n}=e,{collisions:o}=r;if(r.isDisabled())return;const i=_O({collisions:o});if(n.dispatch("collision",i),i.defaultPrevented)return;if(((e,t)=>e.map((({id:e})=>e)).join("")===t.map((({id:e})=>e)).join(""))(o,t))return;t=o;const[a]=o;nD((()=>{var t;(null==a?void 0:a.id)!==(null==(t=e.dragOperation.target)?void 0:t.id)&&(r.disable(),e.actions.setDropTarget(null==a?void 0:a.id).then((()=>{r.enable()})))}))}))}},KO=(e=>(e[e.Lowest=0]="Lowest",e[e.Low=1]="Low",e[e.Normal=2]="Normal",e[e.High=3]="High",e[e.Highest=4]="Highest",e))(KO||{}),XO=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(XO||{});VO=[pT],BO=[fT],WO=[fT],$O=[fT],HO=[fT],FO=[fT],zO=[fT];var JO=class{constructor(){gO(UO,5,this),SO(this,GO,gO(UO,8,this,"idle")),gO(UO,11,this)}get current(){return this.value}get idle(){return"idle"===this.value}get initializing(){return"initializing"===this.value}get initialized(){const{value:e}=this;return"idle"!==e&&"initialization-pending"!==e}get dragging(){return"dragging"===this.value}get dropped(){return"dropped"===this.value}set(e){this.value=e}};UO=dO(null),GO=new WeakMap,bO(UO,4,"value",VO,JO,GO),bO(UO,2,"current",BO,JO),bO(UO,2,"idle",WO,JO),bO(UO,2,"initializing",$O,JO),bO(UO,2,"initialized",HO,JO),bO(UO,2,"dragging",FO,JO),bO(UO,2,"dropped",zO,JO),mO(UO,JO);var ZO,QO,eL,tL,rL,nL,oL,iL,aL,sL=class{constructor(e){this.manager=e}setDragSource(e){const{dragOperation:t}=this.manager;t.sourceIdentifier="string"==typeof e||"number"==typeof e?e:e.id}setDropTarget(e){return nD((()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=_O({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then((()=>n.defaultPrevented))}))}start(e){return nD((()=>{const{dragOperation:t}=this.manager;null!=e.source&&this.setDragSource(e.source);if(!t.source)throw new Error("Cannot start a drag operation without a drag source");if(!t.status.idle)throw new Error("Cannot start a drag operation while another is active");const r=new AbortController,{event:n,coordinates:o}=e;tD((()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)}));const i=_O({operation:t.snapshot()});return this.manager.monitor.dispatch("beforedragstart",i),i.defaultPrevented?(t.reset(),r.abort(),r):(t.status.set("initializing"),t.controller=r,this.manager.renderer.rendering.then((()=>{if(r.signal.aborted)return;const{status:e}=t;"initializing"===e.current&&(t.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:n,operation:t.snapshot(),cancelable:!1}))})),r)}))}move(e){return nD((()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=_O({nativeEvent:e.event,operation:n.snapshot(),by:e.by,to:e.to},null==(t=e.cancelable)||t);(null==(r=e.propagate)||r)&&this.manager.monitor.dispatch("dragmove",a),queueMicrotask((()=>{var t,r,o,i,s;if(a.defaultPrevented)return;const l=null!=(s=e.to)?s:{x:n.position.current.x+(null!=(r=null==(t=e.by)?void 0:t.x)?r:0),y:n.position.current.y+(null!=(i=null==(o=e.by)?void 0:o.y)?i:0)};n.position.current=l}))}))}stop(e={}){return nD((()=>{var t,r;const{dragOperation:n}=this.manager,{controller:o}=n;if(!o||o.signal.aborted)return;let i;o.abort();const a=()=>{this.manager.renderer.rendering.then((()=>{n.status.set("dropped");const e=nD((()=>{var e;return"dropping"===(null==(e=n.source)?void 0:e.status)})),t=()=>{n.controller===o&&(n.controller=void 0),n.reset()};if(e){const{source:e}=n,r=xD((()=>{"idle"===(null==e?void 0:e.status)&&(r(),t())}))}else this.manager.renderer.rendering.then(t)}))};n.canceled=null!=(t=e.canceled)&&t,this.manager.monitor.dispatch("dragend",{nativeEvent:e.event,operation:n.snapshot(),canceled:null!=(r=e.canceled)&&r,suspend:()=>{const e={resume:()=>{},abort:()=>{}};return i=new Promise(((t,r)=>{e.resume=t,e.abort=r})),e}}),i?i.then(a).catch((()=>n.reset())):a()}))}};tL=[pT],eL=[pT],QO=[pT],ZO=[pT];var lL=class{constructor(e,t){SO(this,nL,gO(rL,8,this)),gO(rL,11,this),SO(this,oL,gO(rL,12,this)),gO(rL,15,this),SO(this,iL,gO(rL,16,this)),gO(rL,19,this),SO(this,aL,gO(rL,20,this)),gO(rL,23,this);const{effects:r,id:n,data:o={},disabled:i=!1,register:a=!0}=e;let s=n;this.manager=t,this.id=n,this.data=o,this.disabled=i,this.effects=()=>{var e;return[()=>{const{id:e,manager:t}=this;if(e!==s)return null==t||t.registry.register(this),()=>null==t?void 0:t.registry.unregister(this)},...null!=(e=null==r?void 0:r())?e:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),t&&a&&queueMicrotask(this.register)}register(){var e;return null==(e=this.manager)?void 0:e.registry.register(this)}unregister(){var e;null==(e=this.manager)||e.registry.unregister(this)}destroy(){var e;null==(e=this.manager)||e.registry.unregister(this)}};rL=dO(null),nL=new WeakMap,oL=new WeakMap,iL=new WeakMap,aL=new WeakMap,bO(rL,4,"manager",tL,lL,nL),bO(rL,4,"id",eL,lL,oL),bO(rL,4,"data",QO,lL,iL),bO(rL,4,"disabled",ZO,lL,aL),mO(rL,lL);var uL,cL,dL,pL,fL,hL,mL,gL,bL,vL,yL,xL,SL,wL,CL,EL,RL,PL,AL,IL,ML,kL,DL,TL,OL=class{constructor(){this.map=cD(new Map),this.cleanupFunctions=new WeakMap,this.register=(e,t)=>{const r=this.map.peek(),n=r.get(e),o=()=>this.unregister(e,t);if(n===t)return o;if(n){const e=this.cleanupFunctions.get(n);null==e||e(),this.cleanupFunctions.delete(n)}const i=new Map(r);i.set(e,t),this.map.value=i;const a=mT(...t.effects());return this.cleanupFunctions.set(t,a),o},this.unregister=(e,t)=>{const r=this.map.peek();if(r.get(e)!==t)return;const n=this.cleanupFunctions.get(t);null==n||n(),this.cleanupFunctions.delete(t);const o=new Map(r);o.delete(e),this.map.value=o}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(e){return this.map.value.has(e)}get(e){return this.map.value.get(e)}destroy(){for(const e of this){const t=this.cleanupFunctions.get(e);null==t||t(),e.destroy()}this.map.value=new Map}},LL=class extends(mL=lL,hL=[pT],fL=[pT],pL=[pT],dL=[fT],cL=[fT],uL=[fT],mL){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i}=r,a=cO(r,["modifiers","type","sensors"]);super(a,t),gO(gL,5,this),SO(this,bL,gO(gL,8,this)),gO(gL,11,this),SO(this,vL,gO(gL,12,this)),gO(gL,15,this),SO(this,yL,gO(gL,16,this,this.isDragSource?"dragging":"idle")),gO(gL,19,this),this.type=o,this.sensors=i,this.modifiers=n,this.alignment=a.alignment}get isDropping(){return"dropping"===this.status&&this.isDragSource}get isDragging(){return"dragging"===this.status&&this.isDragSource}get isDragSource(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.source)?void 0:t.id)===this.id}};gL=dO(mL),bL=new WeakMap,vL=new WeakMap,yL=new WeakMap,bO(gL,4,"type",hL,LL,bL),bO(gL,4,"modifiers",fL,LL,vL),bO(gL,4,"status",pL,LL,yL),bO(gL,2,"isDropping",dL,LL),bO(gL,2,"isDragging",cL,LL),bO(gL,2,"isDragSource",uL,LL),mO(gL,LL);var qL=class extends(PL=lL,RL=[pT],EL=[pT],CL=[pT],wL=[pT],SL=[pT],xL=[fT],PL){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super(cO(r,["accept","collisionDetector","collisionPriority","type"]),t),gO(AL,5,this),SO(this,IL,gO(AL,8,this)),gO(AL,11,this),SO(this,ML,gO(AL,12,this)),gO(AL,15,this),SO(this,kL,gO(AL,16,this)),gO(AL,19,this),SO(this,DL,gO(AL,20,this)),gO(AL,23,this),SO(this,TL,gO(AL,24,this)),gO(AL,27,this),this.accept=n,this.collisionDetector=o,this.collisionPriority=i,this.type=a}accepts(e){const{accept:t}=this;return!t||("function"==typeof t?t(e):!!e.type&&(Array.isArray(t)?t.includes(e.type):e.type===t))}get isDropTarget(){var e,t;return(null==(t=null==(e=this.manager)?void 0:e.dragOperation.target)?void 0:t.id)===this.id}};AL=dO(PL),IL=new WeakMap,ML=new WeakMap,kL=new WeakMap,DL=new WeakMap,TL=new WeakMap,bO(AL,4,"accept",RL,qL,IL),bO(AL,4,"type",EL,qL,ML),bO(AL,4,"collisionDetector",CL,qL,kL),bO(AL,4,"collisionPriority",wL,qL,DL),bO(AL,4,"shape",SL,qL,TL),bO(AL,2,"isDropTarget",xL,qL),mO(AL,qL);var NL,jL=class extends AO{constructor(e,t){super(e,t),this.manager=e,this.options=t}},_L=class extends AbortController{constructor(e,t){super(),this.constraints=e,this.onActivate=t,this.activated=!1;for(const t of null!=e?e:[])t.controller=this}onEvent(e){var t;if(!this.activated)if(null==(t=this.constraints)?void 0:t.length)for(const t of this.constraints)t.onEvent(e);else this.activate(e)}activate(e){this.activated||(this.activated=!0,this.onActivate(e))}abort(e){this.activated=!1,super.abort(e)}},zL=class{constructor(e){this.options=e,SO(this,NL)}set controller(e){wO(this,NL,e),e.signal.addEventListener("abort",(()=>this.abort()))}activate(e){var t;null==(t=xO(this,NL))||t.activate(e)}};NL=new WeakMap;var FL,HL,$L,WL,BL,VL,UL,GL,YL,KL,XL,JL,ZL,QL,eq,tq,rq,nq,oq,iq=class extends AO{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},aq=class{constructor(e){this.draggables=new OL,this.droppables=new OL,this.plugins=new kO(e),this.sensors=new kO(e),this.modifiers=new kO(e)}register(e,t){if(e instanceof LL)return this.draggables.register(e.id,e);if(e instanceof qL)return this.droppables.register(e.id,e);if(e.prototype instanceof iq)return this.modifiers.register(e,t);if(e.prototype instanceof jL)return this.sensors.register(e,t);if(e.prototype instanceof AO)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof lL)return e instanceof LL?this.draggables.unregister(e.id,e):e instanceof qL?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof iq)return this.modifiers.unregister(e);if(e.prototype instanceof jL)return this.sensors.unregister(e);if(e.prototype instanceof AO)return this.plugins.unregister(e);throw new Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}};YL=[fT],GL=[pT],UL=[pT],VL=[pT],BL=[pT],WL=[pT],$L=[fT],HL=[fT],FL=[fT];var sq=class{constructor(e){gO(ZL,5,this),SO(this,KL),SO(this,XL),SO(this,JL,new bT(void 0,((e,t)=>e&&t?e.equals(t):e===t))),this.status=new JO,SO(this,QL,gO(ZL,8,this,!1)),gO(ZL,11,this),SO(this,eq,gO(ZL,12,this,null)),gO(ZL,15,this),SO(this,tq,gO(ZL,16,this,null)),gO(ZL,19,this),SO(this,rq,gO(ZL,20,this,null)),gO(ZL,23,this),SO(this,nq,gO(ZL,24,this,[])),gO(ZL,27,this),this.position=new $T({x:0,y:0}),SO(this,oq,{x:0,y:0}),wO(this,KL,e)}get shape(){const{current:e,initial:t,previous:r}=xO(this,JL);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?xO(this,JL).current=e:xO(this,JL).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=xO(this,KL).registry.draggables.get(t);return r&&wO(this,XL,r),null!=(e=null!=r?r:xO(this,XL))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=xO(this,KL).registry.droppables.get(t))?e:null}get transform(){const{x:e,y:t}=this.position.delta;let r={x:e,y:t};for(const e of this.modifiers)r=e.apply(lO(sO({},this.snapshot()),{transform:r}));return wO(this,oq,r),r}snapshot(){return nD((()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:xO(this,oq),shape:this.shape?vT(this.shape):null,position:vT(this.position),status:vT(this.status),canceled:this.canceled})))}reset(){tD((()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,xO(this,JL).reset(),this.position.reset({x:0,y:0}),wO(this,oq,{x:0,y:0}),this.modifiers=[]}))}};ZL=dO(null),KL=new WeakMap,XL=new WeakMap,JL=new WeakMap,QL=new WeakMap,eq=new WeakMap,tq=new WeakMap,rq=new WeakMap,nq=new WeakMap,oq=new WeakMap,bO(ZL,2,"shape",YL,sq),bO(ZL,4,"canceled",GL,sq,QL),bO(ZL,4,"activatorEvent",UL,sq,eq),bO(ZL,4,"sourceIdentifier",VL,sq,tq),bO(ZL,4,"targetIdentifier",BL,sq,rq),bO(ZL,4,"modifiers",WL,sq,nq),bO(ZL,2,"source",$L,sq),bO(ZL,2,"target",HL,sq),bO(ZL,2,"transform",FL,sq),mO(ZL,sq);var lq={get rendering(){return Promise.resolve()}};function uq(e,t){return"function"==typeof e?e(t):null!=e?e:t}var cq=class{constructor(e){var t;this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach((e=>e.destroy())),this.registry.destroy(),this.collisionObserver.destroy()};const r=null!=e?e:{},n=uq(r.plugins,[]),o=uq(r.sensors,[]),i=uq(r.modifiers,[]),a=null!=(t=r.renderer)?t:lq,s=new jO(this),l=new aq(this);this.registry=l,this.monitor=s,this.renderer=a,this.actions=new sL(this),this.dragOperation=new sq(this),this.collisionObserver=new qO(this),this.plugins=[YO,...n],this.modifiers=i,this.sensors=o;const{destroy:u}=this,c=mT((()=>{var e,t,r;const n=nD((()=>this.dragOperation.modifiers)),o=this.modifiers;for(const e of n)o.includes(e)||e.destroy();this.dragOperation.modifiers=null!=(r=null==(t=null==(e=this.dragOperation.source)?void 0:e.modifiers)?void 0:t.map((e=>{const{plugin:t,options:r}=PO(e);return new t(this,r)})))?r:o}));this.destroy=()=>{c(),u()}}get plugins(){return this.registry.plugins.values}set plugins(e){this.registry.plugins.values=e}get modifiers(){return this.registry.modifiers.values}set modifiers(e){this.registry.modifiers.values=e}get sensors(){return this.registry.sensors.values}set sensors(e){this.registry.sensors.values=e}},dq=e=>{throw TypeError(e)},pq=(e,t,r)=>t.has(e)||dq("Cannot "+r),fq=(e,t,r)=>(pq(e,t,"read from private field"),t.get(e)),hq=(e,t,r)=>t.has(e)?dq("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),mq=(e,t,r,n)=>(pq(e,t,"write to private field"),t.set(e,r),r),gq=(e,t,r)=>(pq(e,t,"access private method"),r);function bq(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function vq(e,t){const r=e.getAnimations();if(r.length>0)for(const e of r){if("running"!==e.playState)continue;const{effect:r}=e,n=(bq(r)?r.getKeyframes():[]).filter(t);if(n.length>0)return[n[n.length-1],e]}return null}function yq(e){const{width:t,height:r,top:n,left:o,bottom:i,right:a}=e.getBoundingClientRect();return{width:t,height:r,top:n,left:o,bottom:i,right:a}}function xq(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function Sq(e){return"nodeType"in e}function wq(e){var t,r,n;return e?xq(e)?e:Sq(e)?"defaultView"in e?null!=(t=e.defaultView)?t:window:null!=(n=null==(r=e.ownerDocument)?void 0:r.defaultView)?n:window:window:window}function Cq(e){const{Document:t}=wq(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function Eq(e){return!(!e||xq(e))&&(e instanceof wq(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function Rq(e){return e instanceof wq(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function Pq(e){return e?xq(e)?e.document:Sq(e)?Cq(e)?e:Eq(e)||Rq(e)?e.ownerDocument:document:document:document}function Aq(e,t){if(function(e){return"DETAILS"===e.tagName}(e)&&!1===e.open)return!1;const{overflow:r,overflowX:n,overflowY:o}=getComputedStyle(e);return"visible"===r&&"visible"===n&&"visible"===o}function Iq(e,t=e.getBoundingClientRect(),r=0){var n,o,i,a,s;let l=t;const{ownerDocument:u}=e,c=null!=(n=u.defaultView)?n:window;let d=e.parentElement;for(;d&&d!==u.documentElement;){if(!Aq(d)){const e=d.getBoundingClientRect(),t=r*(e.bottom-e.top),n=r*(e.right-e.left),o=r*(e.bottom-e.top),i=r*(e.right-e.left);l={top:Math.max(l.top,e.top-t),right:Math.min(l.right,e.right+n),bottom:Math.min(l.bottom,e.bottom+o),left:Math.max(l.left,e.left-i),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top}d=d.parentElement}const p=c.visualViewport,f=null!=(o=null==p?void 0:p.offsetTop)?o:0,h=null!=(i=null==p?void 0:p.offsetLeft)?i:0,m=null!=(a=null==p?void 0:p.width)?a:c.innerWidth,g=null!=(s=null==p?void 0:p.height)?s:c.innerHeight,b=r*g,v=r*m;return l={top:Math.max(l.top,f-b),right:Math.min(l.right,h+m+v),bottom:Math.min(l.bottom,f+g+b),left:Math.max(l.left,h-v),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top,l.width<0&&(l.width=0),l.height<0&&(l.height=0),l}function Mq(e){return{x:e.clientX,y:e.clientY}}var kq="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Dq(e=document,t=new Set){if(t.has(e))return[];t.add(e);const r=[e];for(const n of Array.from(e.querySelectorAll("iframe, frame")))try{const e=n.contentDocument;e&&!t.has(e)&&r.push(...Dq(e,t))}catch(e){}try{const n=e.defaultView;if(n&&n!==window.top){const o=n.parent;o&&o.document&&o.document!==e&&r.push(...Dq(o.document,t))}}catch(e){}return r}function Tq(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function Oq(){var e,t;const r=Tq()?window.visualViewport:null;return{x:null!=(e=null==r?void 0:r.offsetLeft)?e:0,y:null!=(t=null==r?void 0:r.offsetTop)?t:0}}function Lq(e){return!(!e||!Sq(e))&&e instanceof wq(e).ShadowRoot}function qq(e){if(e&&Sq(e)){let t=e.getRootNode();if(Lq(t))return t;if(t instanceof Document)return t}return Pq(e)}function Nq(e){return e.matchMedia("(prefers-reduced-motion: reduce)").matches}function jq(e){return"value"in e}function _q(e){return"CANVAS"===e.tagName}function zq(e,{x:t,y:r}){const n=e.elementFromPoint(t,r);if(function(e){return"IFRAME"===(null==e?void 0:e.tagName)}(n)){const{contentDocument:e}=n;if(e){const{left:o,top:i}=n.getBoundingClientRect();return zq(e,{x:t-o,y:r-i})}}return n}var Fq=new WeakMap;var Hq=class{constructor(){this.entries=new Set,this.clear=()=>{for(const e of this.entries){const[t,{type:r,listener:n,options:o}]=e;t.removeEventListener(r,n,o)}this.entries.clear()}}bind(e,t){const r=Array.isArray(e)?e:[e],n=Array.isArray(t)?t:[t],o=[];for(const e of r)for(const t of n){const{type:r,listener:n,options:i}=t,a=[e,t];e.addEventListener(r,n,i),this.entries.add(a),o.push(a)}return function(){for(const[e,{type:t,listener:r,options:n}]of o)e.removeEventListener(t,r,n)}}};function $q(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function Wq(e,t){const r=()=>performance.now();let n,o;return function(...i){const a=this;o?(null==n||n(),n=function(e,t){const r=setTimeout(e,t);return()=>clearTimeout(r)}((()=>{e.apply(a,i),o=r()}),t-(r()-o))):(e.apply(a,i),o=r())}}var Bq,Vq=kq?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},Uq=class extends Vq{constructor(e){super((t=>{fq(this,Bq)?e(t,this):mq(this,Bq,!0)})),hq(this,Bq,!1)}};Bq=new WeakMap;var Gq,Yq,Kq,Xq,Jq,Zq,Qq,eN,tN,rN,nN,oN=Array.from({length:100},((e,t)=>t/100)),iN=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,hq(this,tN),this.disconnect=()=>{var e,t,r;mq(this,Qq,!0),null==(e=fq(this,Kq))||e.disconnect(),null==(t=fq(this,Xq))||t.disconnect(),fq(this,Jq).disconnect(),null==(r=fq(this,Zq))||r.remove()},hq(this,Gq,!0),hq(this,Yq),hq(this,Kq),hq(this,Xq),hq(this,Jq),hq(this,Zq),hq(this,Qq,!1),hq(this,eN,Wq((()=>{var e,t,r;const{element:n}=this;if(null==(e=fq(this,Xq))||e.disconnect(),fq(this,Qq)||!fq(this,Gq)||!n.isConnected)return;const o=null!=(t=n.ownerDocument)?t:document,{innerHeight:i,innerWidth:a}=null!=(r=o.defaultView)?r:window,s=n.getBoundingClientRect(),l=Iq(n,s),{top:u,left:c,bottom:d,right:p}=l,f=-Math.floor(u),h=-Math.floor(c),m=`${f}px ${-Math.floor(a-p)}px ${-Math.floor(i-d)}px ${h}px`;this.boundingClientRect=s,mq(this,Xq,new IntersectionObserver((e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:FT.intersectionRatio(r,Iq(n)))&&fq(this,eN).call(this)}),{threshold:oN,rootMargin:m,root:o})),fq(this,Xq).observe(n),gq(this,tN,rN).call(this)}),75)),this.boundingClientRect=e.getBoundingClientRect(),mq(this,Gq,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=Iq(e,t);return r>0&&n>0}(e,this.boundingClientRect));let n=!0;this.callback=e=>{n&&(n=!1,r.skipInitial)||t(e)};const o=e.ownerDocument;(null==r?void 0:r.debug)&&(mq(this,Zq,document.createElement("div")),fq(this,Zq).style.background="rgba(0,0,0,0.15)",fq(this,Zq).style.position="fixed",fq(this,Zq).style.pointerEvents="none",o.body.appendChild(fq(this,Zq))),mq(this,Jq,new IntersectionObserver((t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=fq(this,Gq);mq(this,Gq,a),(s||l)&&(u&&!a?(null==(r=fq(this,Xq))||r.disconnect(),this.callback(null),null==(n=fq(this,Kq))||n.disconnect(),mq(this,Kq,void 0),fq(this,Zq)&&(fq(this,Zq).style.visibility="hidden")):fq(this,eN).call(this),a&&!fq(this,Kq)&&(mq(this,Kq,new Uq(fq(this,eN))),fq(this,Kq).observe(e)))}),{threshold:oN,root:o})),fq(this,Gq)&&!r.skipInitial&&this.callback(this.boundingClientRect),fq(this,Jq).observe(e)}};Gq=new WeakMap,Yq=new WeakMap,Kq=new WeakMap,Xq=new WeakMap,Jq=new WeakMap,Zq=new WeakMap,Qq=new WeakMap,eN=new WeakMap,tN=new WeakSet,rN=function(){fq(this,Qq)||(gq(this,tN,nN).call(this),function(e,t){return e===t||!(!e||!t)&&e.top==t.top&&e.left==t.left&&e.right==t.right&&e.bottom==t.bottom}(this.boundingClientRect,fq(this,Yq))||(this.callback(this.boundingClientRect),mq(this,Yq,this.boundingClientRect)))},nN=function(){if(fq(this,Zq)){const{top:e,left:t,width:r,height:n}=Iq(this.element);fq(this,Zq).style.overflow="hidden",fq(this,Zq).style.visibility="visible",fq(this,Zq).style.top=`${Math.floor(e)}px`,fq(this,Zq).style.left=`${Math.floor(t)}px`,fq(this,Zq).style.width=`${Math.floor(r)}px`,fq(this,Zq).style.height=`${Math.floor(n)}px`}};var aN,sN,lN,uN,cN=new WeakMap,dN=new WeakMap;function pN(e,t){let r=cN.get(e);if(!r){const t=new iN(e,(t=>{const r=cN.get(e);r&&r.callbacks.forEach((e=>e(t)))}),{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),cN.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&(cN.delete(e),r.disconnect())}}var fN=class{constructor(e,t,r){this.callback=t,hq(this,aN),hq(this,sN,!1),hq(this,lN),hq(this,uN,Wq((e=>{if(!fq(this,sN)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of fq(this,lN))if(e.target.contains(t)){this.callback(fq(this,aN).boundingClientRect);break}}),75));const n=function(e){const t=new Set;let r=$q(e);for(;r;)t.add(r),r=$q(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=pN(n,t);r.add(e)}return()=>r.forEach((e=>e()))}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!dN.has(n)){const e=new AbortController,t=new Set;document.addEventListener("scroll",(e=>t.forEach((t=>t(e)))),{capture:!0,passive:!0,signal:e.signal}),dN.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=dN.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),dN.delete(n))}):()=>{}}(e,fq(this,uN));mq(this,lN,n),mq(this,aN,new iN(e,t,r)),this.disconnect=()=>{fq(this,sN)||(mq(this,sN,!0),o(),i(),fq(this,aN).disconnect())}}};function hN(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function mN(e){try{hN(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function gN(e){return!(!kq||!e)&&e===Pq(e).scrollingElement}function bN(e){var t,r;const n=wq(e),o=gN(e)?function(e){var t,r,n,o;const{documentElement:i}=Pq(e),a=wq(e).visualViewport,s=null!=(t=null==a?void 0:a.width)?t:i.clientWidth,l=null!=(r=null==a?void 0:a.height)?r:i.clientHeight,u=null!=(n=null==a?void 0:a.offsetTop)?n:0,c=null!=(o=null==a?void 0:a.offsetLeft)?o:0;return{top:u,left:c,right:c+s,bottom:u+l,width:s,height:l}}(e):yq(e),i=n.visualViewport,a=gN(e)?{height:null!=(t=null==i?void 0:i.height)?t:n.innerHeight,width:null!=(r=null==i?void 0:i.width)?r:n.innerWidth}:{height:e.clientHeight,width:e.clientWidth},s={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-a.width,y:e.scrollHeight-a.height}};return{rect:o,position:s,isTop:s.current.y<=0,isLeft:s.current.x<=0,isBottom:s.current.y>=s.max.y,isRight:s.current.x>=s.max.x}}function vN(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=bN(e),{x:s,y:l}=null!=t?t:{x:0,y:0},u=!r&&a.current.y+l>0,c=!n&&a.current.y+l<a.max.y,d=!o&&a.current.x+s>0,p=!i&&a.current.x+s<a.max.x;return{top:u,bottom:c,left:d,right:p,x:d||p,y:u||c}}aN=new WeakMap,sN=new WeakMap,lN=new WeakMap,uN=new WeakMap;var yN=class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise((e=>this.resolvers.add(e)))}},xN=new yN((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),SN=new yN((e=>setTimeout(e,50))),wN=new Map,CN=wN.clear.bind(wN);function EN(e,t=!1){if(!t)return RN(e);let r=wN.get(e);return r||(r=RN(e),wN.set(e,r),SN.schedule(CN),r)}function RN(e){return wq(e).getComputedStyle(e)}var PN={excludeElement:!0,escapeShadowDOM:!0};function AN(e,t=PN){const{limit:r,excludeElement:n,escapeShadowDOM:o}=t,i=new Set;return e?function t(a){if(null!=r&&i.size>=r)return i;if(!a)return i;if(Cq(a)&&null!=a.scrollingElement&&!i.has(a.scrollingElement))return i.add(a.scrollingElement),i;if(o&&Lq(a))return t(a.host);if(!Eq(a))return Rq(a)?t(a.parentElement):i;if(i.has(a))return i;const s=EN(a,!0);if(n&&a===e||function(e,t=EN(e,!0)){const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const n=t[e];return"string"==typeof n&&r.test(n)}))}(a,s)&&i.add(a),function(e,t=EN(e,!0)){return"fixed"===t.position||"sticky"===t.position}(a,s)){const{scrollingElement:e}=a.ownerDocument;return e&&i.add(e),i}return t(a.parentNode)}(e):i}function IN(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=$q(e);for(;n;){if(n===t)return r;const e=yq(n),{x:o,y:i}=MN(n,e);r.x=r.x+e.left,r.y=r.y+e.top,r.scaleX=r.scaleX*o,r.scaleY=r.scaleY*i,n=$q(n)}return r}function MN(e,t=yq(e)){const r=Math.round(t.width),n=Math.round(t.height);if(Eq(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=EN(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function kN(e){if("none"===e)return null;const[t,r,n="0"]=e.split(" "),o={x:parseFloat(t),y:parseFloat(r),z:parseInt(n,10)};return isNaN(o.x)&&isNaN(o.y)?null:{x:isNaN(o.x)?0:o.x,y:isNaN(o.y)?0:o.y,z:isNaN(o.z)?0:o.z}}function DN(e){var t,r,n,o,i,a,s,l,u;const{scale:c,transform:d,translate:p}=e,f=function(e){if("none"===e)return null;const t=e.split(" "),r=parseFloat(t[0]),n=parseFloat(t[1]);return isNaN(r)&&isNaN(n)?null:{x:isNaN(r)?n:r,y:isNaN(n)?r:n}}(c),h=kN(p),m=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(d);if(!m&&!f&&!h)return null;const g=null!=(t=null==f?void 0:f.x)?t:1,b=null!=(r=null==f?void 0:f.y)?r:1,v=null!=(n=null==h?void 0:h.x)?n:0,y=null!=(o=null==h?void 0:h.y)?o:0,x=null!=(i=null==m?void 0:m.x)?i:0,S=null!=(a=null==m?void 0:m.y)?a:0,w=null!=(s=null==m?void 0:m.scaleX)?s:1,C=null!=(l=null==m?void 0:m.scaleY)?l:1;return{x:v+x,y:y+S,z:null!=(u=null==h?void 0:h.z)?u:0,scaleX:g*w,scaleY:b*C}}var TN=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(TN||{}),ON={x:.2,y:.2},LN={x:10,y:10};function qN(e,t,r,n=25,o=ON,i=LN){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=bN(e),f=IN(e),h=DN(EN(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,b=new FT(l.left*f.scaleX+f.x,l.top*f.scaleY+f.y,l.width*f.scaleX,l.height*f.scaleY),v={x:0,y:0},y={x:0,y:0},x=b.height*o.y,S=b.width*o.x;return(!u||g&&!c)&&s<=b.top+x&&1!==(null==r?void 0:r.y)&&a>=b.left-i.x&&a<=b.right+i.x?(v.y=g?1:-1,y.y=n*Math.abs((b.top+x-s)/x)):(!c||g&&!u)&&s>=b.bottom-x&&-1!==(null==r?void 0:r.y)&&a>=b.left-i.x&&a<=b.right+i.x&&(v.y=g?-1:1,y.y=n*Math.abs((b.bottom-x-s)/x)),(!p||m&&!d)&&a>=b.right-S&&-1!==(null==r?void 0:r.x)&&s>=b.top-i.y&&s<=b.bottom+i.y?(v.x=m?-1:1,y.x=n*Math.abs((b.right-S-a)/S)):(!d||m&&!p)&&a<=b.left+S&&1!==(null==r?void 0:r.x)&&s>=b.top-i.y&&s<=b.bottom+i.y&&(v.x=m?1:-1,y.x=n*Math.abs((b.left+S-a)/S)),{direction:v,speed:y}}function NN(e,t=!1){if("scrollIntoViewIfNeeded"in(r=e)&&"function"==typeof r.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var r;if(!Eq(e))return e.scrollIntoView();var n=function(e){const[t]=AN(e,{limit:1});return null!=t?t:null}(e);if(!Eq(n))return;const o=EN(n,!0),i=parseInt(o.getPropertyValue("border-top-width")),a=parseInt(o.getPropertyValue("border-left-width")),s=e.offsetTop-n.offsetTop<n.scrollTop,l=e.offsetTop-n.offsetTop+e.clientHeight-i>n.scrollTop+n.clientHeight,u=e.offsetLeft-n.offsetLeft<n.scrollLeft,c=e.offsetLeft-n.offsetLeft+e.clientWidth-a>n.scrollLeft+n.clientWidth,d=s&&!l;(s||l)&&t&&(n.scrollTop=e.offsetTop-n.offsetTop-n.clientHeight/2-i+e.clientHeight/2),(u||c)&&t&&(n.scrollLeft=e.offsetLeft-n.offsetLeft-n.clientWidth/2-a+e.clientWidth/2),(s||l||u||c)&&!t&&e.scrollIntoView(d)}function jN({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function _N(e,t=EN(e).translate,r=!0){if(r){const t=vq(e,(e=>"translate"in e));if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=kN(e);if(t)return t}}}if(t){const e=kN(t);if(e)return e}return{x:0,y:0,z:0}}var zN=new yN((e=>setTimeout(e,0))),FN=new Map,HN=FN.clear.bind(FN);function $N(e,t){const r=function(e){const t=e.ownerDocument;let r=FN.get(t);if(r)return r;r=t.getAnimations(),FN.set(t,r),zN.schedule(HN);const n=r.filter((t=>bq(t.effect)&&t.effect.target===e));return FN.set(e,n),r}(e).filter((e=>{var r,n;if(bq(e.effect)){const{target:o}=e.effect;if(null==(n=o&&(null==(r=t.isValidTarget)?void 0:r.call(t,o)))||n)return e.effect.getKeyframes().some((e=>{for(const r of t.properties)if(e[r])return!0}))}})).map((e=>{const{effect:t,currentTime:r}=e,n=null==t?void 0:t.getComputedTiming().duration;if(!e.pending&&"finished"!==e.playState)return"number"==typeof n&&"number"==typeof r&&r<n?(e.currentTime=n,()=>{e.currentTime=r}):void 0}));if(r.length>0)return()=>r.forEach((e=>null==e?void 0:e()))}var WN=class extends FT{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=IN(e),ignoreTransforms:s,getBoundingClientRect:l=yq}=t,u=$N(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||Tq())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=EN(e),b=DN(g),v={x:null!=(r=null==b?void 0:b.scaleX)?r:1,y:null!=(n=null==b?void 0:b.scaleY)?n:1},y=function(e,t){var r;const n=e.getAnimations();let o=null;if(!n.length)return null;for(const e of n){if("running"!==e.playState)continue;const n=bq(e.effect)?e.effect.getKeyframes():[],i=n[n.length-1];if(!i)continue;const{transform:a,translate:s,scale:l}=i;if(a||s||l){const e=DN({transform:"string"==typeof a&&a?a:t.transform,translate:"string"==typeof s&&s?s:t.translate,scale:"string"==typeof l&&l?l:t.scale});e&&(o=o?{x:o.x+e.x,y:o.y+e.y,z:null!=(r=o.z)?r:e.z,scaleX:o.scaleX*e.scaleX,scaleY:o.scaleY*e.scaleY}:e)}}return o}(e,g);null==u||u(),b&&(d=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left-i-(1-n)*parseFloat(r),l=e.top-a-(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width/n:e.width,c=o?e.height/o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(c,b,g.transformOrigin),(s||y)&&(p=d.top,f=d.left,h=d.width,m=d.height));const x={width:null!=(o=null==d?void 0:d.width)?o:h,height:null!=(i=null==d?void 0:d.height)?i:m};if(y&&!s&&d){const e=function(e,t,r){const{scaleX:n,scaleY:o,x:i,y:a}=t,s=e.left+i+(1-n)*parseFloat(r),l=e.top+a+(1-o)*parseFloat(r.slice(r.indexOf(" ")+1)),u=n?e.width*n:e.width,c=o?e.height*o:e.height;return{width:u,height:c,top:l,right:s+u,bottom:l+c,left:s}}(d,y,g.transformOrigin);p=e.top,f=e.left,h=e.width,m=e.height,v.x=y.scaleX,v.y=y.scaleY}a&&(s||(f*=a.scaleX,h*=a.scaleX,p*=a.scaleY,m*=a.scaleY),f+=a.x,p+=a.y),super(f,p,h,m),this.scale=v,this.intrinsicWidth=x.width,this.intrinsicHeight=x.height}};function BN(e){return"style"in e&&"object"==typeof e.style&&null!==e.style&&"setProperty"in e.style&&"removeProperty"in e.style&&"function"==typeof e.style.setProperty&&"function"==typeof e.style.removeProperty}var VN=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(BN(r))for(const[n,o]of Object.entries(e)){const e=`${t}${n}`;this.initial.has(e)||this.initial.set(e,r.style.getPropertyValue(e)),r.style.setProperty(e,"string"==typeof o?o:`${o}px`)}}remove(e,t=""){const{element:r}=this;if(BN(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(BN(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function UN(e){return!!e&&(e instanceof wq(e).Element||Sq(e)&&e.nodeType===Node.ELEMENT_NODE)}function GN(e){if(!e)return!1;const{KeyboardEvent:t}=wq(e.target);return e instanceof t}var YN={};function KN(e){const t=null==YN[e]?0:YN[e]+1;return YN[e]=t,`${e}-${t}`}var XN=e=>{var t;return null!=(t=(({dragOperation:e,droppable:t})=>{const r=e.position.current;if(!r)return null;const{id:n}=t;if(!t.shape)return null;if(t.shape.containsPoint(r))return{id:n,value:1/zT.distance(t.shape.center,r),type:XO.PointerIntersection,priority:KO.High};return null})(e))?t:(({dragOperation:e,droppable:t})=>{const{shape:r}=e;if(!t.shape||!(null==r?void 0:r.current))return null;const n=r.current.intersectionArea(t.shape);if(n){const{position:o}=e,i=zT.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:XO.ShapeIntersection,priority:KO.Normal}}return null})(e)},JN=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?FT.from(n.current.boundingRectangle).corners:void 0,a=FT.from(r.shape.boundingRectangle).corners.reduce(((e,t,r)=>{var n;return e+zT.distance(zT.from(t),null!=(n=null==i?void 0:i[r])?n:o.current)}),0),s=a/4;return{id:r.id,value:1/s,type:XO.Collision,priority:KO.Normal}},ZN=Object.create,QN=Object.defineProperty,ej=Object.defineProperties,tj=Object.getOwnPropertyDescriptor,rj=Object.getOwnPropertyDescriptors,nj=Object.getOwnPropertySymbols,oj=Object.prototype.hasOwnProperty,ij=Object.prototype.propertyIsEnumerable,aj=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),sj=e=>{throw TypeError(e)},lj=(e,t,r)=>t in e?QN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uj=(e,t)=>{for(var r in t||(t={}))oj.call(t,r)&&lj(e,r,t[r]);if(nj)for(var r of nj(t))ij.call(t,r)&&lj(e,r,t[r]);return e},cj=(e,t)=>ej(e,rj(t)),dj=(e,t)=>QN(e,"name",{value:t,configurable:!0}),pj=(e,t)=>{var r={};for(var n in e)oj.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&nj)for(var n of nj(e))t.indexOf(n)<0&&ij.call(e,n)&&(r[n]=e[n]);return r},fj=e=>{var t;return[,,,ZN(null!=(t=null==e?void 0:e[aj("metadata")])?t:null)]},hj=["class","method","getter","setter","accessor","field","value","get","set"],mj=e=>void 0!==e&&"function"!=typeof e?sj("Function expected"):e,gj=(e,t,r,n,o)=>({kind:hj[e],name:t,metadata:n,addInitializer:e=>r._?sj("Already initialized"):o.push(mj(e||null))}),bj=(e,t)=>lj(t,aj("metadata"),e[3]),vj=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},yj=(e,t,r,n,o,i)=>{var a,s,l,u,c,d=7&t,p=!!(8&t),f=!!(16&t),h=d>3?e.length+1:d?p?1:2:0,m=hj[d+5],g=d>3&&(e[h-1]=[]),b=e[h]||(e[h]=[]),v=d&&(!f&&!p&&(o=o.prototype),d<5&&(d>3||!f)&&tj(d<4?o:{get[r](){return wj(this,i)},set[r](e){return Ej(this,i,e)}},r));d?f&&d<4&&dj(i,(d>2?"set ":d>1?"get ":"")+r):dj(o,r);for(var y=n.length-1;y>=0;y--)u=gj(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>Sj(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?wj:Rj)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>Ej(e,o,t,4^d?i:v.set):(e,t)=>e[r]=t)),s=(0,n[y])(d?d<4?f?i:v[m]:d>4?void 0:{get:v.get,set:v.set}:o,u),l._=1,4^d||void 0===s?mj(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?sj("Object expected"):(mj(a=s.get)&&(v.get=a),mj(a=s.set)&&(v.set=a),mj(a=s.init)&&g.unshift(a));return d||bj(e,o),v&&QN(o,r,v),f?4^d?i:v:o},xj=(e,t,r)=>t.has(e)||sj("Cannot "+r),Sj=(e,t)=>Object(t)!==t?sj('Cannot use the "in" operator on this value'):e.has(t),wj=(e,t,r)=>(xj(e,t,"read from private field"),r?r.call(e):t.get(e)),Cj=(e,t,r)=>t.has(e)?sj("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Ej=(e,t,r,n)=>(xj(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Rj=(e,t,r)=>(xj(e,t,"access private method"),r),Pj="button",Aj="draggable",Ij="dnd-kit-description",Mj="dnd-kit-announcement",kj={draggable:"To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."},Dj={dragstart({operation:{source:e}}){if(e)return`Picked up draggable item ${e.id}.`},dragover({operation:{source:e,target:t}}){if(e&&e.id!==(null==t?void 0:t.id))return t?`Draggable item ${e.id} was moved over droppable target ${t.id}.`:`Draggable item ${e.id} is no longer over a droppable target.`},dragend({operation:{source:e,target:t},canceled:r}){if(e)return r?`Dragging was cancelled. Draggable item ${e.id} was dropped.`:t?`Draggable item ${e.id} was dropped over droppable target ${t.id}`:`Draggable item ${e.id} was dropped.`}};function Tj(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var Oj=["dragover","dragmove"],Lj=class extends AO{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=Ij,announcement:o=Mj}={},announcements:i=Dj,screenReaderInstructions:a=kj,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:KN(n),u=r?`${o}-${r}`:KN(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>xN.schedule(h),g=function(e,t){let r;const n=()=>{clearTimeout(r),r=setTimeout(e,t)};return n.cancel=()=>clearTimeout(r),n}(m,s),b=Object.entries(i).map((([e,t])=>this.manager.monitor.addEventListener(e,((r,n)=>{const o=p;if(!o)return;const i=null==t?void 0:t(r,n);i&&o.nodeValue!==i&&(f=i,Oj.includes(e)?g():(m(),g.cancel()))})))),v=()=>{let e=[];(null==c?void 0:c.isConnected)||(c=function(e,t){const r=document.createElement("div");return r.id=e,r.style.setProperty("display","none"),r.textContent=t,r}(l,a.draggable),e.push(c)),(null==d?void 0:d.isConnected)||(d=function(e){const t=document.createElement("div");return t.id=e,t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.style.setProperty("position","fixed"),t.style.setProperty("width","1px"),t.style.setProperty("height","1px"),t.style.setProperty("margin","-1px"),t.style.setProperty("border","0"),t.style.setProperty("padding","0"),t.style.setProperty("overflow","hidden"),t.style.setProperty("clip","rect(0 0 0 0)"),t.style.setProperty("clip-path","inset(100%)"),t.style.setProperty("white-space","nowrap"),t}(u),p=document.createTextNode(""),d.appendChild(p),e.push(d)),e.length>0&&document.body.append(...e)},y=new Set;function x(){for(const e of y)e()}this.registerEffect((()=>{var e;y.clear();for(const t of this.manager.registry.draggables.value){const r=null!=(e=t.handle)?e:t.element;if(r){c&&d||y.add(v),Tj(r)&&!Tq()||r.hasAttribute("tabindex")||y.add((()=>r.setAttribute("tabindex","0"))),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||y.add((()=>r.setAttribute("role",Pj))),r.hasAttribute("aria-roledescription")||y.add((()=>r.setAttribute("aria-roledescription",Aj))),r.hasAttribute("aria-describedby")||y.add((()=>r.setAttribute("aria-describedby",l)));for(const e of["aria-pressed","aria-grabbed"]){const n=String(t.isDragging);r.getAttribute(e)!==n&&y.add((()=>r.setAttribute(e,n)))}const e=String(t.disabled);r.getAttribute("aria-disabled")!==e&&y.add((()=>r.setAttribute("aria-disabled",e)))}}y.size>0&&xN.schedule(x)})),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),b.forEach((e=>e()))}}};var qj,Nj,jj,_j,zj,Fj,Hj,$j,Wj,Bj,Vj,Uj,Gj,Yj=new Map,Kj=class extends(zj=MO,_j=[pT],jj=[fT],Nj=[fT],qj=[fT],zj){constructor(e){super(e),vj(Hj,5,this),Cj(this,Wj),Cj(this,Fj,new Set),Cj(this,$j,vj(Hj,8,this,new Set)),vj(Hj,11,this),this.registerEffect(Rj(this,Wj,Bj))}register(e){return wj(this,Fj).add(e),()=>{wj(this,Fj).delete(e)}}addRoot(e){return nD((()=>{const t=new Set(this.additionalRoots);t.add(e),this.additionalRoots=t})),()=>{nD((()=>{const t=new Set(this.additionalRoots);t.delete(e),this.additionalRoots=t}))}}get sourceRoot(){var e;const{source:t}=this.manager.dragOperation;return qq(null!=(e=null==t?void 0:t.element)?e:null)}get targetRoot(){var e;const{target:t}=this.manager.dragOperation;return qq(null!=(e=null==t?void 0:t.element)?e:null)}get roots(){const{status:e}=this.manager.dragOperation;if(e.initializing||e.initialized){const e=[this.sourceRoot,this.targetRoot].filter((e=>null!=e));return new Set([...e,...this.additionalRoots])}return new Set}};Hj=fj(zj),Fj=new WeakMap,$j=new WeakMap,Wj=new WeakSet,Bj=function(){const{roots:e}=this,t=[];for(const r of e)for(const e of wj(this,Fj))t.push(Rj(this,Wj,Vj).call(this,r,e));return()=>{for(const e of t)e()}},Vj=function(e,t){let r=Yj.get(e);r||(r=new Map,Yj.set(e,r));let n=r.get(t);if(!n){const o=Cq(e)?Rj(this,Wj,Uj).call(this,e,r,t):Rj(this,Wj,Gj).call(this,e,r,t);if(!o)return()=>{};n=o,r.set(t,n)}n.refCount++;let o=!1;return()=>{o||(o=!0,n.refCount--,0===n.refCount&&n.cleanup())}},Uj=function(e,t,r){const n=e.createElement("style");n.textContent=r,e.head.prepend(n);const o=new MutationObserver((t=>{for(const r of t)for(const t of Array.from(r.removedNodes))if(t===n)return void e.head.prepend(n)}));return o.observe(e.head,{childList:!0}),{refCount:0,cleanup:()=>{o.disconnect(),n.remove(),t.delete(r),0===t.size&&Yj.delete(e)}}},Gj=function(e,t,r){!("adoptedStyleSheets"in e)||Array.isArray(e.adoptedStyleSheets);const n=e.ownerDocument.defaultView,{CSSStyleSheet:o}=null!=n?n:{};if(!o)return null;const i=new o;return i.replaceSync(r),e.adoptedStyleSheets.push(i),{refCount:0,cleanup:()=>{var n;if(Lq(e)&&(null==(n=e.host)?void 0:n.isConnected)){const t=e.adoptedStyleSheets.indexOf(i);-1!==t&&e.adoptedStyleSheets.splice(t,1)}t.delete(r),0===t.size&&Yj.delete(e)}}},yj(Hj,4,"additionalRoots",_j,Kj,$j),yj(Hj,2,"sourceRoot",jj,Kj),yj(Hj,2,"targetRoot",Nj,Kj),yj(Hj,2,"roots",qj,Kj),bj(Hj,Kj);var Xj="data-dnd-",Jj=`${Xj}dropping`,Zj="--dnd-",Qj=`${Xj}dragging`,e_=`${Xj}placeholder`,t_=[Qj,e_,"popover","aria-pressed","aria-grabbing"],r_=["view-transition-name"],n_=`\n :is(:root,:host) [${Qj}] {\n position: fixed !important;\n pointer-events: none !important;\n touch-action: none;\n z-index: calc(infinity);\n will-change: translate;\n top: var(${Zj}top, 0px) !important;\n left: var(${Zj}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${Zj}width, auto);\n max-width: var(${Zj}width, auto);\n height: var(${Zj}height, auto);\n max-height: var(${Zj}height, auto);\n transition: var(${Zj}transition) !important;\n }\n\n :is(:root,:host) [${e_}] {\n transition: none;\n }\n\n :is(:root,:host) [${e_}='hidden'] {\n visibility: hidden;\n }\n\n [${Qj}] * {\n pointer-events: none !important;\n }\n\n [${Qj}]:not([${Jj}]) {\n translate: var(${Zj}translate) !important;\n }\n\n [${Qj}][style*='${Zj}scale'] {\n scale: var(${Zj}scale) !important;\n transform-origin: var(${Zj}transform-origin) !important;\n }\n\n @layer dnd-kit {\n :where([${Qj}][popover]) {\n overflow: visible;\n background: unset;\n border: unset;\n margin: unset;\n padding: unset;\n color: inherit;\n\n &:is(input, button) {\n border: revert;\n background: revert;\n }\n }\n }\n [${Qj}]::backdrop, [${Xj}overlay]:not([${Qj}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function o_(e,t="hidden"){return nD((()=>{const{element:r,manager:n}=e;if(!r||!n)return;const o=function(e,t){const r=new Map;for(const n of t)if(n.element&&(e===n.element||e.contains(n.element))){const e=`${Xj}${KN("dom-id")}`;n.element.setAttribute(e,""),r.set(n,e)}return r}(r,n.registry.droppables),i=[],a=function(e){const t="input, textarea, select, canvas, [contenteditable]",r=e.cloneNode(!0),n=Array.from(e.querySelectorAll(t));return Array.from(r.querySelectorAll(t)).forEach(((e,t)=>{const r=n[t];if(jq(e)&&jq(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),_q(e)&&_q(r)&&r.width>0&&r.height>0){const t=e.getContext("2d");null==t||t.drawImage(r,0,0)}})),r}(r),{remove:s}=a;return function(e,t,r){for(const[n,o]of e){if(!n.element)continue;const e=`[${o}]`,i=t.matches(e)?t:t.querySelector(e);if(n.element.removeAttribute(o),!i)continue;const a=n.element;n.proxy=i,i.removeAttribute(o),Fq.set(a,i),r.push((()=>{Fq.delete(a),n.proxy=void 0}))}}(o,a,i),function(e,t="hidden"){e.setAttribute("inert","true"),e.setAttribute("tab-index","-1"),e.setAttribute("aria-hidden","true"),e.setAttribute(e_,t)}(a,t),a.remove=()=>{i.forEach((e=>e())),s.call(a)},a}))}function i_(e,t){return e===t||$q(e)===$q(t)}function a_(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&UN(t)&&t.hasAttribute("popover")&&requestAnimationFrame((()=>mN(t)))}function s_(e){return"TR"===e.tagName}var l_,u_,c_,d_,p_,f_,h_,m_=250,g_="ease";var b_=class extends(u_=AO,l_=[pT],u_){constructor(e,t){super(e,t),Cj(this,p_),Cj(this,d_,vj(c_,8,this)),vj(c_,11,this),this.state={initial:{},current:{}};const r=e.registry.plugins.get(Kj),n=null==r?void 0:r.register(n_);if(n){const e=this.destroy.bind(this);this.destroy=()=>{n(),e()}}this.registerEffect(Rj(this,p_,f_).bind(this,r)),this.registerEffect(Rj(this,p_,h_))}};c_=fj(u_),d_=new WeakMap,p_=new WeakSet,f_=function(e){const{overlay:t}=this;if(!t||!e)return;const r=qq(t);return r?e.addRoot(r):void 0},h_=function(){var e,t,r;const{state:n,manager:o,options:i}=this,{dragOperation:a}=o,{position:s,source:l,status:u}=a;if(u.idle)return n.current={},void(n.initial={});if(!l)return;const{element:c,feedback:d}=l;if(!c||"none"===d||!u.initialized||u.initializing)return;const{initial:p}=n,f=null!=(e=this.overlay)?e:c,h=IN(f),m=IN(c),g=!i_(c,f),b=new WN(c,{frameTransform:g?m:null,ignoreTransforms:!g}),v=m.scaleX/h.scaleX,y=m.scaleY/h.scaleY;let{width:x,height:S,top:w,left:C}=b;g&&(x/=v,S/=y);const E=new VN(f),{transition:R,translate:P,boxSizing:A,paddingBlockStart:I,paddingBlockEnd:M,paddingInlineStart:k,paddingInlineEnd:D,borderInlineStartWidth:T,borderInlineEndWidth:O,borderBlockStartWidth:L,borderBlockEndWidth:q}=EN(c),N="clone"===d,j="content-box"===A,_=j?parseInt(k)+parseInt(D)+parseInt(T)+parseInt(O):0,z=j?parseInt(I)+parseInt(M)+parseInt(L)+parseInt(q):0,F="move"===d||this.overlay?null:o_(l,N?"clone":"hidden"),H=nD((()=>GN(o.dragOperation.activatorEvent)));if("none"!==P){const e=kN(P);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=nD((()=>s.current));p.transformOrigin={x:(e.x-C*h.scaleX-h.x)/(x*h.scaleX),y:(e.y-w*h.scaleY-h.y)/(S*h.scaleY)}}const{transformOrigin:$}=p,W=w*h.scaleY+h.y,B=C*h.scaleX+h.x;if(!p.coordinates&&(p.coordinates={x:B,y:W},1!==v||1!==y)){const{scaleX:e,scaleY:t}=m,{x:r,y:n}=$;p.coordinates.x+=(x*e-x)*r,p.coordinates.y+=(S*t-S)*n}p.dimensions||(p.dimensions={width:x,height:S}),p.frameTransform||(p.frameTransform=h);const V=p.coordinates.x-B,U=p.coordinates.y-W,G=(p.dimensions.width*p.frameTransform.scaleX-x*h.scaleX)*$.x,Y=(p.dimensions.height*p.frameTransform.scaleY-S*h.scaleY)*$.y,K={x:V/h.scaleX+G,y:U/h.scaleY+Y},X=C+K.x,J=w+K.y;f.setAttribute(Qj,"true");const Z=nD((()=>a.transform)),Q=null!=(t=p.translate)?t:{x:0,y:0},ee=Z.x*h.scaleX+Q.x,te=Z.y*h.scaleY+Q.y,re=Oq();if(E.set({width:x-_,height:S-z,top:J+re.y,left:X+re.x,translate:`${ee}px ${te}px 0`,transition:R?`${R}, translate 0ms linear`:"",scale:g?`${v} ${y}`:"","transform-origin":`${100*$.x}% ${100*$.y}%`},Zj),F&&(c.insertAdjacentElement("afterend",F),null==i?void 0:i.rootElement)){("function"==typeof i.rootElement?i.rootElement(l):i.rootElement).appendChild(c)}let ne,oe,ie;hN(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),mN(f),f.addEventListener("beforetoggle",a_));const ae=(se={placeholder:F,element:c,feedbackElement:f,frameTransform:h,transformOrigin:$,width:x,height:S,top:w,left:C,widthOffset:_,heightOffset:z,delta:K,styles:E,dragOperation:a,getElementMutationObserver:()=>ne,getSavedCellWidths:()=>ie,setSavedCellWidths:e=>{ie=e}},new ResizeObserver((()=>{var e,t;const r=new WN(se.placeholder,{frameTransform:se.frameTransform,ignoreTransforms:!0}),n=null!=(e=se.transformOrigin)?e:{x:1,y:1},o=(se.width-r.width)*n.x+se.delta.x,i=(se.height-r.height)*n.y+se.delta.y,a=Oq();if(se.styles.set({width:r.width-se.widthOffset,height:r.height-se.heightOffset,top:se.top+i+a.y,left:se.left+o+a.x},Zj),null==(t=se.getElementMutationObserver())||t.takeRecords(),s_(se.element)&&s_(se.placeholder)){const e=Array.from(se.element.cells),t=Array.from(se.placeholder.cells);se.getSavedCellWidths()||se.setSavedCellWidths(e.map((e=>e.style.width)));for(const[r,n]of e.entries()){const e=t[r];n.style.width=`${e.getBoundingClientRect().width}px`}}se.dragOperation.shape=new WN(se.feedbackElement)})));var se;const le=new WN(f);nD((()=>a.shape=le));const ue=wq(f),ce=e=>{this.manager.actions.stop({event:e})},de=Nq(ue);H&&ue.addEventListener("resize",ce),"idle"===nD((()=>l.status))&&requestAnimationFrame((()=>l.status="dragging")),F&&(ae.observe(F),ne=function(e,t,r){const n=new MutationObserver((n=>{let o=!1;for(const r of n){if(r.target!==e){o=!0;continue}if("attributes"!==r.type)continue;const n=r.attributeName;if(n.startsWith("aria-")||t_.includes(n))continue;const i=e.getAttribute(n);if("style"===n){if(BN(e)&&BN(t)){const r=e.style;for(const e of Array.from(t.style))""===r.getPropertyValue(e)&&t.style.removeProperty(e);for(const e of Array.from(r)){if(r_.includes(e)||e.startsWith(Zj))continue;const n=r.getPropertyValue(e);t.style.setProperty(e,n)}}}else null!==i?t.setAttribute(n,i):t.removeAttribute(n)}o&&r&&(t.innerHTML=e.innerHTML)}));return n.observe(e,{attributes:!0,subtree:!0,childList:!0}),n}(c,F,N),oe=function(e,t,r){const n=new MutationObserver((n=>{for(const o of n)if(0!==o.addedNodes.length)for(const n of Array.from(o.addedNodes)){if(n.contains(e)&&e.nextElementSibling!==t)return e.insertAdjacentElement("afterend",t),void mN(r);if(n.contains(t)&&t.previousElementSibling!==e)return t.insertAdjacentElement("beforebegin",e),void mN(r)}}));return n.observe(e.ownerDocument.body,{childList:!0,subtree:!0}),n}(c,F,f));const pe=null==(r=o.dragOperation.source)?void 0:r.id,fe=()=>{var e;if(!H||null==pe)return;const t=o.registry.draggables.get(pe),r=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;Eq(r)&&r.focus()},he=()=>{var e;if(null==ne||ne.disconnect(),null==oe||oe.disconnect(),ae.disconnect(),ue.removeEventListener("resize",ce),hN(f)&&(f.removeEventListener("beforetoggle",a_),f.removeAttribute("popover")),f.removeAttribute(Qj),E.reset(),ie&&s_(c)){const t=Array.from(c.cells);for(const[r,n]of t.entries())n.style.width=null!=(e=ie[r])?e:""}l.status="idle";const t=null!=n.current.translate;F&&(t||F.parentElement!==f.parentElement)&&f.isConnected&&F.replaceWith(f),null==F||F.remove()},me=null==i?void 0:i.dropAnimation,ge=this,be=mT((()=>{var e;const{transform:t,status:r}=a;if((t.x||t.y||n.current.translate)&&r.dragging){const r=null!=(e=p.translate)?e:{x:0,y:0},o={x:t.x/h.scaleX+r.x,y:t.y/h.scaleY+r.y},i=n.current.translate,s=nD((()=>a.modifiers)),l=nD((()=>{var e;return null==(e=a.shape)?void 0:e.current})),u=H&&!de?"250ms cubic-bezier(0.25, 1, 0.5, 1)":"0ms linear";if(E.set({transition:`${R}, translate ${u}`,translate:`${o.x}px ${o.y}px 0`},Zj),null==ne||ne.takeRecords(),l&&l!==le&&i&&!s.length){const e=zT.delta(o,i);a.shape=FT.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new WN(f);n.current.translate=o}}),(function(){if(a.status.dropped){this.dispose(),l.status="dropping";const e=void 0!==ge.dropAnimation?ge.dropAnimation:me;let t=n.current.translate;const r=null!=t;if(t||c===f||(t={x:0,y:0}),!t||null===e)return void he();o.renderer.rendering.then((()=>{!function(e){var t,r,n,o;const{animation:i}=e;if("function"==typeof i){const t=i({element:e.element,feedbackElement:e.feedbackElement,placeholder:e.placeholder,translate:e.translate,moved:e.moved});return void Promise.resolve(t).then((()=>{e.cleanup(),requestAnimationFrame(e.restoreFocus)}))}const{duration:a=m_,easing:s=g_}=null!=i?i:{};mN(e.feedbackElement);const[,l]=null!=(t=vq(e.feedbackElement,(e=>"translate"in e)))?t:[];null==l||l.pause();const u=null!=(r=e.placeholder)?r:e.element,c={frameTransform:i_(e.feedbackElement,u)?null:void 0},d=new WN(e.feedbackElement,c),p=null!=(n=kN(EN(e.feedbackElement).translate))?n:e.translate,f=new WN(u,c),h=FT.delta(d,f,e.alignment),m=p.x-h.x,g=p.y-h.y,b=Math.round(d.intrinsicHeight)!==Math.round(f.intrinsicHeight)?{minHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`],maxHeight:[`${d.intrinsicHeight}px`,`${f.intrinsicHeight}px`]}:{},v=Math.round(d.intrinsicWidth)!==Math.round(f.intrinsicWidth)?{minWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`],maxWidth:[`${d.intrinsicWidth}px`,`${f.intrinsicWidth}px`]}:{};e.styles.set({transition:e.transition},Zj),e.feedbackElement.setAttribute(Jj,""),null==(o=e.getElementMutationObserver())||o.takeRecords(),jN({element:e.feedbackElement,keyframes:cj(uj(uj({},b),v),{translate:[`${p.x}px ${p.y}px 0`,`${m}px ${g}px 0`]}),options:{duration:Nq(wq(e.feedbackElement))?0:e.moved||e.feedbackElement!==e.element?a:0,easing:s}}).then((()=>{e.feedbackElement.removeAttribute(Jj),null==l||l.finish(),e.cleanup(),requestAnimationFrame(e.restoreFocus)}))}({element:c,feedbackElement:f,placeholder:F,translate:t,moved:r,transition:R,alignment:l.alignment,styles:E,animation:null!=e?e:void 0,getElementMutationObserver:()=>ne,cleanup:he,restoreFocus:fe})}))}}));return()=>{he(),be()}},yj(c_,4,"overlay",l_,b_,d_),bj(c_,b_),b_.configure=RO(b_);var v_,y_,x_,S_,w_,C_,E_,R_=b_,P_=!0;x_=[pT],S_=TN.Forward,v_=[pT],y_=TN.Reverse;var A_=class{constructor(){Cj(this,C_,vj(w_,8,this,P_)),vj(w_,11,this),Cj(this,E_,vj(w_,12,this,P_)),vj(w_,15,this)}isLocked(e){return e!==TN.Idle&&(null==e?this[TN.Forward]===P_&&this[TN.Reverse]===P_:this[e]===P_)}unlock(e){e!==TN.Idle&&(this[e]=false)}};w_=fj(null),C_=new WeakMap,E_=new WeakMap,yj(w_,4,S_,x_,A_,C_),yj(w_,4,y_,v_,A_,E_),bj(w_,A_);var I_,M_,k_,D_,T_,O_,L_=[TN.Forward,TN.Reverse],q_=class{constructor(){this.x=new A_,this.y=new A_}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},N_=class extends AO{constructor(e){super(e);const t=cD(new q_);let r=null;this.signal=t,xD((()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new q_);const{delta:o}=e.dragOperation.position;if(r){const e={x:j_(o.x,r.x),y:j_(o.y,r.y)},n=t.peek();tD((()=>{for(const t of KT)for(const r of L_)e[t]===r&&n[t].unlock(r);t.value=n}))}r=o}))}get current(){return this.signal.peek()}};function j_(e,t){return Math.sign(e-t)}var __=class extends(M_=MO,I_=[pT],M_){constructor(e){super(e),Cj(this,D_,vj(k_,8,this,!1)),vj(k_,11,this),Cj(this,T_),Cj(this,O_,(()=>{if(!wj(this,T_))return;const{element:e,by:t}=wj(this,T_);t.y&&(e.scrollTop+=t.y),t.x&&(e.scrollLeft+=t.x)})),this.scroll=e=>{var t;if(this.disabled)return!1;const r=this.getScrollableElements();if(!r)return Ej(this,T_,void 0),!1;const{position:n}=this.manager.dragOperation,o=null==n?void 0:n.current;if(o){const{by:n}=null!=e?e:{},i=n?{x:z_(n.x),y:z_(n.y)}:void 0,a=i?void 0:this.scrollIntentTracker.current;if(null==a?void 0:a.isLocked())return!1;for(const e of r){const r=vN(e,n);if(r.x||r.y){const{speed:r,direction:s}=qN(e,o,i);if(a)for(const e of KT)a[e].isLocked(s[e])&&(r[e]=0,s[e]=0);if(s.x||s.y){const{x:o,y:i}=null!=n?n:s,a=o*r.x,l=i*r.y;if(a||l){const r=null==(t=wj(this,T_))?void 0:t.by;if(this.autoScrolling&&r){if(r.x&&!a||r.y&&!l)continue}return Ej(this,T_,{element:e,by:{x:a,y:l}}),xN.schedule(wj(this,O_)),!0}}}}}return Ej(this,T_,void 0),!1};let t=null,r=null;const n=cT((()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=zq(qq(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t})),o=cT((()=>{const t=n.value,{documentElement:o}=Pq(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=AN(n,{excludeElement:!1});return r=e,e}}if(t){const e=AN(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null}),dT);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new N_(e),this.destroy=e.monitor.addEventListener("dragmove",(t=>{!this.disabled&&!t.defaultPrevented&&GN(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()}))}};function z_(e){return e>0?TN.Forward:e<0?TN.Reverse:TN.Idle}k_=fj(M_),D_=new WeakMap,T_=new WeakMap,O_=new WeakMap,yj(k_,4,"autoScrolling",I_,__,D_),bj(k_,__);var F_,H_=new class{constructor(e){this.scheduler=e,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:e,resolvers:t}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const t of e)t();for(const e of t)e()}}schedule(e){return this.tasks.add(e),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise((e=>this.resolvers.add(e)))}}((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),$_=class extends AO{constructor(e,t){super(e);const r=e.registry.plugins.get(__);if(!r)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=xD((()=>{if(this.disabled)return;const{position:t,status:n}=e.dragOperation;if(n.dragging){if(r.scroll()){r.autoScrolling=!0;const e=setInterval((()=>H_.schedule(r.scroll)),10);return()=>{clearInterval(e)}}r.autoScrolling=!1}}))}},W_={capture:!0,passive:!0},B_=class extends MO{constructor(e){super(e),Cj(this,F_),this.handleScroll=()=>{null==wj(this,F_)&&Ej(this,F_,setTimeout((()=>{this.manager.collisionObserver.forceUpdate(!1),Ej(this,F_,void 0)}),50))};const{dragOperation:t}=this.manager;this.destroy=xD((()=>{var e,r,n;if(t.status.dragging){const o=null!=(n=null==(r=null==(e=t.source)?void 0:e.element)?void 0:r.ownerDocument)?n:document;return o.addEventListener("scroll",this.handleScroll,W_),()=>{o.removeEventListener("scroll",this.handleScroll,W_)}}}))}};F_=new WeakMap;function V_(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var U_,G_=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(e,t){var r;const n=null!=(r=t.handle)?r:t.element;return e.target!==n}}),Y_=class extends jL{constructor(e,t){super(e),this.manager=e,this.options=t,Cj(this,U_,[]),this.listeners=new Hq,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!UN(e.target))return;if(t.disabled)return;const{keyboardCodes:n=G_.keyboardCodes,preventActivation:o=G_.preventActivation}=null!=r?r:{};n.start.includes(e.code)&&this.manager.dragOperation.status.idle&&((null==o?void 0:o(e,t))||this.handleStart(e,t,r))}}bind(e,t=this.options){const r=xD((()=>{var r;const n=null!=(r=e.handle)?r:e.element,o=r=>{GN(r)&&this.handleSourceKeyDown(r,e,t)};if(n)return n.addEventListener("keydown",o),()=>{n.removeEventListener("keydown",o)}}));return r}handleStart(e,t,r){const{element:n}=t;if(!n)throw new Error("Source draggable does not have an associated element");e.preventDefault(),e.stopImmediatePropagation(),NN(n);const{center:o}=new WN(n);if(this.manager.actions.start({event:e,coordinates:{x:o.x,y:o.y},source:t}).signal.aborted)return this.cleanup();this.sideEffects();const i=Pq(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];wj(this,U_).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=G_.keyboardCodes}=null!=r?r:{};if(J_(e,[...n.end,...n.cancel])){e.preventDefault();const t=J_(e,n.cancel);this.handleEnd(e,t)}else J_(e,n.up)?this.handleMove("up",e):J_(e,n.down)&&this.handleMove("down",e),J_(e,n.left)?this.handleMove("left",e):J_(e,n.right)&&this.handleMove("right",e)}handleEnd(e,t){this.manager.actions.stop({event:e,canceled:t}),this.cleanup()}handleMove(e,t){var r,n;const{shape:o}=this.manager.dragOperation,i=t.shiftKey?5:1;let a={x:0,y:0},s=null!=(n=null==(r=this.options)?void 0:r.offset)?n:G_.offset;if("number"==typeof s&&(s={x:s,y:s}),o){switch(e){case"up":a={x:0,y:-s.y*i};break;case"down":a={x:0,y:s.y*i};break;case"left":a={x:-s.x*i,y:0};break;case"right":a={x:s.x*i,y:0}}(a.x||a.y)&&(t.preventDefault(),this.manager.actions.move({event:t,by:a}))}}sideEffects(){const e=this.manager.registry.plugins.get($_);!1===(null==e?void 0:e.disabled)&&(e.disable(),wj(this,U_).push((()=>{e.enable()})))}cleanup(){wj(this,U_).forEach((e=>e())),Ej(this,U_,[])}destroy(){this.cleanup(),this.listeners.clear()}};U_=new WeakMap,Y_.configure=RO(Y_),Y_.defaults=G_;var K_,X_=Y_;function J_(e,t){return t.includes(e.code)}var Z_,Q_;K_=new WeakMap;Z_=new WeakMap,Q_=new WeakMap;var ez=class{};ez.Delay=class extends zL{constructor(){super(...arguments),Cj(this,Z_),Cj(this,Q_)}onEvent(e){switch(e.type){case"pointerdown":Ej(this,Q_,Mq(e)),Ej(this,Z_,setTimeout((()=>this.activate(e)),this.options.value));break;case"pointermove":if(!wj(this,Q_))return;const{x:t,y:r}=Mq(e);WT({x:t-wj(this,Q_).x,y:r-wj(this,Q_).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){wj(this,Z_)&&(clearTimeout(wj(this,Z_)),Ej(this,Q_,void 0),Ej(this,Z_,void 0))}},ez.Distance=class extends zL{constructor(){super(...arguments),Cj(this,K_)}onEvent(e){switch(e.type){case"pointerdown":Ej(this,K_,Mq(e));break;case"pointermove":if(!wj(this,K_))return;const{x:t,y:r}=Mq(e),n={x:t-wj(this,K_).x,y:r-wj(this,K_).y},{tolerance:o}=this.options;if(o&&WT(n,o))return void this.abort();WT(n,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){Ej(this,K_,void 0)}};var tz,rz=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!UN(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?[new ez.Delay({value:250,tolerance:5})]:function(e){if(!UN(e))return!1;const{tagName:t}=e;return"INPUT"===t||"TEXTAREA"===t||(r=e).hasAttribute("contenteditable")&&"false"!==r.getAttribute("contenteditable");var r}(o)&&!e.defaultPrevented?[new ez.Delay({value:200,tolerance:0})]:[new ez.Delay({value:200,tolerance:10}),new ez.Distance({value:5})]},preventActivation(e,t){var r;const{target:n}=e;return n!==t.element&&(n!==t.handle&&(!!UN(n)&&(!(null==(r=t.handle)?void 0:r.contains(n))&&Boolean(n.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ')))))}}),nz=class extends jL{constructor(e,t){super(e),this.manager=e,this.options=t,Cj(this,tz,new Set),this.listeners=new Hq,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:e,coordinates:t}=this.latest;e&&t&&this.manager.actions.move({event:e,to:t})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(e,t,r=this.options){const{activationConstraints:n=rz.activationConstraints}=null!=r?r:{};return"function"==typeof n?n(e,t):n}bind(e,t=this.options){const r=xD((()=>{var r;const n=new AbortController,{signal:o}=n,i=r=>{(function(e){if(!e)return!1;const{PointerEvent:t}=wq(e.target);return e instanceof t})(r)&&this.handlePointerDown(r,e,t)};let a=[null!=(r=e.handle)?r:e.element];(null==t?void 0:t.activatorElements)&&(a=Array.isArray(t.activatorElements)?t.activatorElements:t.activatorElements(e));for(const e of a)e&&(lz(e.ownerDocument.defaultView),e.addEventListener("pointerdown",i,{signal:o}));return()=>n.abort()}));return r}handlePointerDown(e,t,r){if(this.disabled||!e.isPrimary||0!==e.button||!UN(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:n=rz.preventActivation}=null!=r?r:{};if(null==n?void 0:n(e,t))return;const{target:o}=e,i=Eq(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=IN(t.element),{x:s,y:l}=Mq(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const u=this.activationConstraints(e,t,r);e.sensor=this;const c=new _L(u,(e=>this.handleStart(t,e)));c.signal.onabort=()=>this.handleCancel(e),c.onEvent(e),this.controller=c;const d=Dq(),p=this.listeners.bind(d,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"pointercancel",listener:this.handleCancel},{type:"dragstart",listener:i?this.handleCancel:iz,options:{capture:!0}}]);wj(this,tz).add((()=>{p(),this.initialCoordinates=void 0}))}handlePointerMove(e,t){var r,n;if(!1!==(null==(r=this.controller)?void 0:r.activated)){if(this.manager.dragOperation.status.dragging){const r=Mq(e),n=IN(t.element);r.x=r.x*n.scaleX+n.x,r.y=r.y*n.scaleY+n.y,e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=r,xN.schedule(this.handleMove)}}else null==(n=this.controller)||n.onEvent(e)}handlePointerUp(e){const{status:t}=this.manager.dragOperation;if(!t.idle){e.preventDefault(),e.stopPropagation();const r=!t.initialized;this.manager.actions.stop({event:e,canceled:r})}this.cleanup()}handleKeyDown(e){"Escape"===e.key&&(e.preventDefault(),this.handleCancel(e))}handleStart(e,t){const{manager:r,initialCoordinates:n}=this;if(!n||!r.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(r.actions.start({coordinates:n,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const o=Pq(t.target).body;o.setPointerCapture(t.pointerId);const i=UN(t.target)?[t.target,o]:o,a=this.listeners.bind(i,[{type:"touchmove",listener:iz,options:{passive:!1}},{type:"click",listener:iz},{type:"contextmenu",listener:iz},{type:"keydown",listener:this.handleKeyDown}]);wj(this,tz).add(a)}handleCancel(e){const{dragOperation:t}=this.manager;t.status.initialized&&this.manager.actions.stop({event:e,canceled:!0}),this.cleanup()}cleanup(){this.latest={event:void 0,coordinates:void 0},wj(this,tz).forEach((e=>e())),wj(this,tz).clear()}destroy(){this.cleanup(),this.listeners.clear()}};tz=new WeakMap,nz.configure=RO(nz),nz.defaults=rz;var oz=nz;function iz(e){e.preventDefault()}function az(){}var sz=new WeakSet;function lz(e){e&&!sz.has(e)&&(e.addEventListener("touchmove",az,{capture:!1,passive:!1}),sz.add(e))}var uz,cz,dz,pz,fz,hz,mz,gz,bz,vz,yz,xz,Sz,wz,Cz,Ez,Rz,Pz,Az={modifiers:[],plugins:[Lj,$_,class extends AO{constructor(e,t){super(e,t),this.manager=e;const r=cT((()=>{var e;return Pq(null==(e=this.manager.dragOperation.source)?void 0:e.element)}));this.destroy=xD((()=>{var e;const{dragOperation:t}=this.manager,{cursor:n="grabbing",nonce:o}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=r.value,t=e.createElement("style");return o&&t.setAttribute("nonce",o),t.textContent=`* { cursor: ${n} !important; }`,e.head.appendChild(t),()=>t.remove()}}))}},R_,class extends AO{constructor(e,t){super(e,t),this.manager=e,this.destroy=xD((()=>{var e;const{dragOperation:t}=this.manager,{nonce:r}=null!=(e=this.options)?e:{};if(t.status.initialized){const e=document.createElement("style");return r&&e.setAttribute("nonce",r),e.textContent="* { user-select: none !important; -webkit-user-select: none !important; }",document.head.appendChild(e),V_(),document.addEventListener("selectionchange",V_,{capture:!0}),()=>{document.removeEventListener("selectionchange",V_,{capture:!0}),e.remove()}}}))}}],sensors:[oz,X_]},Iz=class extends cq{constructor(e={}){const t=uq(e.plugins,Az.plugins),r=uq(e.sensors,Az.sensors),n=uq(e.modifiers,Az.modifiers);super(cj(uj({},e),{plugins:[B_,__,Kj,...t],sensors:r,modifiers:n}))}},Mz=class extends(pz=LL,dz=[pT],cz=[pT],uz=[pT],pz){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i,feedback:a="default"}=r,s=pj(r,["element","effects","handle","feedback"]);super(uj({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map(PO))?t:[...r.sensors]).map((e=>{const t=e instanceof jL?e:r.registry.register(e.plugin),n=e instanceof jL?void 0:e.options;return t.bind(this,n)}));return function(){n.forEach((e=>e()))}}]},s),t),Cj(this,hz,vj(fz,8,this)),vj(fz,11,this),Cj(this,mz,vj(fz,12,this)),vj(fz,15,this),Cj(this,gz,vj(fz,16,this)),vj(fz,19,this),this.element=n,this.handle=i,this.feedback=a}};fz=fj(pz),hz=new WeakMap,mz=new WeakMap,gz=new WeakMap,yj(fz,4,"handle",dz,Mz,hz),yj(fz,4,"element",cz,Mz,mz),yj(fz,4,"feedback",uz,Mz,gz),bj(fz,Mz);var kz=class extends(yz=qL,vz=[pT],bz=[pT],yz){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=pj(r,["element","effects"]);const{collisionDetector:a=XN}=i,s=e=>{const{manager:t,element:r}=this;if(!r||null===e)return void(this.shape=void 0);if(!t)return;const n=new WN(r),o=nD((()=>this.shape));return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=cD(!1);super(cj(uj({},i),{collisionDetector:a,effects:()=>[...o(),()=>{const{element:e,manager:t}=this;if(!t)return;const{dragOperation:r}=t,{source:n}=r;l.value=Boolean(n&&r.status.initialized&&e&&!this.disabled&&this.accepts(n))},()=>{const{element:e}=this;if(l.value&&e){const t=new fN(e,s);return()=>{t.disconnect(),this.shape=void 0}}},()=>{var e;if(null==(e=this.manager)?void 0:e.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),t),Cj(this,Rz),Cj(this,Sz,vj(xz,8,this)),vj(xz,11,this),Cj(this,Pz,vj(xz,12,this)),vj(xz,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){Ej(this,Rz,e,Ez)}get element(){var e;return null!=(e=this.proxy)?e:wj(this,Rz,Cz)}};function Dz(e){var t;if(null!=e)return function(e){return null!=e&&"object"==typeof e&&"current"in e}(e)?null!=(t=e.current)?t:void 0:e}xz=fj(yz),Sz=new WeakMap,Rz=new WeakSet,Pz=new WeakMap,wz=yj(xz,20,"#element",vz,Rz,Sz),Cz=wz.get,Ez=wz.set,yj(xz,4,"proxy",bz,kz,Pz),bj(xz,kz);var Tz="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?L:k;function Oz(){const e=P(0)[1];return O((()=>{e((e=>e+1))}),[e])}function Lz(e,t=[],r=!1){const n=A(e);return n.current=e,function(e,t=!1){const r=A(e.peek()),n=A(!1),o=Oz();return Tz((()=>xD((()=>{const i=r.current,a=e.value;if(i!==a){if(r.current=a,!n.current)return;t?W(o):o()}}))),[e,t,o]),{get value(){return n.current=!0,e.peek()}}}(R((()=>cT((()=>n.current()))),t),r)}function qz(e,t){const r=A(new Map),n=Oz();return Tz((()=>{if(e)return xD((()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=nD((()=>n[1])),u=e[s];l!==u&&(i=!0,r.current.set(s,u),a=null!=(o=null==t?void 0:t(s,l,u))&&o)}i&&(a?W(n):n())}));r.current.clear()}),[e]),R((()=>e?new Proxy(e,{get(e,t){const n=e[t];return r.current.set(t,n),n}}):e),[e])}function Nz(e,t){e()}function jz(e){const t=A(e);return Tz((()=>{t.current=e}),[e]),t}function _z(e,t,r=k,n=Object.is){const o=A(e);r((()=>{const r=o.current;n(e,r)||(o.current=e,t(e,r))}),[t,e])}function zz(e,t){const r=A(Dz(e));Tz((()=>{const n=Dz(e);n!==r.current&&(r.current=n,t(n))}))}var Fz=Object.getOwnPropertySymbols,Hz=Object.prototype.hasOwnProperty,$z=Object.prototype.propertyIsEnumerable,Wz=new Iz,Bz=I(Wz),Vz=N(q((({children:e},t)=>{const[r,n]=P(0),o=A(null),i=A(null),a=R((()=>({renderer:{get rendering(){var e;return null!=(e=o.current)?e:Promise.resolve()}},trackRendering(e){o.current||(o.current=new Promise((e=>{i.current=e}))),_((()=>{e(),n((e=>e+1))}))}})),[]);return Tz((()=>{var e;null==(e=i.current)||e.call(i),o.current=null}),[e,r]),z(t,(()=>a)),null}))),Uz=[void 0,dT];function Gz(e){var t=e,{children:r,onCollision:n,onBeforeDragStart:o,onDragStart:i,onDragMove:a,onDragOver:s,onDragEnd:l}=t,u=((e,t)=>{var r={};for(var n in e)Hz.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&Fz)for(var n of Fz(e))t.indexOf(n)<0&&$z.call(e,n)&&(r[n]=e[n]);return r})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const c=A(null),{plugins:d,modifiers:p,sensors:f}=u,h=uq(d,Az.plugins),m=uq(f,Az.sensors),g=uq(p,Az.modifiers),b=jz(o),v=jz(i),y=jz(s),x=jz(a),S=jz(l),w=jz(n),C=function(e){const t=A(null);t.current||(t.current=e());return j((()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()}),[]),t.current}((()=>{var e;return null!=(e=u.manager)?e:new Iz(u)}));return k((()=>{if(!c.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=c.current,{monitor:r}=C;C.renderer=e;const n=[r.addEventListener("beforedragstart",(e=>{const r=b.current;r&&t((()=>r(e,C)))})),r.addEventListener("dragstart",(e=>{var t;return null==(t=v.current)?void 0:t.call(v,e,C)})),r.addEventListener("dragover",(e=>{const r=y.current;r&&t((()=>r(e,C)))})),r.addEventListener("dragmove",(e=>{const r=x.current;r&&t((()=>r(e,C)))})),r.addEventListener("dragend",(e=>{const r=S.current;r&&t((()=>r(e,C)))})),r.addEventListener("collision",(e=>{var t;return null==(t=w.current)?void 0:t.call(w,e,C)}))];return()=>n.forEach((e=>e()))}),[C]),_z(h,(()=>C&&(C.plugins=h)),...Uz),_z(m,(()=>C&&(C.sensors=m)),...Uz),_z(g,(()=>C&&(C.modifiers=g)),...Uz),rr.jsxs(Bz.Provider,{value:C,children:[rr.jsx(Vz,{ref:c,children:r}),r]})}function Yz(){return T(Bz)}function Kz({children:e,className:t,dropAnimation:r,style:n,tag:o,disabled:i}){var a;const s=A(null),l=Yz(),u=null!=(a=Lz((()=>null==l?void 0:l.dragOperation.source),[l]).value)?a:null,c="function"==typeof i?i(u):i;k((()=>{if(!s.current||!l||c)return;const e=l.plugins.find((e=>e instanceof R_));return e?(e.overlay=s.current,()=>{e.overlay=void 0}):void 0}),[l,c]),k((()=>{if(!l)return;const e=l.plugins.find((e=>e instanceof R_));return e?(e.dropAnimation=r,()=>{e.dropAnimation=void 0}):void 0}),[l,r]);const d=R((()=>{if(!l)return null;const e=new Proxy(l.registry,{get:(e,t)=>"register"===t||"unregister"===t?Xz:e[t]});return new Proxy(l,{get:(t,r)=>"registry"===r?e:t[r]})}),[l]);return rr.jsx(Bz.Provider,{value:d,children:S(o||"div",{ref:s,className:t,style:n,"data-dnd-overlay":!0},function(){if(!u||c)return null;if("function"==typeof e)return rr.jsx(Jz,{source:u,children:e});return e}())})}function Xz(){return()=>{}}function Jz({children:e,source:t}){return e(qz(t))}var Zz,Qz,eF,tF,rF,nF=Object.create,oF=Object.defineProperty,iF=Object.getOwnPropertyDescriptor,aF=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),sF=e=>{throw TypeError(e)},lF=["class","method","getter","setter","accessor","field","value","get","set"],uF=e=>void 0!==e&&"function"!=typeof e?sF("Function expected"):e,cF=(e,t,r,n,o)=>({kind:lF[e],name:t,metadata:n,addInitializer:e=>r._?sF("Already initialized"):o.push(uF(e||null))}),dF=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=lF[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,iF(o,r)),h=n.length-1;h>=0;h--)(l=cF(c,r,s={},e[3],p)).static=false,l.private=false,u=l.access={has:e=>r in e},u.get=e=>e[r],a=(0,n[h])(f[d],l),s._=1,uF(a)&&(f[d]=a);return f&&oF(o,r,f),o},pF=(e,t,r)=>t.has(e)||sF("Cannot "+r),fF=class e{constructor(e,t){this.x=e,this.y=t}static delta(t,r){return new e(t.x-r.x,t.y-r.y)}static distance(e,t){return Math.hypot(e.x-t.x,e.y-t.y)}static equals(e,t){return e.x===t.x&&e.y===t.y}static from({x:t,y:r}){return new e(t,r)}},hF=class extends(eF=bT,Qz=[fT],Zz=[fT],eF){constructor(e){var t,r,n;super(fF.from(e),((e,t)=>fF.equals(e,t))),((e,t,r)=>{for(var n=0,o=e[t>>1],i=o&&o.length;n<i;n++)o[n].call(r)})(rF,5,this),t=this,n=0,(r=tF).has(t)?sF("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,n),this.velocity={x:0,y:0}}get delta(){return fF.delta(this.current,this.initial)}get direction(){const{current:e,previous:t}=this;if(!t)return null;const r={x:e.x-t.x,y:e.y-t.y};return r.x||r.y?Math.abs(r.x)>Math.abs(r.y)?r.x>0?"right":"left":r.y>0?"down":"up":null}get current(){return super.current}set current(e){const{current:t}=this,r=fF.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(pF(a=this,s=tF,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);tD((()=>{((e,t,r)=>{pF(e,t,"write to private field"),t.set(e,r)})(this,tF,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(fF.from(e)),this.velocity={x:0,y:0}}};rF=(e=>{var t;return[,,,nF(null!=(t=null==e?void 0:e[aF("metadata")])?t:null)]})(eF),tF=new WeakMap,dF(rF,2,"delta",Qz,hF),dF(rF,2,"direction",Zz,hF),((e,t)=>{((e,t,r)=>{t in e?oF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,aF("metadata"),e[3])})(rF,hF);var mF=(e=>(e.Horizontal="x",e.Vertical="y",e))(mF||{});function gF(e){const t=Yz();k((()=>{if(!t)return;const r=Object.entries(e).reduce(((e,[r,n])=>{if(n){const o=r.replace(/^on/,"").toLowerCase(),i=t.monitor.addEventListener(o,n);e.push(i)}return e}),[]);return()=>r.forEach((e=>null==e?void 0:e()))}),[t,e])}Object.values(mF);const bF=()=>{const[e,t]=P(!1);return gF({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?rr.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},vF=()=>{const e=eR(oR),t=RM(SM,(e=>e.baseProps.layout));return!e("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")||void 0===t.accessibleHeader||t.accessibleHeader},yF=(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}),xF=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),SF=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),wF=e=>e.atTop?2:1,CF=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],EF=e=>e?.setAttribute("tabIndex","0"),RF=e=>e?.setAttribute("tabIndex","-1"),PF=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(RF)},AF=e=>{e?.focus(),EF(e)},IF=e=>{setTimeout((()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${rE}`);AF(t)}),0)},MF=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{PF(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 tE.Down:u<s&&u++;break;case tE.Up:u>a&&u--;break;case tE.Right:if(i)break;[u,c]="rtl"===n?xF({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):SF({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case tE.Left:if(i)break;[u,c]="rtl"===n?SF({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):xF({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case tE.Home:(BI(e)||i)&&(u=a),i||(c=0);break;case tE.End:(BI(e)||i)&&(u=s),i||(c=l);break;case tE.PageDown:u=Math.min(s,u+10);break;case tE.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=CF(t,a);return AF(s),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(!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}},kF=(e,t,r,n)=>{PF(t),r(e),n.enabled&&!n.active?n.focus?.():AF(CF(t,e))},DF=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!!n?.contains(o),a=o?.closest(`.${ZC}`);!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${uI.First}`),r=e.querySelector(`.${uI.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},TF=q(((e,t)=>rr.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:rr.jsx("path",{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10M3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0zM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0"})}))),OF=pc(Hh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...EI,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom",boxSizing:"border-box","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?r:n}}))),LF=pc("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})((({align:e,dir:t})=>({minWidth:SI,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),qF=parseInt(SI,10)/2,NF=pc("div")({position:"absolute",bottom:-qF,left:`calc(50% - ${qF}px)`}),jF={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},_F=pc(rp)({height:"100%"}),zF=pc("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?{...jF,whiteSpace:"nowrap",display:r?"block":void 0}:{...jF,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"})),FF=pc("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),HF="cell-text",$F=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const{styleService:a}=RM(SM,(e=>e.baseProps));return o?rr.jsx(zF,{"data-testid":HF,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):rr.jsx(zF,{"data-testid":HF,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:i??a.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},WF=e=>{const{column:t,isInteractionEnabled:r,open:n,setOpen:o,isPagination:i,forwardRef:a}=e,{changeSortOrder:s,embed:l,styleService:u,layout:c}=RM(SM,(e=>e.baseProps)),d=eR(xR),p=eR(dR),f=eR(PR),h=eR(rR),m=RM(SM,(e=>e.columnWidths[t.pageColIdx])),g=eR(RR),b=A(null),v=A(null),y=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=$C({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:wI});let o=!1,i=!1,a=!1;const s=t.isLocked,l=t.isActivelySorted,u=r-25,c=s?20:0,d=l?20:0;let p=n(t.label);return s&&p+c<=u&&(a=!0,p+=c,l&&p+d<=u&&(i=!0,p+=d)),!s&&l&&p+d<=u&&(i=!0,p+=d),p+24<=u&&(o=!0,p+=24),{shouldShowMenuIcon:o,shouldShowSortIcon:i,shouldShowLockIcon:a}})({styleService:u,column:t,columnWidth:m}),{StartIcon:x,EndIcon:S,LockIcon:w}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?rr.jsx(ik,{height:SI,"data-testid":"head-cell-sort-ascending-icon"}):rr.jsx(lk,{height:SI,"data-testid":"head-cell-sort-descending-icon"}),a=r?rr.jsx(LF,{align:t,dir:o,children:i}):void 0,s=n?rr.jsx(jI,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:rr.jsx(TF,{height:SI,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,y,d);return rr.jsxs(NI,{shouldShowMenuIcon:y.shouldShowMenuIcon,shouldShowLockIcon:y.shouldShowLockIcon,alignment:MI(t,i,d),children:[w,rr.jsxs(qI,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:d,isPagination:i,children:[x,rr.jsx($F,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),S]}),r?rr.jsxs(rr.Fragment,{children:[rr.jsx(wk,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:f,anchorRef:b,menuAvailabilityFlags:{[yk.Sorting]:!0,[yk.Searching]:!0,[yk.Selections]:!0,[yk.AdjusterHeaderSize]:!0},open:n,setOpen:o,interactions:p,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),s(t,r))},searchRelatedArgs:{embed:l,listboxRef:v},selectionRelatedArgs:{app:h,qStateName:c.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:IF},shouldShowMenuIcon:y.shouldShowMenuIcon,model:g,direction:d,isPagination:i,isAccessibleHeader:!0}),rr.jsx(LI,{ref:v,direction:d,isPagination:i}),rr.jsx(LI,{ref:b,direction:d})]}):null]})},BF=q(((e,t)=>rr.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:rr.jsx("path",{d:"M6 2h10V1H6zm5 5h5V6h-5zm5 5h-5v-1h5zM5 10h1v2.663a3.5 3.5 0 1 0-2.922.036l-.406.914A4.501 4.501 0 1 1 7.329 13H9v1H5z"})}))),VF=(e,t)=>e.isCyclic&&t,UF=({column:e})=>{const{styleService:t}=RM(SM,(e=>e.baseProps)),r=eR(xR),n=eR(RR),o=x.useRef(null),[i,a]=x.useState(!1),s=TM({model:n,headerData:{...e,dimensionInfoIndex:e.colIdx}});return rr.jsxs(rr.Fragment,{children:[rr.jsx(zI,{hoverBackground:t.headerMenuHoverBackground,activeBackground:t.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:rr.jsx(BF,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),rr.jsx(QM,{open:i,onClose:()=>{a(!1)},menuGroups:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),a(!1),s?.(r)},enabled:!0,icon:uk,isActive:e.groupDimensionPos===r})))}]],anchorEl:o.current,direction:r,isPagination:!1})]})},GF=e=>e.isLocked,YF=({column:e})=>{const t=eR(rR),r=RM(SM,(e=>e.baseProps.layout.qStateName)),n=RM(SM,(e=>e.baseProps.styleService));return rr.jsx(zI,{tabIndex:-1,hoverBackground:n.headerMenuHoverBackground,onClick:n=>{n.stopPropagation(),(async(e,t,r)=>{const n=tk(t??"$",r);let o;try{const t=await(e?.createSessionObject(n));o=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){console.error("Failed to unlock field from table header",e)}finally{o&&(await(e?.destroySessionObject(o))||console.error("Failed to destroy session object when unlocking field from table header"))}})(t,r,e)},children:rr.jsx(TF,{height:16,"data-testid":"head-cell-lock-icon"})})},KF=({column:e,open:t,setOpen:r,isPagination:n})=>{const{layout:o,changeSortOrder:i,embed:a,styleService:s}=RM(SM,(e=>e.baseProps)),l=eR(xR),u=eR(dR),c=eR(PR),d=eR(rR),p=eR(RR),f=x.useRef(null),h=x.useRef(null);return rr.jsxs(zI,{tabIndex:-1,hoverBackground:s.headerMenuHoverBackground,activeBackground:s.headerMenuActiveBackground,isActive:t,order:e.isDim?void 0:-1,children:[rr.jsx(wk,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:c,anchorRef:f,menuAvailabilityFlags:{[yk.Sorting]:!0,[yk.Searching]:!0,[yk.Selections]:!0,[yk.AdjusterHeaderSize]:!0},open:t,setOpen:r,interactions:u,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),i(e,r))},searchRelatedArgs:{embed:a,listboxRef:h},selectionRelatedArgs:{app:d,qStateName:o.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:IF},shouldShowMenuIcon:!0,model:p,direction:l,isPagination:n,isAccessibleHeader:!1,iconSize:16}),rr.jsx(LI,{ref:h,direction:l,isPagination:n}),rr.jsx(LI,{ref:f,direction:l})]})},XF=e=>e.at(0)?.contentBoxSize.at(0)?.blockSize,JF=(e,t)=>{const r=A(t);r.current=t,L((()=>{if(!e.current)return()=>{};const t=new ResizeObserver((e=>{r.current(e)}));return t.observe(e.current),()=>{t.disconnect()}}),[e])},ZF=pc(rp)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),QF=({children:e})=>{const t=x.useRef(null),[r,n]=P((()=>new Set(e.filter((({props:e})=>void 0!==e.prio&&e.children)).map((({key:e})=>e))))),o=R((()=>Array.from(e).sort(((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)))),[e]),i=O((e=>{const t=new Set,r=e.at(0)?.contentBoxSize.at(0)?.inlineSize??0;let i=0;o.forEach((e=>{if(e.props.ignore||!e.props.children)return;const n=e.props.minWidth+1;void 0===e.props.prio||i+n<=r?i+=n:t.add(e.key)})),n((e=>e.size===t.size&&[...e].every((e=>t.has(e)))?e:t))}),[o]);return JF(t,i),rr.jsx(ZF,{ref:t,"data-testid":"responsive-container",children:e.filter((e=>!r.has(e.key)))})},eH=({children:e})=>e,tH=(e,t)=>!e.isLocked&&e.isDim&&t,rH=({column:e,open:t,setOpen:r})=>{const{embed:n,layout:o,styleService:i}=RM(SM,(e=>e.baseProps)),a=eR(xR);eR(rR);const s=x.useRef(null),l=O((()=>{r(!1)}),[r]),u=ek({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:n,listboxRef:s},selectionRelatedArgs:{qStateName:o.qStateName},direction:a,onPopoverClose:l});return rr.jsx(zI,{tabIndex:-1,hoverBackground:i.headerMenuHoverBackground,activeBackground:i.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),u(),r(!0)},children:rr.jsx(fk,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},nH=q(((e,t)=>rr.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:rr.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"})}))),oH=q(((e,t)=>rr.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:rr.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"})}))),iH=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?rr.jsx(oH,{height:SI,"data-testid":"head-cell-sort-ascending-icon"}):rr.jsx(nH,{height:SI,"data-testid":"head-cell-sort-descending-icon"});return r?rr.jsx(NF,{children:n}):void 0},aH=0,sH=1,lH=2,uH=3,cH=e=>{const{column:t,open:r,setOpen:n,isPagination:o,forwardRef:i}=e,{styleService:a}=RM(SM,(e=>e.baseProps)),s=eR(gR),{measureText:l}=$C(a.header),[u,c]=x.useState(!1);return rr.jsxs(QF,{children:[rr.jsx(eH,{prio:lH,minWidth:OI,children:GF(t)?rr.jsx(YF,{column:t}):null},"Lock"),rr.jsx(eH,{prio:sH,minWidth:OI,children:VF(t,s)?rr.jsx(UF,{column:t}):null},"Cyclic"),rr.jsx(eH,{ignore:!0,children:rr.jsx(iH,{column:t})},"Sort"),rr.jsx(eH,{minWidth:l(t.label)+8,children:rr.jsx(_I,{justifyContent:t.headTextAlign,children:rr.jsx($F,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),rr.jsx(eH,{prio:aH,minWidth:OI,children:u||tH(t,s)?rr.jsx(rH,{open:u,setOpen:c,column:t}):null},"Search"),rr.jsx(eH,{prio:uH,minWidth:OI,children:s?rr.jsx(KF,{column:t,open:r,setOpen:n,isPagination:o}):null},"Menu")]})},dH=pc("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e})((({background:e,applicableStyle:t})=>({...t,background:e}))),pH=()=>{},fH=({column:e,isPagination:t})=>{const{styleService:r}=RM(SM,(e=>e.baseProps)),n=eR(xR),o=RM(SM,(e=>e.showRightBorder)),i=RM(SM,(e=>e.tableData.totalsPosition)),a=!1,s=vF()?WF:cH;return rr.jsx(dH,{className:"sn-table-cell",applicableStyle:{...r.header,...yF(r,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:DI(n,a,o),borderLeftWidth:TI(n,a,o),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:e.headTextAlign,boxSizing:"border-box",flexDirection:"right"===e.headTextAlign?"row-reverse":"row",userSelect:"none",width:"100%"},background:r.header.background,children:rr.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:pH})})},hH=({isPagination:e})=>{const{columns:t}=RM(SM,(e=>e.tableData)),[r,n]=P();gF({onDragStart:e=>{const t=e.operation.source?.id;n(t)},onDragEnd:()=>{}});const o=r?t.find((e=>e.id===r)):void 0;return o?rr.jsx(Kz,{children:rr.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:rr.jsx(fH,{column:o,isPagination:e})})}):null},mH=[oz.configure({activationConstraints:[new ez.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],gH=Az.plugins.filter((e=>e!==Lj)),bH=({children:e})=>{const t=eR(RR),{columns:r}=RM(SM,(e=>e.tableData));return rr.jsx(Gz,{onDragOver:e=>{const n=e.operation.source?.id,o=e.operation.target?.id;void 0!==o&&n!==o&&(async(e,t,r,n)=>{if(!e||!("getEffectiveProperties"in e))return;const o=t.findIndex((e=>e.id===r)),i=t.findIndex((e=>e.id===n)),a=[...t],[s]=a.splice(o,1);a.splice(i,0,s);const l=[{qPath:"/qHyperCubeDef/qColumnOrder",qOp:"Replace",qValue:`[${a.map((e=>e.colIdx)).join(",")}]`}];e.applyPatches(l,!0)})(t,r,n,o)},sensors:mH,plugins:gH,children:e})};function vH(e,t){const r=A(!1);k((()=>{r.current?e():r.current=!0}),t)}function yH(e,t){let r=null;const n=new Map,o=new Set;function i(t){let o;if(o=n.get(t),void 0!==o){if(!r?.(o[1],t))return o[0];i.remove(t)}const s=e(t);return n.set(t,[s,Date.now()]),a("CREATE",t,s),s}function a(e,t,r){for(const n of o)n({type:e,param:t,atom:r})}return i.unstable_listen=e=>(o.add(e),()=>{o.delete(e)}),i.getParams=()=>n.keys(),i.remove=e=>{{if(!n.has(e))return;const[t]=n.get(e);n.delete(e),a("REMOVE",e,t)}},i.setShouldRemove=e=>{if(r=e,r)for(const[e,[t,o]]of n)r(o,e)&&(n.delete(e),a("REMOVE",e,t))},i}const xH=$E(cI),SH=yH((e=>$E((t=>{const[r,n]=t(xH);return 0===r&&n===e})))),wH=()=>{const{downloadService:e}=RM(SM,(e=>e.baseProps));k((()=>{e.notifyIsDoneRendering()}))},CH=(e,t,r)=>{const{rootElement:n}=RM(SM,(e=>e.baseProps)),{totalColumnCount:o,totalRowCount:i,rows:a,totalsPosition:s}=RM(SM,(e=>e.tableData)),[l,u]=function(e){return[eR(e),tR(e)]}(xH),c=eR(lR),d=eR(ER);vH((()=>{const r=((e,t,r=!1)=>{const n=[wF(t),e[1]];return r?n:cI})(l,s,c);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(PF(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=CF(t,e);r.current?(AF(s),r.current=!1):EF(s),n&&(a({keys:[s?.textContent??""]}),WI(a,s,n))})({resetCellCoord:r,rootElement:n,shouldRefocus:e,setFocusedCellCoord:u,isSelectionMode:c,keyboard:d,announce:t})}),[a.length,i,o,r])},EH=(e,t)=>{const r=eR(xR);k((()=>{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"===r,n)},i=e=>{t.scrollLeft=e.currentTarget?.scrollLeft||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}}),[e,r,t])},RH=e=>{TC(e),BI(e)&&cE(e.currentTarget)},PH=e=>{YI(e.evt)&&(TC(e.evt),MF(e))},AH=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!YI(t))return;TC(t);const i=((e,t)=>[e.pageRowIdx+wF(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?wF(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=MF({...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:sI.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):WI(o,a,i)})({...e,nextCell:s})},IH=e=>{const{evt:t}=e;VI(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{TC(e);const a=Math.ceil(t/r)-1;e.key===tE.Right&&n<a?(o(),i(n+1)):e.key===tE.Left&&n>0&&(o(),i(n-1))})(e):t.key===tE.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(TC(e),t.blur?.(!0))})(e):UI(t.key)&&TC(t)},MH=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(aI.Disabled))return void TC(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case tE.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{TC(e),t.isSelectable&&r&&n({type:sI.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case tE.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{TC(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case tE.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(TC(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case tE.C:RH(t);break;case tE.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(TC(e),DC(e.currentTarget,t,e.shiftKey))})(n);break;default:AH(n)}},kH=e=>{const t=RM(SM,(e=>e.isAdjustingWidth)),r=RM(SM,(e=>e.setXScrollbarWidth)),n=RM(SM,(e=>e.setYScrollbarWidth)),o=eR(iI),i=A();JF(e,(a=>{const s=()=>{if(e.current){const e=a.at(0)?.borderBoxSize.at(0)?.inlineSize??0,t=a.at(0)?.borderBoxSize.at(0)?.blockSize??0,o=a.at(0)?.contentBoxSize.at(0)?.inlineSize??0,i=t-(a.at(0)?.contentBoxSize.at(0)?.blockSize??0);n(e-o),r(i)}};t?(i.current&&o.off("done-adjusting-column-width",i.current),o.once("done-adjusting-column-width",s),i.current=s):s()})),k((()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}}),[o])},DH=pc("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),TH=pc(Vh,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"}))),OH=pc(Mh,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),LH=()=>rr.jsxs(rr.Fragment,{children:[rr.jsx(DH,{className:uI.First,"data-testid":uI.First,"aria-live":"polite","aria-atomic":"true"}),rr.jsx(DH,{className:uI.Second,"data-testid":uI.Second,"aria-live":"polite","aria-atomic":"true"})]}),qH=e=>{const t=A(new Map),r=A(null);k((()=>{r.current=e(t.current),t.current.forEach(((e,t)=>{r.current?.observe(t)}));const n=t.current,o=r.current;return()=>{o.disconnect(),n.clear()}}),[e,r,t]);const n=O(((e,n)=>{t.current.set(e,n),r.current?.observe(e)}),[t,r]),o=O((e=>{t.current.delete(e),r.current?.unobserve(e)}),[r,t]);return R((()=>({addTask:n,removeTask:o})),[n,o])},NH=e=>new ResizeObserver((t=>{t.forEach((t=>{const r=e.get(t.target);r?.(t)}))})),jH=()=>qH(NH),_H=({selectionDispatch:e,updateShouldRefocus:t,tableWrapperRef:r})=>{const n=eR(uR),o=eR(ER);k((()=>{const i=()=>{e({type:sI.Reset})},a=()=>{e({type:sI.Clear})},s=()=>{r.current?.contains(document.activeElement)?t():o.enabled&&o.blur?.(!0),i()};return n?.on("deactivated",i),n?.on("canceled",i),n?.on("confirmed",s),n?.on("cleared",a),()=>{n?.removeListener("deactivated",i),n?.removeListener("canceled",i),n?.removeListener("confirmed",s),n?.removeListener("cleared",a)}}),[n,o,e,t,r])},zH=e=>{e.stopPropagation()},FH=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:zH,color:RC.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),HH=({href:e,text:t,interactions:r,color:n})=>rr.jsx(ef,{...FH({href:e,text:t,interactions:r,color:n}),children:t}),$H=window.requestIdleCallback??(e=>setTimeout((()=>{e({})}),0)),WH=window.cancelIdleCallback??(e=>{clearTimeout(e)}),BH="qDimensionInfo/0",VH="qMeasureInfo/0",UH="x",GH="y",YH=e=>({key:"bars",type:"box",data:{extract:{field:BH,props:{start:0,end:{field:VH}}}},settings:{major:{scale:UH},minor:{scale:GH},box:{maxWidthPx:8,fill:{fn:e}}}}),KH=e=>({key:"p",type:"point",data:{extract:{field:BH,props:{y:{field:VH}}}},settings:{x:{scale:UH},y:{scale:GH},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),XH=({qNum:e})=>void 0===e?0:Math.sign(e),JH=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=MC(e,t?.negative,r),a=MC(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:BH,props:{start:0,end:{field:VH,value:XH}}}},settings:{major:{scale:UH},minor:{scale:GH},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}}}}},ZH=(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=MC(e,t?.main,o),l=MC(e,t?.max,s),u=MC(e,t?.min,s),c=MC(e,t?.first,s),d=MC(e,t?.last,s);return e=>{const t=GH in e.datum?GH:"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[YH(a)];case"dots":return[KH(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:BH,props:{v:{field:VH}}}},settings:{coordinates:{major:{scale:UH},minor:{scale:GH,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(MC(e,n?.main,e.getDataColorSpecials().primary));return r?[t,KH(a)]:[t]}case"posNeg":return[JH(e,n)];default:return[]}},QH=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"}),e$=(e,t,r,n)=>({y:{data:{field:VH},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:BH}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),t$=V();t$.use(B),t$.renderer.prio(["canvas"]);const r$={resolve:()=>{},promise:{}},n$=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=A(e.isDownloadedAsPDForImage?Mt():r$);return{addChartPromiseToQueue:O((()=>{e.waitForPromise(t.current.promise)}),[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:O((()=>{if(null===t.current||null!==e.current)return;u();r.current=$H((()=>{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 t$.chart({element:e,data:{type:"q",key:"qHyperCube",data:QH(s)},settings:{scales:e$(a,l,u,i),components:ZH(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:O((()=>{null!==r.current&&WH(r.current),r.current=null,l()}),[r,l])}},o$=e=>{const t=A(null),r=A(!1);return O((n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(WH(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=$H((()=>{e.current?.update()}),{timeout:2e3})):r.current=!1:r.current=!0}),[e])},i$=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=A(null),l=A(null),u=A(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=n$({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=O((e=>{e.isIntersecting?n():r()}),[n,r]);k((()=>{if(!e.current||!t)return()=>{};const n=e.current;return t.addTask(n,i),()=>{t.removeTask(n),r(),o.current?.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})=>{k((()=>n?()=>{}:(e(),()=>{t(),r.current?.destroy(),r.current=null})),[n,t,e,r])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:c,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:r})=>{const n=o$(t);k((()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}}),[e,n,r])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},a$=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=i$({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return rr.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},s$=e=>{let t="center",r="center";return"flex-start"===e?.vertical?t="top":"flex-end"===e?.vertical&&(t="bottom"),"flex-start"===e?.horizontal?r="left":"flex-end"===e?.horizontal&&(r="right"),`${r} ${t}`},l$=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},u$=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const o=eR(xR),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,[c,d]=x.useState(!1);if(!i||c)return null;const p=rr.jsx("img",{src:i,alt:a,onError:()=>{d(!0)},style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:l$(s),objectPosition:s$(l),overflow:"hidden"}});return n?rr.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?PI(o,e):void 0},children:p}):p},c$=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})}))),d$=q(((e,t)=>rr.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:rr.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"})}))),p$=q(((e,t)=>rr.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:[rr.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"}),rr.jsx("use",{fillRule:"evenodd"})]}))),f$=q(((e,t)=>rr.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:rr.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"})}))),h$=q(((e,t)=>rr.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:rr.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"})}))),m$=q(((e,t)=>rr.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:rr.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"})}))),g$=q(((e,t)=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:rr.jsx("path",{d:"M2 7.5h12v1H2z"})}))),b$=q(((e,t)=>rr.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:rr.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"})}))),v$=q(((e,t)=>rr.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:rr.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"})}))),y$=q(((e,t)=>rr.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:rr.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"})}))),x$=q(((e,t)=>rr.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:rr.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"})}))),S$={m:q(((e,t)=>rr.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:rr.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),"ï":y$,R:oH,S:nH,T:q(((e,t)=>rr.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:rr.jsx("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})}))),U:q(((e,t)=>rr.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:rr.jsx("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})}))),P:v$,Q:m$,"è":q(((e,t)=>rr.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:rr.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"})}))),"¢":f$,"©":p$,"23F4":h$,2013:x$,"&":b$,add:c$,"minus-2":g$,dot:d$},w$=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&S$[t];return o&&rr.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:rr.jsx(o,{style:{height:e}})})},C$=({representation:e,cellValue:t,paginationCellAlign:r})=>{const{styleService:n,theme:o}=RM(SM,(e=>e.baseProps)),i=eR(xR),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=vI(e,t,i,o),d=(e=>parseInt(e||SI,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=c||{};return l?rr.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:r??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:u?p:void 0},children:["left"===h&&w$({size:d,iconKey:f,color:p}),rr.jsx($F,{isNumeric:!0,children:a}),"right"===h&&w$({size:d,iconKey:f,color:p})]}):w$({size:d,iconKey:f,color:p})},E$=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(t??e.grid.contentLineClamp):e.contentLineHeight,R$=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const{styleService:l,theme:u,layout:c,downloadService:d}=RM(SM,(e=>e.baseProps)),p=eR(xR),f=eR(dR),h=RM(SM,(e=>e.selectionState.api?.isActive()));let m=t.representation.text;if(t.representation.type!==ZR.Link||h||(m=rr.jsx(HH,{href:t.representation.url,text:t.representation.text,interactions:f,color:r.cellForegroundColor})),t.representation.type===ZR.Image)return rr.jsx(u$,{representation:t.representation,textStyle:r,maxImageHeight:E$(l,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!==ZR.Indicator||Number.isNaN(g)?t.representation.type===ZR.MiniChart&&t.representation.miniChart&&!t.isNull?rr.jsx(a$,{height:E$(l,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:u,isSnapshot:!!c.snapshotData,direction:p,downloadService:d}):rr.jsx($F,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:m}):rr.jsx(C$,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:s})},P$=()=>rr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:rr.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),A$=pc("div")({"& path":{stroke:"none !important"}}),I$=({children:e,cellSelectionState:t})=>t===aI.Selected?rr.jsxs(FF,{children:[e,rr.jsx(A$,{children:rr.jsx(P$,{})})]}):e,M$=e=>{const t=function(){const e=Yz(),t=Lz((()=>null==e?void 0:e.dragOperation.source),[e]),r=Lz((()=>null==e?void 0:e.dragOperation.target),[e]);return{get source(){return t.value},get target(){return r.value}}}();return t.source&&t.source.id!==e?.5:1},k$=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:sI.SelectMultiEnd})};r({type:sI.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:sI.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:sI.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),D$=(e,t)=>{const{paginationNeeded:r,totalsPosition:n}=RM(SM,(e=>e.tableData)),{rootElement:o}=RM(SM,(e=>e.baseProps)),i=eR(xR),a=tR(xH),s=RM(SM,(e=>e.selectionDispatch)),l=eR(ER),u=eR(hR),c=eR(uR),d=d=>{MH({evt:d,rootElement:o,selectionsAPI:c,cell:e,selectionDispatch:s,isSelectionsEnabled:u,setFocusedCellCoord:a,announce:t,keyboard:l,paginationNeeded:r,totalsPosition:n,direction:i})},p=e=>{((e,t)=>{e.key===tE.Shift&&t({type:sI.SelectMultiEnd})})(e,s)},f=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;kF([s,a],t,r,n)})(e,o,a,l,n)};if(!u)return{onKeyDown:d,onKeyUp:p,onMouseDown:f};const{handleMouseDown:h,handleMouseOver:m,handleMouseUp:g}=k$(f,e,s,t);return{onKeyDown:d,onKeyUp:p,onMouseDown:h,onMouseUp:g,onMouseOver:m}},T$=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=aI.Inactive;return o?.isModal()&&(i=r!==e.selectionColIdx?aI.Disabled:n.has(e.qElemNumber)?aI.Selected:aI.Possible),i},O$=(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},L$=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},q$=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return L$(t,e,n?"even":"odd")}return e},N$=(e,t)=>{const{styleService:r}=RM(SM,(e=>e.baseProps)),n=RM(SM,(t=>T$(e,t.selectionState)));let o=t.isDim?r.dimension.values:r.measure.values;o=q$(o,r,e),o=O$(o,r,e);const i=lM(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===aI.Selected?{...e,...r}:t===aI.Disabled?{...e,background:`${yI}, ${e.background}`}:e}(R((()=>e.isNull?o:lM(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}},j$=pc(Nh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),_$=pc(nm,{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}}}))),z$=pc(Hh,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...EI,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"}))),F$=pc(Hh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...EI,...e,fontWeight:wI,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",boxSizing:"border-box",zIndex:t?1:void 0}))),H$=({cell:e,announce:t,column:r,columnIndex:n,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i})=>{const a=eR(xR),s=eR(dR),{onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p}=D$(e,t),{cellStyle:f,representationStyle:h,cellSelectionState:m}=N$(e,r),g=M$(r.id);return rr.jsx(z$,{cellStyle:{...f,opacity:g},scope:0===n?"row":void 0,component:0===n?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${m} ${eE}`,title:s.passive?e.representation.text:void 0,onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p,children:rr.jsx(I$,{cellSelectionState:m,children:rr.jsx(R$,{cell:e,style:h,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i,paginationCellAlign:kI(a,e.align)})})})},$$=$E(0),W$=({column:e,totalsPosition:t,onKeyDown:r,onMouseDown:n})=>{const{styleService:o}=RM(SM,(e=>e.baseProps)),i=eR(fR),a=eR($$),s=M$(e.id);return rr.jsx(F$,{totalsStyle:{...o.totalRow,...yF(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${eE}`,tabIndex:-1,title:i?e.totalInfo:void 0,onKeyDown:r,onMouseDown:n,children:rr.jsx($F,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},B$=()=>{const{columns:e,totalsPosition:t,rows:r}=RM(SM,(e=>e.tableData)),{rootElement:n}=RM(SM,(e=>e.baseProps)),o=eR(pR),i=eR(xR),a=tR(xH),s=eR(lR),l=eR(ER);return rr.jsx(nm,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,u)=>{const c=[t.atTop?1:r.length+1,u];return rr.jsx(W$,{column:e,totalsPosition:t,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case tE.C:RH(r);break;case tE.Space:r.preventDefault();break;default:PH(e)}else TC(r)})({evt:e,rootElement:n,cellCoord:c,setFocusedCellCoord:a,isSelectionMode:s,isInteractionEnabled:o,direction:i})},onMouseDown:()=>{kF(c,n,a,l)}},e.id)}))})};var V$=N(B$);const U$=({updateShouldRefocus:e,tableWrapperRef:t,announce:r})=>{const{rows:n,columns:o,totalsPosition:i}=RM(SM,(e=>e.tableData)),{layout:a,styleService:s}=RM(SM,(e=>e.baseProps)),l=RM(SM,(e=>e.selectionDispatch)),u=!!oM(a)?.content?.hoverEffect;_H({selectionDispatch:l,updateShouldRefocus:e,tableWrapperRef:t});const c=(e=>{const t=O((t=>new IntersectionObserver((e=>{e.forEach((e=>{const r=t.get(e.target);r?.(e)}))}),{root:e.current})),[e]);return qH(t)})(t),d=jH();return rr.jsxs(j$,{lastRowBottomBorder:s.grid.lastRowBottomBorder,children:[i.atTop?rr.jsx(V$,{}):void 0,n.map(((e,t)=>rr.jsx(_$,{hoverColors:s.grid.hoverColors,hover:u,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:s.contentMinRowHeight,children:o.map(((t,n)=>{const{id:o}=t,i=e[n];return rr.jsx(H$,{columnIndex:n,cell:i,column:t,announce:r,intersectionObserverTaskScheduler:c,resizeObserverTaskScheduler:d},o)}))},`row-${t}`))),i.atBottom?rr.jsx(V$,{}):void 0]})};var G$=N(U$);const Y$=(e,t)=>!!e?.skipHeader||!!t.hideHeader,K$=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a}=RM(SM,(e=>e.baseProps)),s=eR(xR),l=eR(pR),u=eR(PR),c=RM(SM,(e=>e.columnWidths)),d=RM(SM,(e=>e.setColumnWidths));if(!l)return null;return rr.jsx(kM,{columnWidth:c[o],isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{r?.();const t=[...c];t[o]=e,d(t)},confirmWidthCallback:t=>{a(t,e)},handleBlur:e=>{(e=>{RF(e);const t=e.closest(".sn-table-cell");AF(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:u,columnLabel:i},direction:s})},X$=e=>e.target?.getAttribute("class")?.includes(rE),J$=({isInteractionEnabled:e,column:t})=>{const[r,n]=P(!1),{changeSortOrder:o}=RM(SM,(e=>e.baseProps)),i=RM(SM,(e=>e.isAdjustingWidth)),a=RM(SM,(e=>e.setIsAdjustingWidth));return{open:r,setOpen:n,handleOpenMenu:t=>{!e||X$(t)||i||n(!0)},setIsAdjustingWidth:a,toggleSortOrder:r=>{e&&!X$(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o(t,"A"===t.sortDirection?"D":"A"))}}};var Z$=Object.defineProperty,Q$=Object.defineProperties,eW=Object.getOwnPropertyDescriptors,tW=Object.getOwnPropertySymbols,rW=Object.prototype.hasOwnProperty,nW=Object.prototype.propertyIsEnumerable,oW=(e,t,r)=>t in e?Z$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,iW=(e,t)=>{for(var r in t||(t={}))rW.call(t,r)&&oW(e,r,t[r]);if(tW)for(var r of tW(t))nW.call(t,r)&&oW(e,r,t[r]);return e},aW=(e,t)=>Q$(e,eW(t)),sW=class extends iq{apply({transform:e}){if(!this.options)return e;const{axis:t,value:r}=this.options;return aW(iW({},e),{[t]:r})}};sW.configure=RO(sW);var lW=sW;lW.configure({axis:"x",value:0}),lW.configure({axis:"y",value:0});var uW=class extends iq{apply({transform:e}){var t;const{size:r=20}=null!=(t=this.options)?t:{},n="number"==typeof r?r:r.x,o="number"==typeof r?r:r.y;return aW(iW({},e),{x:Math.ceil(e.x/n)*n,y:Math.ceil(e.y/o)*o})}};uW.configure=RO(uW);var cW=class extends iq{constructor(e,t){super(e,t),this.boundingRectangle=cD(null),this.destroy=xD((()=>{if(!this.options)return;const{dragOperation:t}=e,{status:r}=t;if(r.initialized){const{element:e}=this.options,r="function"==typeof e?e(t):e;if(!r)return;let n;const o=()=>{this.boundingRectangle.value=yq(r)},i=()=>{n||(n=setTimeout((()=>{o(),n=void 0}),25))},a=new ResizeObserver(o);return a.observe(r),document.addEventListener("scroll",i,{passive:!0,capture:!0}),()=>{document.removeEventListener("scroll",i,{capture:!0}),a.disconnect(),this.boundingRectangle.value=null}}}))}apply(e){const{shape:t,transform:r}=e;if(!t)return r;const n=this.boundingRectangle.value;if(!n)return r;const{initial:o,current:i}=t,{height:a,width:s}=i.boundingRectangle,l=o.center.x-s/2,u=o.center.y-a/2,c=function(e,t,r){const n=iW({},t);return e.boundingRectangle.top+t.y<=r.top?n.y=r.top-e.boundingRectangle.top:e.boundingRectangle.bottom+t.y>=r.top+r.height&&(n.y=r.top+r.height-e.boundingRectangle.bottom),e.boundingRectangle.left+t.x<=r.left?n.x=r.left-e.boundingRectangle.left:e.boundingRectangle.right+t.x>=r.left+r.width&&(n.x=r.left+r.width-e.boundingRectangle.right),n}(new FT(l,u,s,a),r,n);return c}};cW.configure=RO(cW);var dW=cW,pW=Object.create,fW=Object.defineProperty,hW=Object.defineProperties,mW=Object.getOwnPropertyDescriptor,gW=Object.getOwnPropertyDescriptors,bW=Object.getOwnPropertySymbols,vW=Object.prototype.hasOwnProperty,yW=Object.prototype.propertyIsEnumerable,xW=e=>{throw TypeError(e)},SW=(e,t,r)=>t in e?fW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wW=(e,t)=>{for(var r in t||(t={}))vW.call(t,r)&&SW(e,r,t[r]);if(bW)for(var r of bW(t))yW.call(t,r)&&SW(e,r,t[r]);return e},CW=(e,t)=>hW(e,gW(t)),EW=["class","method","getter","setter","accessor","field","value","get","set"],RW=e=>void 0!==e&&"function"!=typeof e?xW("Function expected"):e,PW=(e,t,r,n,o)=>({kind:EW[e],name:t,metadata:n,addInitializer:e=>r._?xW("Already initialized"):o.push(RW(e||null))}),AW=(e,t,r,n)=>{for(var o=0,i=e[t>>1],a=i&&i.length;o<a;o++)1&t?i[o].call(r):n=i[o].call(r,n);return n},IW=(e,t,r,n,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=EW[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,mW({get[r](){return kW(this,i)},set[r](e){return TW(this,i,e)}},r)),b=n.length-1;b>=0;b--)(u=PW(d,r,l={},e[3],m)).static=false,u.private=false,c=u.access={has:e=>r in e},c.get=e=>e[r],c.set=(e,t)=>e[r]=t,s=(0,n[b])({get:g.get,set:g.set},u),l._=1,void 0===s?RW(s)&&(g[f]=s):"object"!=typeof s||null===s?xW("Object expected"):(RW(a=s.get)&&(g.get=a),RW(a=s.set)&&(g.set=a),RW(a=s.init)&&h.unshift(a));return g&&fW(o,r,g),o},MW=(e,t,r)=>t.has(e)||xW("Cannot "+r),kW=(e,t,r)=>(MW(e,t,"read from private field"),t.get(e)),DW=(e,t,r)=>t.has(e)?xW("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),TW=(e,t,r,n)=>(MW(e,t,"write to private field"),t.set(e,r),r);function OW(e){return e instanceof uB||e instanceof lB}var LW=Object.defineProperty,qW=Object.defineProperties,NW=Object.getOwnPropertyDescriptors,jW=Object.getOwnPropertySymbols,_W=Object.prototype.hasOwnProperty,zW=Object.prototype.propertyIsEnumerable,FW=(e,t,r)=>t in e?LW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,HW=(e,t)=>{for(var r in t||(t={}))_W.call(t,r)&&FW(e,r,t[r]);if(jW)for(var r of jW(t))zW.call(t,r)&&FW(e,r,t[r]);return e},$W=(e,t)=>qW(e,NW(t));function WW(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function BW(e){return"initialIndex"in e&&"number"==typeof e.initialIndex&&"index"in e&&"number"==typeof e.index}function VW(e,t){return function(e,t,r){var n,o,i;const{source:a,target:s,canceled:l}=t.operation;if(!a||!s||l)return"preventDefault"in t&&t.preventDefault(),e;const u=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const n=e.findIndex((e=>u(e,a.id))),o=e.findIndex((e=>u(e,s.id)));if(-1===n||-1===o){if(BW(a)){const n=a.initialIndex,o=a.index;return n===o||n<0||n>=e.length?("preventDefault"in t&&t.preventDefault(),e):r(e,n,o)}return e}if(!l&&"index"in a&&"number"==typeof a.index){const t=a.index;if(t!==n)return r(e,n,t)}return r(e,n,o)}const c=Object.entries(e);let d,p,f=-1,h=-1;for(const[e,t]of c)if(-1===f&&(f=t.findIndex((e=>u(e,a.id))),-1!==f&&(d=e)),-1===h&&(h=t.findIndex((e=>u(e,s.id))),-1!==h&&(p=e)),-1!==f&&-1!==h)break;if(-1===f&&BW(a)){const n=a.initialGroup,o=a.initialIndex,i=a.group,s=a.index;if(null==n||null==i||!(n in e)||!(i in e))return"preventDefault"in t&&t.preventDefault(),e;if(n===i&&o===s)return"preventDefault"in t&&t.preventDefault(),e;if(n===i)return $W(HW({},e),{[n]:r(e[n],o,s)});const l=e[n][o];return $W(HW({},e),{[n]:[...e[n].slice(0,o),...e[n].slice(o+1)],[i]:[...e[i].slice(0,s),l,...e[i].slice(s)]})}if(!a.manager)return e;const{dragOperation:m}=a.manager,g=null!=(o=null==(n=m.shape)?void 0:n.current.center)?o:m.position.current;if(null==p&&s.id in e){const t=s.shape&&g.y>s.shape.center.y?e[s.id].length:0;p=s.id,h=t}if(null==d||null==p||d===p&&f===h){if(null!=d&&d===p&&f===h&&BW(a)){const t=null!=a.group&&a.group!==d,n=a.index!==f;if(t||n){const t=null!=(i=a.group)?i:d;if(t in e){if(d===t)return $W(HW({},e),{[d]:r(e[d],f,a.index)});const n=e[d][f];return $W(HW({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[t]:[...e[t].slice(0,a.index),n,...e[t].slice(a.index)]})}}}return"preventDefault"in t&&t.preventDefault(),e}if(d===p)return $W(HW({},e),{[d]:r(e[d],f,h)});const b=s.shape&&Math.round(g.y)>Math.round(s.shape.center.y)?1:0,v=e[d][f];return $W(HW({},e),{[d]:[...e[d].slice(0,f),...e[d].slice(f+1)],[p]:[...e[p].slice(0,h+b),v,...e[p].slice(h+b)]})}(e,t,WW)}var UW="__default__";function GW(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function YW(e,t){return e.index-t.index}function KW(e){return Array.from(e).sort(YW)}var XW,JW,ZW,QW,eB,tB,rB,nB,oB=[class extends AO{constructor(e){super(e);const t=xD((()=>{const{dragOperation:t}=e;if(GN(t.activatorEvent)&&OW(t.source)&&t.status.initialized){const t=e.registry.plugins.get(__);if(t)return t.disable(),()=>t.enable()}})),r=e.monitor.addEventListener("dragmove",((e,t)=>{queueMicrotask((()=>{if(this.disabled||e.defaultPrevented||!e.nativeEvent)return;const{dragOperation:r}=t;if(!GN(e.nativeEvent))return;if(!OW(r.source))return;if(!r.shape)return;const{actions:n,collisionObserver:o,registry:i}=t,{by:a}=e;if(!a)return;const s=function(e){const{x:t,y:r}=e;if(t>0)return"right";if(t<0)return"left";if(r>0)return"down";if(r<0)return"up"}(a),{source:l,target:u}=r,{center:c}=r.shape.current,d=[],p=[];tD((()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&OW(e)||!e.element)continue;let r=e.shape;const n=new WN(e.element,{getBoundingClientRect:e=>Iq(e,void 0,.2)});n.height&&n.width&&(("down"==s&&c.y+10<n.center.y||"up"==s&&c.y-10>n.center.y||"left"==s&&c.x-10>n.center.x||"right"==s&&c.x+10<n.center.x)&&(d.push(e),e.shape=n,p.push((()=>e.shape=r))))}})),e.preventDefault(),o.disable();const f=o.computeCollisions(d,JN);tD((()=>p.forEach((e=>e()))));const[h]=f;if(!h)return;const{id:m}=h,{index:g,group:b}=l.sortable;n.setDropTarget(m).then((()=>{const{source:e,target:t,shape:i}=r;if(!e||!OW(e)||!i)return;const{index:a,group:s,target:l}=e.sortable,u=g!==a||b!==s,c=u?l:null==t?void 0:t.element;if(!c)return;NN(c);const d=new WN(c);if(!d)return;const p=FT.delta(d,FT.from(i.current.boundingRectangle),e.alignment);n.move({by:p}),u?n.setDropTarget(e.id).then((()=>o.enable())):o.enable()}))}))}));this.destroy=()=>{r(),t()}}},class extends AO{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof uB){const{sortable:e}=r,{group:n}=e;let o=t.get(n);o||(o=new Set,t.set(n,o)),o.add(e)}for(const[e,r]of t)t.set(e,new Set(KW(r)));return t},r=[e.monitor.addEventListener("dragover",((e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!OW(o)||!OW(i))return;if(o.sortable===i.sortable)return;const a=t(),s=o.sortable.group===i.sortable.group,l=a.get(o.sortable.group),u=s?l:a.get(i.sortable.group);l&&u&&queueMicrotask((()=>{e.defaultPrevented||r.renderer.rendering.then((()=>{var n,c,d;const p=t();for(const[e,t]of a.entries()){const r=Array.from(t).entries();for(const[t,o]of r)if(o.index!==t||o.group!==e||!(null==(n=p.get(e))?void 0:n.has(o)))return}const f=o.sortable.element,h=i.sortable.element;if(!h||!f)return;if(!s&&i.id===o.sortable.group)return;const m=KW(l),g=s?m:KW(u),b=null!=(c=o.sortable.group)?c:UW,v=null!=(d=i.sortable.group)?d:UW,y={[b]:m,[v]:g},x=VW(y,e);if(y===x)return;const S=x[v].indexOf(o.sortable),w=x[v].indexOf(i.sortable);r.collisionObserver.disable(),GW(f,S,h,w),tD((()=>{for(const[e,t]of x[b].entries())t.index=e;if(!s)for(const[e,t]of x[v].entries())t.group=i.sortable.group,t.index=e})),r.actions.setDropTarget(o.id).then((()=>r.collisionObserver.enable()))}))}))})),e.monitor.addEventListener("dragend",((e,r)=>{if(!e.canceled)return;const{dragOperation:n}=r,{source:o}=n;OW(o)&&(o.sortable.initialIndex===o.sortable.index&&o.sortable.initialGroup===o.sortable.group||queueMicrotask((()=>{const e=t(),n=e.get(o.sortable.initialGroup);n&&r.renderer.rendering.then((()=>{for(const[t,r]of e.entries()){const e=Array.from(r).entries();for(const[r,n]of e)if(n.index!==r||n.group!==t)return}const t=KW(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(GW(r,i.index,a,o.index),tD((()=>{for(const[t,r]of e.entries()){const e=Array.from(r).values();for(const t of e)t.index=t.initialIndex,t.group=t.initialGroup}})))}))})))}))];this.destroy=()=>{for(const e of r)e()}}}],iB={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},aB=new class{constructor(){sT(this,gT,new WeakMap)}get(e,t){var r;return e?null==(r=aT(this,gT).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return aT(this,gT).has(e)||aT(this,gT).set(e,new Map),null==(n=aT(this,gT).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=aT(this,gT).get(e))?void 0:t.clear():void 0}};JW=[pT],XW=[pT];var sB=class{constructor(e,t){DW(this,QW,AW(ZW,8,this)),AW(ZW,11,this),DW(this,eB),DW(this,tB),DW(this,rB,AW(ZW,12,this)),AW(ZW,15,this),DW(this,nB),this.register=()=>(tD((()=>{var e,t;null==(e=this.manager)||e.registry.register(this.droppable),null==(t=this.manager)||t.registry.register(this.draggable)})),()=>this.unregister()),this.unregister=()=>{tD((()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)}))},this.destroy=()=>{tD((()=>{this.droppable.destroy(),this.draggable.destroy()}))};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=iB,plugins:u=oB}=r,c=((e,t)=>{var r={};for(var n in e)vW.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&bW)for(var n of bW(e))t.indexOf(n)<0&&yW.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new uB(c,t,this),this.draggable=new lB(CW(wW({},c),{effects:()=>[()=>{var e,t,r;const n=null==(e=this.manager)?void 0:e.dragOperation.status;(null==n?void 0:n.initializing)&&this.id===(null==(r=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:r.id)&&aB.clear(this.manager),(null==n?void 0:n.dragging)&&aB.set(this.manager,this.id,nD((()=>({initialIndex:this.index,initialGroup:this.group}))))},()=>{const{index:e,group:t,manager:r}=this,n=kW(this,tB),o=kW(this,eB);e===n&&t===o||(TW(this,tB,e),TW(this,eB,t),this.animate())},()=>{const{target:e}=this,{feedback:t,isDragSource:r}=this.draggable;"move"==t&&r&&(this.droppable.disabled=!e)},()=>{const{manager:e}=this;for(const t of u)null==e||e.registry.register(t)},...n()],type:s,sensors:a}),t,this),TW(this,nB,c.element),this.manager=t,this.index=i,TW(this,tB,i),this.group=o,TW(this,eB,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=aB.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=aB.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){nD((()=>{const{manager:e,transition:t}=this,{shape:r}=this.droppable;if(!e)return;const{idle:n}=e.dragOperation.status;r&&t&&(!n||t.idle)&&e.renderer.rendering.then((()=>{const{element:n}=this;if(!n)return;const o=this.refreshShape();if(!o)return;const i=r.boundingRectangle.left-o.boundingRectangle.left,a=r.boundingRectangle.top-o.boundingRectangle.top,{translate:s}=EN(n),l=_N(n,s,!1),u=_N(n,s);if(i||a){const r=Nq(wq(n))?CW(wW({},t),{duration:0}):t;jN({element:n,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${u.x}px ${u.y}px ${u.z}`]},options:r}).then((()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)}))}}))}))}get manager(){return this.draggable.manager}set manager(e){tD((()=>{this.draggable.manager=e,this.droppable.manager=e}))}set element(e){tD((()=>{const t=kW(this,nB),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),TW(this,nB,e)}))}get element(){var e,t;const r=kW(this,nB);if(r)return null!=(t=null!=(e=Fq.get(r))?e:r)?t:this.droppable.element}set target(e){this.droppable.element=e}get target(){return this.droppable.element}set source(e){this.draggable.element=e}get source(){return this.draggable.element}get disabled(){return this.draggable.disabled&&this.droppable.disabled}set feedback(e){this.draggable.feedback=e}set disabled(e){tD((()=>{this.droppable.disabled=e,this.draggable.disabled=e}))}set data(e){tD((()=>{this.droppable.data=e,this.draggable.data=e}))}set handle(e){this.draggable.handle=e}set id(e){tD((()=>{this.droppable.id=e,this.draggable.id=e}))}get id(){return this.droppable.id}set sensors(e){this.draggable.sensors=e}set modifiers(e){this.draggable.modifiers=e}set collisionPriority(e){this.droppable.collisionPriority=e}set collisionDetector(e){this.droppable.collisionDetector=null!=e?e:XN}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){tD((()=>{this.droppable.type=e,this.draggable.type=e}))}get type(){return this.draggable.type}set accept(e){this.droppable.accept=e}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(e){return this.droppable.accepts(e)}};ZW=[,,,pW(null)],QW=new WeakMap,eB=new WeakMap,tB=new WeakMap,rB=new WeakMap,nB=new WeakMap,IW(ZW,4,"index",JW,sB,QW),IW(ZW,4,"group",XW,sB,rB),((e,t)=>{return SW(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(ZW,sB);var lB=class extends Mz{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},uB=class extends kz{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}get group(){return this.sortable.group}},cB=Object.defineProperty,dB=Object.defineProperties,pB=Object.getOwnPropertyDescriptors,fB=Object.getOwnPropertySymbols,hB=Object.prototype.hasOwnProperty,mB=Object.prototype.propertyIsEnumerable,gB=(e,t,r)=>t in e?cB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bB=(e,t)=>{for(var r in t||(t={}))hB.call(t,r)&&gB(e,r,t[r]);if(fB)for(var r of fB(t))mB.call(t,r)&&gB(e,r,t[r]);return e};function vB(e){const{accept:t,collisionDetector:r,collisionPriority:n,id:o,data:i,element:a,handle:s,index:l,group:u,disabled:c,feedback:d,modifiers:p,sensors:f,target:h,type:m}=e,g=bB(bB({},iB),e.transition),b=function(e){var t;const r=null!=(t=Yz())?t:void 0,[n]=P((()=>e(r)));return n.manager!==r&&(n.manager=r),Tz(n.register,[r,n]),n}((t=>new sB(((e,t)=>dB(e,pB(t)))(bB({},e),{transition:g,register:!1,handle:Dz(s),element:Dz(a),target:Dz(h),feedback:d}),t))),v=qz(b,yB);return _z(o,(()=>b.id=o)),Tz((()=>{tD((()=>{b.group=u,b.index=l}))}),[b,u,l]),_z(m,(()=>b.type=m)),_z(t,(()=>b.accept=t),void 0,dT),_z(i,(()=>i&&(b.data=i))),_z(l,(()=>{var e;(null==(e=b.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&b.refreshShape()}),Nz),zz(s,(e=>b.handle=e)),zz(a,(e=>b.element=e)),zz(h,(e=>b.target=e)),_z(c,(()=>b.disabled=!0===c)),_z(f,(()=>b.sensors=f)),_z(r,(()=>b.collisionDetector=r)),_z(n,(()=>b.collisionPriority=n)),_z(d,(()=>b.feedback=null!=d?d:"default")),_z(g,(()=>b.transition=g),void 0,dT),_z(p,(()=>b.modifiers=p),void 0,dT),_z(e.alignment,(()=>b.alignment=e.alignment)),{sortable:v,get isDragging(){return v.isDragging},get isDropping(){return v.isDropping},get isDragSource(){return v.isDragSource},get isDropTarget(){return v.isDropTarget},handleRef:O((e=>{b.handle=null!=e?e:void 0}),[b]),ref:O((e=>{var t,r;(e||!(null==(t=b.element)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.element=null!=e?e:void 0)}),[b]),sourceRef:O((e=>{var t,r;(e||!(null==(t=b.source)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.source=null!=e?e:void 0)}),[b]),targetRef:O((e=>{var t,r;(e||!(null==(t=b.target)?void 0:t.isConnected)||(null==(r=b.manager)?void 0:r.dragOperation.status.idle))&&(b.target=null!=e?e:void 0)}),[b])}}function yB(e,t,r){return!("isDragSource"!==e||r||!t)}const xB=({invert:e})=>({dragOperation:t,droppable:r})=>{if(!r.shape)return null;const{shape:n}=t;if(!n)return null;const o=function(e){return e.sortable?.index}(r);if(void 0===o)return null;const i=function(e){return e.source.index}(t);if(void 0===i)return null;if(i===o)return null;const a=i<o!==e?"right":"left",{center:s,boundingRectangle:l}=n.current;return"left"===a&&l.left+.3*l.width<=r.shape.center.x||"right"===a&&l.right-.3*l.width>=r.shape.center.x?{id:r.id,value:1/zT.distance(r.shape.center,s),type:XO.Collision,priority:KO.Normal}:null},SB=[dW.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],wB=(e,t)=>{const r=eR(xR),n=eR(oR),o=!eR(gR)||!n("TLV-1531_DRAG_AND_DROP_COLUMNS");return vB({id:e.id,disabled:o,index:t,type:"item",accept:"item",group:"column",modifiers:SB,data:e,feedback:"clone",collisionDetector:xB({invert:"rtl"===r})})},CB=({column:e,columnIndex:t,columnsLength:r})=>{const{rootElement:n,styleService:o}=RM(SM,(e=>e.baseProps)),i=eR(xR),a=eR(dR),{columns:s,totalsPosition:l}=RM(SM,(e=>e.tableData)),u=RM(SM,(e=>e.columnWidths[t])),c=tR(xH),d=eR(SH(t)),p=eR(gR),f=eR(ER),{open:h,setOpen:m,handleOpenMenu:g,setIsAdjustingWidth:b,toggleSortOrder:v}=J$({isInteractionEnabled:p,column:e}),{ref:y,isDragging:x}=wB(e,t),S=M$(e.id),w=vF(),C=w?WF:cH,E=e.isActivelySorted?lI[e.sortDirection]:void 0,R=h?QC:void 0,P=h?"true":void 0,A=t===r-1,I=[0,e.pageColIdx],M={width:u,zIndex:s.length-t},k=d&&0===t&&!f.enabled&&p?0:-1;return rr.jsxs(OF,{"data-dragging":x,ref:y,headerStyle:{...o.header,...yF(o,l,!0),opacity:S},background:w&&h?o.headerMenuActiveBackground:o.header.background,hoverBackground:o.headerMenuHoverBackground,interactions:a,style:M,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${eE}`,tabIndex:k,title:a.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case tE.C:RH(r);break;case tE.Enter:case tE.Space:n?.(r);break;default:PH(e)}else TC(r)})({evt:e,rootElement:n,cellCoord:I,setFocusedCellCoord:c,isInteractionEnabled:p,handleOpenMenu:g,direction:i})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&kF(r,t,n,o)})({evt:e,rootElement:n,cellCoord:I,setFocusedCellCoord:c,keyboard:f,isInteractionEnabled:p})},onClick:w?g:v,"aria-sort":E,"aria-controls":R,"aria-expanded":P,"aria-haspopup":"true",children:[rr.jsx(C,{column:e,isInteractionEnabled:p,open:h,setOpen:m,isPagination:!0}),rr.jsx(K$,{column:e,isLastColumn:A,setIsAdjustingWidth:b})]},e.id)},EB=()=>{const{columns:e}=RM(SM,(e=>e.tableData)),{styleService:t,layout:r}=RM(SM,(e=>e.baseProps)),n=eR(wR),o=tR($$),i=RM(SM,(e=>e.columnWidths)),a=A(null),s=Y$(n,r);return k((()=>{a.current&&o(a.current.getBoundingClientRect().height)}),[t.header.fontSize,i,o,s]),rr.jsx(Jh,{style:{visibility:s?"collapse":void 0},children:rr.jsx(nm,{ref:a,className:"sn-table-row sn-table-head-row",style:{position:"sticky",top:0},children:e.map(((t,r)=>rr.jsx(CB,{column:t,columnIndex:r,columnsLength:e.length},t.id)))})})};var RB=N(EB);const PB=e=>{const{pageInfo:t,setPageInfo:r,announce:n}=e,{page:o,rowsPerPage:i}=t,a=eR(SR),{totalColumnCount:s,totalRowCount:l,totalPages:u,paginationNeeded:c,rows:d,columns:p}=RM(SM,(e=>e.tableData)),{rootElement:f,theme:h,styleService:m,viewService:g,layout:b,rect:v}=RM(SM,(e=>e.baseProps)),y=eR(wR),x=eR(xR),S=eR(dR),w=eR(PR),C=RM(SM,(e=>e.showRightBorder)),E=RM(SM,(e=>e.selectionDispatch)),R=eR(lR),P=eR(ER),I=A(!1),M=A(null),D=A(null),T=`${w.get("SNTable.Accessibility.RowsAndColumns",[String(d.length),String(p.length)])} ${w.get("SNTable.Accessibility.NavigationInstructions")}`,L=bR(b,y),q=L?g.scrollLeft??0:0,N=L?g.rowPartialHeight??0:0,j=O((()=>{I.current=f.getElementsByTagName("table")[0].contains(document.activeElement)}),[f]),_=O((e=>{r({...t,page:e}),n({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),u.toString()]],politeness:"assertive"})}),[t,r,u,n]),z=O((e=>{r({...t,page:0,rowsPerPage:e}),n({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[n,t,r]);return EH(M,g),((e,t)=>{const r=eR(ER);k((()=>{const n=e.current;if(!n)return;const o=e=>{DF(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(D,I),(()=>{const{rootElement:e}=RM(SM,(e=>e.baseProps)),t=eR(ER),r=eR(xH);UC((()=>{const n=CF(e,r);t.active?AF(n):(n?.blur(),PF(e))}),[t.active,e])})(),CH(I,n,o),k((()=>{const e=M.current;e&&(e.scrollLeft=q,e.scrollTop=N)}),[t,l,q,N]),vH((()=>{E({type:sI.UpdatePageRows,payload:{pageRows:d}})}),[d]),wH(),kH(M),rr.jsxs(bH,{children:[rr.jsxs(_F,{ref:D,dir:x,onKeyDown:e=>{IH({evt:e,totalRowCount:l,page:o,rowsPerPage:i,handleChangePage:_,updateShouldRefocus:j,keyboard:P,isSelectionMode:R})},"data-testid":"sn-table",children:[rr.jsx(LH,{}),rr.jsxs(TH,{ref:M,className:"sn-table-container",fullHeight:!!a||!S.active||!c,interactions:S,tabIndex:-1,role:"application","data-testid":"table-container",children:[rr.jsxs(OH,{stickyHeader:!0,"aria-label":T,borderRight:C?`1px solid ${m.grid.border}`:void 0,children:[rr.jsx(RB,{}),rr.jsx(G$,{...e,updateShouldRefocus:j,tableWrapperRef:D})]}),rr.jsx(bF,{})]}),rr.jsx(Zk,{footerContainer:a,pageInfo:t,paginationNeeded:c,theme:h,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:P,translator:w,interactions:S,rect:v,layout:b,handleChangePage:_,handleChangeRowsPerPage:z,isSelectionMode:R,direction:x})]}),rr.jsx(hH,{isPagination:!0})]})};var AB=N(PB);function IB(){return IB=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},IB.apply(null,arguments)}function MB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kB(e,t){return kB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kB(e,t)}function DB(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,kB(e,t)}var TB=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function OB(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||TB(n)&&TB(o)))return!1;var n,o;return!0}function LB(e,t){var r;void 0===t&&(t=OB);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}}function qB(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}var NB="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function jB(e){cancelAnimationFrame(e.id)}function _B(e,t){var r=NB();var n={id:requestAnimationFrame((function o(){NB()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var zB=-1;function FB(e){if(void 0===e&&(e=!1),-1===zB||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),zB=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return zB}var HB=null;function $B(e){if(void 0===e&&(e=!1),null===HB||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?HB="positive-descending":(t.scrollLeft=1,HB=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),HB}return HB}var WB=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function BB(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,MB(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:MB(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=LB((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=LB((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=LB((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($B()){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&&jB(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=_B(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}DB(t,e),t.getDerivedStateFromProps=function(e,t){return VB(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=FB();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($B()){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&&jB(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?WB:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,w=this._getHorizontalRangeToRender(),C=w[0],E=w[1],R=this._getVerticalRangeToRender(),P=R[0],A=R[1],I=[];if(n>0&&g)for(var M=P;M<=A;M++)for(var k=C;k<=E;k++)I.push(S(t,{columnIndex:k,data:d,isScrolling:v?x:void 0,key:f({columnIndex:k,data:d,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,k)}));var D=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return S(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:IB({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},S(u||c||"div",{children:I,ref:l,style:{height:D,pointerEvents:x?"none":void 0,width:T}}))},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}(F),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var VB=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},UB=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},GB=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},YB=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]},KB=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?XB(e,t,r,i,0,n):JB(e,t,r,Math.max(0,i),n)},XB=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=YB(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},JB=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&YB(e,t,n,r).offset<o;)n+=a,a*=2;return XB(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},ZB=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=YB(e,t,r,i),u="column"===e?GB(t,i):UB(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}},QB=BB({getColumnOffset:function(e,t,r){return YB("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return KB("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=YB("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=YB("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:UB,getEstimatedTotalWidth:GB,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return ZB("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return ZB("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return YB("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return KB("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=YB("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=YB("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}}),eV=function(e,t){return e};function tV(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,MB(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:MB(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=LB((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=LB((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=LB((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($B()){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&&jB(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=_B(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}DB(t,e),t.getDerivedStateFromProps=function(e,t){return rV(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?FB():0:l.scrollHeight>l.clientHeight?FB():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($B()){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&&jB(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?eV: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,w=x?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],R=C[1],P=[];if(u>0)for(var A=E;A<=R;A++)P.push(S(t,{data:c,key:p(A,c),index:A,isScrolling:b?y:void 0,style:this._getItemStyle(A)}));var I=n(this.props,this._instanceProps);return S(h||m||"div",{className:r,onScroll:w,ref:this._outerRefSetter,style:IB({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},S(s||l||"div",{children:P,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}(F),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var rV=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},nV=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]},oV=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=nV(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},iV=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&nV(e,r,t).offset<n;)r+=i,i*=2;return oV(e,t,Math.min(r,o-1),Math.floor(r/2),n)},aV=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},sV=tV({getItemOffset:function(e,t,r){return nV(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:aV,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=nV(e,t,o),p=aV(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?oV(e,t,o,0,r):iV(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=nV(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=nV(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 lV(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 uV=["style"],cV=["style"];function dV(e,t){var r=e.style,n=qB(e,uV),o=t.style,i=qB(t,cV);return!lV(r,o)&&!lV(n,i)}const pV=$E(-1),fV=yH((e=>$E((t=>t(pV)===e)))),hV=({style:e})=>rr.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var mV=x.memo(hV,dV);const gV=()=>{},bV=e=>{e.preventDefault()};const vV=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u}=n,c=eR(fV(t)),d=tR(pV),{styleService:p}=RM(SM,(e=>e.baseProps)),f=eR(xR),h=eR(fR),m=RM(SM,(e=>e.showRightBorder)),g=o[t]?.[e],{handleMouseDown:b,handleMouseOver:v,handleMouseUp:y,cellSelectionState:x}=function(e){const t=RM(SM,(e=>e.selectionDispatch)),r="object"==typeof e,n=RM(SM,(t=>r?T$(e,t.selectionState):aI.Inactive)),o=eR(hR);if(r&&o){const{handleMouseDown:r,handleMouseOver:o,handleMouseUp:i}=k$(bV,e,t,gV);return{handleMouseDown:r,handleMouseOver:o,handleMouseUp:i,cellSelectionState:n}}return{cellSelectionState:n}}(g),S=((e,t,r,n)=>{const o=A(null),i=r&&!r.isNumeric,a=O((r=>{const o=XF(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return JF(o,a),o})(t,e,g,s),w=i[e]?.isDim?p.dimension.values:p.measure.values,C=M$(i[e].id);if("object"==typeof g){const n=((e,t,r,n,o,i)=>{let a=q$(o,i,e);a=O$(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?lM(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===aI.Selected?{...s,...i.selectedColors}:n===aI.Disabled?{...s,color:r?i.grid.hoverColors?.color:s.color,background:`${yI}, ${r?i.grid.hoverColors?.background:s.background}`}:r?{...s,...i.grid.hoverColors}:s})(g,i[e],a&&c,x,w,p),o={rowindex:t,columnindex:e};return rr.jsx("div",{className:`sn-table-cell ${x} ${eE}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:p.grid.border,borderTop:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:DI(f,g.isLastColumn,m),borderLeftWidth:TI(f,g.isLastColumn,m),justifyContent:AI(g,f),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:g.align,opacity:C},onMouseDown:b,onMouseUp:y,onMouseOver:v,onMouseEnter:a?()=>{d(t)}:void 0,onMouseLeave:a?()=>{d(-1)}:void 0,title:h?g.representation.text:void 0,...o,children:rr.jsx(I$,{cellSelectionState:x,children:rr.jsx(R$,{forwardRef:p.contentStaticLineCount||1===l?void 0:S,cell:g,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})})}return rr.jsx(mV,{style:{...r,...w,borderColor:p.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:C}})};var yV=N(vV,dV);const xV=e=>{const t=A(e);return t.current=e,t},SV=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,wV=(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(t?.rowIdx!==o)return!0}return!1},CV=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!e[t]))},EV=(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)=>{const{qSize:c}=a.qHyperCube,d=n.qTop+r,p=o+r,f=e[p]??[];return t.forEach(((e,t)=>{const r=t+n.qLeft;if(f.at(r))return;const{colIdx:o,isDim:h,isLocked:m,bodyTextAlign:g,selectionColIdx:b,qAttrExprInfoIndex:v,representation:y,conditionalColoring:x,qMiniChart:S}=i[r],w=VA(h,e,a),C=!h&&e.qIsNull,E=C?ZP(w):JP(e);f[r]={id:YP(),...e,align:ZA(E,g,u),rowIdx:d,colIdx:o,isSelectable:h&&!m,pageRowIdx:p,pageColIdx:r,selectionColIdx:b,isLastRow:d===c.qcy-1,isLastColumn:r===c.qcx-1,isNumeric:E,isNull:(!C||!E)&&BA(e,h),representation:WA({cell:e,representationProperties:y,attrExprInfoIndex:v,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>C?w:e.qText,direction:u,enabledFeatures:{[ZR.Image]:!0,[ZR.Indicator]:!0,[ZR.MiniChart]:!0}})},l(f[r],d,r)})),{row:f,pageRowIdx:p}})(r,l,u,e.qArea,c,n,o,i,a,s);r[p]=d}))}))},RV=({layout:e,theme:t,initialDataPages:r,pageInfo:n,rowCount:o,visibleRowCount:i,visibleColumnCount:a,columns:s,gridState:l,setEstimatedCellHeight:u})=>{const c=eR(RR),d=eR(nR),p=eR(xR),f=A([]),h=O(((t,r)=>{const i=Array.isArray(r)?r.slice(0,o):(e=>Array(e).fill(void 0))(o);return EV(t,n,i,s,e,d,u,p),f.current=i,i}),[o,n,s,e,d,u,p]),[m,g]=P((()=>h(r??[])));UC((()=>{g(h(r??[]))}),[r,p]);const b=((e,t)=>{const r=A(new Set),n=A(new Set),o=A(new Set),i=xV(e),a=xV(t),s=R((()=>({enqueue:e=>{const t=SV(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(SV(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=>c&&"getHyperCubeData"in c?c.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([])),(e=>{g((t=>h(e,t)))})),v=O(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(CV(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}}),[f,b]),y=O(((e,t,r,o)=>{for(let i=t;i<t+o;i++){const t=Math.max(0,i-n.page*n.rowsPerPage);if(wV(f.current,e,t,r,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:r};b.enqueue(t)}}}),[f,b,n]);return k((()=>{const{qcx:t,qcy:r}=e.qHyperCube.qSize,o=l.current.overscanRowStartIndex,s=l.current.overscanColumnStartIndex,u=o+n.page*n.rowsPerPage,c=t-s,d=n.rowsPerPage-o,p=Math.min(100,c,t,a+5),f=Math.min(100,d,r,i+25);return y(s,u,p,f),()=>{b.clear()}}),[e,i,a,n,b,y,l,t]),{rowsInPage:m,loadRows:y,loadColumns:v}},PV=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},AV=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,IV=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=RM(SM,(e=>e.baseProps.styleService)),i=RM(SM,(e=>e.columnWidths)),{estimateLineCount:a}=$C(o.dimension.values),s=gM(o.dimension.values.fontSize),l=e||t||1===r;return O(((e,t,o)=>{if(l||e.representation.type===ZR.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])},MV=({isStaticNbrOfLines:e,minRowHeight:t,state:r,staticRowHeight:n=0,viewService:o})=>{L((()=>{const i=e?n:(e=>{let t=0;e.forEach((e=>{t+=e}));const r=0===e.size?0:t/e.size;return Math.ceil(r)})(r.rowHeights);o.estimatedRowHeight=Math.max(i,t)}),[e,t,r,n,o])},kV=({rowCount:e,isSnapshot:t,viewService:r,gridRef:n,pageInfo:o})=>{const{styleService:i}=RM(SM,(e=>e.baseProps)),[a,s]=P({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})=>{const{layout:n}=RM(SM,(e=>e.baseProps)),o=RM(SM,(e=>e.columnWidths)),i=n.multiline?.wrapTextInCells,a=n.nullValueRepresentation?.text;UC((()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map})}),[n.qHyperCube.qSize.qcx,n.qHyperCube.qSize.qcy,r.page,i,a]),UC((()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[o])})({gridRef:n,setState:s,pageInfo:o});const m=(({setState:e,maxCellHeight:t,minRowHeight:r,gridRef:n})=>O(((o,i,a)=>{_((()=>{e((e=>{const s=Math.max(r,o+9),l=Math.min(t,s),u=e.cellHeightsInGrid.get(i)??e.cellHeightsInGrid.set(i,new Map).get(i);if(!AV(u.get(a),l))return e;const c={...e};return u.set(a,l),c.rowHeights.set(i,PV(u)),n.current?.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),c}))}))}),[e,r,t,n]))({maxCellHeight:p,minRowHeight:u,setState:s,gridRef:n}),g=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>O(((o,i,a)=>{e||t||1===r||n(o,i,a)}),[e,t,r,n]))({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:m}),b=IV({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:m}),v=O((e=>c?h??u:a.rowHeights.get(e)??u),[c,u,a.rowHeights,h]);return MV({isStaticNbrOfLines:c,minRowHeight:u,state:a,staticRowHeight:h,viewService:r}),{setMeasuredCellHeight:g,setEstimatedCellHeight:b,getRowHeight:v,lineClamp:f}},DV=(e,t)=>{L((()=>()=>{t(0)}),[e,t]);const r=O((e=>{const r=XF(e);void 0!==r&&t(r)}),[t]);JF(e,r)};let TV=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const OV=({layout:e,loadRows:t,loadColumns:r,rowCount:n,pageInfo:o,gridState:i,viewService:a})=>O((({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=TV.None,i=TV.None;return o=n>t?TV.Down:n<t?TV.Up:TV.None,i=r>e?TV.Right:r<e?TV.Left:TV.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===TV.Down){const e=x+25;t(b,v,y,u+e>n?n-u:e)}else if(m===TV.Up){const e=x+25,r=o.page*o.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(g===TV.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(g===TV.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]),LV=()=>{},qV={current:null};const NV=(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=R((()=>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}},jV=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},_V={overflow:"hidden",willChange:"auto"};var zV=N(q(((e,t)=>{const{rect:r,columns:n,pageInfo:o,setInnerBodyHeight:i,bodyHeight:a}=e,{layout:s,theme:l,viewService:u,styleService:c}=RM(SM,(e=>e.baseProps)),d=eR(xR),p=RM(SM,(e=>e.columnWidths)),f=RM(SM,(e=>e.initialDataPages)),h=A(null),m=A(null),g=A({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),b=A(0),v=!!oM(s)?.content?.hoverEffect,{rowCount:y,visibleRowCount:x,visibleColumnCount:S}=NV(s,o,r,p,c.contentMinRowHeight),{setMeasuredCellHeight:w,setEstimatedCellHeight:C,getRowHeight:E,lineClamp:P}=kV({rowCount:y,isSnapshot:!!s.snapshotData,viewService:u,gridRef:h,pageInfo:o}),{rowsInPage:I,loadRows:M,loadColumns:D}=RV({layout:s,theme:l,initialDataPages:f,pageInfo:o,rowCount:y,visibleRowCount:x,visibleColumnCount:S,columns:n,gridState:g,setEstimatedCellHeight:C}),T=OV({layout:s,loadRows:M,loadColumns:D,rowCount:y,pageInfo:o,gridState:g,viewService:u}),O=jH(),q=R((()=>({rowsInPage:I,columns:n,isHoverEnabled:v,lineClamp:P,setMeasuredCellHeight:w,resizeObserverTaskScheduler:O})),[I,n,v,P,w,O]);return L((()=>{1===b.current&&h.current?.scrollToItem({rowIndex:y-1,align:"start"})})),function(e){const t=RM(SM,(e=>e.selectionDispatch));k((()=>{t({type:sI.UpdatePageRows,payload:{pageRows:e}})}),[t,e]),_H({selectionDispatch:t,updateShouldRefocus:LV,tableWrapperRef:qV})}(I),z(t,(()=>({interpolatedScrollTo:(e,t)=>{const r=(m.current?.clientHeight??a)-a,n=Math.round(r*e);b.current=e,1===b.current?(h.current?.scrollToItem({rowIndex:y-1,align:"start"}),h.current?.scrollTo({scrollLeft:t})):h.current?.scrollTo({scrollTop:n,scrollLeft:t})}})),[m,a,y]),DV(m,i),rr.jsx(QB,{"data-key":"body",ref:h,innerRef:m,style:_V,columnCount:s.qHyperCube.qSize.qcx,columnWidth:e=>p[e],height:a,rowCount:y,rowHeight:E,estimatedRowHeight:u.estimatedRowHeight,width:r.width,itemData:q,onItemsRendered:T,itemKey:jV,className:"sn-table-body",direction:d,children:yV})})));const FV=({width:e,height:t,children:r})=>rr.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),HV=(e,t)=>{const r=A(null),n=RM(SM,(e=>e.columnWidths));L((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=O((r=>{const n=XF(r);n&&t(n+9,e)}),[e,t]);return JF(r,o),r},$V=pc("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e})((({interactions:e,hoverBackground:t,background:r,applicableStyle:n})=>({...n,background:r,"&&:hover:not(:has(button:hover))":{background:e.active?t:void 0}}))),WV=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i}=r,{styleService:a}=RM(SM,(e=>e.baseProps)),s=eR(xR),l=eR(dR),u=RM(SM,(e=>e.showRightBorder)),c=RM(SM,(e=>e.tableData.totalsPosition)),d=eR(gR),p=n[e],{open:f,setOpen:h,handleOpenMenu:m,setIsAdjustingWidth:g,toggleSortOrder:b}=J$({isInteractionEnabled:d,column:p}),v=vF(),y=HV(e,i),x=n.length-1===e,S=v?WF:cH,{ref:w,isDragging:C}=wB(p,e),E=M$(p.id);return rr.jsxs($V,{"data-dragging":C,ref:w,className:`sn-table-cell ${eE}`,title:l.passive?p.label:void 0,onClick:v?m:b,applicableStyle:{...a.header,...yF(a,c,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:DI(s,x,u),borderLeftWidth:TI(s,x,u),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:p.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:"right"===p.headTextAlign?"row-reverse":"row",userSelect:"none",opacity:E},interactions:l,hoverBackground:a.headerMenuHoverBackground,background:v&&f?a.headerMenuActiveBackground:a.header.background,children:[rr.jsx(S,{forwardRef:y,column:p,isInteractionEnabled:d,open:f,setOpen:h}),rr.jsx(K$,{column:p,isLastColumn:x,onColumnResize:o,setIsAdjustingWidth:g})]})},BV=e=>{const[t,r]=P(new Map);UC((()=>{r(new Map)}),[e.length]);const n=O(((e,t)=>{r((r=>AV(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:R((()=>PV(t)),[t]),setMeasuredCellHeight:n}},VV=(e,t)=>{z(e,(()=>({scrollTo:e=>t.current?.scrollTo(e)})),[t])},UV=(e,t,r,n,o)=>{UC((()=>{e.current?.resetAfterIndex(0,!1)}),[t,r,e,n,o])},GV={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},YV=q(((e,t)=>{const{rect:r,columns:n,pageInfo:o,columResizeHandler:i,setHeaderRowHeight:a}=e,s=x.useRef(null),l=A(null),{layout:u,theme:c,styleService:d}=RM(SM,(e=>e.baseProps)),p=eR(wR),f=eR(xR),h=RM(SM,(e=>e.columnWidths)),{rowHeight:m,setMeasuredCellHeight:g}=BV(n),b=Y$(p,u);return VV(t,s),UV(s,u,o,h,c),DV(l,a),rr.jsx(sV,{className:"sn-table-head-row",ref:s,outerRef:l,layout:"horizontal",style:{...GV,...b?{display:"none"}:void 0},itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>h[e],height:Math.max(m+8,d.headerMinRowHeight),width:r.width,itemKey:e=>n[e].id,itemData:{columns:n,columResizeHandler:i,setMeasuredCellHeight:g},direction:f,children:WV})}));var KV=N(YV);const XV=q(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,a=eR(xR),s=eR(mR);return rr.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:s?"auto":"hidden",width:n,height:o},onScroll:i,dir:a,tabIndex:-1,children:r})})),JV=({children:e,rect:t})=>{const r=eR(xR);return rr.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})},ZV=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,{layout:a,styleService:s}=RM(SM,(e=>e.baseProps)),l=eR(xR),u=eR(fR),c=RM(SM,(e=>e.showRightBorder)),d=HV(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:h}=n[e],m=a.qHyperCube.qSize.qcx-1===e,g=M$(n[e].id);return rr.jsx("div",{className:`sn-table-cell ${eE}`,title:u?p:void 0,style:{...t,...s.totalRow,...yF(s,o,!1),background:s.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:DI(l,m,c),borderLeftWidth:TI(l,m,c),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:f,textAlign:f,boxSizing:"border-box",cursor:"default",opacity:g},children:rr.jsx($F,{forwardRef:h?void 0:d,isNumeric:h,children:p})})},QV=q(((e,t)=>{const{rect:r,pageInfo:n,totals:o,columns:i,setTotalsRowHeight:a}=e,s=A(null),l=A(null),{layout:u,theme:c,styleService:d}=RM(SM,(e=>e.baseProps)),p=eR(xR),f=RM(SM,(e=>e.columnWidths)),{rowHeight:h,setMeasuredCellHeight:m}=BV(i);return VV(t,s),UV(s,u,n,f,c),DV(l,a),rr.jsx(sV,{ref:s,outerRef:l,layout:"horizontal",style:GV,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:ZV})}));var eU=N(QV);const tU=(e,t,r,n)=>{const o=eR(xR);return O((i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,u=((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),c=Math.max(0,Math.min(1,l/(a-s)));n.scrollTopRatio=c,n.scrollLeft=u,r.current?.interpolatedScrollTo(Number.isNaN(c)?0:c,u),e.current?.scrollTo(u),t.current?.scrollTo(u)}),[n,r,e,t,o])},rU=e=>{const{pageInfo:t}=e,{totalsPosition:r,columns:n,paginationNeeded:o}=RM(SM,(e=>e.tableData)),{layout:i,theme:a,rect:s,viewService:l}=RM(SM,(e=>e.baseProps)),u=RM(SM,(e=>e.columnWidths)),c=A(null),d=A(null),p=A(null),f=A(null),h=R((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(s,o)),[s,o]),m=RM(SM,(e=>e.yScrollbarWidth)),g=RM(SM,(e=>e.xScrollbarWidth)),b=R((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(h,g,m)),[h,g,m]),{rowCount:v}=NV(i,t,b,u,0),{headerAndTotalsHeight:y,innerBodyHeight:x,setHeaderRowHeight:S,setTotalsRowHeight:w,setInnerBodyHeight:C}=(()=>{const[e,t]=P(0),[r,n]=P(0),[o,i]=P(0);return{headerAndTotalsHeight:e+r,innerBodyHeight:o,setHeaderRowHeight:t,setTotalsRowHeight:n,setInnerBodyHeight:i}})(),{width:E,height:I}=(({innerBodyHeight:e,headerAndTotalsHeight:t,rowCount:r,stickyContainerRect:n,columnWidths:o})=>{const{styleService:i}=RM(SM,(e=>e.baseProps)),a=e+t;let s=r*i.contentMinRowHeight+t;return a<2*n.height&&(s=a),{width:o.reduce(((e,t)=>e+t),0),height:s}})({innerBodyHeight:x,headerAndTotalsHeight:y,rowCount:v,stickyContainerRect:b,columnWidths:u}),M=tU(d,p,f,l),k=((e,t,r)=>Math.min(e.height-t,r))(b,y,x),D=O((()=>{c.current&&(c.current.scrollTop=0)}),[c]);wH(),L((()=>{c.current&&(c.current.scrollLeft=0,c.current.scrollTop=0)}),[n.length]),L((()=>{c.current&&(c.current.scrollTop=0)}),[t,v,a]),kH(c);const T=rr.jsx(eU,{rect:b,pageInfo:t,columns:n,ref:p,totals:r,setTotalsRowHeight:w},"totals");return rr.jsxs(bH,{children:[rr.jsx(XV,{ref:c,width:h.width,height:h.height,onScroll:M,children:rr.jsxs(FV,{width:E,height:I,children:[rr.jsxs(JV,{rect:b,children:[rr.jsx(KV,{rect:b,pageInfo:t,columns:n,ref:d,columResizeHandler:D,setHeaderRowHeight:S}),r.atTop?T:null,rr.jsx(zV,{ref:f,rect:b,pageInfo:t,columns:n,setInnerBodyHeight:C,bodyHeight:k}),r.atBottom?T:null]}),rr.jsx(bF,{})]})}),rr.jsx(hH,{isPagination:!1})]})};var nU=N(rU);var oU=N((()=>{const{theme:e,rect:t,layout:r}=RM(SM,(e=>e.baseProps)),n=eR(dR),{paginationNeeded:o,totalRowCount:i,totalColumnCount:a,totalPages:s}=RM(SM,(e=>e.tableData)),l=eR(PR),u=RM(SM,(e=>e.pageInfo)),c=RM(SM,(e=>e.setPage)),d=eR(ER);return rr.jsxs(_F,{"data-testid":"sn-table",children:[rr.jsx(nU,{pageInfo:u}),rr.jsx(Zk,{paginationNeeded:o,handleChangePage:e=>{c(e)},pageInfo:u,totalRowCount:i,totalColumnCount:a,totalPages:s,keyboard:d,translator:l,theme:e,interactions:n,rect:t,layout:r})]})}));var iU={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 aU=(t,r)=>{const n=r.get(PR);return e((()=>(function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(iU).forEach((t=>{e.add(iU[t])}))}(n),((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(`.${uI.First}`),s=e.querySelector(`.${uI.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;r===uI.First?(l=s,r=uI.Second):(l=a,r=uI.First),l.innerHTML=l.innerHTML.endsWith(" ")?i:`${i} `,l.setAttribute("aria-live",o)}})(t,n))),[t,n.language()])},sU={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},lU=(e,t)=>{const{rootElement:r,layout:i,reactRoot:a,isFontLoaded:s,viewService:l}=e,u=t.get(nR),c=t.get(wR),d=t.get(xR),p=t.get(RR),f=vR(i,c),h=aU(r,t),[m,g]=n(((e,t,r)=>bR(e,r)?{page:t.page||sU.page,rowsPerPage:t.rowsPerPage||sU.rowsPerPage,rowsPerPageOptions:sU.rowsPerPageOptions}:sU)(i,l,c)),[b,v]=zC((async()=>f?async function(e,t,r,n,o,i,a,s,l){const{page:u,rowsPerPage:c,rowsPerPageOptions:d}=r,p=t.qHyperCube.qSize.qcx,f=t.qHyperCube.qSize.qcy,h=Math.ceil(f/c),m=o.visibleTop??u*c,g=o.visibleHeight??Math.min(c,f-m);if(u>0&&m>=f)return n({...r,page:0}),null;if(g*p>UA)return n({...r,rowsPerPage:GA(p,d),page:0}),null;const b=f>10,v=YA(t,l),y=QA(t,a,s),x=!!t.snapshotData,S=await(async(e,t,r)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const n=t.qHyperCube.qDataPages.at(0),o=n?.qArea;return n&&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:m,qHeight:g,qWidth:p});x||(o.qTop=m,o.qHeight=g,o.rowsPerPage=r.rowsPerPage,o.page=r.page);const w=S.at(0)?.qMatrix.map(((e,r)=>{const n=[];return y.forEach(((o,l)=>{const u=e[l],c=VA(o.isDim,u,t),d=!o.isDim&&u.qIsNull,p=d?ZP(c):JP(u);n[l]={id:YP(),...u,align:ZA(p,o.bodyTextAlign,s,a),rowIdx:r+m,colIdx:o.colIdx,pageRowIdx:r,pageColIdx:l,selectionColIdx:o.selectionColIdx,isSelectable:o.isDim&&!o.isLocked,isLastRow:r===g-1,isNumeric:p,isNull:(!d||!p)&&BA(u,o.isDim),representation:WA({cell:u,representationProperties:o.representation,attrExprInfoIndex:o.qAttrExprInfoIndex,env:i,conditionalColoring:o.conditionalColoring,miniChartOnMeasure:o.qMiniChart,getText:()=>d?c:u.qText,direction:s,enabledFeatures:{[ZR.Image]:!0,[ZR.Indicator]:!0,[ZR.MiniChart]:!0}})}})),n}))??[];return{totalColumnCount:p,totalRowCount:f,totalPages:h,paginationNeeded:b,totalsPosition:v,columns:y,rows:w}}(p,i,m,g,l,u,!0,d,c):null),[i,m,p,f,d,c]);o((()=>{f&&e.changeSortOrder&&b&&s&&!v&&p&&function(e,t,r){const{...n}=e,o=r.get(xR),i=PM(o);t.render(rr.jsx(fi,{stylisPlugins:"rtl"===o?[nI]:void 0,children:rr.jsx(hc,{theme:i,children:rr.jsx(YE,{store:r,children:rr.jsx(EM,{...e,children:rr.jsx(AB,{...n})})})})}))}({...e,changeSortOrder:e.changeSortOrder,tableData:b,pageInfo:m,setPageInfo:g,announce:h},a,t)}),[h,s,m,a,e,f,b,v,t,p])};function uU(e,t){const r=e.getElementsByClassName("sn-table-container")[0];if(!r)return{};const n=r.getBoundingClientRect(),o=e.getElementsByClassName("sn-table-head-row")[0],i=o?.getBoundingClientRect()??{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],s=a?.getBoundingClientRect()??{height:0},l=e.getElementsByClassName("sn-table-data-row"),u={top:n.y+i.height+(t.atTop?s.height:0),bottom:n.y+n.height-(t.atBottom?s.height:0)},c=((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})(l,u),d=((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})(l,u),p=((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)})(l,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const cU=(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]}},dU=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const pU=(e,t,r,n,o)=>{if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||sU.rowsPerPage,s=o?.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},fU=(e,t,r,n)=>{if(n&&!n.isMultiPage)return n;const o=YA(e,n);if(vR(e,n)){const{visibleRowStartIndex:i=-1,visibleRowEndIndex:a=-1,rowPartialHeight:s}=uU(r,o);return{rowPartialHeight:s,scrollLeft:t.scrollLeft,visibleTop:t.qTop+i,visibleHeight:pU(a,i,e,t,n),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:o}}const{visibleRowStartIndex:i=-1,visibleRowEndIndex:a=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=r?.getBoundingClientRect(),o=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=cU(d,o),h=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=(dU(h,m,g)?d:d+1)+c;let v=p+c;const y=cU(p,o),x=y?.getBoundingClientRect();return y&&x&&(dU(x,m,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:i,visibleHeight:pU(a,i,e,t,n),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:o}},hU=(t,r)=>e((()=>((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){const e=c.qHyperCubeDef.qMeasures.at(u)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${u}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===s?1:-1})})}l||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),t.applyPatches(p,!0)}})(t.qDimensionInfo.length,r)),[t.qDimensionInfo.length,r]);const mU=({model:e,layout:t,shouldRender:r,page:n})=>{const[o,i]=zC((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(FI,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}},gU=(t,r)=>{const{layout:i,reactRoot:a,isFontLoaded:s}=t,l=r.get(wR),u=r.get(RR),c=r.get(dR),d=r.get(xR),p=!vR(i,l),[f,h]=n(!1);f&&h(!1);const m=e((()=>function(e,t,r,n,o){const i=QA(e,o,n),a=YA(e,r),s=e.qHyperCube.qSize.qcy,l=Math.min(FI,s),u=s>FI&&!!t.active;return{totalsPosition:a,columns:i,rows:[],totalRowCount:s,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(s/l),paginationNeeded:u}}(i,c,l,d,f)),[i,c,l,d,f]),{pageInfo:g,setPage:b}=((t,r)=>{const[o,i]=n(0),a=Math.min(FI,t.qHyperCube.qSize.qcy),s=e((()=>({page:o,rowsPerPage:a,rowsPerPageOptions:[]})),[a,o]);if(r){const e=Math.floor(t.qHyperCube.qSize.qcy/FI);e<o&&i(e)}return{pageInfo:s,setPage:i}})(i,p),{initialDataPages:v,isLoading:y}=mU({model:u,layout:i,page:g.page,shouldRender:p});o((()=>{p&&t.changeSortOrder&&v&&!y&&s&&u&&function(e,t,r){const n=PM(r.get(xR));t.render(rr.jsx(x.StrictMode,{children:rr.jsx(hc,{theme:n,children:rr.jsx(YE,{store:r,children:rr.jsx(EM,{...e,children:rr.jsx(oU,{})})})})}))}({...t,changeSortOrder:t.changeSortOrder,tableData:m,pageInfo:g,setPage:b,initialDataPages:v},a,r)}),[v,s,y,g,a,t,b,p,m,r,u])},bU={version:JSON.stringify("6.5.8"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[]};const vU=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),yU=e=>e.getStyle("object","straightTableV2","backgroundColor");function xU(r){return{qae:{properties:{initial:bU},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>VR({...e}),exportProperties:zR,exploration:UR},ext:FP(r),component(){const n=e((()=>VE()),[]);n.set(nR,r);const i=u(),y=(t=>{const r=e((()=>WC(t)),[t]);return o((()=>()=>{r.unmount()}),[r]),r})(i),x=c();n.set(iR,x),n.set(rR,d());const S=p();n.set(RR,S),n.set(dR,f()),n.set(PR,h()),n.set(uR,m());const w=t(),{freeResize:C}=w;n.set(yR,w),n.set(ER,g());const E=b(),R=e((()=>x.snapshotData?.content&&!C?{...E,...x.snapshotData.content.size}:E),[E,C,x.snapshotData?.content]),P=((t,r)=>{const n=r.get(wR);return e((()=>((e,t)=>({qTop:0,qHeight:0,rowPartialHeight:t?.content?.rowPartialHeight??0,visibleTop:t?.content?.visibleTop??e?.visibleTop,visibleHeight:t?.content?.visibleHeight??e?.visibleHeight,scrollLeft:t?.content?.scrollLeft??e?.scrollLeft??0,scrollTopRatio:t?.content?.scrollTopRatio??e?.scrollTopRatio,rowsPerPage:t?.content?.rowsPerPage??e?.rowsPerPage,page:t?.content?.page??e?.page,estimatedRowHeight:t?.content?.estimatedRowHeight??0}))(n,t.snapshotData)),[n,t.snapshotData,t.usePagination])})(x,n),A=v(),I=_C(x,i,vU,yU),M=hU(x.qHyperCube,S),k=HP(x.qHyperCube,S),D=((e,t,r)=>{const[,n,o]=zC((async()=>{const t=ye(r.flags),n=e.getStyle("","","fontFamily"),o=e.getStyle("object","label.name","fontFamily"),i=e.getStyle("object","label.value","fontFamily"),a=e.getStyle("","","fontFamilies")??[];return Promise.all([...t,...a,n,o,i,VC].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})(I,x,r),T=Tt(),O={layout:x,rect:R,theme:I,changeSortOrder:M,rootElement:i,embed:A,reactRoot:y,applyColumnWidths:k,isFontLoaded:D,downloadService:T,viewService:P};a?.(((e,t)=>{const r=t.target,n=r?.closest(`.${eE}`);n?.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:async()=>{cE(n)}})})),(({layout:e,viewService:t,model:r,rootElement:n,contentRect:o,viewState:i})=>{s((async a=>{const s=a;if(!s.snapshotData||!r||s.snapshotData.content)return s;if("getHyperCubeData"in r){const{rowPartialHeight:a,scrollLeft:l,scrollTopRatio:u,visibleLeft:c,visibleWidth:d,visibleTop:p,visibleHeight:f,rowsPerPage:h,page:m}=fU(e,t,n,i);s.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:p,qWidth:e.qHyperCube.qSize.qcx,qHeight:f}]),s.snapshotData.content={rowPartialHeight:a,scrollLeft:l,scrollTopRatio:u,visibleLeft:c,visibleWidth:d,visibleTop:p,visibleHeight:f,rowsPerPage:h,page:m,size:{width:o.width,height:o.height},estimatedRowHeight:t.estimatedRowHeight}}return s})),l((()=>({getViewState:()=>fU(e,t,n,i)})),[e,t,n])})({layout:x,viewService:P,model:S,rootElement:i,contentRect:E,viewState:w.viewState}),gU(O,n),lU(O,n)}}}export{xU as default};
|