@nebula.js/sn-table 6.4.2 → 6.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/core/esm/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-table v6.
|
|
2
|
+
* @nebula.js/sn-table v6.5.0
|
|
3
3
|
* Copyright (c) 2025 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,{useContext as S,useState as w,useMemo as C,useEffect as E,createElement as R,isValidElement as P,cloneElement as A,Children as I,useReducer as k,createContext as M,useRef as D,useCallback as T,forwardRef as O,memo as q,useLayoutEffect as L,startTransition as N,useImperativeHandle as j,PureComponent as _}from"react";import*as z from"react-dom";import F,{flushSync as H}from"react-dom";import $ from"picasso-plugin-q";import B from"picasso.js";function W(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function V(e){if("object"==typeof e&&W(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 U={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 G(...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(W(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 U}(e)){const t=U[e];({r:r,g:n,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(r=(16711680&e[0])>>16,n=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(r=e[0],n=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+r+n+o+i)&&(t.invalid=!0),t.r=Math.floor(r),t.g=Math.floor(n),t.b=Math.floor(o),t.a=i,t}function Y(e){let t,r,n=0;const o="string"==typeof e?G(e):e,i=o.r/255,a=o.g/255,s=o.b/255,{a:l}=o,u=Math.max(i,a,s),c=Math.min(i,a,s),d=(u+c)/2;if(u===c)t=0,n=0;else{switch(r=u-c,t=d>.5?r/(2-u-c):r/(u+c),u){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n,s:100*t,l:100*d,a:l}}function K(e){let t,r,n=0;const o="string"==typeof e?G(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=l;if(l===u)t=0,n=0;else{switch(r=l-u,t=0===r?0:r/c,l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function X(e){if(W(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?V(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function J(e,t){return W(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:J(G(e))}function Z(e){return W(e)?1===e.a?X(e):J(e):Z(G(e))}const Q=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function ee(e){return.2126*Q(e.r)+.7152*Q(e.g)+.0722*Q(e.b)}function te(...e){const t=G(...e),r={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},n=()=>(r.spaces.hslaObject||(r.spaces.hslaObject=Y(r)),r.spaces.hslaObject),o=e=>{const t=n(),{h:r,s:o,l:i,a:a}=t;return`hsla(${r}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return r.type},isInvalid:()=>r.invalid,get r(){return r.r},get g(){return r.g},get b(){return r.b},get a(){return r.a},getR:()=>r.r,getG:()=>r.g,getB:()=>r.b,getAlpha:()=>r.a,setAlpha:e=>{r.a=e,r.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=G(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=G(...e);return t.invalid||ee(t)<.4}(r),getRGB:()=>(r.spaces.rgb||(r.spaces.rgb=X(r)),r.spaces.rgb),getRGBA:()=>(r.spaces.rgba||(r.spaces.rgba=J(r)),r.spaces.rgba),getString:()=>(r.spaces.string||(r.spaces.string=Z(r)),r.spaces.string),getHex:()=>(r.spaces.hex||(r.spaces.hex=function(e){let t,r,n;if(W(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${[t,r,n].join("")}`;const o="string"==typeof e?V(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${t}${r}${n}`}(r)),r.spaces.hex),getHSL:()=>(r.spaces.hsl||(r.spaces.hsl=function(e){let t,r,n=0;const o="string"==typeof e?G(e):e,i=o.r/255,a=o.g/255,s=o.b/255,l=Math.max(i,a,s),u=Math.min(i,a,s),c=(l+u)/2;if(l===u)t=0,n=0;else{switch(r=l-u,t=c>.5?r/(2-l-u):r/(l+u),l){case i:n=(a-s)/r+(a<s?6:0);break;case a:n=(s-i)/r+2;break;case s:n=(i-a)/r+4}n/=6}return`hsl(${360*n}, ${100*t}, ${100*c})`}(r)),r.spaces.hsl),getHSLA:()=>(r.spaces.hsla||(r.spaces.hsla=function(e){const{h:t,s:r,l:n,a:o}=Y(e);return`hsla(${t}, ${r}, ${n}, ${o})`}(r)),r.spaces.hsla),getHSLAObject:n,getShiftedHSLA:o,getHSV:()=>(r.spaces.hsv||(r.spaces.hsv=function(e){const{h:t,s:r,v:n}=K(e);return`hsv(${t}, ${r}, ${n})`}(r)),r.spaces.hsv),getHSVObject:()=>(r.spaces.hsvObject||(r.spaces.hsvObject=K(r)),r.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(r.r+(e.r-r.r)*t)}, ${Math.floor(r.g+(e.g-r.g)*t)}, ${Math.floor(r.b+(e.b-r.b)*t)}, ${Math.floor(r.a+(e.getAlpha()-r.a)*t)})`,getBrightenedColor:(e=1)=>te(o(18*e)),getDarkenedColor:(e=1)=>te(o(18*-e))}}function re(e,t){if(!e||!t)return;const r=ee(e),n=ee(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}function ne(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 oe,ie="top",ae="top-right",se="right",le="bottom-right",ue="bottom",ce="bottom-left",de="left",pe="top-left";ne(ne(ne(ne(ne(ne(ne(ne(ne(ne(oe={},"equal-equal",[ie,ue]),"equal-higher",[ue,le]),"equal-lower",[ie,ae]),"equal-void",[ie,ue]),"higher-equal",[de,ce,ie,ae]),"higher-higher-acute",[ue,ce,de,ae]),"higher-higher-obtuse",[ue,ie]),"higher-lower-negative",[ie,ae,se]),"higher-lower-positive",[ue,ce,de]),"higher-void",[ie]),ne(ne(ne(ne(ne(ne(ne(ne(ne(ne(oe,"lower-equal",[ie]),"lower-higher-negative",[ie,pe]),"lower-higher-positive",[le]),"lower-lower-acute",[ie,pe,de,ae,se]),"lower-lower-obtuse",[ie,ue]),"lower-void",[ie]),"void-equal",[ie]),"void-higher",[ie,ue]),"void-lower",[ie,ue,de]),"void-void",[ie]),ne(oe,"unclassified",[ie,ue,se,de,ae,le,ce,pe]);var fe,he,me=["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"],ge=["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 be(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?ge:me}var ve=function(){if(he)return fe;he=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 fe=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},fe}();function ye(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function xe(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Se(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(ve);var we=1/.7,Ce="\\s*([+-]?\\d+)\\s*",Ee="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Re="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Pe=/^#([0-9a-f]{3,8})$/,Ae=new RegExp(`^rgb\\(${Ce},${Ce},${Ce}\\)$`),Ie=new RegExp(`^rgb\\(${Re},${Re},${Re}\\)$`),ke=new RegExp(`^rgba\\(${Ce},${Ce},${Ce},${Ee}\\)$`),Me=new RegExp(`^rgba\\(${Re},${Re},${Re},${Ee}\\)$`),De=new RegExp(`^hsl\\(${Ee},${Re},${Re}\\)$`),Te=new RegExp(`^hsla\\(${Ee},${Re},${Re},${Ee}\\)$`),Oe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function qe(){return this.rgb().formatHex()}function Le(){return this.rgb().formatRgb()}function Ne(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Pe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?je(t):3===r?new He(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?_e(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?_e(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=Ae.exec(e))?new He(t[1],t[2],t[3],1):(t=Ie.exec(e))?new He(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ke.exec(e))?_e(t[1],t[2],t[3],t[4]):(t=Me.exec(e))?_e(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=De.exec(e))?Ge(t[1],t[2]/100,t[3]/100,1):(t=Te.exec(e))?Ge(t[1],t[2]/100,t[3]/100,t[4]):Oe.hasOwnProperty(e)?je(Oe[e]):"transparent"===e?new He(NaN,NaN,NaN,0):null}function je(e){return new He(e>>16&255,e>>8&255,255&e,1)}function _e(e,t,r,n){return n<=0&&(e=t=r=NaN),new He(e,t,r,n)}function ze(e){return e instanceof Se||(e=Ne(e)),e?new He((e=e.rgb()).r,e.g,e.b,e.opacity):new He}function Fe(e,t,r,n){return 1===arguments.length?ze(e):new He(e,t,r,null==n?1:n)}function He(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function $e(){return`#${Ue(this.r)}${Ue(this.g)}${Ue(this.b)}`}function Be(){const e=We(this.opacity);return`${1===e?"rgb(":"rgba("}${Ve(this.r)}, ${Ve(this.g)}, ${Ve(this.b)}${1===e?")":`, ${e})`}`}function We(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ve(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ue(e){return((e=Ve(e))<16?"0":"")+e.toString(16)}function Ge(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Ke(e,t,r,n)}function Ye(e){if(e instanceof Ke)return new Ke(e.h,e.s,e.l,e.opacity);if(e instanceof Se||(e=Ne(e)),!e)return new Ke;if(e instanceof Ke)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 Ke(a,s,l,e.opacity)}function Ke(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Xe(e){return(e=(e||0)%360)<0?e+360:e}function Je(e){return Math.max(0,Math.min(1,e||0))}function Ze(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}ye(Se,Ne,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:qe,formatHex:qe,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ye(this).formatHsl()},formatRgb:Le,toString:Le}),ye(He,Fe,xe(Se,{brighter(e){return e=null==e?we:Math.pow(we,e),new He(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new He(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new He(Ve(this.r),Ve(this.g),Ve(this.b),We(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:$e,formatHex:$e,formatHex8:function(){return`#${Ue(this.r)}${Ue(this.g)}${Ue(this.b)}${Ue(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Be,toString:Be})),ye(Ke,(function(e,t,r,n){return 1===arguments.length?Ye(e):new Ke(e,t,r,null==n?1:n)}),xe(Se,{brighter(e){return e=null==e?we:Math.pow(we,e),new Ke(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ke(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 He(Ze(e>=240?e-240:e+120,o,n),Ze(e,o,n),Ze(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Ke(Xe(this.h),Je(this.s),Je(this.l),We(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=We(this.opacity);return`${1===e?"hsl(":"hsla("}${Xe(this.h)}, ${100*Je(this.s)}%, ${100*Je(this.l)}%${1===e?")":`, ${e})`}`}}));const Qe=Math.PI/180,et=180/Math.PI,tt=4/29,rt=6/29,nt=3*rt*rt;function ot(e){if(e instanceof it)return new it(e.l,e.a,e.b,e.opacity);if(e instanceof ct)return dt(e);e instanceof He||(e=ze(e));var t,r,n=ut(e.r),o=ut(e.g),i=ut(e.b),a=at((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=at((.4360747*n+.3850649*o+.1430804*i)/.96422),r=at((.0139322*n+.0971045*o+.7141733*i)/.82521)),new it(116*a-16,500*(t-a),200*(a-r),e.opacity)}function it(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function at(e){return e>.008856451679035631?Math.pow(e,1/3):e/nt+tt}function st(e){return e>rt?e*e*e:nt*(e-tt)}function lt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ut(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ct(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function dt(e){if(isNaN(e.h))return new it(e.l,0,0,e.opacity);var t=e.h*Qe;return new it(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ye(it,(function(e,t,r,n){return 1===arguments.length?ot(e):new it(e,t,r,null==n?1:n)}),xe(Se,{brighter(e){return new it(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new it(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 He(lt(3.1338561*(t=.96422*st(t))-1.6168667*(e=1*st(e))-.4906146*(r=.82521*st(r))),lt(-.9787684*t+1.9161415*e+.033454*r),lt(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),ye(ct,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof ct)return new ct(e.h,e.c,e.l,e.opacity);if(e instanceof it||(e=ot(e)),0===e.a&&0===e.b)return new ct(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*et;return new ct(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new ct(e,t,r,null==n?1:n)}),xe(Se,{brighter(e){return new ct(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ct(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return dt(this).rgb()}}));var pt=e=>()=>e;function ft(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):pt(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?ft: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):pt(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Fe(e)).r,(t=Fe(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=ft(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 ht="center",mt="bottom";[{key:"NoDataExist",alignment:ht,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:ht,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:ht,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:ht},{key:"DataRangeIncludingZero",alignment:mt},{key:"LimitedData",alignment:mt},{key:"NegativeOrZeroValues",alignment:mt}].reduce((function(e,t){return e[t.key]=t,e}),{});var gt,bt=["__proto__","constructor"];function vt(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!bt.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 yt(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 xt(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 St(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Ct)):void 0===t&&(t=wt);for(var r,n,o,i,a,s=new Pt(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 Pt(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(Rt)}function wt(e){return e.children}function Ct(e){return Array.isArray(e)?e[1]:null}function Et(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Rt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Pt(e){this.data=e,this.depth=this.height=0,this.parent=null}Pt.prototype=St.prototype={constructor:Pt,count:function(){return this.eachAfter(xt)},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 St(this).eachBefore(Et)},[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)}},gt=function(e){
|
|
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,{useContext as S,useState as w,useMemo as C,useEffect as E,createElement as R,isValidElement as P,cloneElement as A,Children as I,useReducer as k,createContext as M,useRef as D,useCallback as T,forwardRef as q,memo as O,useLayoutEffect as L,useInsertionEffect as N,startTransition as j,useImperativeHandle as _,PureComponent as z}from"react";import*as F from"react-dom";import H,{flushSync as $}from"react-dom";import B from"picasso-plugin-q";import W from"picasso.js";function V(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function U(e){if("object"==typeof e&&V(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,r=0,n=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),r=parseInt(o[2],10),n=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),r=parseInt(o[2],16),n=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),r=parseInt(o[2]+o[2],16),n=parseInt(o[3]+o[3],16))}return(t<<16)+(r<<8)+n}const G={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 Y(...e){const t={type:"qcm-color",r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let r=0,n=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&"qcm-color"===a.type)({r:r,g:n,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(V(e[0]))({r:r,g:n,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let s;if(s=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),o=parseInt(s[3],10);else if(s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))r=parseInt(s[1],10),n=parseInt(s[2],10),o=parseInt(s[3],10),i=parseFloat(s[4]);else if(s=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))i=parseInt(s[1],10)/255,r=parseInt(s[2],10),n=parseInt(s[3],10),o=parseInt(s[4],10);else if(s=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))r=parseInt(s[1],16),n=parseInt(s[2],16),o=parseInt(s[3],16),i=1;else if(s=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))r=parseInt(s[1]+s[1],16),n=parseInt(s[2]+s[2],16),o=parseInt(s[3]+s[3],16),i=1;else if(s=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o),i=1}else if(s=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);i=parseFloat(s[7]),e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a<=.5?2*a*t:(2-2*a)*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-.5*l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o)}else if(s=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(s[1]),t=parseFloat(s[3]),a=parseFloat(s[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const l=a*t;let u=e/60;const c=l*(1-Math.abs(u%2-1));let d=[];switch(u=Math.floor(u),u){case 0:d=[l,c,0];break;case 1:d=[c,l,0];break;case 2:d=[0,l,c];break;case 3:d=[0,c,l];break;case 4:d=[c,0,l];break;case 5:d=[l,0,c];break;default:d=[0,0,0]}const p=a-l;r=d[0]+p,n=d[1]+p,o=d[2]+p,r=Math.round(255*r),n=Math.round(255*n),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in G}(e)){const t=G[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 K(e){let t,r,n=0;const o="string"==typeof e?Y(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 X(e){let t,r,n=0;const o="string"==typeof e?Y(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 J(e){if(V(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?U(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function Z(e,t){return V(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:Z(Y(e))}function Q(e){return V(e)?1===e.a?J(e):Z(e):Q(Y(e))}const ee=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function te(e){return.2126*ee(e.r)+.7152*ee(e.g)+.0722*ee(e.b)}function re(...e){const t=Y(...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=K(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=Y(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=Y(...e);return t.invalid||te(t)<.4}(r),getRGB:()=>(r.spaces.rgb||(r.spaces.rgb=J(r)),r.spaces.rgb),getRGBA:()=>(r.spaces.rgba||(r.spaces.rgba=Z(r)),r.spaces.rgba),getString:()=>(r.spaces.string||(r.spaces.string=Q(r)),r.spaces.string),getHex:()=>(r.spaces.hex||(r.spaces.hex=function(e){let t,r,n;if(V(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t=`0${t}`),1===r.length&&(r=`0${r}`),1===n.length&&(n=`0${n}`),`#${[t,r,n].join("")}`;const o="string"==typeof e?U(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?Y(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}=K(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}=X(e);return`hsv(${t}, ${r}, ${n})`}(r)),r.spaces.hsv),getHSVObject:()=>(r.spaces.hsvObject||(r.spaces.hsvObject=X(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)=>re(o(18*e)),getDarkenedColor:(e=1)=>re(o(18*-e))}}function ne(e,t){if(!e||!t)return;const r=te(e),n=te(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}function oe(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 ie,ae="top",se="top-right",le="right",ue="bottom-right",ce="bottom",de="bottom-left",pe="left",fe="top-left";oe(oe(oe(oe(oe(oe(oe(oe(oe(oe(ie={},"equal-equal",[ae,ce]),"equal-higher",[ce,ue]),"equal-lower",[ae,se]),"equal-void",[ae,ce]),"higher-equal",[pe,de,ae,se]),"higher-higher-acute",[ce,de,pe,se]),"higher-higher-obtuse",[ce,ae]),"higher-lower-negative",[ae,se,le]),"higher-lower-positive",[ce,de,pe]),"higher-void",[ae]),oe(oe(oe(oe(oe(oe(oe(oe(oe(oe(ie,"lower-equal",[ae]),"lower-higher-negative",[ae,fe]),"lower-higher-positive",[ue]),"lower-lower-acute",[ae,fe,pe,se,le]),"lower-lower-obtuse",[ae,ce]),"lower-void",[ae]),"void-equal",[ae]),"void-higher",[ae,ce]),"void-lower",[ae,ce,pe]),"void-void",[ae]),oe(ie,"unclassified",[ae,ce,le,pe,se,ue,de,fe]);var he,me,ge=["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"],be=["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 ve(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?be:ge}var ye=function(){if(me)return he;me=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 he=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},he}();function xe(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Se(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function we(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(ye);var Ce=1/.7,Ee="\\s*([+-]?\\d+)\\s*",Re="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Pe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ae=/^#([0-9a-f]{3,8})$/,Ie=new RegExp(`^rgb\\(${Ee},${Ee},${Ee}\\)$`),ke=new RegExp(`^rgb\\(${Pe},${Pe},${Pe}\\)$`),Me=new RegExp(`^rgba\\(${Ee},${Ee},${Ee},${Re}\\)$`),De=new RegExp(`^rgba\\(${Pe},${Pe},${Pe},${Re}\\)$`),Te=new RegExp(`^hsl\\(${Re},${Pe},${Pe}\\)$`),qe=new RegExp(`^hsla\\(${Re},${Pe},${Pe},${Re}\\)$`),Oe={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Le(){return this.rgb().formatHex()}function Ne(){return this.rgb().formatRgb()}function je(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Ae.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?_e(t):3===r?new $e(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?ze(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?ze(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=Ie.exec(e))?new $e(t[1],t[2],t[3],1):(t=ke.exec(e))?new $e(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Me.exec(e))?ze(t[1],t[2],t[3],t[4]):(t=De.exec(e))?ze(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Te.exec(e))?Ye(t[1],t[2]/100,t[3]/100,1):(t=qe.exec(e))?Ye(t[1],t[2]/100,t[3]/100,t[4]):Oe.hasOwnProperty(e)?_e(Oe[e]):"transparent"===e?new $e(NaN,NaN,NaN,0):null}function _e(e){return new $e(e>>16&255,e>>8&255,255&e,1)}function ze(e,t,r,n){return n<=0&&(e=t=r=NaN),new $e(e,t,r,n)}function Fe(e){return e instanceof we||(e=je(e)),e?new $e((e=e.rgb()).r,e.g,e.b,e.opacity):new $e}function He(e,t,r,n){return 1===arguments.length?Fe(e):new $e(e,t,r,null==n?1:n)}function $e(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Be(){return`#${Ge(this.r)}${Ge(this.g)}${Ge(this.b)}`}function We(){const e=Ve(this.opacity);return`${1===e?"rgb(":"rgba("}${Ue(this.r)}, ${Ue(this.g)}, ${Ue(this.b)}${1===e?")":`, ${e})`}`}function Ve(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ue(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ge(e){return((e=Ue(e))<16?"0":"")+e.toString(16)}function Ye(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Xe(e,t,r,n)}function Ke(e){if(e instanceof Xe)return new Xe(e.h,e.s,e.l,e.opacity);if(e instanceof we||(e=je(e)),!e)return new Xe;if(e instanceof Xe)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 Xe(a,s,l,e.opacity)}function Xe(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Je(e){return(e=(e||0)%360)<0?e+360:e}function Ze(e){return Math.max(0,Math.min(1,e||0))}function Qe(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}xe(we,je,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Le,formatHex:Le,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ke(this).formatHsl()},formatRgb:Ne,toString:Ne}),xe($e,He,Se(we,{brighter(e){return e=null==e?Ce:Math.pow(Ce,e),new $e(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new $e(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new $e(Ue(this.r),Ue(this.g),Ue(this.b),Ve(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`#${Ge(this.r)}${Ge(this.g)}${Ge(this.b)}${Ge(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:We,toString:We})),xe(Xe,(function(e,t,r,n){return 1===arguments.length?Ke(e):new Xe(e,t,r,null==n?1:n)}),Se(we,{brighter(e){return e=null==e?Ce:Math.pow(Ce,e),new Xe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Xe(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 $e(Qe(e>=240?e-240:e+120,o,n),Qe(e,o,n),Qe(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Xe(Je(this.h),Ze(this.s),Ze(this.l),Ve(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=Ve(this.opacity);return`${1===e?"hsl(":"hsla("}${Je(this.h)}, ${100*Ze(this.s)}%, ${100*Ze(this.l)}%${1===e?")":`, ${e})`}`}}));const et=Math.PI/180,tt=180/Math.PI,rt=4/29,nt=6/29,ot=3*nt*nt;function it(e){if(e instanceof at)return new at(e.l,e.a,e.b,e.opacity);if(e instanceof dt)return pt(e);e instanceof $e||(e=Fe(e));var t,r,n=ct(e.r),o=ct(e.g),i=ct(e.b),a=st((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=st((.4360747*n+.3850649*o+.1430804*i)/.96422),r=st((.0139322*n+.0971045*o+.7141733*i)/.82521)),new at(116*a-16,500*(t-a),200*(a-r),e.opacity)}function at(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function st(e){return e>.008856451679035631?Math.pow(e,1/3):e/ot+rt}function lt(e){return e>nt?e*e*e:ot*(e-rt)}function ut(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ct(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function dt(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function pt(e){if(isNaN(e.h))return new at(e.l,0,0,e.opacity);var t=e.h*et;return new at(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}xe(at,(function(e,t,r,n){return 1===arguments.length?it(e):new at(e,t,r,null==n?1:n)}),Se(we,{brighter(e){return new at(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new at(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 $e(ut(3.1338561*(t=.96422*lt(t))-1.6168667*(e=1*lt(e))-.4906146*(r=.82521*lt(r))),ut(-.9787684*t+1.9161415*e+.033454*r),ut(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),xe(dt,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof dt)return new dt(e.h,e.c,e.l,e.opacity);if(e instanceof at||(e=it(e)),0===e.a&&0===e.b)return new dt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*tt;return new dt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new dt(e,t,r,null==n?1:n)}),Se(we,{brighter(e){return new dt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new dt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return pt(this).rgb()}}));var ft=e=>()=>e;function ht(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):ft(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?ht: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):ft(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=He(e)).r,(t=He(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=ht(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 mt="center",gt="bottom";[{key:"NoDataExist",alignment:mt,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:mt,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:mt,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:mt},{key:"DataRangeIncludingZero",alignment:gt},{key:"LimitedData",alignment:gt},{key:"NegativeOrZeroValues",alignment:gt}].reduce((function(e,t){return e[t.key]=t,e}),{});var bt,vt=["__proto__","constructor"];function yt(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!vt.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 xt(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 St(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 wt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Et)):void 0===t&&(t=Ct);for(var r,n,o,i,a,s=new At(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 At(o[i])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(Pt)}function Ct(e){return e.children}function Et(e){return Array.isArray(e)?e[1]:null}function Rt(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Pt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function At(e){this.data=e,this.depth=this.height=0,this.parent=null}At.prototype=wt.prototype={constructor:At,count:function(){return this.eachAfter(St)},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 wt(this).eachBefore(Rt)},[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)}},bt=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}},gt({exports:{}});const At=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function It(t,r){return e((()=>t),r)}const kt={},Mt=()=>{const{viewState:n}=t(),o=(t=>{const r=e((()=>({current:kt})),[]);return r.current=r.current===kt?t:r.current,r})(new Set),i=void 0!==window.qlikprinting,{promise:a,resolve:s}=e((()=>At()),[]),l=It((e=>{i&&o.current.add(e)}),[o]),u=It(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()=>{i&&await a}),[a,i]),e((()=>({viewState:n,isDownloadedAsPDForImage:i,notifyIsDoneRendering:u,waitForPromise:l})),[u,i,n,l])},Dt={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"},Tt={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",...Dt,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)"},Ot=12,qt=14,Lt=16,Nt=24,jt=3,_t=300,zt=400,Ft=600,Ht=700,$t={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Bt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Wt(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 Vt={exports:{}},Ut={},Gt=x,Yt=Symbol.for("react.element"),Kt=Symbol.for("react.fragment"),Xt=Object.prototype.hasOwnProperty,Jt=Gt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Zt={key:!0,ref:!0,__self:!0,__source:!0};function Qt(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)Xt.call(t,n)&&!Zt.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:Yt,type:e,key:i,ref:a,props:o,_owner:Jt.current}}Ut.Fragment=Kt,Ut.jsx=Qt,Ut.jsxs=Qt,Vt.exports=Ut;var er=Vt.exports;const tr={black:"#000",white:"#fff"},rr="#e57373",nr="#ef5350",or="#f44336",ir="#d32f2f",ar="#c62828",sr="#f3e5f5",lr="#ce93d8",ur="#ba68c8",cr="#ab47bc",dr="#9c27b0",pr="#7b1fa2",fr="#e3f2fd",hr="#90caf9",mr="#42a5f5",gr="#1976d2",br="#1565c0",vr="#4fc3f7",yr="#29b6f6",xr="#03a9f4",Sr="#0288d1",wr="#01579b",Cr="#81c784",Er="#66bb6a",Rr="#4caf50",Pr="#388e3c",Ar="#2e7d32",Ir="#1b5e20",kr="#ffb74d",Mr="#ffa726",Dr="#ff9800",Tr="#f57c00",Or="#e65100",qr={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 Lr(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 Nr=Object.freeze({__proto__:null,default:Lr}),jr="$$material";function _r(){return _r=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},_r.apply(null,arguments)}function zr(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 Fr=function(){return Fr=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},Fr.apply(this,arguments)};function Hr(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 $r=function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var u=i[l];if(!s(u))return!1;var c=e[u],d=t[u];if(!1===(o=r?r.call(n,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0},Br=Bt($r),Wr="-ms-",Vr="-moz-",Ur="-webkit-",Gr="comm",Yr="rule",Kr="decl",Xr="@keyframes",Jr=Math.abs,Zr=String.fromCharCode,Qr=Object.assign;function en(e){return e.trim()}function tn(e,t){return(e=t.exec(e))?e[0]:e}function rn(e,t,r){return e.replace(t,r)}function nn(e,t,r){return e.indexOf(t,r)}function on(e,t){return 0|e.charCodeAt(t)}function an(e,t,r){return e.slice(t,r)}function sn(e){return e.length}function ln(e){return e.length}function un(e,t){return t.push(e),e}function cn(e,t){return e.filter((function(e){return!tn(e,t)}))}var dn=1,pn=1,fn=0,hn=0,mn=0,gn="";function bn(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:dn,column:pn,length:a,return:"",siblings:s}}function vn(e,t){return Qr(bn("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function yn(e){for(;e.root;)e=vn(e.root,{children:[e]});un(e,e.siblings)}function xn(){return mn=hn<fn?on(gn,hn++):0,pn++,10===mn&&(pn=1,dn++),mn}function Sn(){return on(gn,hn)}function wn(){return hn}function Cn(e,t){return an(gn,e,t)}function En(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 Rn(e){return en(Cn(hn-1,In(91===e?e+2:40===e?e+1:e)))}function Pn(e){for(;(mn=Sn())&&mn<33;)xn();return En(e)>2||En(mn)>3?"":" "}function An(e,t){for(;--t&&xn()&&!(mn<48||mn>102||mn>57&&mn<65||mn>70&&mn<97););return Cn(e,wn()+(t<6&&32==Sn()&&32==xn()))}function In(e){for(;xn();)switch(mn){case e:return hn;case 34:case 39:34!==e&&39!==e&&In(mn);break;case 40:41===e&&In(e);break;case 92:xn()}return hn}function kn(e,t){for(;xn()&&e+mn!==57&&(e+mn!==84||47!==Sn()););return"/*"+Cn(t,hn-1)+"*"+Zr(47===e?e:xn())}function Mn(e){for(;!En(Sn());)xn();return Cn(e,hn)}function Dn(e){return function(e){return gn="",e}(Tn("",null,null,null,[""],e=function(e){return dn=pn=1,fn=sn(gn=e),hn=0,[]}(e),0,[0],e))}function Tn(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=xn()){case 40:if(108!=h&&58==on(C,d-1)){-1!=nn(C+=rn(Rn(v),"&","&\f"),"&\f",Jr(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Rn(v);break;case 9:case 10:case 13:case 32:C+=Pn(h);break;case 92:C+=An(wn()-1,7);continue;case 47:switch(Sn()){case 42:case 47:un(qn(kn(xn(),wn()),t,r,l),l);break;default:C+="/"}break;case 123*m:s[u++]=sn(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=rn(C,/\f/g,"")),f>0&&sn(C)-d&&un(f>32?Ln(C+";",n,r,d-1,l):Ln(rn(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(un(w=On(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)Tn(C,t,w,w,x,i,d,s,S);else switch(99===p&&110===on(C,3)?100:p){case 100:case 108:case 109:case 115:Tn(e,w,w,n&&un(On(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S);break;default:Tn(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+sn(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==(mn=hn>0?on(gn,--hn):0,pn--,10===mn&&(pn=1,dn--),mn))continue;switch(C+=Zr(v),v*m){case 38:b=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(sn(C)-1)*b,b=1;break;case 64:45===Sn()&&(C+=Rn(xn())),p=Sn(),c=d=sn(y=C+=Mn(wn())),v++;break;case 45:45===h&&2==sn(C)&&(m=0)}}return i}function On(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=ln(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=an(e,p+1,p=Jr(g=a[m])),x=e;v<h;++v)(x=en(g>0?f[v]+" "+y:rn(y,/&\f/g,f[v])))&&(l[b++]=x);return bn(e,t,r,0===o?Yr:s,l,u,c,d)}function qn(e,t,r,n){return bn(e,t,r,Gr,Zr(mn),an(e,2,-2),0,n)}function Ln(e,t,r,n,o){return bn(e,t,r,Kr,an(e,0,n),an(e,n+1,-1),n,o)}function Nn(e,t,r){switch(function(e,t){return 45^on(e,0)?(((t<<2^on(e,0))<<2^on(e,1))<<2^on(e,2))<<2^on(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 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ur+e+e;case 4789:return Vr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ur+e+Vr+e+Wr+e+e;case 5936:switch(on(e,t+11)){case 114:return Ur+e+Wr+rn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ur+e+Wr+rn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ur+e+Wr+rn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Ur+e+Wr+e+e;case 6165:return Ur+e+Wr+"flex-"+e+e;case 5187:return Ur+e+rn(e,/(\w+).+(:[^]+)/,Ur+"box-$1$2"+Wr+"flex-$1$2")+e;case 5443:return Ur+e+Wr+"flex-item-"+rn(e,/flex-|-self/g,"")+(tn(e,/flex-|baseline/)?"":Wr+"grid-row-"+rn(e,/flex-|-self/g,""))+e;case 4675:return Ur+e+Wr+"flex-line-pack"+rn(e,/align-content|flex-|-self/g,"")+e;case 5548:return Ur+e+Wr+rn(e,"shrink","negative")+e;case 5292:return Ur+e+Wr+rn(e,"basis","preferred-size")+e;case 6060:return Ur+"box-"+rn(e,"-grow","")+Ur+e+Wr+rn(e,"grow","positive")+e;case 4554:return Ur+rn(e,/([^-])(transform)/g,"$1"+Ur+"$2")+e;case 6187:return rn(rn(rn(e,/(zoom-|grab)/,Ur+"$1"),/(image-set)/,Ur+"$1"),e,"")+e;case 5495:case 3959:return rn(e,/(image-set\([^]*)/,Ur+"$1$`$1");case 4968:return rn(rn(e,/(.+:)(flex-)?(.*)/,Ur+"box-pack:$3"+Wr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ur+e+e;case 4200:if(!tn(e,/flex-|baseline/))return Wr+"grid-column-align"+an(e,t)+e;break;case 2592:case 3360:return Wr+rn(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,tn(e.props,/grid-\w+-end/)}))?~nn(e+(r=r[t].value),"span",0)?e:Wr+rn(e,"-start","")+e+Wr+"grid-row-span:"+(~nn(r,"span",0)?tn(r,/\d+/):+tn(r,/\d+/)-+tn(e,/\d+/))+";":Wr+rn(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return tn(e.props,/grid-\w+-start/)}))?e:Wr+rn(rn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return rn(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(sn(e)-1-t>6)switch(on(e,t+1)){case 109:if(45!==on(e,t+4))break;case 102:return rn(e,/(.+:)(.+)-([^]+)/,"$1"+Ur+"$2-$3$1"+Vr+(108==on(e,t+3)?"$3":"$2-$3"))+e;case 115:return~nn(e,"stretch",0)?Nn(rn(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return rn(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,s){return Wr+r+":"+n+s+(o?Wr+r+"-span:"+(i?a:+a-+n)+s:"")+e}));case 4949:if(121===on(e,t+6))return rn(e,":",":"+Ur)+e;break;case 6444:switch(on(e,45===on(e,14)?18:11)){case 120:return rn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Ur+(45===on(e,14)?"inline-":"")+"box$3$1"+Ur+"$2$3$1"+Wr+"$2box$3")+e;case 100:return rn(e,":",":"+Wr)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return rn(e,"scroll-","scroll-snap-")+e}return e}function jn(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function _n(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Kr:return e.return=e.return||e.value;case Gr:return"";case Xr:return e.return=e.value+"{"+jn(e.children,n)+"}";case Yr:if(!sn(e.value=e.props.join(",")))return""}return sn(r=jn(e.children,n))?e.return=e.value+"{"+r+"}":""}function zn(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Kr:return void(e.return=Nn(e.value,e.length,r));case Xr:return jn([vn(e,{value:rn(e.value,"@","@"+Ur)})],n);case Yr:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(tn(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":yn(vn(e,{props:[rn(t,/:(read-\w+)/,":-moz-$1")]})),yn(vn(e,{props:[t]})),Qr(e,{props:cn(r,n)});break;case"::placeholder":yn(vn(e,{props:[rn(t,/:(plac\w+)/,":"+Ur+"input-$1")]})),yn(vn(e,{props:[rn(t,/:(plac\w+)/,":-moz-$1")]})),yn(vn(e,{props:[rn(t,/:(plac\w+)/,Wr+"input-$1")]})),yn(vn(e,{props:[t]})),Qr(e,{props:cn(r,n)})}return""}))}}var Fn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Hn="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",$n="active",Bn="data-styled-version",Wn="6.1.18",Vn="/*!sc*/\n",Un="undefined"!=typeof window&&"undefined"!=typeof document,Gn=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)),Yn={},Kn=Object.freeze([]),Xn=Object.freeze({});function Jn(e,t,r){return void 0===r&&(r=Xn),e.theme!==r.theme&&e.theme||t||r.theme}var Zn=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Qn=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,eo=/(^-|-$)/g;function to(e){return e.replace(Qn,"-").replace(eo,"")}var ro=/(a)(d)/gi,no=function(e){return String.fromCharCode(e+(e>25?39:97))};function oo(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=no(t%52)+r;return(no(t%52)+r).replace(ro,"$1-$2")}var io,ao=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},so=function(e){return ao(5381,e)};function lo(e){return oo(so(e)>>>0)}function uo(e){return"string"==typeof e&&!0}var co="function"==typeof Symbol&&Symbol.for,po=co?Symbol.for("react.memo"):60115,fo=co?Symbol.for("react.forward_ref"):60112,ho={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},mo={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},go={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},bo=((io={})[fo]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},io[po]=go,io);function vo(e){return("type"in(t=e)&&t.type.$$typeof)===po?go:"$$typeof"in e?bo[e.$$typeof]:ho;var t}var yo=Object.defineProperty,xo=Object.getOwnPropertyNames,So=Object.getOwnPropertySymbols,wo=Object.getOwnPropertyDescriptor,Co=Object.getPrototypeOf,Eo=Object.prototype;function Ro(e,t,r){if("string"!=typeof t){if(Eo){var n=Co(t);n&&n!==Eo&&Ro(e,n,r)}var o=xo(t);So&&(o=o.concat(So(t)));for(var i=vo(e),a=vo(t),s=0;s<o.length;++s){var l=o[s];if(!(l in mo||r&&r[l]||a&&l in a||i&&l in i)){var u=wo(t,l);try{yo(e,l,u)}catch(e){}}}}return e}function Po(e){return"function"==typeof e}function Ao(e){return"object"==typeof e&&"styledComponentId"in e}function Io(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ko(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function Mo(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Do(e,t,r){if(void 0===r&&(r=!1),!r&&!Mo(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Do(e[n],t[n]);else if(Mo(t))for(var n in t)e[n]=Do(e[n],t[n]);return e}function To(e,t){Object.defineProperty(e,"toString",{value:t})}function Oo(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 qo=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw Oo(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=(i=0,t.length);i<s;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(Vn);return t},e}(),Lo=new Map,No=new Map,jo=1,_o=function(e){if(Lo.has(e))return Lo.get(e);for(;No.has(jo);)jo++;var t=jo++;return Lo.set(e,t),No.set(t,e),t},zo=function(e,t){jo=t+1,Lo.set(e,t),No.set(t,e)},Fo="style[".concat(Hn,"][").concat(Bn,'="').concat(Wn,'"]'),Ho=new RegExp("^".concat(Hn,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),$o=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)},Bo=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Vn),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var l=s.match(Ho);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(zo(c,u),$o(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},Wo=function(e){for(var t=document.querySelectorAll(Fo),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Hn)!==$n&&(Bo(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Vo=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Hn,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Hn,$n),n.setAttribute(Bn,Wn);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Uo=function(){function e(e){this.element=Vo(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}throw Oo(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}(),Go=function(){function e(e){this.element=Vo(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}(),Yo=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Ko=Un,Xo={isServer:!Un,useCSSOMInjection:!Gn},Jo=function(){function e(e,t,r){void 0===e&&(e=Xn),void 0===t&&(t={});var n=this;this.options=Fr(Fr({},Xo),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Un&&Ko&&(Ko=!1,Wo(this)),To(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return No.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(r);if(void 0===i||!i.size||0===a.length)return"continue";var s="".concat(Hn,".g").concat(r,'[id="').concat(o,'"]'),l="";void 0!==i&&i.forEach((function(e){e.length>0&&(l+="".concat(e,","))})),n+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(Vn)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return _o(e)},e.prototype.rehydrate=function(){!this.server&&Un&&Wo(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(Fr(Fr({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new Yo(r):t?new Uo(r):new Go(r)}(this.options),new qo(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(_o(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(_o(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(_o(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Zo=/&/g,Qo=/^\s*\/\/.*$/gm;function ei(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=ei(e.children,t)),e}))}function ti(e){var t,r,n,o=void 0===e?Xn:e,i=o.options,a=void 0===i?Xn:i,s=o.plugins,l=void 0===s?Kn: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("&")&&(e.props[0]=e.props[0].replace(Zo,r).replace(n,u))})),a.prefix&&c.push(zn),c.push(_n);var d=function(e,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var l=e.replace(Qo,""),u=Dn(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(u=ei(u,a.namespace));var d,p=[];return jn(u,function(e){var t=ln(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=l.length?l.reduce((function(e,t){return t.name||Oo(15),ao(e,t.name)}),5381).toString():"",d}var ri=new Jo,ni=ti(),oi=x.createContext({shouldForwardProp:void 0,styleSheet:ri,stylis:ni});oi.Consumer;var ii=x.createContext(void 0);function ai(){return S(oi)}function si(e){var t=w(e.stylisPlugins),r=t[0],n=t[1],o=ai().styleSheet,i=C((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,o]),a=C((function(){return ti({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})}),[e.enableVendorPrefixes,e.namespace,r]);E((function(){Br(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]);var s=C((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}}),[e.shouldForwardProp,i,a]);return x.createElement(oi.Provider,{value:s},x.createElement(ii.Provider,{value:a},e.children))}var li=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=ni);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,To(this,(function(){throw Oo(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=ni),this.name+e.hash},e}(),ui=function(e){return e>="A"&&e<="Z"};function ci(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;ui(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var di=function(e){return null==e||!1===e||""===e},pi=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!di(i)&&(Array.isArray(i)&&i.isCss||Po(i)?n.push("".concat(ci(o),":"),i,";"):Mo(i)?n.push.apply(n,Hr(Hr(["".concat(o," {")],pi(i),!1),["}"],!1)):n.push("".concat(ci(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in Fn||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function fi(e,t,r,n){return di(e)?[]:Ao(e)?[".".concat(e.styledComponentId)]:Po(e)?!Po(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:fi(e(t),t,r,n):e instanceof li?r?(e.inject(r,n),[e.getName(n)]):[e]:Mo(e)?pi(e):Array.isArray(e)?Array.prototype.concat.apply(Kn,e.map((function(e){return fi(e,t,r,n)}))):[e.toString()];var o}function hi(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Po(r)&&!Ao(r))return!1}return!0}var mi=so(Wn),gi=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&hi(e),this.componentId=t,this.baseHash=ao(mi,t),this.baseStyle=r,Jo.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=Io(n,this.staticRulesId);else{var o=ko(fi(this.rules,e,t,r)),i=oo(ao(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=Io(n,i),this.staticRulesId=i}else{for(var s=ao(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=ko(fi(c,e,t,r));s=ao(s,d+u),l+=d}}if(l){var p=oo(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(l,".".concat(p),void 0,this.componentId)),n=Io(n,p)}}return n},e}(),bi=x.createContext(void 0);bi.Consumer;var vi={};function yi(e,t,r){var n=Ao(e),o=e,i=!uo(e),a=t.attrs,s=void 0===a?Kn:a,l=t.componentId,u=void 0===l?function(e,t){var r="string"!=typeof e?"sc":to(e);vi[r]=(vi[r]||0)+1;var n="".concat(r,"-").concat(lo(Wn+r+vi[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):l,c=t.displayName,d=void 0===c?function(e){return uo(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(to(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 gi(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(bi),c=ai(),d=e.shouldForwardProp||c.shouldForwardProp,p=Jn(t,u,i)||Xn,f=function(e,t,r){for(var n,o=Fr(Fr({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=Po(n=e[i])?n(o):n;for(var s in a)o[s]="className"===s?Io(o[s],a[s]):"style"===s?Fr(Fr({},o[s]),a[s]):a[s]}return t.className&&(o.className=Io(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=ai();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=Io(a,s);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),m[uo(h)&&!Zn.has(h)?"class":"className"]=v,r&&(m.ref=r),R(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?Io(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++)Do(e,o[n],!0);return e}({},o.defaultProps,e):e}}),To(y,(function(){return".".concat(y.styledComponentId)})),i&&Ro(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function xi(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 Si=function(e){return Object.assign(e,{isCss:!0})};function wi(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Po(e)||Mo(e))return Si(fi(xi(Kn,Hr([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?fi(n):Si(fi(xi(n,t)))}function Ci(e,t,r){if(void 0===r&&(r=Xn),!t)throw Oo(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,wi.apply(void 0,Hr([n],o,!1)))};return n.attrs=function(n){return Ci(e,t,Fr(Fr({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return Ci(e,t,Fr(Fr({},r),n))},n}var Ei=function(e){return Ci(yi,e)},Ri=Ei;Zn.forEach((function(e){Ri[e]=Ei(e)}));var Pi=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=hi(e),Jo.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(ko(fi(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&&Jo.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Ai(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=ko(wi.apply(void 0,Hr([e],t,!1))),o=lo(n);return new li(o,n)}var Ii={exports:{}};function ki(){}function Mi(){}Mi.resetWarningCache=ki;Ii.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:Mi,resetWarningCache:ki};return r.PropTypes=r,r}();var Di=Bt(Ii.exports);function Ti(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}Ti.propTypes={children:Di.node,injectFirst:Di.bool};const Oi=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=wi.apply(void 0,Hr([e],t,!1)),o="sc-global-".concat(lo(JSON.stringify(n))),i=new Pi(n,o),a=function(e){var t=ai(),r=x.useContext(bi),n=x.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&s(n,e,t.styleSheet,r,t.stylis),x.useLayoutEffect((function(){if(!t.styleSheet.server)return s(n,e,t.styleSheet,r,t.stylis),function(){return i.removeStyles(n,t.styleSheet)}}),[n,e,t.styleSheet,r,t.stylis]),null};function s(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,Yn,r,o);else{var s=Fr(Fr({},t),{theme:Jn(t,n,a.defaultProps)});i.renderStyles(e,s,r,o)}}return x.memo(a)}((e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n}));
|
|
9
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,s,l,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),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}},bt({exports:{}});const It=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function kt(t,r){return e((()=>t),r)}const Mt={},Dt=()=>{const{viewState:n}=t(),o=(t=>{const r=e((()=>({current:Mt})),[]);return r.current=r.current===Mt?t:r.current,r})(new Set),i=void 0!==window.qlikprinting,{promise:a,resolve:s}=e((()=>It()),[]),l=kt((e=>{i&&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()=>{i&&await a}),[a,i]),e((()=>({viewState:n,isDownloadedAsPDForImage:i,notifyIsDoneRendering:u,waitForPromise:l})),[u,i,n,l])},Tt={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"},qt={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",...Tt,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)"},Ot=12,Lt=14,Nt=16,jt=24,_t=3,zt=300,Ft=400,Ht=600,$t=700,Bt={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};function Wt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Vt(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 Ut={exports:{}},Gt={},Yt=x,Kt=Symbol.for("react.element"),Xt=Symbol.for("react.fragment"),Jt=Object.prototype.hasOwnProperty,Zt=Yt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Qt={key:!0,ref:!0,__self:!0,__source:!0};function er(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)Jt.call(t,n)&&!Qt.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:Kt,type:e,key:i,ref:a,props:o,_owner:Zt.current}}Gt.Fragment=Xt,Gt.jsx=er,Gt.jsxs=er,Ut.exports=Gt;var tr=Ut.exports;const rr={black:"#000",white:"#fff"},nr="#e57373",or="#ef5350",ir="#f44336",ar="#d32f2f",sr="#c62828",lr="#f3e5f5",ur="#ce93d8",cr="#ba68c8",dr="#ab47bc",pr="#9c27b0",fr="#7b1fa2",hr="#e3f2fd",mr="#90caf9",gr="#42a5f5",br="#1976d2",vr="#1565c0",yr="#4fc3f7",xr="#29b6f6",Sr="#03a9f4",wr="#0288d1",Cr="#01579b",Er="#81c784",Rr="#66bb6a",Pr="#4caf50",Ar="#388e3c",Ir="#2e7d32",kr="#1b5e20",Mr="#ffb74d",Dr="#ffa726",Tr="#ff9800",qr="#f57c00",Or="#e65100",Lr={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 Nr(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 jr=Object.freeze({__proto__:null,default:Nr}),_r="$$material";function zr(){return zr=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},zr.apply(null,arguments)}function Fr(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 Hr=function(){return Hr=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},Hr.apply(this,arguments)};function $r(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=function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var u=i[l];if(!s(u))return!1;var c=e[u],d=t[u];if(!1===(o=r?r.call(n,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0},Wr=Wt(Br),Vr="-ms-",Ur="-moz-",Gr="-webkit-",Yr="comm",Kr="rule",Xr="decl",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<hn?an(bn,mn++):0,fn++,10===gn&&(fn=1,pn++),gn}function wn(){return an(bn,mn)}function Cn(){return mn}function En(e,t){return sn(bn,e,t)}function Rn(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 Pn(e){return tn(En(mn-1,kn(91===e?e+2:40===e?e+1:e)))}function An(e){for(;(gn=wn())&&gn<33;)Sn();return Rn(e)>2||Rn(gn)>3?"":" "}function In(e,t){for(;--t&&Sn()&&!(gn<48||gn>102||gn>57&&gn<65||gn>70&&gn<97););return En(e,Cn()+(t<6&&32==wn()&&32==Sn()))}function kn(e){for(;Sn();)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:Sn()}return mn}function Mn(e,t){for(;Sn()&&e+gn!==57&&(e+gn!==84||47!==wn()););return"/*"+En(t,mn-1)+"*"+Qr(47===e?e:Sn())}function Dn(e){for(;!Rn(wn());)Sn();return En(e,mn)}function Tn(e){return function(e){return bn="",e}(qn("",null,null,null,[""],e=function(e){return pn=fn=1,hn=ln(bn=e),mn=0,[]}(e),0,[0],e))}function qn(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=Sn()){case 40:if(108!=h&&58==an(C,d-1)){-1!=on(C+=nn(Pn(v),"&","&\f"),"&\f",Zr(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Pn(v);break;case 9:case 10:case 13:case 32:C+=An(h);break;case 92:C+=In(Cn()-1,7);continue;case 47:switch(wn()){case 42:case 47:cn(Ln(Mn(Sn(),Cn()),t,r,l),l);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&&cn(f>32?Nn(C+";",n,r,d-1,l):Nn(nn(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(cn(w=On(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)qn(C,t,w,w,x,i,d,s,S);else switch(99===p&&110===an(C,3)?100:p){case 100:case 108:case 109:case 115:qn(e,w,w,n&&cn(On(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S);break;default:qn(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==(gn=mn>0?an(bn,--mn):0,fn--,10===gn&&(fn=1,pn--),gn))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===wn()&&(C+=Pn(Sn())),p=wn(),c=d=ln(y=C+=Dn(Cn())),v++;break;case 45:45===h&&2==ln(C)&&(m=0)}}return i}function On(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?Kr:s,l,u,c,d)}function Ln(e,t,r,n){return vn(e,t,r,Yr,Qr(gn),sn(e,2,-2),0,n)}function Nn(e,t,r,n,o){return vn(e,t,r,Xr,sn(e,0,n),sn(e,n+1,-1),n,o)}function jn(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 Gr+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Gr+e+e;case 4789:return Ur+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Gr+e+Ur+e+Vr+e+e;case 5936:switch(an(e,t+11)){case 114:return Gr+e+Vr+nn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Gr+e+Vr+nn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Gr+e+Vr+nn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Gr+e+Vr+e+e;case 6165:return Gr+e+Vr+"flex-"+e+e;case 5187:return Gr+e+nn(e,/(\w+).+(:[^]+)/,Gr+"box-$1$2"+Vr+"flex-$1$2")+e;case 5443:return Gr+e+Vr+"flex-item-"+nn(e,/flex-|-self/g,"")+(rn(e,/flex-|baseline/)?"":Vr+"grid-row-"+nn(e,/flex-|-self/g,""))+e;case 4675:return Gr+e+Vr+"flex-line-pack"+nn(e,/align-content|flex-|-self/g,"")+e;case 5548:return Gr+e+Vr+nn(e,"shrink","negative")+e;case 5292:return Gr+e+Vr+nn(e,"basis","preferred-size")+e;case 6060:return Gr+"box-"+nn(e,"-grow","")+Gr+e+Vr+nn(e,"grow","positive")+e;case 4554:return Gr+nn(e,/([^-])(transform)/g,"$1"+Gr+"$2")+e;case 6187:return nn(nn(nn(e,/(zoom-|grab)/,Gr+"$1"),/(image-set)/,Gr+"$1"),e,"")+e;case 5495:case 3959:return nn(e,/(image-set\([^]*)/,Gr+"$1$`$1");case 4968:return nn(nn(e,/(.+:)(flex-)?(.*)/,Gr+"box-pack:$3"+Vr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Gr+e+e;case 4200:if(!rn(e,/flex-|baseline/))return Vr+"grid-column-align"+sn(e,t)+e;break;case 2592:case 3360:return Vr+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:Vr+nn(e,"-start","")+e+Vr+"grid-row-span:"+(~on(r,"span",0)?rn(r,/\d+/):+rn(r,/\d+/)-+rn(e,/\d+/))+";":Vr+nn(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return rn(e.props,/grid-\w+-start/)}))?e:Vr+nn(nn(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return nn(e,/(.+)-inline(.+)/,Gr+"$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"+Gr+"$2-$3$1"+Ur+(108==an(e,t+3)?"$3":"$2-$3"))+e;case 115:return~on(e,"stretch",0)?jn(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 Vr+r+":"+n+s+(o?Vr+r+"-span:"+(i?a:+a-+n)+s:"")+e}));case 4949:if(121===an(e,t+6))return nn(e,":",":"+Gr)+e;break;case 6444:switch(an(e,45===an(e,14)?18:11)){case 120:return nn(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Gr+(45===an(e,14)?"inline-":"")+"box$3$1"+Gr+"$2$3$1"+Vr+"$2box$3")+e;case 100:return nn(e,":",":"+Vr)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return nn(e,"scroll-","scroll-snap-")+e}return e}function _n(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function zn(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Xr:return e.return=e.return||e.value;case Yr:return"";case Jr:return e.return=e.value+"{"+_n(e.children,n)+"}";case Kr:if(!ln(e.value=e.props.join(",")))return""}return ln(r=_n(e.children,n))?e.return=e.value+"{"+r+"}":""}function Fn(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Xr:return void(e.return=jn(e.value,e.length,r));case Jr:return _n([yn(e,{value:nn(e.value,"@","@"+Gr)})],n);case Kr: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+)/,":"+Gr+"input-$1")]})),xn(yn(e,{props:[nn(t,/:(plac\w+)/,":-moz-$1")]})),xn(yn(e,{props:[nn(t,/:(plac\w+)/,Vr+"input-$1")]})),xn(yn(e,{props:[t]})),en(e,{props:dn(r,n)})}return""}))}}var Hn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},$n="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Bn="active",Wn="data-styled-version",Vn="6.1.18",Un="/*!sc*/\n",Gn="undefined"!=typeof window&&"undefined"!=typeof document,Yn=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)),Kn={},Xn=Object.freeze([]),Jn=Object.freeze({});function Zn(e,t,r){return void 0===r&&(r=Jn),e.theme!==r.theme&&e.theme||t||r.theme}var Qn=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),eo=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,to=/(^-|-$)/g;function ro(e){return e.replace(eo,"-").replace(to,"")}var no=/(a)(d)/gi,oo=function(e){return String.fromCharCode(e+(e>25?39:97))};function io(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=oo(t%52)+r;return(oo(t%52)+r).replace(no,"$1-$2")}var ao,so=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},lo=function(e){return so(5381,e)};function uo(e){return io(lo(e)>>>0)}function co(e){return"string"==typeof e&&!0}var po="function"==typeof Symbol&&Symbol.for,fo=po?Symbol.for("react.memo"):60115,ho=po?Symbol.for("react.forward_ref"):60112,mo={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},go={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},bo={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},vo=((ao={})[ho]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ao[fo]=bo,ao);function yo(e){return("type"in(t=e)&&t.type.$$typeof)===fo?bo:"$$typeof"in e?vo[e.$$typeof]:mo;var t}var xo=Object.defineProperty,So=Object.getOwnPropertyNames,wo=Object.getOwnPropertySymbols,Co=Object.getOwnPropertyDescriptor,Eo=Object.getPrototypeOf,Ro=Object.prototype;function Po(e,t,r){if("string"!=typeof t){if(Ro){var n=Eo(t);n&&n!==Ro&&Po(e,n,r)}var o=So(t);wo&&(o=o.concat(wo(t)));for(var i=yo(e),a=yo(t),s=0;s<o.length;++s){var l=o[s];if(!(l in go||r&&r[l]||a&&l in a||i&&l in i)){var u=Co(t,l);try{xo(e,l,u)}catch(e){}}}}return e}function Ao(e){return"function"==typeof e}function Io(e){return"object"==typeof e&&"styledComponentId"in e}function ko(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Mo(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=e[n];return r}function Do(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function To(e,t,r){if(void 0===r&&(r=!1),!r&&!Do(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=To(e[n],t[n]);else if(Do(t))for(var n in t)e[n]=To(e[n],t[n]);return e}function qo(e,t){Object.defineProperty(e,"toString",{value:t})}function Oo(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 Lo=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw Oo(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),s=(i=0,t.length);i<s;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(Un);return t},e}(),No=new Map,jo=new Map,_o=1,zo=function(e){if(No.has(e))return No.get(e);for(;jo.has(_o);)_o++;var t=_o++;return No.set(e,t),jo.set(t,e),t},Fo=function(e,t){_o=t+1,No.set(e,t),jo.set(t,e)},Ho="style[".concat($n,"][").concat(Wn,'="').concat(Vn,'"]'),$o=new RegExp("^".concat($n,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Bo=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)},Wo=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Un),o=[],i=0,a=n.length;i<a;i++){var s=n[i].trim();if(s){var l=s.match($o);if(l){var u=0|parseInt(l[1],10),c=l[2];0!==u&&(Fo(c,u),Bo(e,c,l[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(s)}}},Vo=function(e){for(var t=document.querySelectorAll(Ho),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute($n)!==Bn&&(Wo(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Uo=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat($n,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute($n,Bn),n.setAttribute(Wn,Vn);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Go=function(){function e(e){this.element=Uo(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}throw Oo(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}(),Yo=function(){function e(e){this.element=Uo(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}(),Ko=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Xo=Gn,Jo={isServer:!Gn,useCSSOMInjection:!Yn},Zo=function(){function e(e,t,r){void 0===e&&(e=Jn),void 0===t&&(t={});var n=this;this.options=Hr(Hr({},Jo),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Gn&&Xo&&(Xo=!1,Vo(this)),qo(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return jo.get(e)}(r);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(r);if(void 0===i||!i.size||0===a.length)return"continue";var s="".concat($n,".g").concat(r,'[id="').concat(o,'"]'),l="";void 0!==i&&i.forEach((function(e){e.length>0&&(l+="".concat(e,","))})),n+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(Un)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return zo(e)},e.prototype.rehydrate=function(){!this.server&&Gn&&Vo(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(Hr(Hr({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new Ko(r):t?new Go(r):new Yo(r)}(this.options),new Lo(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(zo(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(zo(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(zo(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Qo=/&/g,ei=/^\s*\/\/.*$/gm;function ti(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=ti(e.children,t)),e}))}function ri(e){var t,r,n,o=void 0===e?Jn:e,i=o.options,a=void 0===i?Jn:i,s=o.plugins,l=void 0===s?Xn: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===Kr&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Qo,r).replace(n,u))})),a.prefix&&c.push(Fn),c.push(zn);var d=function(e,o,i,s){void 0===o&&(o=""),void 0===i&&(i=""),void 0===s&&(s="&"),t=s,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var l=e.replace(ei,""),u=Tn(i||o?"".concat(i," ").concat(o," { ").concat(l," }"):l);a.namespace&&(u=ti(u,a.namespace));var d,p=[];return _n(u,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)})))),p};return d.hash=l.length?l.reduce((function(e,t){return t.name||Oo(15),so(e,t.name)}),5381).toString():"",d}var ni=new Zo,oi=ri(),ii=x.createContext({shouldForwardProp:void 0,styleSheet:ni,stylis:oi});ii.Consumer;var ai=x.createContext(void 0);function si(){return S(ii)}function li(e){var t=w(e.stylisPlugins),r=t[0],n=t[1],o=si().styleSheet,i=C((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,o]),a=C((function(){return ri({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})}),[e.enableVendorPrefixes,e.namespace,r]);E((function(){Wr(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]);var s=C((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}}),[e.shouldForwardProp,i,a]);return x.createElement(ii.Provider,{value:s},x.createElement(ai.Provider,{value:a},e.children))}var ui=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=oi);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 Oo(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=oi),this.name+e.hash},e}(),ci=function(e){return e>="A"&&e<="Z"};function di(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;ci(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var pi=function(e){return null==e||!1===e||""===e},fi=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!pi(i)&&(Array.isArray(i)&&i.isCss||Ao(i)?n.push("".concat(di(o),":"),i,";"):Do(i)?n.push.apply(n,$r($r(["".concat(o," {")],fi(i),!1),["}"],!1)):n.push("".concat(di(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in Hn||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function hi(e,t,r,n){return pi(e)?[]:Io(e)?[".".concat(e.styledComponentId)]:Ao(e)?!Ao(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:hi(e(t),t,r,n):e instanceof ui?r?(e.inject(r,n),[e.getName(n)]):[e]:Do(e)?fi(e):Array.isArray(e)?Array.prototype.concat.apply(Xn,e.map((function(e){return hi(e,t,r,n)}))):[e.toString()];var o}function mi(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ao(r)&&!Io(r))return!1}return!0}var gi=lo(Vn),bi=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&mi(e),this.componentId=t,this.baseHash=so(gi,t),this.baseStyle=r,Zo.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=ko(n,this.staticRulesId);else{var o=Mo(hi(this.rules,e,t,r)),i=io(so(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=ko(n,i),this.staticRulesId=i}else{for(var s=so(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=Mo(hi(c,e,t,r));s=so(s,d+u),l+=d}}if(l){var p=io(s>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(l,".".concat(p),void 0,this.componentId)),n=ko(n,p)}}return n},e}(),vi=x.createContext(void 0);vi.Consumer;var yi={};function xi(e,t,r){var n=Io(e),o=e,i=!co(e),a=t.attrs,s=void 0===a?Xn:a,l=t.componentId,u=void 0===l?function(e,t){var r="string"!=typeof e?"sc":ro(e);yi[r]=(yi[r]||0)+1;var n="".concat(r,"-").concat(uo(Vn+r+yi[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):l,c=t.displayName,d=void 0===c?function(e){return co(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(ro(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 bi(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(vi),c=si(),d=e.shouldForwardProp||c.shouldForwardProp,p=Zn(t,u,i)||Jn,f=function(e,t,r){for(var n,o=Hr(Hr({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=Ao(n=e[i])?n(o):n;for(var s in a)o[s]="className"===s?ko(o[s],a[s]):"style"===s?Hr(Hr({},o[s]),a[s]):a[s]}return t.className&&(o.className=ko(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=si();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=ko(a,s);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),m[co(h)&&!Qn.has(h)?"class":"className"]=v,r&&(m.ref=r),R(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?ko(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++)To(e,o[n],!0);return e}({},o.defaultProps,e):e}}),qo(y,(function(){return".".concat(y.styledComponentId)})),i&&Po(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function Si(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 wi=function(e){return Object.assign(e,{isCss:!0})};function Ci(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Ao(e)||Do(e))return wi(hi(Si(Xn,$r([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?hi(n):wi(hi(Si(n,t)))}function Ei(e,t,r){if(void 0===r&&(r=Jn),!t)throw Oo(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,Ci.apply(void 0,$r([n],o,!1)))};return n.attrs=function(n){return Ei(e,t,Hr(Hr({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return Ei(e,t,Hr(Hr({},r),n))},n}var Ri=function(e){return Ei(xi,e)},Pi=Ri;Qn.forEach((function(e){Pi[e]=Ri(e)}));var Ai=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=mi(e),Zo.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(Mo(hi(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&&Zo.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Ii(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Mo(Ci.apply(void 0,$r([e],t,!1))),o=uo(n);return new ui(o,n)}var ki={exports:{}};function Mi(){}function Di(){}Di.resetWarningCache=Mi;ki.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:Di,resetWarningCache:Mi};return r.PropTypes=r,r}();var Ti=Wt(ki.exports);function qi(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}qi.propTypes={children:Ti.node,injectFirst:Ti.bool};const Oi=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Ci.apply(void 0,$r([e],t,!1)),o="sc-global-".concat(uo(JSON.stringify(n))),i=new Ai(n,o),a=function(e){var t=si(),r=x.useContext(vi),n=x.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&s(n,e,t.styleSheet,r,t.stylis),x.useLayoutEffect((function(){if(!t.styleSheet.server)return s(n,e,t.styleSheet,r,t.stylis),function(){return i.removeStyles(n,t.styleSheet)}}),[n,e,t.styleSheet,r,t.stylis]),null};function s(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,Kn,r,o);else{var s=Hr(Hr({},t),{theme:Zn(t,n,a.defaultProps)});i.renderStyles(e,s,r,o)}}return x.memo(a)}((e=>{const{styles:t,defaultTheme:r={}}=e;return"function"==typeof t?t(null==(n=e.theme)||0===Object.keys(n).length?r:e.theme):t;var n}));
|
|
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 qi(e,t){let r;return r=t?Ri(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Ri(e),r}function Li(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function Ni(e){return e}Oi.propTypes={defaultTheme:Di.object,styles:Di.oneOfType([Di.array,Di.string,Di.object,Di.func])};var ji=Object.freeze({__proto__:null,GlobalStyles:Oi,StyledEngineProvider:Ti,ThemeContext:bi,css:wi,default:qi,internal_mutateStyles:Li,internal_processStyles:function(e,t){return Li(e,t)},internal_serializeStyles:Ni,keyframes:Ai});function _i(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 zi(e){if(y.isValidElement(e)||!_i(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=zi(e[r])})),t}function Fi(e,t,r={clone:!0}){const n=r.clone?_r({},e):e;return _i(e)&&_i(t)&&Object.keys(t).forEach((o=>{y.isValidElement(t[o])?n[o]=t[o]:_i(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&_i(e[o])?n[o]=Fi(e[o],t[o],r):r.clone?n[o]=_i(t[o])?zi(t[o]):t[o]:n[o]=t[o]})),n}var Hi=Object.freeze({__proto__:null,default:Fi,isPlainObject:_i});const $i=["values","unit","step"];function Bi(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=zr(e,$i),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)=>_r({},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 _r({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 Wi={borderRadius:4};function Vi(e,t){return t?Fi(e,t,{clone:!1}):e}const Ui={xs:0,sm:600,md:900,lg:1200,xl:1536},Gi={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ui[e]}px)`};function Yi(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Gi;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Gi;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Ui).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Ki(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function Xi(e){if("string"!=typeof e)throw new Error(Lr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Ji=Object.freeze({__proto__:null,default:Xi});function Zi(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 Qi(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Zi(e,r)||n,t&&(o=t(o,n,e)),o}function ea(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=Zi(e.theme,n)||{};return Yi(e,i,(e=>{let n=Qi(a,o,e);return e===n&&"string"==typeof e&&(n=Qi(a,o,`${t}${"default"===e?"":Xi(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const ta={m:"margin",p:"padding"},ra={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},na={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},oa=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!na[e])return[e];e=na[e]}const[t,r]=e.split(""),n=ta[t],o=ra[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),ia=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],aa=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function sa(e,t,r,n){var o;const i=null!=(o=Zi(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 la(e){return sa(e,"spacing",8)}function ua(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 ca(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=ua(t,r),e)),{})}(oa(r),n);return Yi(e,e[r],o)}function da(e,t){const r=la(e.theme);return Object.keys(e).map((n=>ca(e,t,n,r))).reduce(Vi,{})}function pa(e){return da(e,ia)}function fa(e){return da(e,aa)}function ha(...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]?Vi(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function ma(e){return"number"!=typeof e?e:`${e}px solid`}function ga(e,t){return ea({prop:e,themeKey:"borders",transform:t})}pa.propTypes={},pa.filterProps=ia,fa.propTypes={},fa.filterProps=aa;const ba=ga("border",ma),va=ga("borderTop",ma),ya=ga("borderRight",ma),xa=ga("borderBottom",ma),Sa=ga("borderLeft",ma),wa=ga("borderColor"),Ca=ga("borderTopColor"),Ea=ga("borderRightColor"),Ra=ga("borderBottomColor"),Pa=ga("borderLeftColor"),Aa=ga("outline",ma),Ia=ga("outlineColor"),ka=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=sa(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:ua(t,e)});return Yi(e,e.borderRadius,r)}return null};ka.propTypes={},ka.filterProps=["borderRadius"],ha(ba,va,ya,xa,Sa,wa,Ca,Ea,Ra,Pa,ka,Aa,Ia);const Ma=e=>{if(void 0!==e.gap&&null!==e.gap){const t=sa(e.theme,"spacing",8),r=e=>({gap:ua(t,e)});return Yi(e,e.gap,r)}return null};Ma.propTypes={},Ma.filterProps=["gap"];const Da=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=sa(e.theme,"spacing",8),r=e=>({columnGap:ua(t,e)});return Yi(e,e.columnGap,r)}return null};Da.propTypes={},Da.filterProps=["columnGap"];const Ta=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=sa(e.theme,"spacing",8),r=e=>({rowGap:ua(t,e)});return Yi(e,e.rowGap,r)}return null};Ta.propTypes={},Ta.filterProps=["rowGap"];function Oa(e,t){return"grey"===t?t:e}ha(Ma,Da,Ta,ea({prop:"gridColumn"}),ea({prop:"gridRow"}),ea({prop:"gridAutoFlow"}),ea({prop:"gridAutoColumns"}),ea({prop:"gridAutoRows"}),ea({prop:"gridTemplateColumns"}),ea({prop:"gridTemplateRows"}),ea({prop:"gridTemplateAreas"}),ea({prop:"gridArea"}));function qa(e){return e<=1&&0!==e?100*e+"%":e}ha(ea({prop:"color",themeKey:"palette",transform:Oa}),ea({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Oa}),ea({prop:"backgroundColor",themeKey:"palette",transform:Oa}));const La=ea({prop:"width",transform:qa}),Na=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])||Ui[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:qa(t)}};return Yi(e,e.maxWidth,t)}return null};Na.filterProps=["maxWidth"];const ja=ea({prop:"minWidth",transform:qa}),_a=ea({prop:"height",transform:qa}),za=ea({prop:"maxHeight",transform:qa}),Fa=ea({prop:"minHeight",transform:qa});ea({prop:"size",cssProperty:"width",transform:qa}),ea({prop:"size",cssProperty:"height",transform:qa});ha(La,Na,ja,_a,za,Fa,ea({prop:"boxSizing"}));const Ha={border:{themeKey:"borders",transform:ma},borderTop:{themeKey:"borders",transform:ma},borderRight:{themeKey:"borders",transform:ma},borderBottom:{themeKey:"borders",transform:ma},borderLeft:{themeKey:"borders",transform:ma},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ma},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ka},color:{themeKey:"palette",transform:Oa},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Oa},backgroundColor:{themeKey:"palette",transform:Oa},p:{style:fa},pt:{style:fa},pr:{style:fa},pb:{style:fa},pl:{style:fa},px:{style:fa},py:{style:fa},padding:{style:fa},paddingTop:{style:fa},paddingRight:{style:fa},paddingBottom:{style:fa},paddingLeft:{style:fa},paddingX:{style:fa},paddingY:{style:fa},paddingInline:{style:fa},paddingInlineStart:{style:fa},paddingInlineEnd:{style:fa},paddingBlock:{style:fa},paddingBlockStart:{style:fa},paddingBlockEnd:{style:fa},m:{style:pa},mt:{style:pa},mr:{style:pa},mb:{style:pa},ml:{style:pa},mx:{style:pa},my:{style:pa},margin:{style:pa},marginTop:{style:pa},marginRight:{style:pa},marginBottom:{style:pa},marginLeft:{style:pa},marginX:{style:pa},marginY:{style:pa},marginInline:{style:pa},marginInlineStart:{style:pa},marginInlineEnd:{style:pa},marginBlock:{style:pa},marginBlockStart:{style:pa},marginBlockEnd:{style:pa},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:Ma},rowGap:{style:Ta},columnGap:{style:Da},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:qa},maxWidth:{style:Na},minWidth:{transform:qa},height:{transform:qa},maxHeight:{transform:qa},minHeight:{transform:qa},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function $a(){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=Zi(r,s)||{};if(u)return u(o);return Yi(o,t,(t=>{let r=Qi(c,l,t);return t===r&&"string"==typeof t&&(r=Qi(c,l,`${e}${"default"===t?"":Xi(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:Ha;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=Vi(u,e(r,o,i,s));else{const e=Yi({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=Vi(u,e):u[r]=t({sx:o,theme:i,nested:!0})}else u=Vi(u,e(r,o,i,s))})),!a&&i.modularCssLayers?{"@layer sx":Ki(l,u)}:Ki(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const Ba=$a();function Wa(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:{}}Ba.filterProps=["sx"];const Va=["breakpoints","palette","spacing","shape"];function Ua(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=zr(e,Va),s=Bi(r),l=function(e=8){if(e.mui)return e;const t=la({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=Fi({breakpoints:s,direction:"ltr",components:{},palette:_r({mode:"light"},n),spacing:l,shape:_r({},Wi,i)},a);return u.applyStyles=Wa,u=t.reduce(((e,t)=>Fi(e,t)),u),u.unstable_sxConfig=_r({},Ha,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Ba({sx:e,theme:this})},u}var Ga=Object.freeze({__proto__:null,default:Ua,private_createBreakpoints:Bi,unstable_applyStyles:Wa});function Ya(e=null){const t=y.useContext(bi);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Ka=Ua();function Xa(e=Ka){return Ya(e)}function Ja(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Za({styles:e,themeId:t,defaultTheme:r={}}){const n=Xa(r),o=t&&n[t]||n;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map((e=>Ja("function"==typeof e?e(o):e))):Ja(i)),er.jsx(Oi,{styles:i})}const Qa=["sx"];function es(e){const{sx:t}=e,r=zr(e,Qa),{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:Ha;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 _i(r)?_r({},n,r):n}:_r({},n,t),_r({},o,{sx:i})}var ts=Object.freeze({__proto__:null,default:Ba,extendSxProp:es,unstable_createStyleFunctionSx:$a,unstable_defaultSxConfig:Ha});const rs=e=>e,ns=(()=>{let e=rs;return{configure(t){e=t},generate:t=>e(t),reset(){e=rs}}})();function os(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=os(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function is(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=os(e))&&(n&&(n+=" "),n+=t);return n}const as=["className","component"];const ss={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 ls(e,t,r="Mui"){const n=ss[t];return n?`${r}-${n}`:`${ns.generate(e)}-${t}`}function us(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=ls(e,t,r)})),n}var cs={exports:{}},ds={},ps=Symbol.for("react.transitional.element"),fs=Symbol.for("react.portal"),hs=Symbol.for("react.fragment"),ms=Symbol.for("react.strict_mode"),gs=Symbol.for("react.profiler"),bs=Symbol.for("react.consumer"),vs=Symbol.for("react.context"),ys=Symbol.for("react.forward_ref"),xs=Symbol.for("react.suspense"),Ss=Symbol.for("react.suspense_list"),ws=Symbol.for("react.memo"),Cs=Symbol.for("react.lazy"),Es=Symbol.for("react.offscreen"),Rs=Symbol.for("react.client.reference");function Ps(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ps:switch(e=e.type){case hs:case gs:case ms:case xs:case Ss:return e;default:switch(e=e&&e.$$typeof){case vs:case ys:case Cs:case ws:case bs:return e;default:return t}}case fs:return t}}}ds.ContextConsumer=bs,ds.ContextProvider=vs,ds.Element=ps,ds.ForwardRef=ys,ds.Fragment=hs,ds.Lazy=Cs,ds.Memo=ws,ds.Portal=fs,ds.Profiler=gs,ds.StrictMode=ms,ds.Suspense=xs,ds.SuspenseList=Ss,ds.isContextConsumer=function(e){return Ps(e)===bs},ds.isContextProvider=function(e){return Ps(e)===vs},ds.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ps},ds.isForwardRef=function(e){return Ps(e)===ys},ds.isFragment=function(e){return Ps(e)===hs},ds.isLazy=function(e){return Ps(e)===Cs},ds.isMemo=function(e){return Ps(e)===ws},ds.isPortal=function(e){return Ps(e)===fs},ds.isProfiler=function(e){return Ps(e)===gs},ds.isStrictMode=function(e){return Ps(e)===ms},ds.isSuspense=function(e){return Ps(e)===xs},ds.isSuspenseList=function(e){return Ps(e)===Ss},ds.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===hs||e===gs||e===ms||e===xs||e===Ss||e===Es||"object"==typeof e&&null!==e&&(e.$$typeof===Cs||e.$$typeof===ws||e.$$typeof===vs||e.$$typeof===bs||e.$$typeof===ys||e.$$typeof===Rs||void 0!==e.getModuleId)},ds.typeOf=Ps,cs.exports=ds;var As=cs.exports;const Is=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ks(e){const t=`${e}`.match(Is);return t&&t[1]||""}function Ms(e,t=""){return e.displayName||e.name||ks(e)||t}function Ds(e,t,r){const n=Ms(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var Ts=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Ms(e,"Component");if("object"==typeof e)switch(e.$$typeof){case As.ForwardRef:return Ds(e,e.render,"ForwardRef");case As.Memo:return Ds(e,e.type,"memo");default:return}}},getFunctionName:ks});function Os(e,t){const r=_r({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=_r({},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]=_r({},i),Object.keys(o).forEach((e=>{r[n][e]=Os(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const qs="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function Ls(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var Ns=Object.freeze({__proto__:null,default:Ls});function js(e){if(e.type)return e;if("#"===e.charAt(0))return js(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(Lr(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(Lr(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function _s(e,t){return e=js(e),t=function(e,t=0,r=1){return Ls(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 zs(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function Fs(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function Hs(e){return e&&e.ownerDocument||document}function $s(e){return Hs(e).defaultView||window}function Bs(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Ws=0;const Vs=y["useId".toString()];function Us(e){if(void 0!==Vs){return Vs()}return function(e){const[t,r]=y.useState(e),n=t;return y.useEffect((()=>{null==t&&(Ws+=1,r(`mui-${Ws}`))}),[t]),n}(e)}function Gs({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 Ys(e){const t=y.useRef(e);return qs((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function Ks(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Bs(e,t)}))}),e)}const Xs={};const Js=[];class Zs{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Zs}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Qs(){const e=function(e,t){const r=y.useRef(Xs);return r.current===Xs&&(r.current=e(t)),r}(Zs.create).current;return function(e){y.useEffect(e,Js)}(e.disposeEffect),e}let el=!0,tl=!1;const rl=new Zs,nl={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 ol(e){e.metaKey||e.altKey||e.ctrlKey||(el=!0)}function il(){el=!1}function al(){"hidden"===this.visibilityState&&tl&&(el=!0)}function sl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return el||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!nl[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function ll(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",ol,!0),t.addEventListener("mousedown",il,!0),t.addEventListener("pointerdown",il,!0),t.addEventListener("touchstart",il,!0),t.addEventListener("visibilitychange",al,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!sl(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(tl=!0,rl.start(100,(()=>{tl=!1})),t.current=!1,!0)},ref:e}}function ul(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function cl(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 dl(e){return"string"==typeof e}function pl(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 fl(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 hl=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ml(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=zr(e,hl),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=is(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=_r({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=_r({},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=pl(_r({},o,n)),s=fl(n),l=fl(o),u=t(a),c=is(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=_r({},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=_r({},u,r,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(_r({},a,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||dl(e)?t:_r({},t,{ownerState:_r({},t.ownerState,r)})}(r,_r({},l,{ref:Ks(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function gl(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 bl=y.createContext(null);function vl(){return y.useContext(bl)}var yl="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function xl(e){const{children:t,theme:r}=e,n=vl(),o=y.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return _r({},e,t)}(n,r);return null!=e&&(e[yl]=null!==n),e}),[r,n]);return er.jsx(bl.Provider,{value:o,children:t})}const Sl=["value"],wl=y.createContext();function Cl(e){let{value:t}=e,r=zr(e,Sl);return er.jsx(wl.Provider,_r({value:null==t||t},r))}const El=y.createContext(void 0);function Rl({value:e,children:t}){return er.jsx(El.Provider,{value:e,children:t})}function Pl({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?Os(o.defaultProps,n):o.styleOverrides||o.variants?n:Os(o,n)}({props:e,name:t,theme:{components:y.useContext(El)}})}const Al={};function Il(e,t,r,n=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?_r({},t,{[e]:i}):i;return n?()=>a:a}return _r({},t,e?{[e]:r}:r)}),[e,t,r,n])}function kl(e){const{children:t,theme:r,themeId:n}=e,o=Ya(Al),i=vl()||Al,a=Il(n,o,r),s=Il(n,i,r,!0),l="rtl"===a.direction,u=function(e){const t=Ya(),r=Us()||"",{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};`:"",qs((()=>{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?er.jsx(Za,{styles:o}):null}(a);return er.jsx(xl,{theme:s,children:er.jsx(bi.Provider,{value:a,children:er.jsx(Cl,{value:l,children:er.jsxs(Rl,{value:null==a?void 0:a.components,children:[u,t]})})})})}function Ml(e){return Ml="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},Ml(e)}function Dl(e){var t=function(e,t){if("object"!=Ml(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=Ml(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Ml(t)?t:t+""}function Tl(e,t){return _r({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Ol,ql={},Ll={exports:{}};(Ol=Ll).exports=function(e){return e&&e.__esModule?e:{default:e}},Ol.exports.__esModule=!0,Ol.exports.default=Ol.exports;var Nl=Ll.exports,jl=Wt(Nr),_l=Wt(Ns),zl=Nl;Object.defineProperty(ql,"__esModule",{value:!0});var Fl=ql.alpha=Ql;ql.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=Yl(e),a=Yl(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Xl({type:"rgb",values:s})},ql.colorChannel=void 0;var Hl=ql.darken=eu;ql.decomposeColor=Yl,ql.emphasize=ru;var $l=ql.getContrastRatio=function(e,t){const r=Zl(e),n=Zl(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};ql.getLuminance=Zl,ql.hexToRgb=Gl,ql.hslToRgb=Jl;var Bl=ql.lighten=tu;ql.private_safeAlpha=function(e,t,r){try{return Ql(e,t)}catch(t){return e}},ql.private_safeColorChannel=void 0,ql.private_safeDarken=function(e,t,r){try{return eu(e,t)}catch(t){return e}},ql.private_safeEmphasize=function(e,t,r){try{return ru(e,t)}catch(t){return e}},ql.private_safeLighten=function(e,t,r){try{return tu(e,t)}catch(t){return e}},ql.recomposeColor=Xl,ql.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Yl(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 Wl=zl(jl),Vl=zl(_l);function Ul(e,t=0,r=1){return(0,Vl.default)(e,t,r)}function Gl(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 Yl(e){if(e.type)return e;if("#"===e.charAt(0))return Yl(Gl(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,Wl.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,Wl.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const Kl=e=>{const t=Yl(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};ql.colorChannel=Kl;function Xl(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 Jl(e){e=Yl(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])),Xl({type:s,values:l})}function Zl(e){let t="hsl"===(e=Yl(e)).type||"hsla"===e.type?Yl(Jl(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 Ql(e,t){return e=Yl(e),t=Ul(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Xl(e)}function eu(e,t){if(e=Yl(e),t=Ul(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 Xl(e)}function tu(e,t){if(e=Yl(e),t=Ul(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 Xl(e)}function ru(e,t=.15){return Zl(e)>.5?eu(e,t):tu(e,t)}ql.private_safeColorChannel=(e,t)=>{try{return Kl(e)}catch(t){return e}};const nu=["mode","contrastThreshold","tonalOffset"],ou={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:tr.white,default:tr.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}},iu={text:{primary:tr.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:tr.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 au(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=Bl(e.main,o):"dark"===t&&(e.dark=Hl(e.main,i)))}function su(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=zr(e,nu),i=e.primary||function(e="light"){return"dark"===e?{main:hr,light:fr,dark:mr}:{main:gr,light:mr,dark:br}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:lr,light:sr,dark:cr}:{main:dr,light:ur,dark:pr}}(t),s=e.error||function(e="light"){return"dark"===e?{main:or,light:rr,dark:ir}:{main:ir,light:nr,dark:ar}}(t),l=e.info||function(e="light"){return"dark"===e?{main:yr,light:vr,dark:Sr}:{main:Sr,light:xr,dark:wr}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Er,light:Cr,dark:Pr}:{main:Ar,light:Rr,dark:Ir}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Mr,light:kr,dark:Tr}:{main:"#ed6c02",light:Dr,dark:Or}}(t);function d(e){return $l(e,iu.text.primary)>=r?iu.text.primary:ou.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=_r({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Lr(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Lr(12,t?` (${t})`:"",JSON.stringify(e.main)));return au(e,"light",o,n),au(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:iu,light:ou};return Fi(_r({common:_r({},tr),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:qr,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const lu=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const uu={textTransform:"uppercase"},cu='"Roboto", "Helvetica", "Arial", sans-serif';function du(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=cu,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=zr(r,lu),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return _r({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===cu?{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,uu),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,uu),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Fi(_r({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function pu(...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 fu=["none",pu(0,2,1,-1,0,1,1,0,0,1,3,0),pu(0,3,1,-2,0,2,2,0,0,1,5,0),pu(0,3,3,-2,0,3,4,0,0,1,8,0),pu(0,2,4,-1,0,4,5,0,0,1,10,0),pu(0,3,5,-1,0,5,8,0,0,1,14,0),pu(0,3,5,-1,0,6,10,0,0,1,18,0),pu(0,4,5,-2,0,7,10,1,0,2,16,1),pu(0,5,5,-3,0,8,10,1,0,3,14,2),pu(0,5,6,-3,0,9,12,1,0,3,16,2),pu(0,6,6,-3,0,10,14,1,0,4,18,3),pu(0,6,7,-4,0,11,15,1,0,4,20,3),pu(0,7,8,-4,0,12,17,2,0,5,22,4),pu(0,7,8,-4,0,13,19,2,0,5,24,4),pu(0,7,9,-4,0,14,21,2,0,5,26,4),pu(0,8,9,-5,0,15,22,2,0,6,28,5),pu(0,8,10,-5,0,16,24,2,0,6,30,5),pu(0,8,11,-5,0,17,26,2,0,6,32,5),pu(0,9,11,-5,0,18,28,2,0,7,34,6),pu(0,9,12,-6,0,19,29,2,0,7,36,6),pu(0,10,13,-6,0,20,31,3,0,8,38,7),pu(0,10,13,-6,0,21,33,3,0,8,40,7),pu(0,10,14,-6,0,22,35,3,0,8,42,7),pu(0,11,14,-7,0,23,36,3,0,9,44,8),pu(0,11,15,-7,0,24,38,3,0,9,46,8)],hu=["duration","easing","delay"],mu={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)"},gu={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function bu(e){return`${Math.round(e)}ms`}function vu(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function yu(e){const t=_r({},mu,e.easing),r=_r({},gu,e.duration);return _r({getAutoHeightDuration:vu,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return zr(n,hu),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:bu(o)} ${i} ${"string"==typeof a?a:bu(a)}`)).join(",")}},e,{easing:t,duration:r})}const xu={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Su=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function wu(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=zr(e,Su);if(e.vars&&void 0===e.generateCssVars)throw new Error(Lr(18));const s=su(n),l=Ua(e);let u=Fi(l,{mixins:Tl(l.breakpoints,r),palette:s,shadows:fu.slice(),typography:du(s,i),transitions:yu(o),zIndex:_r({},xu)});return u=Fi(u,a),u=t.reduce(((e,t)=>Fi(e,t)),u),u.unstable_sxConfig=_r({},Ha,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Ba({sx:e,theme:this})},u}const Cu=wu();function Eu(){const e=Xa(Cu);return e[jr]||e}var Ru,Pu={},Au={exports:{}};function Iu(){return Ru||(Ru=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}(Au)),Au.exports}var ku,Mu={exports:{}};function Du(){return ku||(ku=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}(Mu)),Mu.exports}var Tu=Wt(ji),Ou=Wt(Hi),qu=Wt(Ji),Lu=Wt(Ts),Nu=Wt(Ga),ju=Wt(ts),_u=Nl;Object.defineProperty(Pu,"__esModule",{value:!0});var zu=Pu.default=function(e={}){const{themeId:t,defaultTheme:r=Zu,rootShouldForwardProp:n=Xu,slotShouldForwardProp:o=Xu}=e,i=e=>(0,Vu.default)((0,Fu.default)({},e,{theme:ec((0,Fu.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,$u.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=tc(Qu(l))}=a,p=(0,Hu.default)(a,Yu),f=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let g=Xu;"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,$u.default)(e,(0,Fu.default)({shouldForwardProp:g,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Bu.isPlainObject)(e)?n=>{const o=ec({theme:n.theme,defaultTheme:r,themeId:t});return rc(e,(0,Fu.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=ec((0,Fu.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]=rc(r,(0,Fu.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)})),d(e,i)})),s&&!h&&l.push((e=>{var n;const o=ec((0,Fu.default)({},e,{defaultTheme:r,themeId:t}));return rc({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,Fu.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}};Pu.shouldForwardProp=Xu,Pu.systemDefaultTheme=void 0;var Fu=_u(Iu()),Hu=_u(Du()),$u=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=Ku(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}(Tu),Bu=Ou;_u(qu),_u(Lu);var Wu=_u(Nu),Vu=_u(ju);const Uu=["ownerState"],Gu=["variants"],Yu=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Ku(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(Ku=function(e){return e?r:t})(e)}function Xu(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Ju(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const Zu=Pu.systemDefaultTheme=(0,Wu.default)(),Qu=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function ec({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function tc(e){return e?(t,r)=>r[e]:null}function rc(e,t,r){let{ownerState:n}=t,o=(0,Hu.default)(t,Uu);const i="function"==typeof e?e((0,Fu.default)({ownerState:n},o)):e;if(Array.isArray(i))return i.flatMap((e=>rc(e,(0,Fu.default)({ownerState:n},o),r)));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,Hu.default)(i,Gu);return e.forEach((e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,Fu.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,Fu.default)({ownerState:n},o,n)):e.style;t.push(r?Ju((0,$u.internal_serializeStyles)(i),r):i)}})),t}return r?Ju((0,$u.internal_serializeStyles)(i),r):i}function nc(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const oc=e=>nc(e)&&"classes"!==e,ic=zu({themeId:jr,defaultTheme:Cu,rootShouldForwardProp:oc}),ac=["theme"];function sc(e){let{theme:t}=e,r=zr(e,ac);const n=t[jr];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=_r({},n,{vars:null}):t&&!t.vars&&(o=_r({},t,{vars:null}))),er.jsx(kl,_r({},r,{themeId:n?jr:void 0,theme:o}))}const lc=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function uc(e){return Pl(e)}function cc(e){return ls("MuiSvgIcon",e)}us("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const dc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],pc=ic("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Xi(r.color)}`],t[`fontSize${Xi(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]}})),fc=y.forwardRef((function(e,t){const r=uc({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=r,p=zr(r,dc),f=y.isValidElement(n)&&"svg"===n.type,h=_r({},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 cl({root:["root","inherit"!==t&&`color${Xi(t)}`,`fontSize${Xi(r)}`]},cc,n)})(h);return er.jsxs(pc,_r({as:a,className:is(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?er.jsx("title",{children:c}):null]}))}));function hc(e,t){return hc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hc(e,t)}function mc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hc(e,t)}fc.muiName="SvgIcon";var gc=!1,bc=x.createContext(null),vc="unmounted",yc="exited",xc="entering",Sc="entered",wc="exiting",Cc=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=yc,n.appearStatus=xc):o=Sc:o=t.unmountOnExit||t.mountOnEnter?vc:yc,n.state={status:o},n.nextCallback=null,n}mc(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===vc?{status:yc}: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!==xc&&r!==Sc&&(t=xc):r!==xc&&r!==Sc||(t=wc)}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===xc){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:F.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===yc&&this.setState({status:vc})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[F.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||gc?this.safeSetState({status:Sc},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:xc},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Sc},(function(){t.props.onEntered(i,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:F.findDOMNode(this);t&&!gc?(this.props.onExit(n),this.safeSetState({status:wc},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:yc},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:yc},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:F.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===vc)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=zr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(bc.Provider,{value:null},"function"==typeof r?r(e,n):x.cloneElement(x.Children.only(r),n))},t}(x.Component);function Ec(){}function Rc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pc(e,t){var r=Object.create(null);return e&&I.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&P(e)?t(e):e}(e)})),r}function Ac(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Ic(e,t,r){var n=Pc(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var u=o[l][n];s[o[l][n]]=r(u)}s[l]=r(l)}for(n=0;n<i.length;n++)s[i[n]]=r(i[n]);return s}(t,n);return Object.keys(o).forEach((function(i){var a=o[i];if(P(a)){var s=i in t,l=i in n,u=t[i],c=P(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&P(u)&&(o[i]=A(a,{onExited:r.bind(null,a),in:u.props.in,exit:Ac(a,"exit",e),enter:Ac(a,"enter",e)})):o[i]=A(a,{in:!1}):o[i]=A(a,{onExited:r.bind(null,a),in:!0,exit:Ac(a,"exit",e),enter:Ac(a,"enter",e)})}})),o}Cc.contextType=bc,Cc.propTypes={},Cc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ec,onEntering:Ec,onEntered:Ec,onExit:Ec,onExiting:Ec,onExited:Ec},Cc.UNMOUNTED=vc,Cc.EXITED=yc,Cc.ENTERING=xc,Cc.ENTERED=Sc,Cc.EXITING=wc;var kc=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Mc=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(Rc(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}mc(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,Pc(r.children,(function(e){return A(e,{onExited:n.bind(null,e),in:!0,appear:Ac(e,"appear",r),enter:Ac(e,"enter",r),exit:Ac(e,"exit",r)})}))):Ic(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=Pc(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=_r({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=zr(e,["component","childFactory"]),o=this.state.contextValue,i=kc(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?x.createElement(bc.Provider,{value:o},i):x.createElement(bc.Provider,{value:o},x.createElement(t,n,i))},t}(x.Component);Mc.propTypes={},Mc.defaultProps={component:"div",childFactory:function(e){return e}};const Dc=e=>e.scrollTop;function Tc(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 Oc(e){return ls("MuiPaper",e)}us("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 qc=["className","component","elevation","square","variant"],Lc=ic("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 _r({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&&_r({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Fl("#fff",lc(t.elevation))}, ${Fl("#fff",lc(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),Nc=y.forwardRef((function(e,t){const r=uc({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=zr(r,qc),u=_r({},r,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return cl({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Oc,o)})(u);return er.jsx(Lc,_r({as:o,ownerState:u,className:is(c.root,n),ref:t},l))}));const jc=us("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),_c=["center","classes","className"];let zc,Fc,Hc,$c,Bc=e=>e;const Wc=Ai(zc||(zc=Bc`
|
|
17
|
+
function Li(e,t){let r;return r=t?Pi(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Pi(e),r}function Ni(e,t){e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))}function ji(e){return e}Oi.propTypes={defaultTheme:Ti.object,styles:Ti.oneOfType([Ti.array,Ti.string,Ti.object,Ti.func])};var _i=Object.freeze({__proto__:null,GlobalStyles:Oi,StyledEngineProvider:qi,ThemeContext:vi,css:Ci,default:Li,internal_mutateStyles:Ni,internal_processStyles:function(e,t){return Ni(e,t)},internal_serializeStyles:ji,keyframes:Ii});function zi(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 Fi(e){if(y.isValidElement(e)||!zi(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Fi(e[r])})),t}function Hi(e,t,r={clone:!0}){const n=r.clone?zr({},e):e;return zi(e)&&zi(t)&&Object.keys(t).forEach((o=>{y.isValidElement(t[o])?n[o]=t[o]:zi(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&zi(e[o])?n[o]=Hi(e[o],t[o],r):r.clone?n[o]=zi(t[o])?Fi(t[o]):t[o]:n[o]=t[o]})),n}var $i=Object.freeze({__proto__:null,default:Hi,isPlainObject:zi});const Bi=["values","unit","step"];function Wi(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Fr(e,Bi),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)=>zr({},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 zr({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 Vi={borderRadius:4};function Ui(e,t){return t?Hi(e,t,{clone:!1}):e}const Gi={xs:0,sm:600,md:900,lg:1200,xl:1536},Yi={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Gi[e]}px)`};function Ki(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Yi;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Yi;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Gi).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Xi(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}function Ji(e){if("string"!=typeof e)throw new Error(Nr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Zi=Object.freeze({__proto__:null,default:Ji});function Qi(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 ea(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Qi(e,r)||n,t&&(o=t(o,n,e)),o}function ta(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=Qi(e.theme,n)||{};return Ki(e,i,(e=>{let n=ea(a,o,e);return e===n&&"string"==typeof e&&(n=ea(a,o,`${t}${"default"===e?"":Ji(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const ra={m:"margin",p:"padding"},na={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},oa={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ia=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!oa[e])return[e];e=oa[e]}const[t,r]=e.split(""),n=ra[t],o=na[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),aa=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],sa=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function la(e,t,r,n){var o;const i=null!=(o=Qi(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 ua(e){return la(e,"spacing",8)}function ca(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 da(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=ca(t,r),e)),{})}(ia(r),n);return Ki(e,e[r],o)}function pa(e,t){const r=ua(e.theme);return Object.keys(e).map((n=>da(e,t,n,r))).reduce(Ui,{})}function fa(e){return pa(e,aa)}function ha(e){return pa(e,sa)}function ma(...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]?Ui(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function ga(e){return"number"!=typeof e?e:`${e}px solid`}function ba(e,t){return ta({prop:e,themeKey:"borders",transform:t})}fa.propTypes={},fa.filterProps=aa,ha.propTypes={},ha.filterProps=sa;const va=ba("border",ga),ya=ba("borderTop",ga),xa=ba("borderRight",ga),Sa=ba("borderBottom",ga),wa=ba("borderLeft",ga),Ca=ba("borderColor"),Ea=ba("borderTopColor"),Ra=ba("borderRightColor"),Pa=ba("borderBottomColor"),Aa=ba("borderLeftColor"),Ia=ba("outline",ga),ka=ba("outlineColor"),Ma=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=la(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:ca(t,e)});return Ki(e,e.borderRadius,r)}return null};Ma.propTypes={},Ma.filterProps=["borderRadius"],ma(va,ya,xa,Sa,wa,Ca,Ea,Ra,Pa,Aa,Ma,Ia,ka);const Da=e=>{if(void 0!==e.gap&&null!==e.gap){const t=la(e.theme,"spacing",8),r=e=>({gap:ca(t,e)});return Ki(e,e.gap,r)}return null};Da.propTypes={},Da.filterProps=["gap"];const Ta=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=la(e.theme,"spacing",8),r=e=>({columnGap:ca(t,e)});return Ki(e,e.columnGap,r)}return null};Ta.propTypes={},Ta.filterProps=["columnGap"];const qa=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=la(e.theme,"spacing",8),r=e=>({rowGap:ca(t,e)});return Ki(e,e.rowGap,r)}return null};qa.propTypes={},qa.filterProps=["rowGap"];function Oa(e,t){return"grey"===t?t:e}ma(Da,Ta,qa,ta({prop:"gridColumn"}),ta({prop:"gridRow"}),ta({prop:"gridAutoFlow"}),ta({prop:"gridAutoColumns"}),ta({prop:"gridAutoRows"}),ta({prop:"gridTemplateColumns"}),ta({prop:"gridTemplateRows"}),ta({prop:"gridTemplateAreas"}),ta({prop:"gridArea"}));function La(e){return e<=1&&0!==e?100*e+"%":e}ma(ta({prop:"color",themeKey:"palette",transform:Oa}),ta({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Oa}),ta({prop:"backgroundColor",themeKey:"palette",transform:Oa}));const Na=ta({prop:"width",transform:La}),ja=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])||Gi[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:La(t)}};return Ki(e,e.maxWidth,t)}return null};ja.filterProps=["maxWidth"];const _a=ta({prop:"minWidth",transform:La}),za=ta({prop:"height",transform:La}),Fa=ta({prop:"maxHeight",transform:La}),Ha=ta({prop:"minHeight",transform:La});ta({prop:"size",cssProperty:"width",transform:La}),ta({prop:"size",cssProperty:"height",transform:La});ma(Na,ja,_a,za,Fa,Ha,ta({prop:"boxSizing"}));const $a={border:{themeKey:"borders",transform:ga},borderTop:{themeKey:"borders",transform:ga},borderRight:{themeKey:"borders",transform:ga},borderBottom:{themeKey:"borders",transform:ga},borderLeft:{themeKey:"borders",transform:ga},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ga},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ma},color:{themeKey:"palette",transform:Oa},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Oa},backgroundColor:{themeKey:"palette",transform:Oa},p:{style:ha},pt:{style:ha},pr:{style:ha},pb:{style:ha},pl:{style:ha},px:{style:ha},py:{style:ha},padding:{style:ha},paddingTop:{style:ha},paddingRight:{style:ha},paddingBottom:{style:ha},paddingLeft:{style:ha},paddingX:{style:ha},paddingY:{style:ha},paddingInline:{style:ha},paddingInlineStart:{style:ha},paddingInlineEnd:{style:ha},paddingBlock:{style:ha},paddingBlockStart:{style:ha},paddingBlockEnd:{style:ha},m:{style:fa},mt:{style:fa},mr:{style:fa},mb:{style:fa},ml:{style:fa},mx:{style:fa},my:{style:fa},margin:{style:fa},marginTop:{style:fa},marginRight:{style:fa},marginBottom:{style:fa},marginLeft:{style:fa},marginX:{style:fa},marginY:{style:fa},marginInline:{style:fa},marginInlineStart:{style:fa},marginInlineEnd:{style:fa},marginBlock:{style:fa},marginBlockStart:{style:fa},marginBlockEnd:{style:fa},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:Da},rowGap:{style:qa},columnGap:{style:Ta},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:La},maxWidth:{style:ja},minWidth:{transform:La},height:{transform:La},maxHeight:{transform:La},minHeight:{transform:La},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Ba(){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=Qi(r,s)||{};if(u)return u(o);return Ki(o,t,(t=>{let r=ea(c,l,t);return t===r&&"string"==typeof t&&(r=ea(c,l,`${e}${"default"===t?"":Ji(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:$a;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=Ui(u,e(r,o,i,s));else{const e=Ki({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=Ui(u,e):u[r]=t({sx:o,theme:i,nested:!0})}else u=Ui(u,e(r,o,i,s))})),!a&&i.modularCssLayers?{"@layer sx":Xi(l,u)}:Xi(l,u)}return Array.isArray(o)?o.map(l):l(o)}}const Wa=Ba();function Va(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:{}}Wa.filterProps=["sx"];const Ua=["breakpoints","palette","spacing","shape"];function Ga(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=Fr(e,Ua),s=Wi(r),l=function(e=8){if(e.mui)return e;const t=ua({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=Hi({breakpoints:s,direction:"ltr",components:{},palette:zr({mode:"light"},n),spacing:l,shape:zr({},Vi,i)},a);return u.applyStyles=Va,u=t.reduce(((e,t)=>Hi(e,t)),u),u.unstable_sxConfig=zr({},$a,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Wa({sx:e,theme:this})},u}var Ya=Object.freeze({__proto__:null,default:Ga,private_createBreakpoints:Wi,unstable_applyStyles:Va});function Ka(e=null){const t=y.useContext(vi);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Xa=Ga();function Ja(e=Xa){return Ka(e)}function Za(e){const t=e;return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Qa({styles:e,themeId:t,defaultTheme:r={}}){const n=Ja(r),o=t&&n[t]||n;let i="function"==typeof e?e(o):e;return o.modularCssLayers&&(i=Array.isArray(i)?i.map((e=>Za("function"==typeof e?e(o):e))):Za(i)),tr.jsx(Oi,{styles:i})}const es=["sx"];function ts(e){const{sx:t}=e,r=Fr(e,es),{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:$a;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 zi(r)?zr({},n,r):n}:zr({},n,t),zr({},o,{sx:i})}var rs=Object.freeze({__proto__:null,default:Wa,extendSxProp:ts,unstable_createStyleFunctionSx:Ba,unstable_defaultSxConfig:$a});const ns=e=>e,os=(()=>{let e=ns;return{configure(t){e=t},generate:t=>e(t),reset(){e=ns}}})();function is(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=is(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function as(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=is(e))&&(n&&(n+=" "),n+=t);return n}const ss=["className","component"];const ls={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 us(e,t,r="Mui"){const n=ls[t];return n?`${r}-${n}`:`${os.generate(e)}-${t}`}function cs(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=us(e,t,r)})),n}var ds={exports:{}},ps={},fs=Symbol.for("react.transitional.element"),hs=Symbol.for("react.portal"),ms=Symbol.for("react.fragment"),gs=Symbol.for("react.strict_mode"),bs=Symbol.for("react.profiler"),vs=Symbol.for("react.consumer"),ys=Symbol.for("react.context"),xs=Symbol.for("react.forward_ref"),Ss=Symbol.for("react.suspense"),ws=Symbol.for("react.suspense_list"),Cs=Symbol.for("react.memo"),Es=Symbol.for("react.lazy"),Rs=Symbol.for("react.offscreen"),Ps=Symbol.for("react.client.reference");function As(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case fs:switch(e=e.type){case ms:case bs:case gs:case Ss:case ws:return e;default:switch(e=e&&e.$$typeof){case ys:case xs:case Es:case Cs:case vs:return e;default:return t}}case hs:return t}}}ps.ContextConsumer=vs,ps.ContextProvider=ys,ps.Element=fs,ps.ForwardRef=xs,ps.Fragment=ms,ps.Lazy=Es,ps.Memo=Cs,ps.Portal=hs,ps.Profiler=bs,ps.StrictMode=gs,ps.Suspense=Ss,ps.SuspenseList=ws,ps.isContextConsumer=function(e){return As(e)===vs},ps.isContextProvider=function(e){return As(e)===ys},ps.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===fs},ps.isForwardRef=function(e){return As(e)===xs},ps.isFragment=function(e){return As(e)===ms},ps.isLazy=function(e){return As(e)===Es},ps.isMemo=function(e){return As(e)===Cs},ps.isPortal=function(e){return As(e)===hs},ps.isProfiler=function(e){return As(e)===bs},ps.isStrictMode=function(e){return As(e)===gs},ps.isSuspense=function(e){return As(e)===Ss},ps.isSuspenseList=function(e){return As(e)===ws},ps.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===ms||e===bs||e===gs||e===Ss||e===ws||e===Rs||"object"==typeof e&&null!==e&&(e.$$typeof===Es||e.$$typeof===Cs||e.$$typeof===ys||e.$$typeof===vs||e.$$typeof===xs||e.$$typeof===Ps||void 0!==e.getModuleId)},ps.typeOf=As,ds.exports=ps;var Is=ds.exports;const ks=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ms(e){const t=`${e}`.match(ks);return t&&t[1]||""}function Ds(e,t=""){return e.displayName||e.name||Ms(e)||t}function Ts(e,t,r){const n=Ds(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var qs=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Ds(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Is.ForwardRef:return Ts(e,e.render,"ForwardRef");case Is.Memo:return Ts(e,e.type,"memo");default:return}}},getFunctionName:Ms});function Os(e,t){const r=zr({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=zr({},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]=zr({},i),Object.keys(o).forEach((e=>{r[n][e]=Os(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const Ls="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function Ns(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var js=Object.freeze({__proto__:null,default:Ns});function _s(e){if(e.type)return e;if("#"===e.charAt(0))return _s(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(Nr(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(Nr(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function zs(e,t){return e=_s(e),t=function(e,t=0,r=1){return Ns(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 Fs(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function Hs(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}function $s(e){return e&&e.ownerDocument||document}function Bs(e){return $s(e).defaultView||window}function Ws(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Vs=0;const Us=y["useId".toString()];function Gs(e){if(void 0!==Us){return Us()}return function(e){const[t,r]=y.useState(e),n=t;return y.useEffect((()=>{null==t&&(Vs+=1,r(`mui-${Vs}`))}),[t]),n}(e)}function Ys({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 Ks(e){const t=y.useRef(e);return Ls((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function Xs(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Ws(e,t)}))}),e)}const Js={};const Zs=[];class Qs{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Qs}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function el(){const e=function(e,t){const r=y.useRef(Js);return r.current===Js&&(r.current=e(t)),r}(Qs.create).current;return function(e){y.useEffect(e,Zs)}(e.disposeEffect),e}let tl=!0,rl=!1;const nl=new Qs,ol={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 il(e){e.metaKey||e.altKey||e.ctrlKey||(tl=!0)}function al(){tl=!1}function sl(){"hidden"===this.visibilityState&&rl&&(tl=!0)}function ll(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return tl||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!ol[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function ul(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",il,!0),t.addEventListener("mousedown",al,!0),t.addEventListener("pointerdown",al,!0),t.addEventListener("touchstart",al,!0),t.addEventListener("visibilitychange",sl,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!ll(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(rl=!0,nl.start(100,(()=>{rl=!1})),t.current=!1,!0)},ref:e}}function cl(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function dl(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 pl(e){return"string"==typeof e}function fl(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 hl(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 ml=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function gl(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Fr(e,ml),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=as(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=zr({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=zr({},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=fl(zr({},o,n)),s=hl(n),l=hl(o),u=t(a),c=as(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=zr({},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=zr({},u,r,l,s);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(zr({},a,{externalSlotProps:s})),c=function(e,t,r){return void 0===e||pl(e)?t:zr({},t,{ownerState:zr({},t.ownerState,r)})}(r,zr({},l,{ref:Xs(u,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}function bl(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 vl=y.createContext(null);function yl(){return y.useContext(vl)}var xl="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Sl(e){const{children:t,theme:r}=e,n=yl(),o=y.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return zr({},e,t)}(n,r);return null!=e&&(e[xl]=null!==n),e}),[r,n]);return tr.jsx(vl.Provider,{value:o,children:t})}const wl=["value"],Cl=y.createContext();function El(e){let{value:t}=e,r=Fr(e,wl);return tr.jsx(Cl.Provider,zr({value:null==t||t},r))}const Rl=y.createContext(void 0);function Pl({value:e,children:t}){return tr.jsx(Rl.Provider,{value:e,children:t})}function Al({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?Os(o.defaultProps,n):o.styleOverrides||o.variants?n:Os(o,n)}({props:e,name:t,theme:{components:y.useContext(Rl)}})}const Il={};function kl(e,t,r,n=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?zr({},t,{[e]:i}):i;return n?()=>a:a}return zr({},t,e?{[e]:r}:r)}),[e,t,r,n])}function Ml(e){const{children:t,theme:r,themeId:n}=e,o=Ka(Il),i=yl()||Il,a=kl(n,o,r),s=kl(n,i,r,!0),l="rtl"===a.direction,u=function(e){const t=Ka(),r=Gs()||"",{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};`:"",Ls((()=>{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?tr.jsx(Qa,{styles:o}):null}(a);return tr.jsx(Sl,{theme:s,children:tr.jsx(vi.Provider,{value:a,children:tr.jsx(El,{value:l,children:tr.jsxs(Pl,{value:null==a?void 0:a.components,children:[u,t]})})})})}function Dl(e){return Dl="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},Dl(e)}function Tl(e){var t=function(e,t){if("object"!=Dl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=Dl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Dl(t)?t:t+""}function ql(e,t){return zr({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Ol,Ll={},Nl={exports:{}};(Ol=Nl).exports=function(e){return e&&e.__esModule?e:{default:e}},Ol.exports.__esModule=!0,Ol.exports.default=Ol.exports;var jl=Nl.exports,_l=Vt(jr),zl=Vt(js),Fl=jl;Object.defineProperty(Ll,"__esModule",{value:!0});var Hl=Ll.alpha=eu;Ll.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=Kl(e),a=Kl(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Jl({type:"rgb",values:s})},Ll.colorChannel=void 0;var $l=Ll.darken=tu;Ll.decomposeColor=Kl,Ll.emphasize=nu;var Bl=Ll.getContrastRatio=function(e,t){const r=Ql(e),n=Ql(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};Ll.getLuminance=Ql,Ll.hexToRgb=Yl,Ll.hslToRgb=Zl;var Wl=Ll.lighten=ru;Ll.private_safeAlpha=function(e,t,r){try{return eu(e,t)}catch(t){return e}},Ll.private_safeColorChannel=void 0,Ll.private_safeDarken=function(e,t,r){try{return tu(e,t)}catch(t){return e}},Ll.private_safeEmphasize=function(e,t,r){try{return nu(e,t)}catch(t){return e}},Ll.private_safeLighten=function(e,t,r){try{return ru(e,t)}catch(t){return e}},Ll.recomposeColor=Jl,Ll.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Kl(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 Vl=Fl(_l),Ul=Fl(zl);function Gl(e,t=0,r=1){return(0,Ul.default)(e,t,r)}function Yl(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 Kl(e){if(e.type)return e;if("#"===e.charAt(0))return Kl(Yl(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,Vl.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,Vl.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const Xl=e=>{const t=Kl(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};Ll.colorChannel=Xl;function Jl(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 Zl(e){e=Kl(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])),Jl({type:s,values:l})}function Ql(e){let t="hsl"===(e=Kl(e)).type||"hsla"===e.type?Kl(Zl(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 eu(e,t){return e=Kl(e),t=Gl(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Jl(e)}function tu(e,t){if(e=Kl(e),t=Gl(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 Jl(e)}function ru(e,t){if(e=Kl(e),t=Gl(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 Jl(e)}function nu(e,t=.15){return Ql(e)>.5?tu(e,t):ru(e,t)}Ll.private_safeColorChannel=(e,t)=>{try{return Xl(e)}catch(t){return e}};const ou=["mode","contrastThreshold","tonalOffset"],iu={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:rr.white,default:rr.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}},au={text:{primary:rr.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:rr.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 su(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=Wl(e.main,o):"dark"===t&&(e.dark=$l(e.main,i)))}function lu(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Fr(e,ou),i=e.primary||function(e="light"){return"dark"===e?{main:mr,light:hr,dark:gr}:{main:br,light:gr,dark:vr}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:ur,light:lr,dark:dr}:{main:pr,light:cr,dark:fr}}(t),s=e.error||function(e="light"){return"dark"===e?{main:ir,light:nr,dark:ar}:{main:ar,light:or,dark:sr}}(t),l=e.info||function(e="light"){return"dark"===e?{main:xr,light:yr,dark:wr}:{main:wr,light:Sr,dark:Cr}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Rr,light:Er,dark:Ar}:{main:Ir,light:Pr,dark:kr}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Dr,light:Mr,dark:qr}:{main:"#ed6c02",light:Tr,dark:Or}}(t);function d(e){return Bl(e,au.text.primary)>=r?au.text.primary:iu.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=zr({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Nr(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Nr(12,t?` (${t})`:"",JSON.stringify(e.main)));return su(e,"light",o,n),su(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:au,light:iu};return Hi(zr({common:zr({},rr),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:Lr,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const uu=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const cu={textTransform:"uppercase"},du='"Roboto", "Helvetica", "Arial", sans-serif';function pu(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=du,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Fr(r,uu),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,r,o,i)=>{return zr({fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r},n===du?{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,cu),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,cu),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Hi(zr({htmlFontSize:u,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function fu(...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 hu=["none",fu(0,2,1,-1,0,1,1,0,0,1,3,0),fu(0,3,1,-2,0,2,2,0,0,1,5,0),fu(0,3,3,-2,0,3,4,0,0,1,8,0),fu(0,2,4,-1,0,4,5,0,0,1,10,0),fu(0,3,5,-1,0,5,8,0,0,1,14,0),fu(0,3,5,-1,0,6,10,0,0,1,18,0),fu(0,4,5,-2,0,7,10,1,0,2,16,1),fu(0,5,5,-3,0,8,10,1,0,3,14,2),fu(0,5,6,-3,0,9,12,1,0,3,16,2),fu(0,6,6,-3,0,10,14,1,0,4,18,3),fu(0,6,7,-4,0,11,15,1,0,4,20,3),fu(0,7,8,-4,0,12,17,2,0,5,22,4),fu(0,7,8,-4,0,13,19,2,0,5,24,4),fu(0,7,9,-4,0,14,21,2,0,5,26,4),fu(0,8,9,-5,0,15,22,2,0,6,28,5),fu(0,8,10,-5,0,16,24,2,0,6,30,5),fu(0,8,11,-5,0,17,26,2,0,6,32,5),fu(0,9,11,-5,0,18,28,2,0,7,34,6),fu(0,9,12,-6,0,19,29,2,0,7,36,6),fu(0,10,13,-6,0,20,31,3,0,8,38,7),fu(0,10,13,-6,0,21,33,3,0,8,40,7),fu(0,10,14,-6,0,22,35,3,0,8,42,7),fu(0,11,14,-7,0,23,36,3,0,9,44,8),fu(0,11,15,-7,0,24,38,3,0,9,46,8)],mu=["duration","easing","delay"],gu={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)"},bu={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function vu(e){return`${Math.round(e)}ms`}function yu(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function xu(e){const t=zr({},gu,e.easing),r=zr({},bu,e.duration);return zr({getAutoHeightDuration:yu,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Fr(n,mu),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:vu(o)} ${i} ${"string"==typeof a?a:vu(a)}`)).join(",")}},e,{easing:t,duration:r})}const Su={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},wu=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Cu(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Fr(e,wu);if(e.vars&&void 0===e.generateCssVars)throw new Error(Nr(18));const s=lu(n),l=Ga(e);let u=Hi(l,{mixins:ql(l.breakpoints,r),palette:s,shadows:hu.slice(),typography:pu(s,i),transitions:xu(o),zIndex:zr({},Su)});return u=Hi(u,a),u=t.reduce(((e,t)=>Hi(e,t)),u),u.unstable_sxConfig=zr({},$a,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Wa({sx:e,theme:this})},u}const Eu=Cu();function Ru(){const e=Ja(Eu);return e[_r]||e}var Pu,Au={},Iu={exports:{}};function ku(){return Pu||(Pu=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}(Iu)),Iu.exports}var Mu,Du={exports:{}};function Tu(){return Mu||(Mu=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}(Du)),Du.exports}var qu=Vt(_i),Ou=Vt($i),Lu=Vt(Zi),Nu=Vt(qs),ju=Vt(Ya),_u=Vt(rs),zu=jl;Object.defineProperty(Au,"__esModule",{value:!0});var Fu=Au.default=function(e={}){const{themeId:t,defaultTheme:r=Qu,rootShouldForwardProp:n=Ju,slotShouldForwardProp:o=Ju}=e,i=e=>(0,Uu.default)((0,Hu.default)({},e,{theme:tc((0,Hu.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Bu.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:u,skipSx:c,overridesResolver:d=rc(ec(l))}=a,p=(0,$u.default)(a,Ku),f=s&&s.startsWith("Mui")||l?"components":"custom",h=void 0!==u?u:l&&"Root"!==l&&"root"!==l||!1,m=c||!1;let g=Ju;"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,Bu.default)(e,(0,Hu.default)({shouldForwardProp:g,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Wu.isPlainObject)(e)?n=>{const o=tc({theme:n.theme,defaultTheme:r,themeId:t});return nc(e,(0,Hu.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=tc((0,Hu.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]=nc(r,(0,Hu.default)({},e,{theme:n}),n.modularCssLayers?"theme":void 0)})),d(e,i)})),s&&!h&&l.push((e=>{var n;const o=tc((0,Hu.default)({},e,{defaultTheme:r,themeId:t}));return nc({variants:null==o||null==(n=o.components)||null==(n=n[s])?void 0:n.variants},(0,Hu.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}};Au.shouldForwardProp=Ju,Au.systemDefaultTheme=void 0;var Hu=zu(ku()),$u=zu(Tu()),Bu=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=Xu(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}(qu),Wu=Ou;zu(Lu),zu(Nu);var Vu=zu(ju),Uu=zu(_u);const Gu=["ownerState"],Yu=["variants"],Ku=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Xu(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(Xu=function(e){return e?r:t})(e)}function Ju(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}function Zu(e,t){return t&&e&&"object"==typeof e&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}const Qu=Au.systemDefaultTheme=(0,Vu.default)(),ec=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function tc({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function rc(e){return e?(t,r)=>r[e]:null}function nc(e,t,r){let{ownerState:n}=t,o=(0,$u.default)(t,Gu);const i="function"==typeof e?e((0,Hu.default)({ownerState:n},o)):e;if(Array.isArray(i))return i.flatMap((e=>nc(e,(0,Hu.default)({ownerState:n},o),r)));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,$u.default)(i,Yu);return e.forEach((e=>{let i=!0;if("function"==typeof e.props?i=e.props((0,Hu.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,Hu.default)({ownerState:n},o,n)):e.style;t.push(r?Zu((0,Bu.internal_serializeStyles)(i),r):i)}})),t}return r?Zu((0,Bu.internal_serializeStyles)(i),r):i}function oc(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const ic=e=>oc(e)&&"classes"!==e,ac=Fu({themeId:_r,defaultTheme:Eu,rootShouldForwardProp:ic}),sc=["theme"];function lc(e){let{theme:t}=e,r=Fr(e,sc);const n=t[_r];let o=n||t;return"function"!=typeof t&&(n&&!n.vars?o=zr({},n,{vars:null}):t&&!t.vars&&(o=zr({},t,{vars:null}))),tr.jsx(Ml,zr({},r,{themeId:n?_r:void 0,theme:o}))}const uc=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function cc(e){return Al(e)}function dc(e){return us("MuiSvgIcon",e)}cs("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const pc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],fc=ac("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Ji(r.color)}`],t[`fontSize${Ji(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]}})),hc=y.forwardRef((function(e,t){const r=cc({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=Fr(r,pc),f=y.isValidElement(n)&&"svg"===n.type,h=zr({},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 dl({root:["root","inherit"!==t&&`color${Ji(t)}`,`fontSize${Ji(r)}`]},dc,n)})(h);return tr.jsxs(fc,zr({as:a,className:as(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?tr.jsx("title",{children:c}):null]}))}));function mc(e,t){return mc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mc(e,t)}function gc(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,mc(e,t)}hc.muiName="SvgIcon";var bc=!1,vc=x.createContext(null),yc="unmounted",xc="exited",Sc="entering",wc="entered",Cc="exiting",Ec=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=xc,n.appearStatus=Sc):o=wc:o=t.unmountOnExit||t.mountOnEnter?yc:xc,n.state={status:o},n.nextCallback=null,n}gc(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===yc?{status:xc}: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!==Sc&&r!==wc&&(t=Sc):r!==Sc&&r!==wc||(t=Cc)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Sc){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:H.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xc&&this.setState({status:yc})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[H.findDOMNode(this),n],i=o[0],a=o[1],s=this.getTimeouts(),l=n?s.appear:s.enter;!e&&!r||bc?this.safeSetState({status:wc},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Sc},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:wc},(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:H.findDOMNode(this);t&&!bc?(this.props.onExit(n),this.safeSetState({status:Cc},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:xc},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:xc},(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:H.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===yc)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=Fr(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(vc.Provider,{value:null},"function"==typeof r?r(e,n):x.cloneElement(x.Children.only(r),n))},t}(x.Component);function Rc(){}function Pc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ac(e,t){var r=Object.create(null);return e&&I.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&P(e)?t(e):e}(e)})),r}function Ic(e,t,r){return null!=r[t]?r[t]:e.props[t]}function kc(e,t,r){var n=Ac(e.children),o=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(n=0;n<o[l].length;n++){var u=o[l][n];s[o[l][n]]=r(u)}s[l]=r(l)}for(n=0;n<i.length;n++)s[i[n]]=r(i[n]);return s}(t,n);return Object.keys(o).forEach((function(i){var a=o[i];if(P(a)){var s=i in t,l=i in n,u=t[i],c=P(u)&&!u.props.in;!l||s&&!c?l||!s||c?l&&s&&P(u)&&(o[i]=A(a,{onExited:r.bind(null,a),in:u.props.in,exit:Ic(a,"exit",e),enter:Ic(a,"enter",e)})):o[i]=A(a,{in:!1}):o[i]=A(a,{onExited:r.bind(null,a),in:!0,exit:Ic(a,"exit",e),enter:Ic(a,"enter",e)})}})),o}Ec.contextType=vc,Ec.propTypes={},Ec.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Rc,onEntering:Rc,onEntered:Rc,onExit:Rc,onExiting:Rc,onExited:Rc},Ec.UNMOUNTED=yc,Ec.EXITED=xc,Ec.ENTERING=Sc,Ec.ENTERED=wc,Ec.EXITING=Cc;var Mc=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Dc=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(Pc(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}gc(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,Ac(r.children,(function(e){return A(e,{onExited:n.bind(null,e),in:!0,appear:Ic(e,"appear",r),enter:Ic(e,"enter",r),exit:Ic(e,"exit",r)})}))):kc(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=Ac(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=zr({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=Fr(e,["component","childFactory"]),o=this.state.contextValue,i=Mc(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?x.createElement(vc.Provider,{value:o},i):x.createElement(vc.Provider,{value:o},x.createElement(t,n,i))},t}(x.Component);Dc.propTypes={},Dc.defaultProps={component:"div",childFactory:function(e){return e}};const Tc=e=>e.scrollTop;function qc(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 Oc(e){return us("MuiPaper",e)}cs("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 Lc=["className","component","elevation","square","variant"],Nc=ac("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 zr({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&&zr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Hl("#fff",uc(t.elevation))}, ${Hl("#fff",uc(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))})),jc=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=r,l=Fr(r,Lc),u=zr({},r,{component:o,elevation:i,square:a,variant:s}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return dl({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},Oc,o)})(u);return tr.jsx(Nc,zr({as:o,ownerState:u,className:as(c.root,n),ref:t},l))}));const _c=cs("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),zc=["center","classes","className"];let Fc,Hc,$c,Bc,Wc=e=>e;const Vc=Ii(Fc||(Fc=Wc`
|
|
18
18
|
0% {
|
|
19
19
|
transform: scale(0);
|
|
20
20
|
opacity: 0.1;
|
|
@@ -24,7 +24,7 @@ function qi(e,t){let r;return r=t?Ri(e).withConfig({displayName:t.label,shouldFo
|
|
|
24
24
|
transform: scale(1);
|
|
25
25
|
opacity: 0.3;
|
|
26
26
|
}
|
|
27
|
-
`)),
|
|
27
|
+
`)),Uc=Ii(Hc||(Hc=Wc`
|
|
28
28
|
0% {
|
|
29
29
|
opacity: 1;
|
|
30
30
|
}
|
|
@@ -32,7 +32,7 @@ function qi(e,t){let r;return r=t?Ri(e).withConfig({displayName:t.label,shouldFo
|
|
|
32
32
|
100% {
|
|
33
33
|
opacity: 0;
|
|
34
34
|
}
|
|
35
|
-
`)),
|
|
35
|
+
`)),Gc=Ii($c||($c=Wc`
|
|
36
36
|
0% {
|
|
37
37
|
transform: scale(1);
|
|
38
38
|
}
|
|
@@ -44,7 +44,7 @@ function qi(e,t){let r;return r=t?Ri(e).withConfig({displayName:t.label,shouldFo
|
|
|
44
44
|
100% {
|
|
45
45
|
transform: scale(1);
|
|
46
46
|
}
|
|
47
|
-
`)),
|
|
47
|
+
`)),Yc=ac("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Kc=ac((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=as(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},h=as(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]),tr.jsx("span",{className:p,style:f,children:tr.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Bc||(Bc=Wc`
|
|
48
48
|
opacity: 0;
|
|
49
49
|
position: absolute;
|
|
50
50
|
|
|
@@ -87,19 +87,19 @@ function qi(e,t){let r;return r=t?Ri(e).withConfig({displayName:t.label,shouldFo
|
|
|
87
87
|
animation-iteration-count: infinite;
|
|
88
88
|
animation-delay: 200ms;
|
|
89
89
|
}
|
|
90
|
-
`),jc.rippleVisible,Wc,550,(({theme:e})=>e.transitions.easing.easeInOut),jc.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),jc.child,jc.childLeaving,Vc,550,(({theme:e})=>e.transitions.easing.easeInOut),jc.childPulsate,Uc,(({theme:e})=>e.transitions.easing.easeInOut)),Kc=y.forwardRef((function(e,t){const r=uc({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=zr(r,_c),[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=Qs(),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,er.jsx(Yc,{classes:{ripple:is(o.ripple,jc.ripple),rippleVisible:is(o.rippleVisible,jc.rippleVisible),ripplePulsate:is(o.ripplePulsate,jc.ripplePulsate),child:is(o.child,jc.child),childLeaving:is(o.childLeaving,jc.childLeaving),childPulsate:is(o.childPulsate,jc.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]),er.jsx(Gc,_r({className:is(jc.root,o.root,i),ref:h},a,{children:er.jsx(Mc,{component:null,exit:!0,children:s})}))}));function Xc(e){return ls("MuiButtonBase",e)}const Jc=us("MuiButtonBase",["root","disabled","focusVisible"]),Zc=["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"],Qc=ic("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"},[`&.${Jc.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ed=y.forwardRef((function(e,t){const r=uc({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:k,touchRippleRef:M,type:D}=r,T=zr(r,Zc),O=y.useRef(null),q=y.useRef(null),L=Ks(q,M),{isFocusVisibleRef:N,onFocus:j,onBlur:_,ref:z}=ll(),[F,H]=y.useState(!1);l&&F&&H(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),O.current.focus()}})),[]);const[$,B]=y.useState(!1);y.useEffect((()=>{B(!0)}),[]);const W=$&&!u&&!l;function V(e,t,r=c){return Ys((n=>{t&&t(n);return!r&&q.current&&q.current[e](n),!0}))}y.useEffect((()=>{F&&d&&!u&&$&&q.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=Ys((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=Ys((e=>{d&&!ne.current&&F&&q.current&&" "===e.key&&(ne.current=!0,q.current.stop(e,(()=>{q.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=Ys((e=>{d&&" "===e.key&&q.current&&F&&!e.defaultPrevented&&(ne.current=!1,q.current.stop(e,(()=>{q.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=Ks(t,z,O),ue=_r({},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=cl({root:["root",t&&"disabled",r&&"focusVisible"]},Xc,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return er.jsxs(Qc,_r({as:ae,className:is(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,W?er.jsx(Kc,_r({ref:L,center:o},k)):null]}))}));function td(e){return ls("MuiIconButton",e)}const rd=us("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),nd=["edge","children","className","color","disabled","disableFocusRipple","size"],od=ic(ed,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${Xi(r.color)}`],r.edge&&t[`edge${Xi(r.edge)}`],t[`size${Xi(r.size)}`]]}})((({theme:e,ownerState:t})=>_r({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})`:Fl(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 _r({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&_r({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":_r({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fl(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)},{[`&.${rd.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),id=y.forwardRef((function(e,t){const r=uc({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=zr(r,nd),d=_r({},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 cl({root:["root",r&&"disabled","default"!==n&&`color${Xi(n)}`,o&&`edge${Xi(o)}`,`size${Xi(i)}`]},td,t)})(d);return er.jsx(od,_r({className:is(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},c,{ownerState:d,children:o}))}));function ad(e){return ls("MuiTypography",e)}us("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const sd=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],ld=ic("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${Xi(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>_r({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}))),ud={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},cd={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},dd=y.forwardRef((function(e,t){const r=uc({props:e,name:"MuiTypography"}),n=(e=>cd[e]||e)(r.color),o=es(_r({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=ud}=o,f=zr(o,sd),h=_r({},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]||ud[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return cl({root:["root",i,"inherit"!==e.align&&`align${Xi(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},ad,a)})(h);return er.jsx(ld,_r({as:m,ref:t,ownerState:h,className:is(g.root,a)},f))}));const pd=y.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=y.useState(null),s=Ks(y.isValidElement(r)?gl(r):null,t);if(qs((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),qs((()=>{if(i&&!o)return Bs(t,i),()=>{Bs(t,null)}}),[t,i,o]),o){if(y.isValidElement(r)){const e={ref:s};return y.cloneElement(r,e)}return er.jsx(y.Fragment,{children:r})}return er.jsx(y.Fragment,{children:i?z.createPortal(r,i):i})})),fd=["onChange","maxRows","minRows","style","value"];function hd(e){return parseInt(e,10)||0}const md={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function gd(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const bd=y.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=zr(e,fd),{current:l}=y.useRef(null!=a),u=y.useRef(null),c=Ks(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=$s(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=hd(i.paddingBottom)+hd(i.paddingTop),l=hd(i.borderBottomWidth)+hd(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=Ys((()=>{const e=u.current,t=f();if(!e||!t||gd(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||gd(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);qs((()=>{const e=Fs(m),t=null==u?void 0:u.current;if(!t)return;const r=$s(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]),qs((()=>{m()}));return er.jsxs(y.Fragment,{children:[er.jsx("textarea",_r({value:a,onChange:e=>{l||m(),r&&r(e)},ref:c,rows:o,style:i},s)),er.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:_r({},md,i,{paddingTop:0,paddingBottom:0})})]})}));function vd({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 yd=y.createContext(void 0);function xd(){return y.useContext(yd)}function Sd(e){return er.jsx(Za,_r({},e,{defaultTheme:Cu,themeId:jr}))}function wd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Cd(e,t=!1){return e&&(wd(e.value)&&""!==e.value||t&&wd(e.defaultValue)&&""!==e.defaultValue)}function Ed(e){return ls("MuiInputBase",e)}const Rd=us("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Pd=["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"],Ad=(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${Xi(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Id=(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]},kd=ic("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ad})((({theme:e,ownerState:t})=>_r({},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",[`&.${Rd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&_r({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Md=ic("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Id})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=_r({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 _r({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] + .${Rd.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},[`&.${Rd.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"})})),Dd=er.jsx(Sd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Td=y.forwardRef((function(e,t){var r;const n=uc({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:k,placeholder:M,readOnly:D,renderSuffix:T,rows:O,slotProps:q={},slots:L={},startAdornment:N,type:j="text",value:_}=n,z=zr(n,Pd),F=null!=b.value?b.value:_,{current:H}=y.useRef(null!=F),$=y.useRef(),B=y.useCallback((e=>{}),[]),W=Ks($,v,b.ref,B),[V,U]=y.useState(!1),G=xd(),Y=vd({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=>{Cd(e)?K&&K():X&&X()}),[K,X]);qs((()=>{H&&J({value:F})}),[F,J,H]);y.useEffect((()=>{J($.current)}),[]);let Z=g,Q=b;w&&"input"===Z&&(Q=_r(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:x,minRows:S},Q),Z=bd);y.useEffect((()=>{G&&G.setAdornedStart(Boolean(N))}),[G,N]);const ee=_r({},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 cl({root:["root",`color${Xi(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${Xi(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"]},Ed,t)})(ee),re=L.root||l.Root||kd,ne=q.root||u.root||{},oe=L.input||l.Input||Md;return Q=_r({},Q,null!=(r=q.input)?r:u.input),er.jsxs(y.Fragment,{children:[!p&&Dd,er.jsxs(re,_r({},ne,!dl(re)&&{ownerState:_r({},ee,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),P&&P(e)}},z,{className:is(te.root,ne.className,s,D&&"MuiInputBase-readOnly"),children:[N,er.jsx(yd.Provider,{value:null,children:er.jsx(oe,_r({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:M,readOnly:D,required:Y.required,rows:O,value:F,onKeyDown:I,onKeyUp:k,type:j},Q,!dl(oe)&&{as:Z,ownerState:_r({},ee,Q.ownerState)},{ref:W,className:is(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(Lr(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(_r({},Y,{startAdornment:N})):null]}))]})}));function Od(e){return ls("MuiInput",e)}const qd=_r({},Rd,us("MuiInput",["root","underline","input"]));function Ld(e){return ls("MuiOutlinedInput",e)}const Nd=_r({},Rd,us("MuiOutlinedInput",["root","notchedOutline","input"]));function jd(e){return ls("MuiFilledInput",e)}const _d=_r({},Rd,us("MuiFilledInput",["root","underline","input"]));var zd=function(e,t){function r(r,n){return er.jsx(fc,_r({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=fc.muiName,y.memo(y.forwardRef(r))}(er.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Fd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Hd={entering:{opacity:1},entered:{opacity:1}},$d=y.forwardRef((function(e,t){const r=Eu(),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=Cc}=e,v=zr(e,Fd),x=y.useRef(null),S=Ks(x,gl(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)=>{Dc(e);const n=Tc({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=Tc({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 er.jsx(b,_r({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,_r({style:_r({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},Hd[e],m,a.props.style),ref:S},t))}))}));function Bd(e){return ls("MuiBackdrop",e)}us("MuiBackdrop",["root","invisible"]);const Wd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Vd=ic("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>_r({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"}))),Ud=y.forwardRef((function(e,t){var r,n,o;const i=uc({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=$d,transitionDuration:g}=i,b=zr(i,Wd),v=_r({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return cl({root:["root",r&&"invisible"]},Bd,t)})(v),x=null!=(r=f.root)?r:c.root;return er.jsx(m,_r({in:p,timeout:g},b,{children:er.jsx(Vd,_r({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:l,className:is(y.root,s,null==x?void 0:x.className),ownerState:_r({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),Gd=us("MuiBox",["root"]),Yd=wu(),Kd=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=qi("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Ba);return y.forwardRef((function(e,a){const s=Xa(r),l=es(e),{className:u,component:c="div"}=l,d=zr(l,as);return er.jsx(i,_r({as:c,ref:a,className:is(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:jr,defaultTheme:Yd,defaultClassName:Gd.root,generateClassName:ns.generate});function Xd(e){return ls("MuiButton",e)}const Jd=us("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"]),Zd=y.createContext({}),Qd=y.createContext(void 0),ep=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],tp=e=>_r({},"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}}),rp=ic(ed,{shouldForwardProp:e=>oc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Xi(r.color)}`],t[`size${Xi(r.size)}`],t[`${r.variant}Size${Xi(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 _r({},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":_r({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Fl(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})`:Fl(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})`:Fl(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":_r({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Jd.focusVisible}`]:_r({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Jd.disabled}`]:_r({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 ${Fl(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"},[`&.${Jd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Jd.disabled}`]:{boxShadow:"none"}})),np=ic("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Xi(r.size)}`]]}})((({ownerState:e})=>_r({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},tp(e)))),op=ic("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Xi(r.size)}`]]}})((({ownerState:e})=>_r({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},tp(e)))),ip=y.forwardRef((function(e,t){const r=y.useContext(Zd),n=y.useContext(Qd),o=uc({props:Os(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=zr(o,ep),S=_r({},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 _r({},a,cl({root:["root",i,`${i}${Xi(t)}`,`size${Xi(o)}`,`${i}Size${Xi(o)}`,`color${Xi(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Xi(o)}`],endIcon:["icon","endIcon",`iconSize${Xi(o)}`]},Xd,a))})(S),C=g&&er.jsx(np,{className:w.startIcon,ownerState:S,children:g}),E=p&&er.jsx(op,{className:w.endIcon,ownerState:S,children:p}),R=n||"";return er.jsxs(rp,_r({ownerState:S,className:is(r.className,w.root,l,R),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:is(w.focusVisible,f),ref:t,type:b},x,{classes:w,children:[C,i,E]}))}));function ap(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function sp(e){return parseInt($s(e).getComputedStyle(e).paddingRight,10)||0}function lp(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&&ap(e,o)}))}function up(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function cp(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Hs(e);return t.body===e?$s(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=ul(Hs(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${sp(n)+e}px`;const t=Hs(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${sp(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=Hs(n).body;else{const t=n.parentElement,r=$s(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 dp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function pp(e){const t=[],r=[];return Array.from(e.querySelectorAll(dp)).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 fp(){return!0}function hp(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=pp,isEnabled:a=fp,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=Ks(gl(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=Hs(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=Hs(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 er.jsxs(y.Fragment,{children:[er.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)}}),er.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const mp=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&&ap(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);lp(t,e.mount,e.modalRef,n,!0);const o=up(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=up(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=cp(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=up(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&&ap(e.modalRef,t),lp(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&&ap(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function gp(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=mp,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=Ks(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=Ys((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Hs(f.current).body;o.add(S(),e),h.current&&w()})),E=y.useCallback((()=>o.isTopModal(S())),[o]),R=Ys((e=>{f.current=e,e&&(c&&E()?w():h.current&&ap(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=pl(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=_r({},r,t);return _r({role:"presentation"},n,{onKeyDown:A(n),ref:m})},getBackdropProps:(e={})=>_r({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:zs((()=>{b(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:zs((()=>{b(!0),s&&s(),i&&P()}),null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:E,exited:g,hasTransition:v}}function bp(e){return ls("MuiModal",e)}us("MuiModal",["root","hidden","backdrop"]);const vp=["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"],yp=ic("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})=>_r({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),xp=ic(Ud,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Sp=y.forwardRef((function(e,t){var r,n,o,i,a,s;const l=uc({name:"MuiModal",props:e}),{BackdropComponent:u=xp,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:k,slots:M}=l,D=zr(l,vp),T=_r({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:R,keepMounted:P}),{getRootProps:O,getBackdropProps:q,getTransitionProps:L,portalRef:N,isTopModal:j,exited:_,hasTransition:z}=gp(_r({},T,{rootRef:t})),F=_r({},T,{exited:_}),H=(e=>{const{open:t,exited:r,classes:n}=e;return cl({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},bp,n)})(F),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),z){const{onEnter:e,onExited:t}=L();$.onEnter=e,$.onExited=t}const B=null!=(r=null!=(n=null==M?void 0:M.root)?n:g.Root)?r:yp,W=null!=(o=null!=(i=null==M?void 0:M.backdrop)?i:g.Backdrop)?o:u,V=null!=(a=null==k?void 0:k.root)?a:b.root,U=null!=(s=null==k?void 0:k.backdrop)?s:b.backdrop,G=ml({elementType:B,externalSlotProps:V,externalForwardedProps:D,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:F,className:is(d,null==V?void 0:V.className,null==H?void 0:H.root,!F.open&&F.exited&&(null==H?void 0:H.hidden))}),Y=ml({elementType:W,externalSlotProps:U,additionalProps:c,getSlotProps:e=>q(_r({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:is(null==U?void 0:U.className,null==c?void 0:c.className,null==H?void 0:H.backdrop),ownerState:F});return P||I||z&&!_?er.jsx(pd,{ref:N,container:h,disablePortal:w,children:er.jsxs(B,_r({},G,{children:[!R&&u?er.jsx(W,_r({},Y)):null,er.jsx(hp,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:j,open:I,children:y.cloneElement(f,$)})]}))}):null}));function wp(e){return ls("MuiDivider",e)}const Cp=us("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Ep=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Rp=ic("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})=>_r({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)`:Fl(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})=>_r({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>_r({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>_r({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>_r({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Pp=ic("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>_r({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)`}))),Ap=y.forwardRef((function(e,t){const r=uc({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=zr(r,Ep),h=_r({},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 cl({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"]},wp,n)})(h);return er.jsx(Rp,_r({as:a,className:is(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?er.jsx(Pp,{className:m.wrapper,ownerState:h,children:o}):null}))}));Ap.muiSkipListHighlight=!0;const Ip=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],kp=ic(kd,{shouldForwardProp:e=>oc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Ad(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 _r({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}},[`&.${_d.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${_d.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"},[`&.${_d.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${_d.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(.${_d.disabled}, .${_d.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${_d.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&_r({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}))})),Mp=ic(Md,{name:"MuiFilledInput",slot:"Input",overridesResolver:Id})((({theme:e,ownerState:t})=>_r({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}))),Dp=y.forwardRef((function(e,t){var r,n,o,i;const a=uc({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=zr(a,Ip),g=_r({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:r}=e;return _r({},t,cl({root:["root",!r&&"underline"],input:["input"]},jd,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?Fi(v,null!=p?p:l):v,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:kp,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:Mp;return er.jsx(Td,_r({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))}));Dp.muiName="Input";const Tp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Op(e){return`scale(${e}, ${e**2})`}const qp={entering:{opacity:1,transform:Op(1)},entered:{opacity:1,transform:"none"}},Lp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Np=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=Cc}=e,g=zr(e,Tp),b=Qs(),v=y.useRef(),x=Eu(),S=y.useRef(null),w=Ks(S,gl(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)=>{Dc(e);const{duration:r,delay:n,easing:o}=Tc({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:Lp?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}=Tc({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:Lp?o:.666*o,delay:Lp?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Op(.75),c&&c(e)})),k=C(d);return er.jsx(m,_r({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:P,onEntering:E,onExit:I,onExited:k,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,_r({style:_r({opacity:0,transform:Op(.75),visibility:"exited"!==e||a?void 0:"hidden"},qp[e],f,o.props.style),ref:w},t))}))}));Np.muiSupportAuto=!0;const jp=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],_p=ic(kd,{shouldForwardProp:e=>oc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Ad(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})`),_r({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"},[`&.${qd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${qd.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(.${qd.disabled}, .${qd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${qd.disabled}:before`]:{borderBottomStyle:"dotted"}})})),zp=ic(Md,{name:"MuiInput",slot:"Input",overridesResolver:Id})({}),Fp=y.forwardRef((function(e,t){var r,n,o,i;const a=uc({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=zr(a,jp),b=(e=>{const{classes:t,disableUnderline:r}=e;return _r({},t,cl({root:["root",!r&&"underline"],input:["input"]},Od,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?Fi(null!=f?f:u,v):v,x=null!=(r=null!=(n=h.root)?n:l.Root)?r:_p,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:zp;return er.jsx(Td,_r({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))}));function Hp(e){return ls("MuiLink",e)}Fp.muiName="Input";const $p=us("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Bp={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Wp=({theme:e,ownerState:t})=>{const r=(e=>Bp[e]||e)(t.color),n=Zi(e,`palette.${r}`,!1)||t.color,o=Zi(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Fl(n,.4)},Vp=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Up=ic(dd,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Xi(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>_r({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&_r({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Wp({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"},[`&.${$p.focusVisible}`]:{outline:"auto"}}))),Gp=y.forwardRef((function(e,t){const r=uc({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:s,TypographyClasses:l,underline:u="always",variant:c="inherit",sx:d}=r,p=zr(r,Vp),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=ll(),[b,v]=y.useState(!1),x=Ks(t,g),S=_r({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),w=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return cl({root:["root",`underline${Xi(o)}`,"button"===r&&"button",n&&"focusVisible"]},Hp,t)})(S);return er.jsx(Up,_r({color:o,className:is(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(Bp).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))})),Yp=y.createContext({});function Kp(e){return ls("MuiList",e)}us("MuiList",["root","padding","dense","subheader"]);const Xp=["children","className","component","dense","disablePadding","subheader"],Jp=ic("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})=>_r({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Zp=y.forwardRef((function(e,t){const r=uc({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,u=zr(r,Xp),c=y.useMemo((()=>({dense:a})),[a]),d=_r({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return cl({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Kp,t)})(d);return er.jsx(Yp.Provider,{value:c,children:er.jsxs(Jp,_r({as:i,className:is(p.root,o),ref:t,ownerState:d},u,{children:[l,n]}))})}));function Qp(e){return ls("MuiListItemIcon",e)}const ef=us("MuiListItemIcon",["root","alignItemsFlexStart"]),tf=["className"],rf=ic("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})=>_r({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),nf=y.forwardRef((function(e,t){const r=uc({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=zr(r,tf),i=_r({},r,{alignItems:y.useContext(Yp).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return cl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Qp,r)})(i);return er.jsx(rf,_r({className:is(a.root,n),ownerState:i,ref:t},o))})),of=us("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),af=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function sf(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function lf(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function uf(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 cf(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")&&uf(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const df=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=zr(e,af),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});qs((()=>{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=`${ul(Hs(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const h=Ks(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 er.jsx(Zp,_r({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=Hs(t).activeElement;if("ArrowDown"===r)e.preventDefault(),cf(t,n,l,s,sf);else if("ArrowUp"===r)e.preventDefault(),cf(t,n,l,s,lf);else if("Home"===r)e.preventDefault(),cf(t,null,l,s,sf);else if("End"===r)e.preventDefault(),cf(t,null,l,s,lf);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&&uf(n,o);o.previousKeyMatched&&(l||cf(t,n,!1,s,sf,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function pf(e){return ls("MuiPopover",e)}us("MuiPopover",["root","paper"]);const ff=["onEntering"],hf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],mf=["slotProps"];function gf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function bf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function vf(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function yf(e){return"function"==typeof e?e():e}const xf=ic(Sp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Sf=ic(Nc,{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}),wf=y.forwardRef((function(e,t){var r,n,o;const i=uc({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=Np,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:R=!1}=i,P=zr(i.TransitionProps,ff),A=zr(i,hf),I=null!=(r=null==x?void 0:x.paper)?r:b,k=y.useRef(),M=Ks(k,I.ref),D=_r({},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 cl({root:["root"],paper:["paper"]},pf,t)})(D),O=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=yf(s),t=(e&&1===e.nodeType?e:Hs(k.current).body).getBoundingClientRect();return{top:t.top+gf(t,l.vertical),left:t.left+bf(t,l.horizontal)}}),[s,l.horizontal,l.vertical,u,c]),q=y.useCallback((e=>({vertical:gf(e,S.vertical),horizontal:bf(e,S.horizontal)})),[S.horizontal,S.vertical]),L=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=q(t);if("none"===c)return{top:null,left:null,transformOrigin:vf(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=$s(yf(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:vf(r)}}),[s,c,O,q,m]),[N,j]=y.useState(g),_=y.useCallback((()=>{const e=k.current;if(!e)return;const t=L(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,j(!0)}),[L]);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=Fs((()=>{_()})),t=$s(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?Hs(yf(s)).body:void 0),H=null!=(n=null==v?void 0:v.root)?n:xf,$=null!=(o=null==v?void 0:v.paper)?o:Sf,B=ml({elementType:$,externalSlotProps:_r({},I,{style:N?I.style:_r({},I.style,{opacity:0})}),additionalProps:{elevation:h,ref:M},ownerState:D,className:is(T.paper,null==I?void 0:I.className)}),W=ml({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:is(T.root,p)}),{slotProps:V}=W,U=zr(W,mf);return er.jsx(H,_r({},U,!dl(H)&&{slotProps:V,disableScrollLock:R},{children:er.jsx(w,_r({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),_()},onExited:()=>{j(!1)},timeout:z},P,{children:er.jsx($,_r({},B,{children:d}))}))}))}));function Cf(e){return ls("MuiMenu",e)}us("MuiMenu",["root","paper","list"]);const Ef=["onEntering"],Rf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Pf={vertical:"top",horizontal:"right"},Af={vertical:"top",horizontal:"left"},If=ic(wf,{shouldForwardProp:e=>oc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kf=ic(Sf,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Mf=ic(df,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Df=y.forwardRef((function(e,t){var r,n;const o=uc({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=zr(o.TransitionProps,Ef),S=zr(o,Rf),w=(()=>{const e=y.useContext(wl);return null!=e&&e})(),C=_r({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:x,variant:g}),E=(e=>{const{classes:t}=e;return cl({root:["root"],paper:["paper"],list:["list"]},Cf,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:kf,k=null!=(n=v.paper)?n:p,M=ml({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[E.root,s]}),D=ml({elementType:I,externalSlotProps:k,ownerState:C,className:E.paper});return er.jsx(If,_r({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Pf:Af,slots:{paper:I,root:b.root},slotProps:{root:M,paper:D},open:d,ref:t,transitionDuration:h,TransitionProps:_r({onEntering:(e,t)=>{P.current&&P.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),m&&m(e,t)}},x),ownerState:C},S,{classes:f,children:er.jsx(Mf,_r({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:P,autoFocus:i&&(-1===A||l),autoFocusItem:R,variant:g},u,{className:is(E.list,u.className),children:a}))}))}));function Tf(e){return ls("MuiMenuItem",e)}const Of=us("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),qf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Lf=ic(ed,{shouldForwardProp:e=>oc(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})=>_r({},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"}},[`&.${Of.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fl(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Of.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Of.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fl(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})`:Fl(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Of.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Of.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Cp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Cp.inset}`]:{marginLeft:52},[`& .${of.root}`]:{marginTop:0,marginBottom:0},[`& .${of.inset}`]:{paddingLeft:36},[`& .${ef.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&_r({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${ef.root} svg`]:{fontSize:"1.25rem"}})))),Nf=y.forwardRef((function(e,t){const r=uc({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:u="menuitem",tabIndex:c,className:d}=r,p=zr(r,qf),f=y.useContext(Yp),h=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:s})),[f.dense,i,s]),m=y.useRef(null);qs((()=>{n&&m.current&&m.current.focus()}),[n]);const g=_r({},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 _r({},a,cl({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Tf,a))})(r),v=Ks(m,t);let x;return r.disabled||(x=void 0!==c?c:-1),er.jsx(Yp.Provider,{value:h,children:er.jsx(Lf,_r({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:is(b.focusVisible,l),className:is(b.root,d)},p,{ownerState:g,classes:b}))})}));function jf(e){return ls("MuiNativeSelect",e)}const _f=us("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),zf=["className","disabled","error","IconComponent","inputRef","variant"],Ff=({ownerState:e,theme:t})=>_r({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":_r({},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"},[`&.${_f.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}}),Hf=ic("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:oc,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${_f.multiple}`]:t.multiple}]}})(Ff),$f=({ownerState:e,theme:t})=>_r({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${_f.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Bf=ic("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Xi(r.variant)}`],r.open&&t.iconOpen]}})($f),Wf=y.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=zr(e,zf),u=_r({},e,{disabled:n,variant:s,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return cl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Xi(r)}`,i&&"iconOpen",n&&"disabled"]},jf,t)})(u);return er.jsxs(y.Fragment,{children:[er.jsx(Hf,_r({ownerState:u,className:is(c.select,r),disabled:n,ref:a||t},l)),e.multiple?null:er.jsx(Bf,{as:i,ownerState:u,className:c.icon})]})}));var Vf;const Uf=["children","classes","className","label","notched"],Gf=ic("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:oc})({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%"}),Yf=ic("legend",{name:"MuiNotchedOutlined",shouldForwardProp:oc})((({ownerState:e,theme:t})=>_r({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&&_r({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 Kf=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Xf=ic(kd,{shouldForwardProp:e=>oc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ad})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return _r({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Nd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Nd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Nd.focused} .${Nd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Nd.error} .${Nd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Nd.disabled} .${Nd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&_r({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Jf=ic((function(e){const{className:t,label:r,notched:n}=e,o=zr(e,Uf),i=null!=r&&""!==r,a=_r({},e,{notched:n,withLabel:i});return er.jsx(Gf,_r({"aria-hidden":!0,className:t,ownerState:a},o,{children:er.jsx(Yf,{ownerState:a,children:i?er.jsx("span",{children:r}):Vf||(Vf=er.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}})),Zf=ic(Md,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Id})((({theme:e,ownerState:t})=>_r({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}))),Qf=y.forwardRef((function(e,t){var r,n,o,i,a;const s=uc({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=zr(s,Kf),b=(e=>{const{classes:t}=e;return _r({},t,cl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Ld,t))})(s),v=xd(),x=vd({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=_r({},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:Xf,C=null!=(o=null!=(i=h.input)?i:l.Input)?o:Zf;return er.jsx(Td,_r({slots:{root:w,input:C},renderSuffix:e=>er.jsx(Jf,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=er.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:_r({},b,{notchedOutline:null})}))}));function eh(e){return ls("MuiSelect",e)}Qf.muiName="Input";const th=us("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var rh;const nh=["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"],oh=ic("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${th.select}`]:t.select},{[`&.${th.select}`]:t[r.variant]},{[`&.${th.error}`]:t.error},{[`&.${th.multiple}`]:t.multiple}]}})(Ff,{[`&.${th.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),ih=ic("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Xi(r.variant)}`],r.open&&t.iconOpen]}})($f),ah=ic("input",{shouldForwardProp:e=>nc(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 sh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function lh(e){return null==e||"string"==typeof e&&!e.trim()}const uh=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:k={},tabIndex:M,value:D,variant:T="standard"}=e,O=zr(e,nh),[q,L]=Gs({controlled:D,default:c,name:"Select"}),[N,j]=Gs({controlled:P,default:u,name:"Select"}),_=y.useRef(null),z=y.useRef(null),[F,H]=y.useState(null),{current:$}=y.useRef(null!=P),[B,W]=y.useState(),V=Ks(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:q})),[q]),y.useEffect((()=>{u&&N&&F&&!$&&(W(a?null:G.clientWidth),z.current.focus())}),[F,a]),y.useEffect((()=>{i&&z.current.focus()}),[i]),y.useEffect((()=>{if(!g)return;const e=Hs(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),$||(W(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(q)?q.slice():[];const t=q.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),q!==r&&(L(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;(Cd({value:q})||p)&&(I?Z=I(q):te=!0);const re=K.map((e=>{if(!y.isValidElement(e))return null;let t;if(v){if(!Array.isArray(q))throw new Error(Lr(2));t=q.some((t=>sh(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=sh(q,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=B;!a&&$&&F&&(oe=G.clientWidth),ne=void 0!==M?M:d?null:0;const ie=k.id||(x?`mui-component-select-${x}`:void 0),ae=_r({},e,{variant:T,value:q,open:J,error:f}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return cl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Xi(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},eh,t)})(ae),le=_r({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=Us();return er.jsxs(y.Fragment,{children:[er.jsx(oh,_r({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:q,name:x}}),S(e))},onFocus:E},k,{ownerState:ae,className:is(k.className,se.select,l),id:ie,children:lh(Z)?rh||(rh=er.jsx("span",{className:"notranslate",children:""})):Z})),er.jsx(ah,_r({"aria-invalid":f,value:Array.isArray(q)?q.join(","):q,name:x,ref:_,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(L(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},O)),er.jsx(ih,{as:h,className:se.icon,ownerState:ae}),er.jsx(Df,_r({id:`menu-${x||""}`,anchorEl:G,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:_r({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:_r({},b.slotProps,{paper:_r({},le,{style:_r({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})})),ch=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],dh=["root"],ph={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>oc(e)&&"variant"!==e,slot:"Root"},fh=ic(Fp,ph)(""),hh=ic(Qf,ph)(""),mh=ic(Dp,ph)(""),gh=y.forwardRef((function(e,t){const r=uc({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=zd,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=zr(r,ch),P=b?Wf:uh,A=vd({props:r,muiFormControl:xd(),states:["variant","error"]}),I=A.variant||E,k=_r({},r,{variant:I,classes:i}),M=(e=>{const{classes:t}=e;return t})(k),D=zr(M,dh),T=d||{standard:er.jsx(fh,{ownerState:k}),outlined:er.jsx(hh,{label:f,ownerState:k}),filled:er.jsx(mh,{ownerState:k})}[I],O=Ks(t,gl(T));return er.jsx(y.Fragment,{children:y.cloneElement(T,_r({inputComponent:P,inputProps:_r({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:_r({id:c},C)},p,{classes:p?Fi(D,p.classes):D},d?d.props.inputProps:{})},(g&&b||l)&&"outlined"===I?{notched:!0}:{},{ref:O,className:is(T.props.className,a,M.root)},!d&&{variant:I},R))})}));gh.muiName="Select";const bh=y.createContext();function vh(e){return ls("MuiTable",e)}us("MuiTable",["root","stickyHeader"]);const yh=["className","component","padding","size","stickyHeader"],xh=ic("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>_r({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":_r({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),Sh="table",wh=y.forwardRef((function(e,t){const r=uc({props:e,name:"MuiTable"}),{className:n,component:o=Sh,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=zr(r,yh),u=_r({},r,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:r}=e;return cl({root:["root",r&&"stickyHeader"]},vh,t)})(u),d=y.useMemo((()=>({padding:i,size:a,stickyHeader:s})),[i,a,s]);return er.jsx(bh.Provider,{value:d,children:er.jsx(xh,_r({as:o,role:o===Sh?null:"table",ref:t,className:is(c.root,n),ownerState:u},l))})})),Ch=y.createContext();function Eh(e){return ls("MuiTableBody",e)}us("MuiTableBody",["root"]);const Rh=["className","component"],Ph=ic("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Ah={variant:"body"},Ih="tbody",kh=y.forwardRef((function(e,t){const r=uc({props:e,name:"MuiTableBody"}),{className:n,component:o=Ih}=r,i=zr(r,Rh),a=_r({},r,{component:o}),s=(e=>{const{classes:t}=e;return cl({root:["root"]},Eh,t)})(a);return er.jsx(Ch.Provider,{value:Ah,children:er.jsx(Ph,_r({className:is(s.root,n),as:o,ref:t,role:o===Ih?null:"rowgroup",ownerState:a},i))})}));function Mh(e){return ls("MuiTableCell",e)}const Dh=us("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Th=["align","className","component","padding","scope","size","sortDirection","variant"],Oh=ic("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Xi(r.size)}`],"normal"!==r.padding&&t[`padding${Xi(r.padding)}`],"inherit"!==r.align&&t[`align${Xi(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>_r({},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?Bl(Fl(e.palette.divider,1),.88):Hl(Fl(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",[`&.${Dh.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}))),qh=y.forwardRef((function(e,t){const r=uc({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c}=r,d=zr(r,Th),p=y.useContext(bh),f=y.useContext(Ch),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=_r({},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 cl({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${Xi(n)}`,"normal"!==o&&`padding${Xi(o)}`,`size${Xi(i)}`]},Mh,t)})(v);let S=null;return u&&(S="asc"===u?"ascending":"descending"),er.jsx(Oh,_r({as:m,ref:t,className:is(x.root,o),"aria-sort":S,scope:g,ownerState:v},d))}));function Lh(e){return ls("MuiTableContainer",e)}us("MuiTableContainer",["root"]);const Nh=["className","component"],jh=ic("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),_h=y.forwardRef((function(e,t){const r=uc({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=zr(r,Nh),a=_r({},r,{component:o}),s=(e=>{const{classes:t}=e;return cl({root:["root"]},Lh,t)})(a);return er.jsx(jh,_r({ref:t,as:o,className:is(s.root,n),ownerState:a},i))}));function zh(e){return ls("MuiTableHead",e)}us("MuiTableHead",["root"]);const Fh=["className","component"],Hh=ic("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),$h={variant:"head"},Bh="thead",Wh=y.forwardRef((function(e,t){const r=uc({props:e,name:"MuiTableHead"}),{className:n,component:o=Bh}=r,i=zr(r,Fh),a=_r({},r,{component:o}),s=(e=>{const{classes:t}=e;return cl({root:["root"]},zh,t)})(a);return er.jsx(Ch.Provider,{value:$h,children:er.jsx(Hh,_r({as:o,className:is(s.root,n),ref:t,role:o===Bh?null:"rowgroup",ownerState:a},i))})}));function Vh(e){return ls("MuiTableRow",e)}const Uh=us("MuiTableRow",["root","selected","hover","head","footer"]),Gh=["className","component","hover","selected"],Yh=ic("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,[`&.${Uh.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Uh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fl(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}))`:Fl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),Kh="tr",Xh=y.forwardRef((function(e,t){const r=uc({props:e,name:"MuiTableRow"}),{className:n,component:o=Kh,hover:i=!1,selected:a=!1}=r,s=zr(r,Gh),l=y.useContext(Ch),u=_r({},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 cl({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},Vh,t)})(u);return er.jsx(Yh,_r({as:o,ref:t,className:is(c.root,n),role:o===Kh?null:"row",ownerState:u},s))}));function Jh(e){return er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:er.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}var Zh=function({fontSize:e="medium",children:t=null,className:r=""}={}){return er.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 Qh(e={}){return er.jsx(Zh,{...e,children:er.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[er.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),er.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 em(e={}){return er.jsx(Zh,{fontSize:"medium",...e,children:er.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[er.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),er.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 tm(e){return er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:er.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 rm(e={}){return er.jsx(Zh,{...e,children:er.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:er.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[er.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),er.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function nm(e={}){return er.jsx(Zh,{fontSize:"medium",...e,children:er.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:er.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:er.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function om({className:e}){return er.jsx(Zh,{fontSize:"small",className:e,children:er.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:er.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:er.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:er.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[er.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"}),er.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 im(e={}){return er.jsx(Zh,{...e,children:er.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:er.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:er.jsx("rect",{stroke:Tt.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const am={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:jt,"& > 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 sm=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Tt.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Tt.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:er.jsx(Jh,{"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 ${Tt.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Tt.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`,borderRadius:jt,backgroundColor:Tt.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 ${Tt.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Tt.WHITE,color:Tt.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:jt},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Tt.GREYSCALE_0_15,backgroundColor:Tt.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Tt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Tt.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Tt.GREEN_PALE},"&:active":{backgroundColor:Tt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Tt.GREEN_PALE,boxShadow:`0 0 0 3px ${_s(Tt.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Tt.BLUE_PALE},"&:active":{backgroundColor:Tt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Tt.BLUE_PALE,boxShadow:`0 0 0 3px ${_s(Tt.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:jt,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Tt.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Tt.GREYSCALE_0_15,backgroundColor:Tt.GREYSCALE_100_60,"&:active":{backgroundColor:Tt.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Tt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Tt.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Tt.PURPLE,"&.Mui-focusVisible":{borderColor:Tt.PURPLE,boxShadow:`0 0 0 3px ${_s(Tt.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Tt.GREEN,"&.Mui-focusVisible":{borderColor:Tt.GREEN,boxShadow:`0 0 0 3px ${_s(Tt.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Tt.BLUE,"&.Mui-focusVisible":{borderColor:Tt.BLUE,boxShadow:`0 0 0 3px ${_s(Tt.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Tt.ORANGE,"&.Mui-focusVisible":{borderColor:Tt.ORANGE,boxShadow:`0 0 0 3px ${_s(Tt.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Tt.RED,"&.Mui-focusVisible":{borderColor:Tt.RED,boxShadow:`0 0 0 3px ${_s(Tt.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Tt.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Tt.PURPLE_PALE},"&:active":{backgroundColor:Tt.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Tt.PURPLE_PALE,boxShadow:`0 0 0 3px ${_s(Tt.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Tt.GREEN_PALE},"&:active":{backgroundColor:Tt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Tt.GREEN_PALE,boxShadow:`0 0 0 3px ${_s(Tt.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Tt.BLUE_PALE},"&:active":{backgroundColor:Tt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Tt.BLUE_PALE,boxShadow:`0 0 0 3px ${_s(Tt.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Tt.ORANGE_PALE},"&:active":{backgroundColor:Tt.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Tt.ORANGE_PALE,boxShadow:`0 0 0 3px ${_s(Tt.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Tt.RED_PALE},"&:active":{backgroundColor:Tt.RED_DARK},"&.Mui-focusVisible":{borderColor:Tt.RED_PALE,boxShadow:`0 0 0 3px ${_s(Tt.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:Tt.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Tt.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:jt,boxShadow:`inset 0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:er.jsx(tm,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Ot,borderRadius:jt,color:Tt.TEXT_PRIMARY,backgroundColor:Tt.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Tt.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Tt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Tt.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Tt.GREYSCALE_0_05,color:Tt.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Tt.GREEN,borderColor:Tt.GREEN},"&.MuiChip-outlinedInfo":{color:Tt.BLUE,borderColor:Tt.BLUE},"&.MuiChip-outlinedWarning":{color:Tt.ORANGE,borderColor:Tt.ORANGE},"&.MuiChip-outlinedError":{color:Tt.RED,borderColor:Tt.RED}},outlined:{border:`solid 1px ${Tt.GREYSCALE_0_15}`,backgroundColor:Tt.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:jt,boxShadow:"none",backgroundColor:Tt.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Tt.GREEN,borderColor:Tt.GREEN},outlinedSecondary:{color:Tt.BLUE,borderColor:Tt.BLUE},label:{fontFamily:$t.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:er.jsx(tm,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:er.jsx(Jh,{"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:jt},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:jt,fontSize:qt,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Tt.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Tt.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Tt.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Tt.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Tt.GREYSCALE_0_05}}},popupIndicator:{borderRadius:jt,border:`solid 1px ${Tt.GREYSCALE_0_15}`,color:Tt.GREYSCALE_0_60,marginRight:0,width:Nt,height:Nt},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Tt.GREYSCALE_0_15}`},clearIndicator:{borderRadius:jt,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Tt.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:qt}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Ot,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Tt.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Tt.GREYSCALE_25,fontSize:Ot,fontFamily:$t.FONT_FAMILY,fontWeight:Ft,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Tt.TEXT_PRIMARY},"&.Mui-error":{color:Tt.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Tt.TEXT_SECONDARY,content:"'(optional)'",fontWeight:zt,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Tt.TEXT_SECONDARY,content:"'(required)'",fontWeight:zt,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:qt,lineHeight:"16px",backgroundColor:Tt.WHITE,borderRadius:jt,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Tt.GREYSCALE_0_05}`,borderColor:Tt.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Tt.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Tt.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Tt.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Tt.RED}`,boxShadow:`0px 0px 0px 1px ${Tt.RED}, inset 0 2px 0 0 ${Tt.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Tt.GREYSCALE_0_10}`,borderColor:Tt.GREYSCALE_0_10,backgroundColor:Tt.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Tt.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Tt.GREYSCALE_0_15,borderRadius:jt,boxShadow:`inset 0 2px 0 0 ${Tt.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>er.jsx(Jh,{...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:Tt.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Tt.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Tt.GREYSCALE_0_03},"&:active":{backgroundColor:Tt.GREYSCALE_0_10},"&:focus":{backgroundColor:Tt.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Tt.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Tt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Tt.GREYSCALE_0_30,"&:hover":{backgroundColor:Tt.GREYSCALE_0_0,borderColor:Tt.GREYSCALE_0_15},"& ~svg":{color:Tt.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Tt.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:jt}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Tt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Tt.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:qt,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Ot,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Ot,fontWeight:Ft,color:Tt.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Ft}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Tt.GREYSCALE_0_15}, 0px 0px 0px 1px ${Tt.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:er.jsx(nm,{}),checkedIcon:er.jsx(em,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Tt.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Tt.GREEN_PALE,boxShadow:`0 0 0 3px ${_s(Tt.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Tt.BLUE_PALE,boxShadow:`0 0 0 3px ${_s(Tt.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Tt.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Tt.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:er.jsx(im,{}),checkedIcon:er.jsx(Qh,{}),indeterminateIcon:er.jsx(rm,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:jt,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Tt.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Tt.GREYSCALE_0_55,color:Tt.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:Tt.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Tt.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Tt.GREYSCALE_0_55,"&:hover":{color:Tt.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:Tt.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Tt.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:qt,color:Tt.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Ft},secondary:{fontSize:Ot,color:Tt.GREYSCALE_45,fontWeight:zt,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:qt,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:qt,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Tt.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Ot,borderBottom:`solid 1px ${Tt.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:qt,color:Tt.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Tt.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Tt.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Tt.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:Tt.RED}}},"&.Mui-focusVisible":{backgroundColor:Tt.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:Tt.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:Tt.GREEN,height:"24px","&.Mui-disabled":{color:Tt.GREYSCALE_0_15}},rail:{backgroundColor:Tt.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Tt.GREYSCALE_0_05}`,borderRadius:jt,boxShadow:`inset 0px 0px 0px 1px ${Tt.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Tt.GREYSCALE_0_05}`,borderRadius:jt},thumb:{height:"16px",width:"16px",borderRadius:jt,backgroundColor:Tt.WHITE,boxShadow:`0px 1px 2px 0px ${Tt.GREYSCALE_0_15}, 0px 0px 0px 1px ${Tt.GREYSCALE_0_05}`,"&:hover":{borderRadius:jt,boxShadow:`0 2px 4px 0 ${Tt.GREYSCALE_0_30}, 0 0 0 1px ${Tt.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Tt.GREYSCALE_0_15}, 0 0 0 1px ${Tt.GREYSCALE_0_06}, 0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Tt.GREYSCALE_0_15}, 0 0 0 1px ${Tt.GREYSCALE_0_06}, 0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Tt.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Tt.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Tt.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Tt.GREYSCALE_0_15},markLabel:{color:Tt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Tt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Tt.WHITE,color:Tt.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:Tt.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:Tt.GREEN_PALE,boxShadow:`0 0 0 3px ${_s(Tt.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Tt.BLUE_PALE,boxShadow:`0 0 0 3px ${_s(Tt.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Tt.GREYSCALE_0_15,borderRadius:jt},thumb:{height:"16px",width:"16px",borderRadius:jt,backgroundColor:Tt.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:qt,fontWeight:Ft,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Tt.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Tt.MISC_FOCUS_BORDER}`,backgroundColor:Tt.GREYSCALE_0_03,borderRadius:jt},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Tt.GREYSCALE_25,"&.Mui-selected":{color:Tt.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:qt,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:jt,"&:hover":{backgroundColor:Tt.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 ${Tt.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Tt.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:jt,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Tt.GREYSCALE_0_05},"&:hover":{backgroundColor:Tt.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Tt.GREYSCALE_85}`,borderRight:`1px solid ${Tt.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Ft,backgroundColor:Tt.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:Tt.GREYSCALE_98,borderBottom:`1px solid ${Tt.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Tt.GREYSCALE_85}`,borderTop:`1px solid ${Tt.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Tt.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Tt.GREYSCALE_0_05,"&:hover":{backgroundColor:Tt.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Tt.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>er.jsx(om,{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 ${Tt.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:qt,borderRadius:jt,padding:"7px 16px",border:`1px solid ${Tt.GREYSCALE_0_15}`,backgroundColor:Tt.GREYSCALE_100_60,color:Tt.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Tt.GREYSCALE_0_10,border:`1px solid ${Tt.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Tt.GREYSCALE_0_03,border:`1px solid ${Tt.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Tt.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Tt.MISC_FOCUS_BORDER}`,border:`1px solid ${Tt.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Tt.GREYSCALE_25,backgroundColor:Tt.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Tt.GREYSCALE_0_10,border:`1px solid ${Tt.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Ot,height:24,width:24,padding:7},sizeLarge:{fontSize:Lt,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:qt,borderRadius:jt}}},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:Tt.GREYSCALE_20},tooltip:{backgroundColor:Tt.GREYSCALE_20,fontSize:Ot,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...am}:{}}),lm=(e,t)=>sm(t);var um=()=>({mode:"light",primary:{ultraLight:Tt.GREEN_ULTRA_LIGHT,light:Tt.GREEN_PALE,main:Tt.GREEN,dark:Tt.GREEN_DARK,extraDark:Tt.GREEN_EXTRA_DARK,contrastText:Tt.WHITE},secondary:{ultraLight:Tt.BLUE_ULTRA_LIGHT,light:Tt.BLUE_PALE,main:Tt.BLUE,dark:Tt.BLUE_DARK,extraDark:Tt.BLUE_EXTRA_DARK,contrastText:Tt.WHITE},error:{ultraLight:Tt.RED_ULTRA_LIGHT,light:Tt.RED_PALE,main:Tt.RED,dark:Tt.RED_DARK,extraDark:Tt.RED_EXTRA_DARK,contrastText:Tt.WHITE},warning:{ultraLight:Tt.ORANGE_ULTRA_LIGHT,light:Tt.ORANGE_PALE,main:Tt.ORANGE,dark:Tt.ORANGE_DARK,extraDark:Tt.ORANGE_EXTRA_DARK,contrastText:Tt.WHITE},success:{ultraLight:Tt.GREEN_ULTRA_LIGHT,light:Tt.GREEN_PALE,main:Tt.GREEN,dark:Tt.GREEN_DARK,extraDark:Tt.GREEN_EXTRA_DARK,contrastText:Tt.WHITE},info:{ultraLight:Tt.BLUE_ULTRA_LIGHT,light:Tt.BLUE_PALE,main:Tt.BLUE,dark:Tt.BLUE_DARK,extraDark:Tt.BLUE_EXTRA_DARK,contrastText:Tt.WHITE},text:{primary:Tt.TEXT_PRIMARY,secondary:Tt.TEXT_SECONDARY,disabled:Tt.GREYSCALE_0_30},action:{hover:Tt.GREYSCALE_0_03,hoverOpacity:.03,selected:Tt.GREYSCALE_0_05,selectedOpacity:.05,focus:Tt.MISC_FOCUS_BORDER},amethyst:{ultraLight:Tt.WHITE,main:Tt.PURPLE,light:Tt.PURPLE_PALE,dark:Tt.PURPLE_DARK,extraDark:Tt.GREYSCALE_0_0,contrastText:Tt.WHITE},background:{paper:Tt.WHITE,default:Tt.GREYSCALE_95},divider:Tt.GREYSCALE_0_15});var cm=e=>um();var dm=(e,t=!1)=>({components:lm(0,t),palette:cm(e),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:qt,fontWeightLight:_t,fontWeightRegular:zt,fontWeightMedium:Ft,fontWeightBold:Ht,htmlFontSize:qt,fontFamily:$t.FONT_FAMILY,button:{fontWeight:Ft,fontSize:qt,textTransform:"none"},body1:{fontSize:Lt,lineHeight:"24px"},body2:{fontSize:qt,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Nt,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Lt,fontWeight:Ft,lineHeight:"16px"},h6:{fontSize:qt,fontWeight:Ft,lineHeight:"16px"},caption:{color:Tt.TEXT_SECONDARY},subtitle1:{fontSize:qt,color:Tt.TEXT_SECONDARY},subtitle2:{fontSize:Ot,color:Tt.TEXT_SECONDARY}},shape:{borderRadius:jt}});const pm={...Dt};var fm={},hm={exports:{}},mm={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}(mm);var gm=mm.exports;!function(e){var t=gm.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}(hm);var bm=hm.exports,vm={};function ym(e,t){return function(){return null}}function xm(e){return e&&"object"===Ml(e)&&e.constructor===Object}function Sm(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?_r({},e):e;return xm(e)&&xm(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(xm(t[o])&&o in e?n[o]=Sm(e[o],t[o],r):n[o]=t[o])})),n}var wm=(Di.element,function(){return null});wm.isRequired=(Di.element.isRequired,function(){return null});var Cm=function(){return null};var Em={exports:{}},Rm={},Pm=60103,Am=60106,Im=60107,km=60108,Mm=60114,Dm=60109,Tm=60110,Om=60112,qm=60113,Lm=60120,Nm=60115,jm=60116,_m=60121,zm=60122,Fm=60117,Hm=60129,$m=60131;if("function"==typeof Symbol&&Symbol.for){var Bm=Symbol.for;Pm=Bm("react.element"),Am=Bm("react.portal"),Im=Bm("react.fragment"),km=Bm("react.strict_mode"),Mm=Bm("react.profiler"),Dm=Bm("react.provider"),Tm=Bm("react.context"),Om=Bm("react.forward_ref"),qm=Bm("react.suspense"),Lm=Bm("react.suspense_list"),Nm=Bm("react.memo"),jm=Bm("react.lazy"),_m=Bm("react.block"),zm=Bm("react.server.block"),Fm=Bm("react.fundamental"),Hm=Bm("react.debug_trace_mode"),$m=Bm("react.legacy_hidden")}function Wm(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Pm:switch(e=e.type){case Im:case Mm:case km:case qm:case Lm:return e;default:switch(e=e&&e.$$typeof){case Tm:case Om:case jm:case Nm:case Dm:return e;default:return t}}case Am:return t}}}var Vm=Dm,Um=Pm,Gm=Om,Ym=Im,Km=jm,Xm=Nm,Jm=Am,Zm=Mm,Qm=km,eg=qm;Rm.ContextConsumer=Tm,Rm.ContextProvider=Vm,Rm.Element=Um,Rm.ForwardRef=Gm,Rm.Fragment=Ym,Rm.Lazy=Km,Rm.Memo=Xm,Rm.Portal=Jm,Rm.Profiler=Zm,Rm.StrictMode=Qm,Rm.Suspense=eg,Rm.isAsyncMode=function(){return!1},Rm.isConcurrentMode=function(){return!1},Rm.isContextConsumer=function(e){return Wm(e)===Tm},Rm.isContextProvider=function(e){return Wm(e)===Dm},Rm.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Pm},Rm.isForwardRef=function(e){return Wm(e)===Om},Rm.isFragment=function(e){return Wm(e)===Im},Rm.isLazy=function(e){return Wm(e)===jm},Rm.isMemo=function(e){return Wm(e)===Nm},Rm.isPortal=function(e){return Wm(e)===Am},Rm.isProfiler=function(e){return Wm(e)===Mm},Rm.isStrictMode=function(e){return Wm(e)===km},Rm.isSuspense=function(e){return Wm(e)===qm},Rm.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Im||e===Mm||e===Hm||e===km||e===qm||e===Lm||e===$m||"object"==typeof e&&null!==e&&(e.$$typeof===jm||e.$$typeof===Nm||e.$$typeof===Dm||e.$$typeof===Tm||e.$$typeof===Om||e.$$typeof===Fm||e.$$typeof===_m||e[0]===zm)},Rm.typeOf=Wm,Em.exports=Rm;var tg=Em.exports,rg=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ng(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(rg);return t&&t[1]||""}(e)||t}function og(e,t,r){var n=ng(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var ig="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),ag=Di.oneOfType([Di.func,Di.object]),sg=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:ym,deepmerge:Sm,elementAcceptingRef:wm,elementTypeAcceptingRef:Cm,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 ng(e,"Component");if("object"===Ml(e))switch(e.$$typeof){case tg.ForwardRef:return og(e,e.render,"ForwardRef");case tg.Memo:return og(e,e.type,"memo");default:return}}},ponyfillGlobal:ig,refType:ag}),lg=Wt(sg);Object.defineProperty(vm,"__esModule",{value:!0}),vm.hexToRgb=dg,vm.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=fg(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(""))},vm.hslToRgb=pg,vm.decomposeColor=fg,vm.recomposeColor=hg,vm.getContrastRatio=function(e,t){var r=mg(e),n=mg(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},vm.getLuminance=mg,vm.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return mg(e)>.5?bg(e,t):vg(e,t)},vm.fade=function(e,t){return gg(e,t)},vm.alpha=gg,vm.darken=bg,vm.lighten=vg;var ug=lg;function cg(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 dg(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 pg(e){var t=(e=fg(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])),hg({type:s,values:l})}function fg(e){if(e.type)return e;if("#"===e.charAt(0))return fg(dg(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,ug.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 hg(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 mg(e){var t="hsl"===(e=fg(e)).type?fg(pg(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 gg(e,t){return e=fg(e),t=cg(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,hg(e)}function bg(e,t){if(e=fg(e),t=cg(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 hg(e)}function vg(e,t){if(e=fg(e),t=cg(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 hg(e)}var yg,xg,Sg,wg={},Cg={exports:{}},Eg={exports:{}},Rg={exports:{}};function Pg(){return yg||(yg=1,function(e){var t=gm.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}(Rg)),Rg.exports}function Ag(){return xg||(xg=1,function(e){var t=gm.default,r=Pg();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Eg)),Eg.exports}function Ig(){return Sg||(Sg=1,function(e){var t=Ag();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}(Cg)),Cg.exports}var kg,Mg={exports:{}};function Dg(){return kg||(kg=1,function(e){var t=Du();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}(Mg)),Mg.exports}var Tg,Og={};var qg,Lg={};var Ng,jg={},_g={};var zg,Fg={};var Hg,$g={};var Bg,Wg={};var Vg,Ug={};var Gg,Yg={};var Kg,Xg={};var Jg,Zg,Qg={};function eb(){if(Zg)return jg;Zg=1;var e=Nl;Object.defineProperty(jg,"__esModule",{value:!0}),jg.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,k=void 0===I?"light":I,M=e.contrastThreshold,D=void 0===M?3:M,T=e.tonalOffset,O=void 0===T?.2:T,q=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function L(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=L(e.main)),e},j={dark:h,light:f},_=(0,n.deepmerge)((0,t.default)({common:o.default,type:k,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:L,augmentColor:N,tonalOffset:O},j[k]),q);return _},jg.dark=jg.light=void 0;var t=e(Iu()),r=e(Dg()),n=lg,o=e(function(){if(Ng)return _g;Ng=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(zg)return Fg;zg=1,Object.defineProperty(Fg,"__esModule",{value:!0}),Fg.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 Fg.default=e,Fg}()),a=e(function(){if(Hg)return $g;Hg=1,Object.defineProperty($g,"__esModule",{value:!0}),$g.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 $g.default=e,$g}()),s=e(function(){if(Bg)return Wg;Bg=1,Object.defineProperty(Wg,"__esModule",{value:!0}),Wg.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 Wg.default=e,Wg}()),l=e(function(){if(Vg)return Ug;Vg=1,Object.defineProperty(Ug,"__esModule",{value:!0}),Ug.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 Ug.default=e,Ug}()),u=e(function(){if(Gg)return Yg;Gg=1,Object.defineProperty(Yg,"__esModule",{value:!0}),Yg.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 Yg.default=e,Yg}()),c=e(function(){if(Kg)return Xg;Kg=1,Object.defineProperty(Xg,"__esModule",{value:!0}),Xg.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 Xg.default=e,Xg}()),d=e(function(){if(Jg)return Qg;Jg=1,Object.defineProperty(Qg,"__esModule",{value:!0}),Qg.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 Qg.default=e,Qg}()),p=vm,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}};jg.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 jg.dark=h,jg}var tb,rb={};var nb,ob={};var ib,ab={};var sb={};function lb(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 ub(e,t){if(e){if("string"==typeof e)return lb(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)?lb(e,t):void 0}}function cb(e){return function(e){if(Array.isArray(e))return lb(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ub(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 db(e,t){return t?Sm(e,t,{clone:!1}):e}var pb={xs:0,sm:600,md:960,lg:1280,xl:1920},fb={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(pb[e],"px)")}};function hb(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||fb;return t.reduce((function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e}),{})}if("object"===Ml(t)){var o=e.theme.breakpoints||fb;return Object.keys(t).reduce((function(e,n){return e[o.up(n)]=r(t[n]),e}),{})}return r(t)}function mb(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function gb(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=mb(e.theme,o)||{};return hb(e,r,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=mb(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=Dl(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 bb(){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?db(t,n):t}),{})};return n.propTypes={},n.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),n}function vb(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var yb=gb({prop:"border",themeKey:"borders",transform:vb}),xb=gb({prop:"borderTop",themeKey:"borders",transform:vb}),Sb=gb({prop:"borderRight",themeKey:"borders",transform:vb}),wb=gb({prop:"borderBottom",themeKey:"borders",transform:vb}),Cb=gb({prop:"borderLeft",themeKey:"borders",transform:vb}),Eb=gb({prop:"borderColor",themeKey:"palette"}),Rb=gb({prop:"borderRadius",themeKey:"shape"}),Pb=bb(yb,xb,Sb,wb,Cb,Eb,Rb);function Ab(e,t){var r={};return Object.keys(e).forEach((function(n){-1===t.indexOf(n)&&(r[n]=e[n])})),r}function Ib(e){var t=function(t){var r=e(t);return t.css?_r({},db(r,e(_r({theme:t.theme},t.css))),Ab(t.css,[e.filterProps])):t.sx?_r({},db(r,e(_r({theme:t.theme},t.sx))),Ab(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(cb(e.filterProps)),t}var kb=bb(gb({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),gb({prop:"display"}),gb({prop:"overflow"}),gb({prop:"textOverflow"}),gb({prop:"visibility"}),gb({prop:"whiteSpace"})),Mb=gb({prop:"flexBasis"}),Db=gb({prop:"flexDirection"}),Tb=gb({prop:"flexWrap"}),Ob=gb({prop:"justifyContent"}),qb=gb({prop:"alignItems"}),Lb=gb({prop:"alignContent"}),Nb=gb({prop:"order"}),jb=gb({prop:"flex"}),_b=gb({prop:"flexGrow"}),zb=gb({prop:"flexShrink"}),Fb=gb({prop:"alignSelf"}),Hb=gb({prop:"justifyItems"}),$b=gb({prop:"justifySelf"}),Bb=bb(Mb,Db,Tb,Ob,qb,Lb,Nb,jb,_b,zb,Fb,Hb,$b),Wb=gb({prop:"gridGap"}),Vb=gb({prop:"gridColumnGap"}),Ub=gb({prop:"gridRowGap"}),Gb=gb({prop:"gridColumn"}),Yb=gb({prop:"gridRow"}),Kb=gb({prop:"gridAutoFlow"}),Xb=gb({prop:"gridAutoColumns"}),Jb=gb({prop:"gridAutoRows"}),Zb=gb({prop:"gridTemplateColumns"}),Qb=gb({prop:"gridTemplateRows"}),ev=gb({prop:"gridTemplateAreas"}),tv=gb({prop:"gridArea"}),rv=bb(Wb,Vb,Ub,Gb,Yb,Kb,Xb,Jb,Zb,Qb,ev,tv),nv=gb({prop:"color",themeKey:"palette"}),ov=gb({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),iv=bb(nv,ov),av=gb({prop:"position"}),sv=gb({prop:"zIndex",themeKey:"zIndex"}),lv=gb({prop:"top"}),uv=gb({prop:"right"}),cv=gb({prop:"bottom"}),dv=gb({prop:"left"}),pv=bb(av,sv,lv,uv,cv,dv),fv=gb({prop:"boxShadow",themeKey:"shadows"});function hv(e){return e<=1?"".concat(100*e,"%"):e}var mv=gb({prop:"width",transform:hv}),gv=gb({prop:"maxWidth",transform:hv}),bv=gb({prop:"minWidth",transform:hv}),vv=gb({prop:"height",transform:hv}),yv=gb({prop:"maxHeight",transform:hv}),xv=gb({prop:"minHeight",transform:hv}),Sv=gb({prop:"size",cssProperty:"width",transform:hv}),wv=gb({prop:"size",cssProperty:"height",transform:hv}),Cv=gb({prop:"boxSizing"}),Ev=bb(mv,gv,bv,vv,yv,xv,Cv);function Rv(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)||ub(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 Pv={m:"margin",p:"padding"},Av={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Iv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},kv=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(!Iv[e])return[e];e=Iv[e]}var t=Rv(e.split(""),2),r=t[0],n=t[1],o=Pv[r],i=Av[n]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),Mv=["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 Dv(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 Tv(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 Ov(e){var t=Dv(e.theme);return Object.keys(e).map((function(r){if(-1===Mv.indexOf(r))return null;var n=Tv(kv(r),t),o=e[r];return hb(e,o,n)})).reduce(db,{})}Ov.propTypes={},Ov.filterProps=Mv;var qv,Lv=gb({prop:"fontFamily",themeKey:"typography"}),Nv=gb({prop:"fontSize",themeKey:"typography"}),jv=gb({prop:"fontStyle",themeKey:"typography"}),_v=gb({prop:"fontWeight",themeKey:"typography"}),zv=gb({prop:"letterSpacing"}),Fv=gb({prop:"lineHeight"}),Hv=gb({prop:"textAlign"}),$v=bb(Lv,Nv,jv,_v,zv,Fv,Hv),Bv=Object.freeze({__proto__:null,alignContent:Lb,alignItems:qb,alignSelf:Fb,bgcolor:ov,border:yb,borderBottom:wb,borderColor:Eb,borderLeft:Cb,borderRadius:Rb,borderRight:Sb,borderTop:xb,borders:Pb,bottom:cv,boxSizing:Cv,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||fb,o=n.keys.reduce((function(r,o){return t[o]&&((r=r||{})[n.up(o)]=e(_r({theme:t.theme},t[o]))),r}),null);return db(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(cb(e.filterProps)),t},color:nv,compose:bb,createUnarySpacing:Dv,css:function(e){return Ib(e)},display:kb,flex:jb,flexBasis:Mb,flexDirection:Db,flexGrow:_b,flexShrink:zb,flexWrap:Tb,flexbox:Bb,fontFamily:Lv,fontSize:Nv,fontStyle:jv,fontWeight:_v,grid:rv,gridArea:tv,gridAutoColumns:Xb,gridAutoFlow:Kb,gridAutoRows:Jb,gridColumn:Gb,gridColumnGap:Vb,gridGap:Wb,gridRow:Yb,gridRowGap:Ub,gridTemplateAreas:ev,gridTemplateColumns:Zb,gridTemplateRows:Qb,height:vv,justifyContent:Ob,justifyItems:Hb,justifySelf:$b,left:dv,letterSpacing:zv,lineHeight:Fv,maxHeight:yv,maxWidth:gv,minHeight:xv,minWidth:bv,order:Nb,palette:iv,position:av,positions:pv,right:uv,shadows:fv,sizeHeight:wv,sizeWidth:Sv,sizing:Ev,spacing:Ov,style:gb,styleFunctionSx:Ib,textAlign:Hv,top:lv,typography:$v,width:mv,zIndex:sv}),Wv=Wt(Bv);var Vv,Uv={};function Gv(){if(Vv)return Uv;Vv=1;var e=Nl;Object.defineProperty(Uv,"__esModule",{value:!0}),Uv.default=Uv.duration=Uv.easing=void 0;var t=e(Dg()),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)"};Uv.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")}Uv.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 Uv.default=i,Uv}var Yv,Kv,Xv={};function Jv(){if(Kv)return wg;Kv=1;var e=Nl;Object.defineProperty(wg,"__esModule",{value:!0}),wg.createMuiTheme=function(){return p.apply(void 0,arguments)},wg.default=void 0,e(Ig());var t=e(Dg()),r=lg,n=e(function(){if(Tg)return Og;Tg=1;var e=Nl;Object.defineProperty(Og,"__esModule",{value:!0}),Og.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)},Og.keys=void 0;var t=e(Iu()),r=e(Dg()),n=["xs","sm","md","lg","xl"];return Og.keys=n,Og}()),o=e(function(){if(qg)return Lg;qg=1;var e=Nl;Object.defineProperty(Lg,"__esModule",{value:!0}),Lg.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(Ig()),r=e(Iu());return Lg}()),i=e(eb()),a=e(function(){if(tb)return rb;tb=1;var e=Nl;Object.defineProperty(rb,"__esModule",{value:!0}),rb.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")},k=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)},M={h1:k(m,96,1.167,-1.5),h2:k(m,60,1.2,-.5),h3:k(b,48,1.167,0),h4:k(b,34,1.235,.25),h5:k(b,24,1.334,0),h6:k(y,20,1.6,.15),subtitle1:k(b,16,1.75,.15),subtitle2:k(y,14,1.57,.1),body1:k(b,16,1.5,.15),body2:k(b,14,1.43,.15),button:k(y,14,1.75,.4,a),caption:k(b,12,1.66,.4),overline:k(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},M),P,{clone:!1})};var t=e(Iu()),r=e(Dg()),n=lg;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 rb}()),s=e(function(){if(nb)return ob;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(",")}nb=1,Object.defineProperty(ob,"__esModule",{value:!0}),ob.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 ob.default=t,ob}()),l=e(function(){if(ib)return ab;ib=1,Object.defineProperty(ab,"__esModule",{value:!0}),ab.default=void 0;var e={borderRadius:4};return ab.default=e,ab}()),u=e(function(){if(qv)return sb;qv=1,Object.defineProperty(sb,"__esModule",{value:!0}),sb.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=Wv;return sb}()),c=e(Gv()),d=e(function(){if(Yv)return Xv;Yv=1,Object.defineProperty(Xv,"__esModule",{value:!0}),Xv.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return Xv.default=e,Xv}());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 wg.default=f,wg}var Zv,Qv={};var ey={},ty="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",ry=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function ny(){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!==ry.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[ty]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function oy(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 iy="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},ay="object"===("undefined"==typeof window?"undefined":iy(window))&&"object"===("undefined"==typeof document?"undefined":iy(document))&&9===document.nodeType;function sy(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,Dl(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var ly={}.constructor;function uy(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(uy);if(e.constructor!==ly)return e;var t={};for(var r in e)t[r]=uy(e[r]);return t}function cy(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=uy(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var dy=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},py=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+=dy(e[r]," ");else t=dy(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function fy(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function hy(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function my(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=fy(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+=hy(p+":"+u+py(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=hy(h+":"+u+py(m)+";",i))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(n&&(n+=l),n+=hy(g+":"+u+py(b)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),hy(""+e+u+"{"+n,--i)+hy("}",i)):n}var gy=/([[\].#*$><+~=|^:(),"'`\s])/g,by="undefined"!=typeof CSS&&CSS.escape,vy=function(e){return by?by(e):e.replace(gy,"\\$1")},yy=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}(),xy=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(Rc(Rc(o)),s),o.selectorText="."+vy(o.id)),o}mc(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]=py(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?_r({},e,{allowEmpty:!0}):e;return my(this.selectorText,this.style,r)},sy(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}(yy),Sy={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new xy(e,t,r)}},wy={indent:1,children:!0},Cy=/@([\w-]+)/,Ey=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(Cy);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new Yy(_r({},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=wy);var t=fy(e).linebreak;if(null==e.indent&&(e.indent=wy.indent),null==e.children&&(e.children=wy.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),Ry=/@container|@media|@supports\s+/,Py={onCreateRule:function(e,t,r){return Ry.test(e)?new Ey(e,t,r):null}},Ay={indent:1,children:!0},Iy=/@keyframes\s+([\w-]+)/,ky=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(Iy);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:vy(a(this,i)),this.rules=new Yy(_r({},r,{parent:this})),t)this.rules.add(s,t[s],_r({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Ay);var t=fy(e).linebreak;if(null==e.indent&&(e.indent=Ay.indent),null==e.children&&(e.children=Ay.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}(),My=/@keyframes\s+/,Dy=/\$([\w-]+)/g,Ty=function(e,t){return"string"==typeof e?e.replace(Dy,(function(e,r){return r in t?t[r]:e})):e},Oy=function(e,t,r){var n=e[t],o=Ty(n,r);o!==n&&(e[t]=o)},qy={onCreateRule:function(e,t,r){return"string"==typeof e&&My.test(e)?new ky(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&Oy(e,"animation-name",r.keyframes),"animation"in e&&Oy(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 Ty(e,n.keyframes);default:return e}}},Ly=function(e){function t(){return e.apply(this,arguments)||this}return mc(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?_r({},e,{allowEmpty:!0}):e;return my(this.key,this.style,r)},t}(yy),Ny={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new Ly(e,t,r):null}},jy=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=fy(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=my(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return my(this.at,this.style,e)},e}(),_y=/@font-face/,zy={onCreateRule:function(e,t,r){return _y.test(e)?new jy(e,t,r):null}},Fy=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 my(this.key,this.style,e)},e}(),Hy={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new Fy(e,t,r):null}},$y=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}(),By={"@charset":!0,"@import":!0,"@namespace":!0},Wy={onCreateRule:function(e,t,r){return e in By?new $y(e,t,r):null}},Vy=[Sy,Py,qy,Ny,zy,Hy,Wy],Uy={process:!0},Gy={force:!0,process:!0},Yy=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=_r({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="."+vy(this.classes[d]));var p=cy(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=_r({},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 xy?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof ky&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof xy?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof ky&&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=Uy);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,Gy)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,Gy)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=fy(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}(),Ky=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=_r({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Yy(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}(),Xy=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}(),Jy=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=zr(t,["attached"]),o=fy(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},sy(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Zy=new Jy,Qy="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),ex="2f1acc6c3a606b082e5eef5e54414ffb";null==Qy[ex]&&(Qy[ex]=0);var tx=Qy[ex]++,rx=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")+tx+o+t:i+r.key+"-"+tx+(o?"-"+o:"")+"-"+t}},nx=function(e){var t;return function(){return t||(t=e()),t}},ox=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},ix=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=py(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},ax=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},sx=function(e,t){return e.selectorText=t,e.selectorText===t},lx=nx((function(){return document.querySelector("head")}));function ux(e){var t=Zy.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=lx(),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 cx=nx((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),dx=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]},px=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},fx=function(){function e(e){this.getPropertyValue=ox,this.setProperty=ix,this.removeProperty=ax,this.setSelector=sx,this.hasInsertedRules=!1,this.cssRules=[],e&&Zy.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=cx();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=ux(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 lx().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=px(r,t);if(!1===(o=dx(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=px(r,t),l=dx(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 Ky&&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}(),hx=0,mx=function(){function e(e){this.id=hx++,this.version="10.10.0",this.plugins=new Xy,this.options={id:{minify:!1},createGenerateId:rx,Renderer:ay?fx:null,plugins:[]},this.generateId=rx({minify:!1});for(var t=0;t<Vy.length;t++)this.plugins.use(Vy[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=_r({},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===Zy.index?0:Zy.index+1);var n=new Ky(e,_r({},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(),Zy.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=_r({},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=cy(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}(),gx=function(e){return new mx(e)},bx="object"==typeof CSS&&null!=CSS&&"number"in CSS;function vx(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=vx(n);i&&(t||(t={}),t[r]=i)}}return t}
|
|
90
|
+
`),_c.rippleVisible,Vc,550,(({theme:e})=>e.transitions.easing.easeInOut),_c.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),_c.child,_c.childLeaving,Uc,550,(({theme:e})=>e.transitions.easing.easeInOut),_c.childPulsate,Gc,(({theme:e})=>e.transitions.easing.easeInOut)),Xc=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Fr(r,zc),[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=el(),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,tr.jsx(Kc,{classes:{ripple:as(o.ripple,_c.ripple),rippleVisible:as(o.rippleVisible,_c.rippleVisible),ripplePulsate:as(o.ripplePulsate,_c.ripplePulsate),child:as(o.child,_c.child),childLeaving:as(o.childLeaving,_c.childLeaving),childPulsate:as(o.childPulsate,_c.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]),tr.jsx(Yc,zr({className:as(_c.root,o.root,i),ref:h},a,{children:tr.jsx(Dc,{component:null,exit:!0,children:s})}))}));function Jc(e){return us("MuiButtonBase",e)}const Zc=cs("MuiButtonBase",["root","disabled","focusVisible"]),Qc=["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"],ed=ac("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"},[`&.${Zc.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),td=y.forwardRef((function(e,t){const r=cc({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:k,touchRippleRef:M,type:D}=r,T=Fr(r,Qc),q=y.useRef(null),O=y.useRef(null),L=Xs(O,M),{isFocusVisibleRef:N,onFocus:j,onBlur:_,ref:z}=ul(),[F,H]=y.useState(!1);l&&F&&H(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),q.current.focus()}})),[]);const[$,B]=y.useState(!1);y.useEffect((()=>{B(!0)}),[]);const W=$&&!u&&!l;function V(e,t,r=c){return Ks((n=>{t&&t(n);return!r&&O.current&&O.current[e](n),!0}))}y.useEffect((()=>{F&&d&&!u&&$&&O.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=Ks((e=>{q.current||(q.current=e.currentTarget),j(e),!0===N.current&&(H(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=q.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=y.useRef(!1),oe=Ks((e=>{d&&!ne.current&&F&&O.current&&" "===e.key&&(ne.current=!0,O.current.stop(e,(()=>{O.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=Ks((e=>{d&&" "===e.key&&O.current&&F&&!e.defaultPrevented&&(ne.current=!1,O.current.stop(e,(()=>{O.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=Xs(t,z,q),ue=zr({},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=dl({root:["root",t&&"disabled",r&&"focusVisible"]},Jc,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return tr.jsxs(ed,zr({as:ae,className:as(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,W?tr.jsx(Xc,zr({ref:L,center:o},k)):null]}))}));function rd(e){return us("MuiIconButton",e)}const nd=cs("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),od=["edge","children","className","color","disabled","disableFocusRipple","size"],id=ac(td,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${Ji(r.color)}`],r.edge&&t[`edge${Ji(r.edge)}`],t[`size${Ji(r.size)}`]]}})((({theme:e,ownerState:t})=>zr({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})`:Hl(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 zr({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&zr({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":zr({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Hl(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)},{[`&.${nd.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),ad=y.forwardRef((function(e,t){const r=cc({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=Fr(r,od),d=zr({},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 dl({root:["root",r&&"disabled","default"!==n&&`color${Ji(n)}`,o&&`edge${Ji(o)}`,`size${Ji(i)}`]},rd,t)})(d);return tr.jsx(id,zr({className:as(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},c,{ownerState:d,children:o}))}));function sd(e){return us("MuiTypography",e)}cs("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const ld=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],ud=ac("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${Ji(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>zr({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}))),cd={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},dd={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},pd=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiTypography"}),n=(e=>dd[e]||e)(r.color),o=ts(zr({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=cd}=o,f=Fr(o,ld),h=zr({},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]||cd[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return dl({root:["root",i,"inherit"!==e.align&&`align${Ji(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},sd,a)})(h);return tr.jsx(ud,zr({as:m,ref:t,ownerState:h,className:as(g.root,a)},f))}));const fd=y.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=y.useState(null),s=Xs(y.isValidElement(r)?bl(r):null,t);if(Ls((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),Ls((()=>{if(i&&!o)return Ws(t,i),()=>{Ws(t,null)}}),[t,i,o]),o){if(y.isValidElement(r)){const e={ref:s};return y.cloneElement(r,e)}return tr.jsx(y.Fragment,{children:r})}return tr.jsx(y.Fragment,{children:i?F.createPortal(r,i):i})})),hd=["onChange","maxRows","minRows","style","value"];function md(e){return parseInt(e,10)||0}const gd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function bd(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const vd=y.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=Fr(e,hd),{current:l}=y.useRef(null!=a),u=y.useRef(null),c=Xs(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=Bs(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=md(i.paddingBottom)+md(i.paddingTop),l=md(i.borderBottomWidth)+md(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=Ks((()=>{const e=u.current,t=f();if(!e||!t||bd(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||bd(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);Ls((()=>{const e=Hs(m),t=null==u?void 0:u.current;if(!t)return;const r=Bs(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]),Ls((()=>{m()}));return tr.jsxs(y.Fragment,{children:[tr.jsx("textarea",zr({value:a,onChange:e=>{l||m(),r&&r(e)},ref:c,rows:o,style:i},s)),tr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:zr({},gd,i,{paddingTop:0,paddingBottom:0})})]})}));function yd({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 xd=y.createContext(void 0);function Sd(){return y.useContext(xd)}function wd(e){return tr.jsx(Qa,zr({},e,{defaultTheme:Eu,themeId:_r}))}function Cd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Ed(e,t=!1){return e&&(Cd(e.value)&&""!==e.value||t&&Cd(e.defaultValue)&&""!==e.defaultValue)}function Rd(e){return us("MuiInputBase",e)}const Pd=cs("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Ad=["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"],Id=(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${Ji(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},kd=(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]},Md=ac("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Id})((({theme:e,ownerState:t})=>zr({},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",[`&.${Pd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&zr({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Dd=ac("input",{name:"MuiInputBase",slot:"Input",overridesResolver:kd})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=zr({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 zr({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] + .${Pd.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},[`&.${Pd.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"})})),Td=tr.jsx(wd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),qd=y.forwardRef((function(e,t){var r;const n=cc({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:k,placeholder:M,readOnly:D,renderSuffix:T,rows:q,slotProps:O={},slots:L={},startAdornment:N,type:j="text",value:_}=n,z=Fr(n,Ad),F=null!=b.value?b.value:_,{current:H}=y.useRef(null!=F),$=y.useRef(),B=y.useCallback((e=>{}),[]),W=Xs($,v,b.ref,B),[V,U]=y.useState(!1),G=Sd(),Y=yd({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=>{Ed(e)?K&&K():X&&X()}),[K,X]);Ls((()=>{H&&J({value:F})}),[F,J,H]);y.useEffect((()=>{J($.current)}),[]);let Z=g,Q=b;w&&"input"===Z&&(Q=zr(q?{type:void 0,minRows:q,maxRows:q}:{type:void 0,maxRows:x,minRows:S},Q),Z=vd);y.useEffect((()=>{G&&G.setAdornedStart(Boolean(N))}),[G,N]);const ee=zr({},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 dl({root:["root",`color${Ji(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${Ji(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"]},Rd,t)})(ee),re=L.root||l.Root||Md,ne=O.root||u.root||{},oe=L.input||l.Input||Dd;return Q=zr({},Q,null!=(r=O.input)?r:u.input),tr.jsxs(y.Fragment,{children:[!p&&Td,tr.jsxs(re,zr({},ne,!pl(re)&&{ownerState:zr({},ee,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),P&&P(e)}},z,{className:as(te.root,ne.className,s,D&&"MuiInputBase-readOnly"),children:[N,tr.jsx(xd.Provider,{value:null,children:tr.jsx(oe,zr({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:M,readOnly:D,required:Y.required,rows:q,value:F,onKeyDown:I,onKeyUp:k,type:j},Q,!pl(oe)&&{as:Z,ownerState:zr({},ee,Q.ownerState)},{ref:W,className:as(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(Nr(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(zr({},Y,{startAdornment:N})):null]}))]})}));function Od(e){return us("MuiInput",e)}const Ld=zr({},Pd,cs("MuiInput",["root","underline","input"]));function Nd(e){return us("MuiOutlinedInput",e)}const jd=zr({},Pd,cs("MuiOutlinedInput",["root","notchedOutline","input"]));function _d(e){return us("MuiFilledInput",e)}const zd=zr({},Pd,cs("MuiFilledInput",["root","underline","input"]));var Fd=function(e,t){function r(r,n){return tr.jsx(hc,zr({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=hc.muiName,y.memo(y.forwardRef(r))}(tr.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Hd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],$d={entering:{opacity:1},entered:{opacity:1}},Bd=y.forwardRef((function(e,t){const r=Ru(),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=Ec}=e,v=Fr(e,Hd),x=y.useRef(null),S=Xs(x,bl(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)=>{Tc(e);const n=qc({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=qc({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 tr.jsx(b,zr({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,zr({style:zr({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},$d[e],m,a.props.style),ref:S},t))}))}));function Wd(e){return us("MuiBackdrop",e)}cs("MuiBackdrop",["root","invisible"]);const Vd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Ud=ac("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>zr({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"}))),Gd=y.forwardRef((function(e,t){var r,n,o;const i=cc({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=Bd,transitionDuration:g}=i,b=Fr(i,Vd),v=zr({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return dl({root:["root",r&&"invisible"]},Wd,t)})(v),x=null!=(r=f.root)?r:c.root;return tr.jsx(m,zr({in:p,timeout:g},b,{children:tr.jsx(Ud,zr({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:u.Root)?n:l,className:as(y.root,s,null==x?void 0:x.className),ownerState:zr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))})),Yd=cs("MuiBox",["root"]),Kd=Cu(),Xd=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Li("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Wa);return y.forwardRef((function(e,a){const s=Ja(r),l=ts(e),{className:u,component:c="div"}=l,d=Fr(l,ss);return tr.jsx(i,zr({as:c,ref:a,className:as(u,o?o(n):n),theme:t&&s[t]||s},d))}))}({themeId:_r,defaultTheme:Kd,defaultClassName:Yd.root,generateClassName:os.generate});function Jd(e){return us("MuiButton",e)}const Zd=cs("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"]),Qd=y.createContext({}),ep=y.createContext(void 0),tp=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],rp=e=>zr({},"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}}),np=ac(td,{shouldForwardProp:e=>ic(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Ji(r.color)}`],t[`size${Ji(r.size)}`],t[`${r.variant}Size${Ji(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 zr({},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":zr({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Hl(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})`:Hl(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})`:Hl(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":zr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Zd.focusVisible}`]:zr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Zd.disabled}`]:zr({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 ${Hl(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"},[`&.${Zd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Zd.disabled}`]:{boxShadow:"none"}})),op=ac("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Ji(r.size)}`]]}})((({ownerState:e})=>zr({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},rp(e)))),ip=ac("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Ji(r.size)}`]]}})((({ownerState:e})=>zr({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},rp(e)))),ap=y.forwardRef((function(e,t){const r=y.useContext(Qd),n=y.useContext(ep),o=cc({props:Os(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=Fr(o,tp),S=zr({},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 zr({},a,dl({root:["root",i,`${i}${Ji(t)}`,`size${Ji(o)}`,`${i}Size${Ji(o)}`,`color${Ji(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Ji(o)}`],endIcon:["icon","endIcon",`iconSize${Ji(o)}`]},Jd,a))})(S),C=g&&tr.jsx(op,{className:w.startIcon,ownerState:S,children:g}),E=p&&tr.jsx(ip,{className:w.endIcon,ownerState:S,children:p}),R=n||"";return tr.jsxs(np,zr({ownerState:S,className:as(r.className,w.root,l,R),component:s,disabled:u,focusRipple:!d,focusVisibleClassName:as(w.focusVisible,f),ref:t,type:b},x,{classes:w,children:[C,i,E]}))}));function sp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function lp(e){return parseInt(Bs(e).getComputedStyle(e).paddingRight,10)||0}function up(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&&sp(e,o)}))}function cp(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function dp(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=$s(e);return t.body===e?Bs(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=cl($s(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${lp(n)+e}px`;const t=$s(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${lp(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=$s(n).body;else{const t=n.parentElement,r=Bs(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 pp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function fp(e){const t=[],r=[];return Array.from(e.querySelectorAll(pp)).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 hp(){return!0}function mp(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=fp,isEnabled:a=hp,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=Xs(bl(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=$s(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=$s(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 tr.jsxs(y.Fragment,{children:[tr.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)}}),tr.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const gp=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&&sp(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);up(t,e.mount,e.modalRef,n,!0);const o=cp(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=cp(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=dp(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=cp(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&&sp(e.modalRef,t),up(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&&sp(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function bp(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=gp,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=Xs(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=Ks((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||$s(f.current).body;o.add(S(),e),h.current&&w()})),E=y.useCallback((()=>o.isTopModal(S())),[o]),R=Ks((e=>{f.current=e,e&&(c&&E()?w():h.current&&sp(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=fl(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=zr({},r,t);return zr({role:"presentation"},n,{onKeyDown:A(n),ref:m})},getBackdropProps:(e={})=>zr({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:Fs((()=>{b(!1),a&&a()}),null==l?void 0:l.props.onEnter),onExited:Fs((()=>{b(!0),s&&s(),i&&P()}),null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:E,exited:g,hasTransition:v}}function vp(e){return us("MuiModal",e)}cs("MuiModal",["root","hidden","backdrop"]);const yp=["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"],xp=ac("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})=>zr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Sp=ac(Gd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),wp=y.forwardRef((function(e,t){var r,n,o,i,a,s;const l=cc({name:"MuiModal",props:e}),{BackdropComponent:u=Sp,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:k,slots:M}=l,D=Fr(l,yp),T=zr({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:R,keepMounted:P}),{getRootProps:q,getBackdropProps:O,getTransitionProps:L,portalRef:N,isTopModal:j,exited:_,hasTransition:z}=bp(zr({},T,{rootRef:t})),F=zr({},T,{exited:_}),H=(e=>{const{open:t,exited:r,classes:n}=e;return dl({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},vp,n)})(F),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),z){const{onEnter:e,onExited:t}=L();$.onEnter=e,$.onExited=t}const B=null!=(r=null!=(n=null==M?void 0:M.root)?n:g.Root)?r:xp,W=null!=(o=null!=(i=null==M?void 0:M.backdrop)?i:g.Backdrop)?o:u,V=null!=(a=null==k?void 0:k.root)?a:b.root,U=null!=(s=null==k?void 0:k.backdrop)?s:b.backdrop,G=gl({elementType:B,externalSlotProps:V,externalForwardedProps:D,getSlotProps:q,additionalProps:{ref:t,as:m},ownerState:F,className:as(d,null==V?void 0:V.className,null==H?void 0:H.root,!F.open&&F.exited&&(null==H?void 0:H.hidden))}),Y=gl({elementType:W,externalSlotProps:U,additionalProps:c,getSlotProps:e=>O(zr({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:as(null==U?void 0:U.className,null==c?void 0:c.className,null==H?void 0:H.backdrop),ownerState:F});return P||I||z&&!_?tr.jsx(fd,{ref:N,container:h,disablePortal:w,children:tr.jsxs(B,zr({},G,{children:[!R&&u?tr.jsx(W,zr({},Y)):null,tr.jsx(mp,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:j,open:I,children:y.cloneElement(f,$)})]}))}):null}));function Cp(e){return us("MuiDivider",e)}const Ep=cs("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Rp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Pp=ac("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})=>zr({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)`:Hl(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})=>zr({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>zr({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>zr({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>zr({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Ap=ac("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>zr({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)`}))),Ip=y.forwardRef((function(e,t){const r=cc({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=Fr(r,Rp),h=zr({},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 dl({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"]},Cp,n)})(h);return tr.jsx(Pp,zr({as:a,className:as(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?tr.jsx(Ap,{className:m.wrapper,ownerState:h,children:o}):null}))}));Ip.muiSkipListHighlight=!0;const kp=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Mp=ac(Md,{shouldForwardProp:e=>ic(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Id(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 zr({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}},[`&.${zd.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${zd.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"},[`&.${zd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${zd.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(.${zd.disabled}, .${zd.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${zd.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&zr({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}))})),Dp=ac(Dd,{name:"MuiFilledInput",slot:"Input",overridesResolver:kd})((({theme:e,ownerState:t})=>zr({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}))),Tp=y.forwardRef((function(e,t){var r,n,o,i;const a=cc({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=Fr(a,kp),g=zr({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:r}=e;return zr({},t,dl({root:["root",!r&&"underline"],input:["input"]},_d,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?Hi(v,null!=p?p:l):v,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:Mp,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:Dp;return tr.jsx(qd,zr({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))}));Tp.muiName="Input";const qp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Op(e){return`scale(${e}, ${e**2})`}const Lp={entering:{opacity:1,transform:Op(1)},entered:{opacity:1,transform:"none"}},Np="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),jp=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=Ec}=e,g=Fr(e,qp),b=el(),v=y.useRef(),x=Ru(),S=y.useRef(null),w=Xs(S,bl(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)=>{Tc(e);const{duration:r,delay:n,easing:o}=qc({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:Np?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}=qc({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:Np?o:.666*o,delay:Np?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Op(.75),c&&c(e)})),k=C(d);return tr.jsx(m,zr({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:P,onEntering:E,onExit:I,onExited:k,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,zr({style:zr({opacity:0,transform:Op(.75),visibility:"exited"!==e||a?void 0:"hidden"},Lp[e],f,o.props.style),ref:w},t))}))}));jp.muiSupportAuto=!0;const _p=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],zp=ac(Md,{shouldForwardProp:e=>ic(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Id(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})`),zr({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ld.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ld.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ld.disabled}, .${Ld.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ld.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Fp=ac(Dd,{name:"MuiInput",slot:"Input",overridesResolver:kd})({}),Hp=y.forwardRef((function(e,t){var r,n,o,i;const a=cc({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=Fr(a,_p),b=(e=>{const{classes:t,disableUnderline:r}=e;return zr({},t,dl({root:["root",!r&&"underline"],input:["input"]},Od,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:u)?Hi(null!=f?f:u,v):v,x=null!=(r=null!=(n=h.root)?n:l.Root)?r:zp,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:Fp;return tr.jsx(qd,zr({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))}));function $p(e){return us("MuiLink",e)}Hp.muiName="Input";const Bp=cs("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Wp={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Vp=({theme:e,ownerState:t})=>{const r=(e=>Wp[e]||e)(t.color),n=Qi(e,`palette.${r}`,!1)||t.color,o=Qi(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Hl(n,.4)},Up=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Gp=ac(pd,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Ji(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>zr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&zr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Vp({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"},[`&.${Bp.focusVisible}`]:{outline:"auto"}}))),Yp=y.forwardRef((function(e,t){const r=cc({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=Fr(r,Up),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=ul(),[b,v]=y.useState(!1),x=Xs(t,g),S=zr({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),w=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return dl({root:["root",`underline${Ji(o)}`,"button"===r&&"button",n&&"focusVisible"]},$p,t)})(S);return tr.jsx(Gp,zr({color:o,className:as(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(Wp).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))})),Kp=y.createContext({});function Xp(e){return us("MuiList",e)}cs("MuiList",["root","padding","dense","subheader"]);const Jp=["children","className","component","dense","disablePadding","subheader"],Zp=ac("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})=>zr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Qp=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,u=Fr(r,Jp),c=y.useMemo((()=>({dense:a})),[a]),d=zr({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return dl({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Xp,t)})(d);return tr.jsx(Kp.Provider,{value:c,children:tr.jsxs(Zp,zr({as:i,className:as(p.root,o),ref:t,ownerState:d},u,{children:[l,n]}))})}));function ef(e){return us("MuiListItemIcon",e)}const tf=cs("MuiListItemIcon",["root","alignItemsFlexStart"]),rf=["className"],nf=ac("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})=>zr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),of=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Fr(r,rf),i=zr({},r,{alignItems:y.useContext(Kp).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return dl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},ef,r)})(i);return tr.jsx(nf,zr({className:as(a.root,n),ownerState:i,ref:t},o))})),af=cs("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),sf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function lf(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function uf(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function cf(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 df(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")&&cf(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const pf=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=Fr(e,sf),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ls((()=>{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=`${cl($s(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const h=Xs(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 tr.jsx(Qp,zr({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=$s(t).activeElement;if("ArrowDown"===r)e.preventDefault(),df(t,n,l,s,lf);else if("ArrowUp"===r)e.preventDefault(),df(t,n,l,s,uf);else if("Home"===r)e.preventDefault(),df(t,null,l,s,lf);else if("End"===r)e.preventDefault(),df(t,null,l,s,uf);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&&cf(n,o);o.previousKeyMatched&&(l||df(t,n,!1,s,lf,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function ff(e){return us("MuiPopover",e)}cs("MuiPopover",["root","paper"]);const hf=["onEntering"],mf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],gf=["slotProps"];function bf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function vf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function yf(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function xf(e){return"function"==typeof e?e():e}const Sf=ac(wp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wf=ac(jc,{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}),Cf=y.forwardRef((function(e,t){var r,n,o;const i=cc({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=jp,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:R=!1}=i,P=Fr(i.TransitionProps,hf),A=Fr(i,mf),I=null!=(r=null==x?void 0:x.paper)?r:b,k=y.useRef(),M=Xs(k,I.ref),D=zr({},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 dl({root:["root"],paper:["paper"]},ff,t)})(D),q=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=xf(s),t=(e&&1===e.nodeType?e:$s(k.current).body).getBoundingClientRect();return{top:t.top+bf(t,l.vertical),left:t.left+vf(t,l.horizontal)}}),[s,l.horizontal,l.vertical,u,c]),O=y.useCallback((e=>({vertical:bf(e,S.vertical),horizontal:vf(e,S.horizontal)})),[S.horizontal,S.vertical]),L=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=O(t);if("none"===c)return{top:null,left:null,transformOrigin:yf(r)};const n=q();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,u=Bs(xf(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:yf(r)}}),[s,c,q,O,m]),[N,j]=y.useState(g),_=y.useCallback((()=>{const e=k.current;if(!e)return;const t=L(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,j(!0)}),[L]);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=Hs((()=>{_()})),t=Bs(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?$s(xf(s)).body:void 0),H=null!=(n=null==v?void 0:v.root)?n:Sf,$=null!=(o=null==v?void 0:v.paper)?o:wf,B=gl({elementType:$,externalSlotProps:zr({},I,{style:N?I.style:zr({},I.style,{opacity:0})}),additionalProps:{elevation:h,ref:M},ownerState:D,className:as(T.paper,null==I?void 0:I.className)}),W=gl({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:as(T.root,p)}),{slotProps:V}=W,U=Fr(W,gf);return tr.jsx(H,zr({},U,!pl(H)&&{slotProps:V,disableScrollLock:R},{children:tr.jsx(w,zr({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),_()},onExited:()=>{j(!1)},timeout:z},P,{children:tr.jsx($,zr({},B,{children:d}))}))}))}));function Ef(e){return us("MuiMenu",e)}cs("MuiMenu",["root","paper","list"]);const Rf=["onEntering"],Pf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Af={vertical:"top",horizontal:"right"},If={vertical:"top",horizontal:"left"},kf=ac(Cf,{shouldForwardProp:e=>ic(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Mf=ac(wf,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Df=ac(pf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Tf=y.forwardRef((function(e,t){var r,n;const o=cc({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=Fr(o.TransitionProps,Rf),S=Fr(o,Pf),w=(()=>{const e=y.useContext(Cl);return null!=e&&e})(),C=zr({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:x,variant:g}),E=(e=>{const{classes:t}=e;return dl({root:["root"],paper:["paper"],list:["list"]},Ef,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:Mf,k=null!=(n=v.paper)?n:p,M=gl({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[E.root,s]}),D=gl({elementType:I,externalSlotProps:k,ownerState:C,className:E.paper});return tr.jsx(kf,zr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Af:If,slots:{paper:I,root:b.root},slotProps:{root:M,paper:D},open:d,ref:t,transitionDuration:h,TransitionProps:zr({onEntering:(e,t)=>{P.current&&P.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),m&&m(e,t)}},x),ownerState:C},S,{classes:f,children:tr.jsx(Df,zr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:P,autoFocus:i&&(-1===A||l),autoFocusItem:R,variant:g},u,{className:as(E.list,u.className),children:a}))}))}));function qf(e){return us("MuiMenuItem",e)}const Of=cs("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Lf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Nf=ac(td,{shouldForwardProp:e=>ic(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})=>zr({},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"}},[`&.${Of.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Hl(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Of.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Hl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Of.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Hl(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})`:Hl(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Of.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Of.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Ep.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Ep.inset}`]:{marginLeft:52},[`& .${af.root}`]:{marginTop:0,marginBottom:0},[`& .${af.inset}`]:{paddingLeft:36},[`& .${tf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&zr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${tf.root} svg`]:{fontSize:"1.25rem"}})))),jf=y.forwardRef((function(e,t){const r=cc({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=Fr(r,Lf),f=y.useContext(Kp),h=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:s})),[f.dense,i,s]),m=y.useRef(null);Ls((()=>{n&&m.current&&m.current.focus()}),[n]);const g=zr({},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 zr({},a,dl({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},qf,a))})(r),v=Xs(m,t);let x;return r.disabled||(x=void 0!==c?c:-1),tr.jsx(Kp.Provider,{value:h,children:tr.jsx(Nf,zr({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:as(b.focusVisible,l),className:as(b.root,d)},p,{ownerState:g,classes:b}))})}));function _f(e){return us("MuiNativeSelect",e)}const zf=cs("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Ff=["className","disabled","error","IconComponent","inputRef","variant"],Hf=({ownerState:e,theme:t})=>zr({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":zr({},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"},[`&.${zf.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}}),$f=ac("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ic,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${zf.multiple}`]:t.multiple}]}})(Hf),Bf=({ownerState:e,theme:t})=>zr({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${zf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Wf=ac("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Ji(r.variant)}`],r.open&&t.iconOpen]}})(Bf),Vf=y.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Fr(e,Ff),u=zr({},e,{disabled:n,variant:s,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return dl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Ji(r)}`,i&&"iconOpen",n&&"disabled"]},_f,t)})(u);return tr.jsxs(y.Fragment,{children:[tr.jsx($f,zr({ownerState:u,className:as(c.select,r),disabled:n,ref:a||t},l)),e.multiple?null:tr.jsx(Wf,{as:i,ownerState:u,className:c.icon})]})}));var Uf;const Gf=["children","classes","className","label","notched"],Yf=ac("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:ic})({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%"}),Kf=ac("legend",{name:"MuiNotchedOutlined",shouldForwardProp:ic})((({ownerState:e,theme:t})=>zr({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&&zr({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 Xf=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Jf=ac(Md,{shouldForwardProp:e=>ic(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Id})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return zr({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${jd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${jd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${jd.focused} .${jd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${jd.error} .${jd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${jd.disabled} .${jd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&zr({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Zf=ac((function(e){const{className:t,label:r,notched:n}=e,o=Fr(e,Gf),i=null!=r&&""!==r,a=zr({},e,{notched:n,withLabel:i});return tr.jsx(Yf,zr({"aria-hidden":!0,className:t,ownerState:a},o,{children:tr.jsx(Kf,{ownerState:a,children:i?tr.jsx("span",{children:r}):Uf||(Uf=tr.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}})),Qf=ac(Dd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:kd})((({theme:e,ownerState:t})=>zr({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}))),eh=y.forwardRef((function(e,t){var r,n,o,i,a;const s=cc({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=Fr(s,Xf),b=(e=>{const{classes:t}=e;return zr({},t,dl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Nd,t))})(s),v=Sd(),x=yd({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=zr({},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:Jf,C=null!=(o=null!=(i=h.input)?i:l.Input)?o:Qf;return tr.jsx(qd,zr({slots:{root:w,input:C},renderSuffix:e=>tr.jsx(Zf,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=tr.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:zr({},b,{notchedOutline:null})}))}));function th(e){return us("MuiSelect",e)}eh.muiName="Input";const rh=cs("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var nh;const oh=["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"],ih=ac("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${rh.select}`]:t.select},{[`&.${rh.select}`]:t[r.variant]},{[`&.${rh.error}`]:t.error},{[`&.${rh.multiple}`]:t.multiple}]}})(Hf,{[`&.${rh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),ah=ac("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Ji(r.variant)}`],r.open&&t.iconOpen]}})(Bf),sh=ac("input",{shouldForwardProp:e=>oc(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 lh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function uh(e){return null==e||"string"==typeof e&&!e.trim()}const ch=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:k={},tabIndex:M,value:D,variant:T="standard"}=e,q=Fr(e,oh),[O,L]=Ys({controlled:D,default:c,name:"Select"}),[N,j]=Ys({controlled:P,default:u,name:"Select"}),_=y.useRef(null),z=y.useRef(null),[F,H]=y.useState(null),{current:$}=y.useRef(null!=P),[B,W]=y.useState(),V=Xs(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:O})),[O]),y.useEffect((()=>{u&&N&&F&&!$&&(W(a?null:G.clientWidth),z.current.focus())}),[F,a]),y.useEffect((()=>{i&&z.current.focus()}),[i]),y.useEffect((()=>{if(!g)return;const e=$s(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),$||(W(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(O)?O.slice():[];const t=O.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),O!==r&&(L(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 q["aria-invalid"];const ee=[];let te=!1;(Ed({value:O})||p)&&(I?Z=I(O):te=!0);const re=K.map((e=>{if(!y.isValidElement(e))return null;let t;if(v){if(!Array.isArray(O))throw new Error(Nr(2));t=O.some((t=>lh(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=lh(O,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=B;!a&&$&&F&&(oe=G.clientWidth),ne=void 0!==M?M:d?null:0;const ie=k.id||(x?`mui-component-select-${x}`:void 0),ae=zr({},e,{variant:T,value:O,open:J,error:f}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return dl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Ji(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},th,t)})(ae),le=zr({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=Gs();return tr.jsxs(y.Fragment,{children:[tr.jsx(ih,zr({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:O,name:x}}),S(e))},onFocus:E},k,{ownerState:ae,className:as(k.className,se.select,l),id:ie,children:uh(Z)?nh||(nh=tr.jsx("span",{className:"notranslate",children:""})):Z})),tr.jsx(sh,zr({"aria-invalid":f,value:Array.isArray(O)?O.join(","):O,name:x,ref:_,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(L(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},q)),tr.jsx(ah,{as:h,className:se.icon,ownerState:ae}),tr.jsx(Tf,zr({id:`menu-${x||""}`,anchorEl:G,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:zr({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:zr({},b.slotProps,{paper:zr({},le,{style:zr({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})})),dh=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],ph=["root"],fh={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ic(e)&&"variant"!==e,slot:"Root"},hh=ac(Hp,fh)(""),mh=ac(eh,fh)(""),gh=ac(Tp,fh)(""),bh=y.forwardRef((function(e,t){const r=cc({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:u=Fd,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=Fr(r,dh),P=b?Vf:ch,A=yd({props:r,muiFormControl:Sd(),states:["variant","error"]}),I=A.variant||E,k=zr({},r,{variant:I,classes:i}),M=(e=>{const{classes:t}=e;return t})(k),D=Fr(M,ph),T=d||{standard:tr.jsx(hh,{ownerState:k}),outlined:tr.jsx(mh,{label:f,ownerState:k}),filled:tr.jsx(gh,{ownerState:k})}[I],q=Xs(t,bl(T));return tr.jsx(y.Fragment,{children:y.cloneElement(T,zr({inputComponent:P,inputProps:zr({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:zr({id:c},C)},p,{classes:p?Hi(D,p.classes):D},d?d.props.inputProps:{})},(g&&b||l)&&"outlined"===I?{notched:!0}:{},{ref:q,className:as(T.props.className,a,M.root)},!d&&{variant:I},R))})}));bh.muiName="Select";const vh=y.createContext();function yh(e){return us("MuiTable",e)}cs("MuiTable",["root","stickyHeader"]);const xh=["className","component","padding","size","stickyHeader"],Sh=ac("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>zr({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":zr({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),wh="table",Ch=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiTable"}),{className:n,component:o=wh,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=Fr(r,xh),u=zr({},r,{component:o,padding:i,size:a,stickyHeader:s}),c=(e=>{const{classes:t,stickyHeader:r}=e;return dl({root:["root",r&&"stickyHeader"]},yh,t)})(u),d=y.useMemo((()=>({padding:i,size:a,stickyHeader:s})),[i,a,s]);return tr.jsx(vh.Provider,{value:d,children:tr.jsx(Sh,zr({as:o,role:o===wh?null:"table",ref:t,className:as(c.root,n),ownerState:u},l))})})),Eh=y.createContext();function Rh(e){return us("MuiTableBody",e)}cs("MuiTableBody",["root"]);const Ph=["className","component"],Ah=ac("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Ih={variant:"body"},kh="tbody",Mh=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiTableBody"}),{className:n,component:o=kh}=r,i=Fr(r,Ph),a=zr({},r,{component:o}),s=(e=>{const{classes:t}=e;return dl({root:["root"]},Rh,t)})(a);return tr.jsx(Eh.Provider,{value:Ih,children:tr.jsx(Ah,zr({className:as(s.root,n),as:o,ref:t,role:o===kh?null:"rowgroup",ownerState:a},i))})}));function Dh(e){return us("MuiTableCell",e)}const Th=cs("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),qh=["align","className","component","padding","scope","size","sortDirection","variant"],Oh=ac("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Ji(r.size)}`],"normal"!==r.padding&&t[`padding${Ji(r.padding)}`],"inherit"!==r.align&&t[`align${Ji(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>zr({},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?Wl(Hl(e.palette.divider,1),.88):$l(Hl(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",[`&.${Th.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}))),Lh=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:u,variant:c}=r,d=Fr(r,qh),p=y.useContext(vh),f=y.useContext(Eh),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=zr({},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 dl({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${Ji(n)}`,"normal"!==o&&`padding${Ji(o)}`,`size${Ji(i)}`]},Dh,t)})(v);let S=null;return u&&(S="asc"===u?"ascending":"descending"),tr.jsx(Oh,zr({as:m,ref:t,className:as(x.root,o),"aria-sort":S,scope:g,ownerState:v},d))}));function Nh(e){return us("MuiTableContainer",e)}cs("MuiTableContainer",["root"]);const jh=["className","component"],_h=ac("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),zh=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=Fr(r,jh),a=zr({},r,{component:o}),s=(e=>{const{classes:t}=e;return dl({root:["root"]},Nh,t)})(a);return tr.jsx(_h,zr({ref:t,as:o,className:as(s.root,n),ownerState:a},i))}));function Fh(e){return us("MuiTableHead",e)}cs("MuiTableHead",["root"]);const Hh=["className","component"],$h=ac("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Bh={variant:"head"},Wh="thead",Vh=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiTableHead"}),{className:n,component:o=Wh}=r,i=Fr(r,Hh),a=zr({},r,{component:o}),s=(e=>{const{classes:t}=e;return dl({root:["root"]},Fh,t)})(a);return tr.jsx(Eh.Provider,{value:Bh,children:tr.jsx($h,zr({as:o,className:as(s.root,n),ref:t,role:o===Wh?null:"rowgroup",ownerState:a},i))})}));function Uh(e){return us("MuiTableRow",e)}const Gh=cs("MuiTableRow",["root","selected","hover","head","footer"]),Yh=["className","component","hover","selected"],Kh=ac("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,[`&.${Gh.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Gh.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Hl(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}))`:Hl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),Xh="tr",Jh=y.forwardRef((function(e,t){const r=cc({props:e,name:"MuiTableRow"}),{className:n,component:o=Xh,hover:i=!1,selected:a=!1}=r,s=Fr(r,Yh),l=y.useContext(Eh),u=zr({},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 dl({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},Uh,t)})(u);return tr.jsx(Kh,zr({as:o,ref:t,className:as(c.root,n),role:o===Xh?null:"row",ownerState:u},s))}));function Zh(e){return tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:tr.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}var Qh=function({fontSize:e="medium",children:t=null,className:r=""}={}){return tr.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 em(e={}){return tr.jsx(Qh,{...e,children:tr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[tr.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),tr.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 tm(e={}){return tr.jsx(Qh,{fontSize:"medium",...e,children:tr.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[tr.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),tr.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 rm(e){return tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:tr.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 nm(e={}){return tr.jsx(Qh,{...e,children:tr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:tr.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[tr.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),tr.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function om(e={}){return tr.jsx(Qh,{fontSize:"medium",...e,children:tr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:tr.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:tr.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function im({className:e}){return tr.jsx(Qh,{fontSize:"small",className:e,children:tr.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:tr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:tr.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:tr.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[tr.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"}),tr.jsx("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})]})})})})})}function am(e={}){return tr.jsx(Qh,{...e,children:tr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:tr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:tr.jsx("rect",{stroke:qt.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}const sm={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:_t,"& > 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 lm=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:qt.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:qt.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:tr.jsx(Zh,{"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 ${qt.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`,borderRadius:_t,backgroundColor:qt.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 ${qt.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:qt.WHITE,color:qt.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:_t},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:qt.GREYSCALE_0_15,backgroundColor:qt.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${qt.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:qt.GREEN_PALE},"&:active":{backgroundColor:qt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${zs(qt.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:qt.BLUE_PALE},"&:active":{backgroundColor:qt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${zs(qt.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:_t,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:qt.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:qt.GREYSCALE_0_15,backgroundColor:qt.GREYSCALE_100_60,"&:active":{backgroundColor:qt.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${qt.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:qt.PURPLE,"&.Mui-focusVisible":{borderColor:qt.PURPLE,boxShadow:`0 0 0 3px ${zs(qt.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:qt.GREEN,"&.Mui-focusVisible":{borderColor:qt.GREEN,boxShadow:`0 0 0 3px ${zs(qt.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:qt.BLUE,"&.Mui-focusVisible":{borderColor:qt.BLUE,boxShadow:`0 0 0 3px ${zs(qt.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:qt.ORANGE,"&.Mui-focusVisible":{borderColor:qt.ORANGE,boxShadow:`0 0 0 3px ${zs(qt.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:qt.RED,"&.Mui-focusVisible":{borderColor:qt.RED,boxShadow:`0 0 0 3px ${zs(qt.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:qt.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:qt.PURPLE_PALE},"&:active":{backgroundColor:qt.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:qt.PURPLE_PALE,boxShadow:`0 0 0 3px ${zs(qt.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:qt.GREEN_PALE},"&:active":{backgroundColor:qt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${zs(qt.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:qt.BLUE_PALE},"&:active":{backgroundColor:qt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${zs(qt.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:qt.ORANGE_PALE},"&:active":{backgroundColor:qt.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:qt.ORANGE_PALE,boxShadow:`0 0 0 3px ${zs(qt.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:qt.RED_PALE},"&:active":{backgroundColor:qt.RED_DARK},"&.Mui-focusVisible":{borderColor:qt.RED_PALE,boxShadow:`0 0 0 3px ${zs(qt.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:qt.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:qt.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:_t,boxShadow:`inset 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:tr.jsx(rm,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Ot,borderRadius:_t,color:qt.TEXT_PRIMARY,backgroundColor:qt.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:qt.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:qt.GREYSCALE_0_05,color:qt.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:qt.GREEN,borderColor:qt.GREEN},"&.MuiChip-outlinedInfo":{color:qt.BLUE,borderColor:qt.BLUE},"&.MuiChip-outlinedWarning":{color:qt.ORANGE,borderColor:qt.ORANGE},"&.MuiChip-outlinedError":{color:qt.RED,borderColor:qt.RED}},outlined:{border:`solid 1px ${qt.GREYSCALE_0_15}`,backgroundColor:qt.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:_t,boxShadow:"none",backgroundColor:qt.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:qt.GREEN,borderColor:qt.GREEN},outlinedSecondary:{color:qt.BLUE,borderColor:qt.BLUE},label:{fontFamily:Bt.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:tr.jsx(rm,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:tr.jsx(Zh,{"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:_t},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:_t,fontSize:Lt,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:qt.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${qt.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:qt.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:qt.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:qt.GREYSCALE_0_05}}},popupIndicator:{borderRadius:_t,border:`solid 1px ${qt.GREYSCALE_0_15}`,color:qt.GREYSCALE_0_60,marginRight:0,width:jt,height:jt},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${qt.GREYSCALE_0_15}`},clearIndicator:{borderRadius:_t,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:qt.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Lt}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Ot,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:qt.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:qt.GREYSCALE_25,fontSize:Ot,fontFamily:Bt.FONT_FAMILY,fontWeight:Ht,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:qt.TEXT_PRIMARY},"&.Mui-error":{color:qt.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:qt.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Ft,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:qt.TEXT_SECONDARY,content:"'(required)'",fontWeight:Ft,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Lt,lineHeight:"16px",backgroundColor:qt.WHITE,borderRadius:_t,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.GREYSCALE_0_05}`,borderColor:qt.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${qt.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${qt.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.RED}`,boxShadow:`0px 0px 0px 1px ${qt.RED}, inset 0 2px 0 0 ${qt.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${qt.GREYSCALE_0_10}`,borderColor:qt.GREYSCALE_0_10,backgroundColor:qt.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:qt.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:qt.GREYSCALE_0_15,borderRadius:_t,boxShadow:`inset 0 2px 0 0 ${qt.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>tr.jsx(Zh,{...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:qt.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:qt.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:qt.GREYSCALE_0_03},"&:active":{backgroundColor:qt.GREYSCALE_0_10},"&:focus":{backgroundColor:qt.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${qt.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:qt.GREYSCALE_0_30,"&:hover":{backgroundColor:qt.GREYSCALE_0_0,borderColor:qt.GREYSCALE_0_15},"& ~svg":{color:qt.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${qt.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:_t}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:qt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:qt.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Lt,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Ot,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Ot,fontWeight:Ht,color:qt.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Ht}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${qt.GREYSCALE_0_15}, 0px 0px 0px 1px ${qt.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:tr.jsx(om,{}),checkedIcon:tr.jsx(tm,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:qt.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${zs(qt.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${zs(qt.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:qt.GREYSCALE_0_20}},"&.Mui-disabled":{fill:qt.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:tr.jsx(am,{}),checkedIcon:tr.jsx(em,{}),indeterminateIcon:tr.jsx(nm,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:_t,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:qt.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:qt.GREYSCALE_0_55,color:qt.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:qt.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:qt.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:qt.GREYSCALE_0_55,"&:hover":{color:qt.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:qt.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:qt.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Lt,color:qt.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Ht},secondary:{fontSize:Ot,color:qt.GREYSCALE_45,fontWeight:Ft,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Lt,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Lt,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:qt.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Ot,borderBottom:`solid 1px ${qt.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Lt,color:qt.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:qt.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:qt.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:qt.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:qt.RED}}},"&.Mui-focusVisible":{backgroundColor:qt.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:qt.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:qt.GREEN,height:"24px","&.Mui-disabled":{color:qt.GREYSCALE_0_15}},rail:{backgroundColor:qt.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${qt.GREYSCALE_0_05}`,borderRadius:_t,boxShadow:`inset 0px 0px 0px 1px ${qt.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${qt.GREYSCALE_0_05}`,borderRadius:_t},thumb:{height:"16px",width:"16px",borderRadius:_t,backgroundColor:qt.WHITE,boxShadow:`0px 1px 2px 0px ${qt.GREYSCALE_0_15}, 0px 0px 0px 1px ${qt.GREYSCALE_0_05}`,"&:hover":{borderRadius:_t,boxShadow:`0 2px 4px 0 ${qt.GREYSCALE_0_30}, 0 0 0 1px ${qt.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${qt.GREYSCALE_0_15}, 0 0 0 1px ${qt.GREYSCALE_0_06}, 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${qt.GREYSCALE_0_15}, 0 0 0 1px ${qt.GREYSCALE_0_06}, 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:qt.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:qt.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:qt.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:qt.GREYSCALE_0_15},markLabel:{color:qt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:qt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:qt.WHITE,color:qt.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:qt.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:qt.GREEN_PALE,boxShadow:`0 0 0 3px ${zs(qt.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:qt.BLUE_PALE,boxShadow:`0 0 0 3px ${zs(qt.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:qt.GREYSCALE_0_15,borderRadius:_t},thumb:{height:"16px",width:"16px",borderRadius:_t,backgroundColor:qt.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:Lt,fontWeight:Ht,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${qt.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${qt.MISC_FOCUS_BORDER}`,backgroundColor:qt.GREYSCALE_0_03,borderRadius:_t},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:qt.GREYSCALE_25,"&.Mui-selected":{color:qt.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Lt,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:_t,"&:hover":{backgroundColor:qt.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 ${qt.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${qt.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:_t,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:qt.GREYSCALE_0_05},"&:hover":{backgroundColor:qt.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${qt.GREYSCALE_85}`,borderRight:`1px solid ${qt.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Ht,backgroundColor:qt.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:qt.GREYSCALE_98,borderBottom:`1px solid ${qt.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${qt.GREYSCALE_85}`,borderTop:`1px solid ${qt.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:qt.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:qt.GREYSCALE_0_05,"&:hover":{backgroundColor:qt.GREYSCALE_0_03}},"&&:hover":{backgroundColor:qt.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>tr.jsx(im,{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 ${qt.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Lt,borderRadius:_t,padding:"7px 16px",border:`1px solid ${qt.GREYSCALE_0_15}`,backgroundColor:qt.GREYSCALE_100_60,color:qt.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:qt.GREYSCALE_0_10,border:`1px solid ${qt.GREYSCALE_0_30}`},"&:hover":{backgroundColor:qt.GREYSCALE_0_03,border:`1px solid ${qt.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:qt.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${qt.MISC_FOCUS_BORDER}`,border:`1px solid ${qt.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:qt.GREYSCALE_25,backgroundColor:qt.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:qt.GREYSCALE_0_10,border:`1px solid ${qt.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Ot,height:24,width:24,padding:7},sizeLarge:{fontSize:Nt,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Lt,borderRadius:_t}}},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:qt.GREYSCALE_20},tooltip:{backgroundColor:qt.GREYSCALE_20,fontSize:Ot,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}},...e?{...sm}:{}}),um=(e,t)=>lm(t);var cm=()=>({mode:"light",primary:{ultraLight:qt.GREEN_ULTRA_LIGHT,light:qt.GREEN_PALE,main:qt.GREEN,dark:qt.GREEN_DARK,extraDark:qt.GREEN_EXTRA_DARK,contrastText:qt.WHITE},secondary:{ultraLight:qt.BLUE_ULTRA_LIGHT,light:qt.BLUE_PALE,main:qt.BLUE,dark:qt.BLUE_DARK,extraDark:qt.BLUE_EXTRA_DARK,contrastText:qt.WHITE},error:{ultraLight:qt.RED_ULTRA_LIGHT,light:qt.RED_PALE,main:qt.RED,dark:qt.RED_DARK,extraDark:qt.RED_EXTRA_DARK,contrastText:qt.WHITE},warning:{ultraLight:qt.ORANGE_ULTRA_LIGHT,light:qt.ORANGE_PALE,main:qt.ORANGE,dark:qt.ORANGE_DARK,extraDark:qt.ORANGE_EXTRA_DARK,contrastText:qt.WHITE},success:{ultraLight:qt.GREEN_ULTRA_LIGHT,light:qt.GREEN_PALE,main:qt.GREEN,dark:qt.GREEN_DARK,extraDark:qt.GREEN_EXTRA_DARK,contrastText:qt.WHITE},info:{ultraLight:qt.BLUE_ULTRA_LIGHT,light:qt.BLUE_PALE,main:qt.BLUE,dark:qt.BLUE_DARK,extraDark:qt.BLUE_EXTRA_DARK,contrastText:qt.WHITE},text:{primary:qt.TEXT_PRIMARY,secondary:qt.TEXT_SECONDARY,disabled:qt.GREYSCALE_0_30},action:{hover:qt.GREYSCALE_0_03,hoverOpacity:.03,selected:qt.GREYSCALE_0_05,selectedOpacity:.05,focus:qt.MISC_FOCUS_BORDER},amethyst:{ultraLight:qt.WHITE,main:qt.PURPLE,light:qt.PURPLE_PALE,dark:qt.PURPLE_DARK,extraDark:qt.GREYSCALE_0_0,contrastText:qt.WHITE},background:{paper:qt.WHITE,default:qt.GREYSCALE_95},divider:qt.GREYSCALE_0_15});var dm=e=>cm();var pm=(e,t=!1)=>({components:um(0,t),palette:dm(e),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:Lt,fontWeightLight:zt,fontWeightRegular:Ft,fontWeightMedium:Ht,fontWeightBold:$t,htmlFontSize:Lt,fontFamily:Bt.FONT_FAMILY,button:{fontWeight:Ht,fontSize:Lt,textTransform:"none"},body1:{fontSize:Nt,lineHeight:"24px"},body2:{fontSize:Lt,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:jt,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Nt,fontWeight:Ht,lineHeight:"16px"},h6:{fontSize:Lt,fontWeight:Ht,lineHeight:"16px"},caption:{color:qt.TEXT_SECONDARY},subtitle1:{fontSize:Lt,color:qt.TEXT_SECONDARY},subtitle2:{fontSize:Ot,color:qt.TEXT_SECONDARY}},shape:{borderRadius:_t}});const fm={...Tt};var hm={},mm={exports:{}},gm={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}(gm);var bm=gm.exports;!function(e){var t=bm.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}(mm);var vm=mm.exports,ym={};function xm(e,t){return function(){return null}}function Sm(e){return e&&"object"===Dl(e)&&e.constructor===Object}function wm(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?zr({},e):e;return Sm(e)&&Sm(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(Sm(t[o])&&o in e?n[o]=wm(e[o],t[o],r):n[o]=t[o])})),n}var Cm=(Ti.element,function(){return null});Cm.isRequired=(Ti.element.isRequired,function(){return null});var Em=function(){return null};var Rm={exports:{}},Pm={},Am=60103,Im=60106,km=60107,Mm=60108,Dm=60114,Tm=60109,qm=60110,Om=60112,Lm=60113,Nm=60120,jm=60115,_m=60116,zm=60121,Fm=60122,Hm=60117,$m=60129,Bm=60131;if("function"==typeof Symbol&&Symbol.for){var Wm=Symbol.for;Am=Wm("react.element"),Im=Wm("react.portal"),km=Wm("react.fragment"),Mm=Wm("react.strict_mode"),Dm=Wm("react.profiler"),Tm=Wm("react.provider"),qm=Wm("react.context"),Om=Wm("react.forward_ref"),Lm=Wm("react.suspense"),Nm=Wm("react.suspense_list"),jm=Wm("react.memo"),_m=Wm("react.lazy"),zm=Wm("react.block"),Fm=Wm("react.server.block"),Hm=Wm("react.fundamental"),$m=Wm("react.debug_trace_mode"),Bm=Wm("react.legacy_hidden")}function Vm(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Am:switch(e=e.type){case km:case Dm:case Mm:case Lm:case Nm:return e;default:switch(e=e&&e.$$typeof){case qm:case Om:case _m:case jm:case Tm:return e;default:return t}}case Im:return t}}}var Um=Tm,Gm=Am,Ym=Om,Km=km,Xm=_m,Jm=jm,Zm=Im,Qm=Dm,eg=Mm,tg=Lm;Pm.ContextConsumer=qm,Pm.ContextProvider=Um,Pm.Element=Gm,Pm.ForwardRef=Ym,Pm.Fragment=Km,Pm.Lazy=Xm,Pm.Memo=Jm,Pm.Portal=Zm,Pm.Profiler=Qm,Pm.StrictMode=eg,Pm.Suspense=tg,Pm.isAsyncMode=function(){return!1},Pm.isConcurrentMode=function(){return!1},Pm.isContextConsumer=function(e){return Vm(e)===qm},Pm.isContextProvider=function(e){return Vm(e)===Tm},Pm.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Am},Pm.isForwardRef=function(e){return Vm(e)===Om},Pm.isFragment=function(e){return Vm(e)===km},Pm.isLazy=function(e){return Vm(e)===_m},Pm.isMemo=function(e){return Vm(e)===jm},Pm.isPortal=function(e){return Vm(e)===Im},Pm.isProfiler=function(e){return Vm(e)===Dm},Pm.isStrictMode=function(e){return Vm(e)===Mm},Pm.isSuspense=function(e){return Vm(e)===Lm},Pm.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===km||e===Dm||e===$m||e===Mm||e===Lm||e===Nm||e===Bm||"object"==typeof e&&null!==e&&(e.$$typeof===_m||e.$$typeof===jm||e.$$typeof===Tm||e.$$typeof===qm||e.$$typeof===Om||e.$$typeof===Hm||e.$$typeof===zm||e[0]===Fm)},Pm.typeOf=Vm,Rm.exports=Pm;var rg=Rm.exports,ng=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function og(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(ng);return t&&t[1]||""}(e)||t}function ig(e,t,r){var n=og(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var ag="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),sg=Ti.oneOfType([Ti.func,Ti.object]),lg=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:xm,deepmerge:wm,elementAcceptingRef:Cm,elementTypeAcceptingRef:Em,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 og(e,"Component");if("object"===Dl(e))switch(e.$$typeof){case rg.ForwardRef:return ig(e,e.render,"ForwardRef");case rg.Memo:return ig(e,e.type,"memo");default:return}}},ponyfillGlobal:ag,refType:sg}),ug=Vt(lg);Object.defineProperty(ym,"__esModule",{value:!0}),ym.hexToRgb=pg,ym.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=hg(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(""))},ym.hslToRgb=fg,ym.decomposeColor=hg,ym.recomposeColor=mg,ym.getContrastRatio=function(e,t){var r=gg(e),n=gg(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},ym.getLuminance=gg,ym.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return gg(e)>.5?vg(e,t):yg(e,t)},ym.fade=function(e,t){return bg(e,t)},ym.alpha=bg,ym.darken=vg,ym.lighten=yg;var cg=ug;function dg(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 pg(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 fg(e){var t=(e=hg(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])),mg({type:s,values:l})}function hg(e){if(e.type)return e;if("#"===e.charAt(0))return hg(pg(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error((0,cg.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 mg(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 gg(e){var t="hsl"===(e=hg(e)).type?hg(fg(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 bg(e,t){return e=hg(e),t=dg(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,mg(e)}function vg(e,t){if(e=hg(e),t=dg(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 mg(e)}function yg(e,t){if(e=hg(e),t=dg(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 mg(e)}var xg,Sg,wg,Cg={},Eg={exports:{}},Rg={exports:{}},Pg={exports:{}};function Ag(){return xg||(xg=1,function(e){var t=bm.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}(Pg)),Pg.exports}function Ig(){return Sg||(Sg=1,function(e){var t=bm.default,r=Ag();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(Rg)),Rg.exports}function kg(){return wg||(wg=1,function(e){var t=Ig();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}(Eg)),Eg.exports}var Mg,Dg={exports:{}};function Tg(){return Mg||(Mg=1,function(e){var t=Tu();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}(Dg)),Dg.exports}var qg,Og={};var Lg,Ng={};var jg,_g={},zg={};var Fg,Hg={};var $g,Bg={};var Wg,Vg={};var Ug,Gg={};var Yg,Kg={};var Xg,Jg={};var Zg,Qg,eb={};function tb(){if(Qg)return _g;Qg=1;var e=jl;Object.defineProperty(_g,"__esModule",{value:!0}),_g.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,k=void 0===I?"light":I,M=e.contrastThreshold,D=void 0===M?3:M,T=e.tonalOffset,q=void 0===T?.2:T,O=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function L(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,q),m(e,"dark",i,q),e.contrastText||(e.contrastText=L(e.main)),e},j={dark:h,light:f},_=(0,n.deepmerge)((0,t.default)({common:o.default,type:k,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:L,augmentColor:N,tonalOffset:q},j[k]),O);return _},_g.dark=_g.light=void 0;var t=e(ku()),r=e(Tg()),n=ug,o=e(function(){if(jg)return zg;jg=1,Object.defineProperty(zg,"__esModule",{value:!0}),zg.default=void 0;var e={black:"#000",white:"#fff"};return zg.default=e,zg}()),i=e(function(){if(Fg)return Hg;Fg=1,Object.defineProperty(Hg,"__esModule",{value:!0}),Hg.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 Hg.default=e,Hg}()),a=e(function(){if($g)return Bg;$g=1,Object.defineProperty(Bg,"__esModule",{value:!0}),Bg.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 Bg.default=e,Bg}()),s=e(function(){if(Wg)return Vg;Wg=1,Object.defineProperty(Vg,"__esModule",{value:!0}),Vg.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 Vg.default=e,Vg}()),l=e(function(){if(Ug)return Gg;Ug=1,Object.defineProperty(Gg,"__esModule",{value:!0}),Gg.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 Gg.default=e,Gg}()),u=e(function(){if(Yg)return Kg;Yg=1,Object.defineProperty(Kg,"__esModule",{value:!0}),Kg.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 Kg.default=e,Kg}()),c=e(function(){if(Xg)return Jg;Xg=1,Object.defineProperty(Jg,"__esModule",{value:!0}),Jg.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 Jg.default=e,Jg}()),d=e(function(){if(Zg)return eb;Zg=1,Object.defineProperty(eb,"__esModule",{value:!0}),eb.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 eb.default=e,eb}()),p=ym,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}};_g.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 _g.dark=h,_g}var rb,nb={};var ob,ib={};var ab,sb={};var lb={};function ub(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 cb(e,t){if(e){if("string"==typeof e)return ub(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)?ub(e,t):void 0}}function db(e){return function(e){if(Array.isArray(e))return ub(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||cb(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 pb(e,t){return t?wm(e,t,{clone:!1}):e}var fb={xs:0,sm:600,md:960,lg:1280,xl:1920},hb={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(fb[e],"px)")}};function mb(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||hb;return t.reduce((function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e}),{})}if("object"===Dl(t)){var o=e.theme.breakpoints||hb;return Object.keys(t).reduce((function(e,n){return e[o.up(n)]=r(t[n]),e}),{})}return r(t)}function gb(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function bb(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=gb(e.theme,o)||{};return mb(e,r,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=gb(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=Tl(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 vb(){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?pb(t,n):t}),{})};return n.propTypes={},n.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),n}function yb(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var xb=bb({prop:"border",themeKey:"borders",transform:yb}),Sb=bb({prop:"borderTop",themeKey:"borders",transform:yb}),wb=bb({prop:"borderRight",themeKey:"borders",transform:yb}),Cb=bb({prop:"borderBottom",themeKey:"borders",transform:yb}),Eb=bb({prop:"borderLeft",themeKey:"borders",transform:yb}),Rb=bb({prop:"borderColor",themeKey:"palette"}),Pb=bb({prop:"borderRadius",themeKey:"shape"}),Ab=vb(xb,Sb,wb,Cb,Eb,Rb,Pb);function Ib(e,t){var r={};return Object.keys(e).forEach((function(n){-1===t.indexOf(n)&&(r[n]=e[n])})),r}function kb(e){var t=function(t){var r=e(t);return t.css?zr({},pb(r,e(zr({theme:t.theme},t.css))),Ib(t.css,[e.filterProps])):t.sx?zr({},pb(r,e(zr({theme:t.theme},t.sx))),Ib(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(db(e.filterProps)),t}var Mb=vb(bb({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),bb({prop:"display"}),bb({prop:"overflow"}),bb({prop:"textOverflow"}),bb({prop:"visibility"}),bb({prop:"whiteSpace"})),Db=bb({prop:"flexBasis"}),Tb=bb({prop:"flexDirection"}),qb=bb({prop:"flexWrap"}),Ob=bb({prop:"justifyContent"}),Lb=bb({prop:"alignItems"}),Nb=bb({prop:"alignContent"}),jb=bb({prop:"order"}),_b=bb({prop:"flex"}),zb=bb({prop:"flexGrow"}),Fb=bb({prop:"flexShrink"}),Hb=bb({prop:"alignSelf"}),$b=bb({prop:"justifyItems"}),Bb=bb({prop:"justifySelf"}),Wb=vb(Db,Tb,qb,Ob,Lb,Nb,jb,_b,zb,Fb,Hb,$b,Bb),Vb=bb({prop:"gridGap"}),Ub=bb({prop:"gridColumnGap"}),Gb=bb({prop:"gridRowGap"}),Yb=bb({prop:"gridColumn"}),Kb=bb({prop:"gridRow"}),Xb=bb({prop:"gridAutoFlow"}),Jb=bb({prop:"gridAutoColumns"}),Zb=bb({prop:"gridAutoRows"}),Qb=bb({prop:"gridTemplateColumns"}),ev=bb({prop:"gridTemplateRows"}),tv=bb({prop:"gridTemplateAreas"}),rv=bb({prop:"gridArea"}),nv=vb(Vb,Ub,Gb,Yb,Kb,Xb,Jb,Zb,Qb,ev,tv,rv),ov=bb({prop:"color",themeKey:"palette"}),iv=bb({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),av=vb(ov,iv),sv=bb({prop:"position"}),lv=bb({prop:"zIndex",themeKey:"zIndex"}),uv=bb({prop:"top"}),cv=bb({prop:"right"}),dv=bb({prop:"bottom"}),pv=bb({prop:"left"}),fv=vb(sv,lv,uv,cv,dv,pv),hv=bb({prop:"boxShadow",themeKey:"shadows"});function mv(e){return e<=1?"".concat(100*e,"%"):e}var gv=bb({prop:"width",transform:mv}),bv=bb({prop:"maxWidth",transform:mv}),vv=bb({prop:"minWidth",transform:mv}),yv=bb({prop:"height",transform:mv}),xv=bb({prop:"maxHeight",transform:mv}),Sv=bb({prop:"minHeight",transform:mv}),wv=bb({prop:"size",cssProperty:"width",transform:mv}),Cv=bb({prop:"size",cssProperty:"height",transform:mv}),Ev=bb({prop:"boxSizing"}),Rv=vb(gv,bv,vv,yv,xv,Sv,Ev);function Pv(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)||cb(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 Av={m:"margin",p:"padding"},Iv={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},kv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Mv=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(!kv[e])return[e];e=kv[e]}var t=Pv(e.split(""),2),r=t[0],n=t[1],o=Av[r],i=Iv[n]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),Dv=["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 Tv(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 qv(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 Ov(e){var t=Tv(e.theme);return Object.keys(e).map((function(r){if(-1===Dv.indexOf(r))return null;var n=qv(Mv(r),t),o=e[r];return mb(e,o,n)})).reduce(pb,{})}Ov.propTypes={},Ov.filterProps=Dv;var Lv,Nv=bb({prop:"fontFamily",themeKey:"typography"}),jv=bb({prop:"fontSize",themeKey:"typography"}),_v=bb({prop:"fontStyle",themeKey:"typography"}),zv=bb({prop:"fontWeight",themeKey:"typography"}),Fv=bb({prop:"letterSpacing"}),Hv=bb({prop:"lineHeight"}),$v=bb({prop:"textAlign"}),Bv=vb(Nv,jv,_v,zv,Fv,Hv,$v),Wv=Object.freeze({__proto__:null,alignContent:Nb,alignItems:Lb,alignSelf:Hb,bgcolor:iv,border:xb,borderBottom:Cb,borderColor:Rb,borderLeft:Eb,borderRadius:Pb,borderRight:wb,borderTop:Sb,borders:Ab,bottom:dv,boxSizing:Ev,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||hb,o=n.keys.reduce((function(r,o){return t[o]&&((r=r||{})[n.up(o)]=e(zr({theme:t.theme},t[o]))),r}),null);return pb(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(db(e.filterProps)),t},color:ov,compose:vb,createUnarySpacing:Tv,css:function(e){return kb(e)},display:Mb,flex:_b,flexBasis:Db,flexDirection:Tb,flexGrow:zb,flexShrink:Fb,flexWrap:qb,flexbox:Wb,fontFamily:Nv,fontSize:jv,fontStyle:_v,fontWeight:zv,grid:nv,gridArea:rv,gridAutoColumns:Jb,gridAutoFlow:Xb,gridAutoRows:Zb,gridColumn:Yb,gridColumnGap:Ub,gridGap:Vb,gridRow:Kb,gridRowGap:Gb,gridTemplateAreas:tv,gridTemplateColumns:Qb,gridTemplateRows:ev,height:yv,justifyContent:Ob,justifyItems:$b,justifySelf:Bb,left:pv,letterSpacing:Fv,lineHeight:Hv,maxHeight:xv,maxWidth:bv,minHeight:Sv,minWidth:vv,order:jb,palette:av,position:sv,positions:fv,right:cv,shadows:hv,sizeHeight:Cv,sizeWidth:wv,sizing:Rv,spacing:Ov,style:bb,styleFunctionSx:kb,textAlign:$v,top:uv,typography:Bv,width:gv,zIndex:lv}),Vv=Vt(Wv);var Uv,Gv={};function Yv(){if(Uv)return Gv;Uv=1;var e=jl;Object.defineProperty(Gv,"__esModule",{value:!0}),Gv.default=Gv.duration=Gv.easing=void 0;var t=e(Tg()),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)"};Gv.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")}Gv.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 Gv.default=i,Gv}var Kv,Xv,Jv={};function Zv(){if(Xv)return Cg;Xv=1;var e=jl;Object.defineProperty(Cg,"__esModule",{value:!0}),Cg.createMuiTheme=function(){return p.apply(void 0,arguments)},Cg.default=void 0,e(kg());var t=e(Tg()),r=ug,n=e(function(){if(qg)return Og;qg=1;var e=jl;Object.defineProperty(Og,"__esModule",{value:!0}),Og.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)},Og.keys=void 0;var t=e(ku()),r=e(Tg()),n=["xs","sm","md","lg","xl"];return Og.keys=n,Og}()),o=e(function(){if(Lg)return Ng;Lg=1;var e=jl;Object.defineProperty(Ng,"__esModule",{value:!0}),Ng.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(kg()),r=e(ku());return Ng}()),i=e(tb()),a=e(function(){if(rb)return nb;rb=1;var e=jl;Object.defineProperty(nb,"__esModule",{value:!0}),nb.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")},k=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)},M={h1:k(m,96,1.167,-1.5),h2:k(m,60,1.2,-.5),h3:k(b,48,1.167,0),h4:k(b,34,1.235,.25),h5:k(b,24,1.334,0),h6:k(y,20,1.6,.15),subtitle1:k(b,16,1.75,.15),subtitle2:k(y,14,1.57,.1),body1:k(b,16,1.5,.15),body2:k(b,14,1.43,.15),button:k(y,14,1.75,.4,a),caption:k(b,12,1.66,.4),overline:k(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},M),P,{clone:!1})};var t=e(ku()),r=e(Tg()),n=ug;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 nb}()),s=e(function(){if(ob)return ib;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(",")}ob=1,Object.defineProperty(ib,"__esModule",{value:!0}),ib.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 ib.default=t,ib}()),l=e(function(){if(ab)return sb;ab=1,Object.defineProperty(sb,"__esModule",{value:!0}),sb.default=void 0;var e={borderRadius:4};return sb.default=e,sb}()),u=e(function(){if(Lv)return lb;Lv=1,Object.defineProperty(lb,"__esModule",{value:!0}),lb.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=Vv;return lb}()),c=e(Yv()),d=e(function(){if(Kv)return Jv;Kv=1,Object.defineProperty(Jv,"__esModule",{value:!0}),Jv.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return Jv.default=e,Jv}());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 Cg.default=f,Cg}var Qv,ey={};var ty={},ry="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",ny=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function oy(){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!==ny.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[ry]&&""===a?"".concat(i,"-").concat(u()):i}return"".concat(s).concat(o).concat(u())}}function iy(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 ay="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},sy="object"===("undefined"==typeof window?"undefined":ay(window))&&"object"===("undefined"==typeof document?"undefined":ay(document))&&9===document.nodeType;function ly(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,Tl(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var uy={}.constructor;function cy(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(cy);if(e.constructor!==uy)return e;var t={};for(var r in e)t[r]=cy(e[r]);return t}function dy(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=cy(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var py=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},fy=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+=py(e[r]," ");else t=py(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function hy(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function my(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function gy(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=hy(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+=my(p+":"+u+fy(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=my(h+":"+u+fy(m)+";",i))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(n&&(n+=l),n+=my(g+":"+u+fy(b)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),my(""+e+u+"{"+n,--i)+my("}",i)):n}var by=/([[\].#*$><+~=|^:(),"'`\s])/g,vy="undefined"!=typeof CSS&&CSS.escape,yy=function(e){return vy?vy(e):e.replace(by,"\\$1")},xy=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}(),Sy=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(Pc(Pc(o)),s),o.selectorText="."+yy(o.id)),o}gc(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]=fy(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?zr({},e,{allowEmpty:!0}):e;return gy(this.selectorText,this.style,r)},ly(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}(xy),wy={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new Sy(e,t,r)}},Cy={indent:1,children:!0},Ey=/@([\w-]+)/,Ry=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(Ey);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new Ky(zr({},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=Cy);var t=hy(e).linebreak;if(null==e.indent&&(e.indent=Cy.indent),null==e.children&&(e.children=Cy.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),Py=/@container|@media|@supports\s+/,Ay={onCreateRule:function(e,t,r){return Py.test(e)?new Ry(e,t,r):null}},Iy={indent:1,children:!0},ky=/@keyframes\s+([\w-]+)/,My=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(ky);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:yy(a(this,i)),this.rules=new Ky(zr({},r,{parent:this})),t)this.rules.add(s,t[s],zr({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Iy);var t=hy(e).linebreak;if(null==e.indent&&(e.indent=Iy.indent),null==e.children&&(e.children=Iy.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}(),Dy=/@keyframes\s+/,Ty=/\$([\w-]+)/g,qy=function(e,t){return"string"==typeof e?e.replace(Ty,(function(e,r){return r in t?t[r]:e})):e},Oy=function(e,t,r){var n=e[t],o=qy(n,r);o!==n&&(e[t]=o)},Ly={onCreateRule:function(e,t,r){return"string"==typeof e&&Dy.test(e)?new My(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&Oy(e,"animation-name",r.keyframes),"animation"in e&&Oy(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 qy(e,n.keyframes);default:return e}}},Ny=function(e){function t(){return e.apply(this,arguments)||this}return gc(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?zr({},e,{allowEmpty:!0}):e;return gy(this.key,this.style,r)},t}(xy),jy={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new Ny(e,t,r):null}},_y=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=hy(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=gy(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return gy(this.at,this.style,e)},e}(),zy=/@font-face/,Fy={onCreateRule:function(e,t,r){return zy.test(e)?new _y(e,t,r):null}},Hy=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 gy(this.key,this.style,e)},e}(),$y={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new Hy(e,t,r):null}},By=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}(),Wy={"@charset":!0,"@import":!0,"@namespace":!0},Vy={onCreateRule:function(e,t,r){return e in Wy?new By(e,t,r):null}},Uy=[wy,Ay,Ly,jy,Fy,$y,Vy],Gy={process:!0},Yy={force:!0,process:!0},Ky=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=zr({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="."+yy(this.classes[d]));var p=dy(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=zr({},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 Sy?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof My&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Sy?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof My&&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=Gy);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,Yy)}for(var c in s){var d=t.style[c],p=s[c];null==d&&d!==p&&t.prop(c,null,Yy)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=hy(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}(),Xy=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=zr({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Ky(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}(),Jy=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}(),Zy=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=Fr(t,["attached"]),o=hy(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},ly(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Qy=new Zy,ex="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),tx="2f1acc6c3a606b082e5eef5e54414ffb";null==ex[tx]&&(ex[tx]=0);var rx=ex[tx]++,nx=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")+rx+o+t:i+r.key+"-"+rx+(o?"-"+o:"")+"-"+t}},ox=function(e){var t;return function(){return t||(t=e()),t}},ix=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},ax=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=fy(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},sx=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},lx=function(e,t){return e.selectorText=t,e.selectorText===t},ux=ox((function(){return document.querySelector("head")}));function cx(e){var t=Qy.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=ux(),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 dx=ox((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),px=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]},fx=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},hx=function(){function e(e){this.getPropertyValue=ix,this.setProperty=ax,this.removeProperty=sx,this.setSelector=lx,this.hasInsertedRules=!1,this.cssRules=[],e&&Qy.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=dx();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=cx(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 ux().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=fx(r,t);if(!1===(o=px(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=fx(r,t),l=px(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 Xy&&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}(),mx=0,gx=function(){function e(e){this.id=mx++,this.version="10.10.0",this.plugins=new Jy,this.options={id:{minify:!1},createGenerateId:nx,Renderer:sy?hx:null,plugins:[]},this.generateId=nx({minify:!1});for(var t=0;t<Uy.length;t++)this.plugins.use(Uy[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=zr({},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===Qy.index?0:Qy.index+1);var n=new Xy(e,zr({},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(),Qy.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=zr({},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=dy(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}(),bx=function(e){return new gx(e)},vx="object"==typeof CSS&&null!=CSS&&"number"in CSS;function yx(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=yx(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
|
-
*/gx();var yx=Date.now(),xx="fnValues"+yx,Sx="fnStyle"+ ++yx,wx="@global",Cx="@global ",Ex=function(){function e(e,t,r){for(var n in this.type="global",this.at=wx,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new Yy(_r({},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}(),Rx=function(){function e(e,t,r){this.type="global",this.at=wx,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,_r({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Px=/\s*,\s*/g;function Ax(e,t){for(var r=e.split(Px),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function Ix(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===wx)return new Ex(e,t,r);if("@"===e[0]&&e.substr(0,8)===Cx)return new Rx(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[wx]:null;if(o){for(var i in o)t.addRule(i,o[i],_r({},r,{selector:Ax(i,e.selector)}));delete n[wx]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var o in n)if("@"===o[0]&&o.substr(0,7)===wx){var i=Ax(o.substr(7),e.selector);t.addRule(i,n[o],_r({},r,{selector:i})),delete n[o]}}(e,t))}}}var kx=/\s*,\s*/g,Mx=/&/g,Dx=/\$([\w-]+)/g;function Tx(){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(kx),n=e.split(kx),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(Mx,a):a+" "+l}return o}function r(e,t,r){if(r)return _r({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var o=_r({},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(Dx,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,n[c],_r({},a,{selector:f})):u.addRule(h,n[c],_r({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(l.key,n[c],{selector:l.selector});delete n[c]}}return n}}}var Ox=/[A-Z]/g,qx=/^ms-/,Lx={};function Nx(e){return"-"+e.toLowerCase()}function jx(e){if(Lx.hasOwnProperty(e))return Lx[e];var t=e.replace(Ox,Nx);return Lx[e]=qx.test(t)?"-"+t:t}function _x(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:jx(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(_x):t.fallbacks=_x(e.fallbacks)),t}var zx=bx&&CSS?CSS.px:"px",Fx=bx&&CSS?CSS.ms:"ms",Hx=bx&&CSS?CSS.percent:"%";function $x(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 Bx=$x({"animation-delay":Fx,"animation-duration":Fx,"background-position":zx,"background-position-x":zx,"background-position-y":zx,"background-size":zx,border:zx,"border-bottom":zx,"border-bottom-left-radius":zx,"border-bottom-right-radius":zx,"border-bottom-width":zx,"border-left":zx,"border-left-width":zx,"border-radius":zx,"border-right":zx,"border-right-width":zx,"border-top":zx,"border-top-left-radius":zx,"border-top-right-radius":zx,"border-top-width":zx,"border-width":zx,"border-block":zx,"border-block-end":zx,"border-block-end-width":zx,"border-block-start":zx,"border-block-start-width":zx,"border-block-width":zx,"border-inline":zx,"border-inline-end":zx,"border-inline-end-width":zx,"border-inline-start":zx,"border-inline-start-width":zx,"border-inline-width":zx,"border-start-start-radius":zx,"border-start-end-radius":zx,"border-end-start-radius":zx,"border-end-end-radius":zx,margin:zx,"margin-bottom":zx,"margin-left":zx,"margin-right":zx,"margin-top":zx,"margin-block":zx,"margin-block-end":zx,"margin-block-start":zx,"margin-inline":zx,"margin-inline-end":zx,"margin-inline-start":zx,padding:zx,"padding-bottom":zx,"padding-left":zx,"padding-right":zx,"padding-top":zx,"padding-block":zx,"padding-block-end":zx,"padding-block-start":zx,"padding-inline":zx,"padding-inline-end":zx,"padding-inline-start":zx,"mask-position-x":zx,"mask-position-y":zx,"mask-size":zx,height:zx,width:zx,"min-height":zx,"max-height":zx,"min-width":zx,"max-width":zx,bottom:zx,left:zx,top:zx,right:zx,inset:zx,"inset-block":zx,"inset-block-end":zx,"inset-block-start":zx,"inset-inline":zx,"inset-inline-end":zx,"inset-inline-start":zx,"box-shadow":zx,"text-shadow":zx,"column-gap":zx,"column-rule":zx,"column-rule-width":zx,"column-width":zx,"font-size":zx,"font-size-delta":zx,"letter-spacing":zx,"text-decoration-thickness":zx,"text-indent":zx,"text-stroke":zx,"text-stroke-width":zx,"word-spacing":zx,motion:zx,"motion-offset":zx,outline:zx,"outline-offset":zx,"outline-width":zx,perspective:zx,"perspective-origin-x":Hx,"perspective-origin-y":Hx,"transform-origin":Hx,"transform-origin-x":Hx,"transform-origin-y":Hx,"transform-origin-z":Hx,"transition-delay":Fx,"transition-duration":Fx,"vertical-align":zx,"flex-basis":zx,"shape-margin":zx,size:zx,gap:zx,grid:zx,"grid-gap":zx,"row-gap":zx,"grid-row-gap":zx,"grid-column-gap":zx,"grid-template-rows":zx,"grid-template-columns":zx,"grid-auto-rows":zx,"grid-auto-columns":zx,"box-shadow-x":zx,"box-shadow-y":zx,"box-shadow-blur":zx,"box-shadow-spread":zx,"font-line-height":zx,"text-shadow-x":zx,"text-shadow-y":zx,"text-shadow-blur":zx});function Wx(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=Wx(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=Wx(o,t[o],r);else for(var i in t)t[i]=Wx(e+"-"+i,t[i],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||Bx[e];return!a||0===t&&a===zx?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Vx(e){void 0===e&&(e={});var t=$x(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=Wx(n,e[n],t);return e},onChangeValue:function(e,r){return Wx(r,e,t)}}}var Ux="",Gx="",Yx="",Kx="",Xx=ay&&"ontouchstart"in document.documentElement;if(ay){var Jx={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Zx=document.createElement("p").style;for(var Qx in Jx)if(Qx+"Transform"in Zx){Ux=Qx,Gx=Jx[Qx];break}"Webkit"===Ux&&"msHyphens"in Zx&&(Ux="ms",Gx=Jx.ms,Kx="edge"),"Webkit"===Ux&&"-apple-trailing-word"in Zx&&(Yx="apple")}var eS=Ux,tS=Gx,rS=Yx,nS=Kx,oS=Xx;var iS={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===eS?"-webkit-"+e:tS+e)}},aS={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===eS?tS+"print-"+e:e)}},sS=/[-\s]+(.)?/g;function lS(e,t){return t?t.toUpperCase():""}function uS(e){return e.replace(sS,lS)}function cS(e){return uS("-"+e)}var dS,pS={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===eS){var r="mask-image";if(uS(r)in t)return e;if(eS+cS(r)in t)return tS+e}return e}},fS={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==rS||oS?e:tS+e)}},hS={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:tS+e)}},mS={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:tS+e)}},gS={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===eS||"ms"===eS&&"edge"!==nS?tS+e:e)}},bS={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===eS||"ms"===eS||"apple"===rS?tS+e:e)}},vS={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===eS?"WebkitColumn"+cS(e)in t&&tS+"column-"+e:"Moz"===eS&&("page"+cS(e)in t&&"page-"+e))}},yS={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===eS)return e;var r=e.replace("-inline","");return eS+cS(r)in t&&tS+r}},xS={supportedProperty:function(e,t){return uS(e)in t&&e}},SS={supportedProperty:function(e,t){var r=cS(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:eS+r in t?tS+e:"Webkit"!==eS&&"Webkit"+r in t&&"-webkit-"+e}},wS={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===eS?""+tS+e:e)}},CS={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===eS?tS+"scroll-chaining":e)}},ES={"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"},RS={supportedProperty:function(e,t){var r=ES[e];return!!r&&(eS+cS(r)in t&&tS+r)}},PS={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"},AS=Object.keys(PS),IS=function(e){return tS+e},kS={supportedProperty:function(e,t,r){var n=r.multiple;if(AS.indexOf(e)>-1){var o=PS[e];if(!Array.isArray(o))return eS+cS(o)in t&&tS+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(eS+cS(o[0])in t))return!1;return o.map(IS)}return!1}},MS=[iS,aS,pS,fS,hS,mS,gS,bS,vS,yS,xS,SS,wS,CS,RS,kS],DS=MS.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),TS=MS.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,cb(t.noPrefill)),e}),[]),OS={};if(ay){dS=document.createElement("p");var qS=window.getComputedStyle(document.documentElement,"");for(var LS in qS)isNaN(LS)||(OS[qS[LS]]=qS[LS]);TS.forEach((function(e){return delete OS[e]}))}function NS(e,t){if(void 0===t&&(t={}),!dS)return e;if(null!=OS[e])return OS[e];"transition"!==e&&"transform"!==e||(t[e]=e in dS.style);for(var r=0;r<DS.length&&(OS[e]=DS[r](e,dS.style,t),!OS[e]);r++);try{dS.style[e]=""}catch(e){return!1}return OS[e]}var jS,_S={},zS={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},FS=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function HS(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?NS(t):", "+NS(r);return n||(t||r)}function $S(e,t){var r=t;if(!jS||"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{jS.style[e]=r}catch(e){return _S[n]=!1,!1}if(zS[e])r=r.replace(FS,HS);else if(""===jS.style[e]&&("-ms-flex"===(r=tS+r)&&(jS.style[e]="-ms-flexbox"),jS.style[e]=r,""===jS.style[e]))return _S[n]=!1,!1;return jS.style[e]="",_S[n]=r,_S[n]}function BS(){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=NS(r);i&&i!==r&&(o=!0);var a=!1,s=$S(i,py(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"===eS?e:"@"+tS+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return $S(t,py(e))||e}}}function WS(){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 VS(){return{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=cy(e,{},r);return n[Sx]=t,n},onProcessStyle:function(e,t){if(xx in t||Sx 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[xx]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[Sx];i&&(o.style=i(e)||{});var a=o[xx];if(a)for(var s in a)o.prop(s,a[s](e),n)}},Ix(),Tx(),{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=jx(t);return t===n?e:(r.prop(n,e),null)}},Vx(),"undefined"==typeof window?null:BS(),WS()]}}function US(e,t){if(null==e)return{};var r,n,o=zr(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 GS(){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=_r({},t);return Object.keys(r).forEach((function(e){r[e]&&(n[e]="".concat(t[e]," ").concat(r[e]))})),n}ay&&(jS=document.createElement("p"));var YS=function(e,t,r,n){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},KS=function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},XS=function(e,t,r){e.get(t).delete(r)},JS=x.createContext(null);function ZS(){return x.useContext(JS)}var QS,ew=gx(VS()),tw=ny(),rw=new Map,nw={disableGeneration:!1,generateClassName:tw,jss:ew,sheetsCache:null,sheetsManager:rw,sheetsRegistry:null},ow=x.createContext(nw);function iw(e){var t=e.children,r=e.injectFirst,n=void 0!==r&&r,o=e.disableGeneration,i=void 0!==o&&o,a=US(e,["children","injectFirst","disableGeneration"]),s=_r({},x.useContext(ow),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&n&&"undefined"!=typeof window){if(!QS){var l=document.head;QS=document.createComment("mui-inject-first"),l.insertBefore(QS,l.firstChild)}s.jss=gx({plugins:VS().plugins,insertionPoint:QS})}return x.createElement(ow.Provider,{value:s},t)}var aw=-1e9;var sw={};function lw(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=KS(o.sheetsManager,i,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},YS(o.sheetsManager,i,n,s));var l=_r({},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=KS(o.sheetsCache,i,n));var d=i.create(n,a);c||((c=o.jss.createStyleSheet(d,_r({link:!1},l))).attach(),o.sheetsCache&&YS(o.sheetsCache,i,n,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=vx(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,_r({link:!0},l));p.update(t),p.attach(),r.dynamicSheet=p,r.classes=GS({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else r.classes=s.staticSheet.classes;s.refs+=1}}function uw(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?sw:i,s=US(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=_r({},o);return Object.keys(i).forEach((function(e){a[e]=Sm(a[e],i[e])})),a},options:{}}}(e),u=r||n||"makeStyles";l.options={index:aw+=1,name:r,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=ZS()||a,n=_r({},x.useContext(ow),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 lw(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=KS(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;0===i.refs&&(XS(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=GS({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(i.current,e.classes,o);return c}}var cw=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 sy(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new Jy;var r=ny();return x.createElement(iw,_r({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",_r({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function dw(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=dw(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function pw(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=dw(e))&&(n&&(n+=" "),n+=t);return n}var fw={exports:{}},hw={},mw="function"==typeof Symbol&&Symbol.for,gw=mw?Symbol.for("react.element"):60103,bw=mw?Symbol.for("react.portal"):60106,vw=mw?Symbol.for("react.fragment"):60107,yw=mw?Symbol.for("react.strict_mode"):60108,xw=mw?Symbol.for("react.profiler"):60114,Sw=mw?Symbol.for("react.provider"):60109,ww=mw?Symbol.for("react.context"):60110,Cw=mw?Symbol.for("react.async_mode"):60111,Ew=mw?Symbol.for("react.concurrent_mode"):60111,Rw=mw?Symbol.for("react.forward_ref"):60112,Pw=mw?Symbol.for("react.suspense"):60113,Aw=mw?Symbol.for("react.suspense_list"):60120,Iw=mw?Symbol.for("react.memo"):60115,kw=mw?Symbol.for("react.lazy"):60116,Mw=mw?Symbol.for("react.block"):60121,Dw=mw?Symbol.for("react.fundamental"):60117,Tw=mw?Symbol.for("react.responder"):60118,Ow=mw?Symbol.for("react.scope"):60119;function qw(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case gw:switch(e=e.type){case Cw:case Ew:case vw:case xw:case yw:case Pw:return e;default:switch(e=e&&e.$$typeof){case ww:case Rw:case kw:case Iw:case Sw:return e;default:return t}}case bw:return t}}}function Lw(e){return qw(e)===Ew}hw.AsyncMode=Cw,hw.ConcurrentMode=Ew,hw.ContextConsumer=ww,hw.ContextProvider=Sw,hw.Element=gw,hw.ForwardRef=Rw,hw.Fragment=vw,hw.Lazy=kw,hw.Memo=Iw,hw.Portal=bw,hw.Profiler=xw,hw.StrictMode=yw,hw.Suspense=Pw,hw.isAsyncMode=function(e){return Lw(e)||qw(e)===Cw},hw.isConcurrentMode=Lw,hw.isContextConsumer=function(e){return qw(e)===ww},hw.isContextProvider=function(e){return qw(e)===Sw},hw.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===gw},hw.isForwardRef=function(e){return qw(e)===Rw},hw.isFragment=function(e){return qw(e)===vw},hw.isLazy=function(e){return qw(e)===kw},hw.isMemo=function(e){return qw(e)===Iw},hw.isPortal=function(e){return qw(e)===bw},hw.isProfiler=function(e){return qw(e)===xw},hw.isStrictMode=function(e){return qw(e)===yw},hw.isSuspense=function(e){return qw(e)===Pw},hw.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===vw||e===Ew||e===xw||e===yw||e===Pw||e===Aw||"object"==typeof e&&null!==e&&(e.$$typeof===kw||e.$$typeof===Iw||e.$$typeof===Sw||e.$$typeof===ww||e.$$typeof===Rw||e.$$typeof===Dw||e.$$typeof===Tw||e.$$typeof===Ow||e.$$typeof===Mw)},hw.typeOf=qw,fw.exports=hw;var Nw=fw.exports,jw={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},zw={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Fw={};function Hw(e){return Nw.isMemo(e)?zw:Fw[e.$$typeof]||jw}Fw[Nw.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Fw[Nw.Memo]=zw;var $w=Object.defineProperty,Bw=Object.getOwnPropertyNames,Ww=Object.getOwnPropertySymbols,Vw=Object.getOwnPropertyDescriptor,Uw=Object.getPrototypeOf,Gw=Object.prototype;var Yw=function e(t,r,n){if("string"!=typeof r){if(Gw){var o=Uw(r);o&&o!==Gw&&e(t,o,n)}var i=Bw(r);Ww&&(i=i.concat(Ww(r)));for(var a=Hw(t),s=Hw(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=Vw(r,u);try{$w(t,u,c)}catch(e){}}}}return t},Kw=Bt(Yw);function Xw(){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=US(r,["innerRef"]),a=ZS()||e;return x.createElement(t,_r({theme:a,ref:o||n},i))}));return Kw(r,t),r}}var Jw,Zw=Xw(),Qw=Object.freeze({__proto__:null,ServerStyleSheets:cw,StylesContext:ow,StylesProvider:iw,ThemeProvider:function(e){var t=e.children,r=e.theme,n=ZS(),o=x.useMemo((function(){var e=null===n?r:function(e,t){return"function"==typeof t?t(e):_r({},e,t)}(n,r);return null!=e&&(e[ty]=null!==n),e}),[r,n]);return x.createElement(JS.Provider,{value:o},t)},createGenerateClassName:ny,createStyles:function(e){return e},getThemeProps:oy,jssPreset:VS,makeStyles:uw,mergeClasses:GS,sheetsManager:rw,styled:function(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.name,i=US(n,["name"]),a=o,s=uw("function"==typeof t?function(e){return{root:function(r){return t(_r({theme:e},r))}}}:{root:t},_r({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=US(t,["children","className","clone","component"]),f=pw(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,_r({className:pw(l.props.className,f)},h));if("function"==typeof l)return l(_r({className:f},h));var m=d||e;return x.createElement(m,_r({ref:n,className:f},h),l)}));return Kw(l,e),l}},useTheme:ZS,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=US(t,["defaultTheme","withTheme","name"]),l=a,u=uw(e,_r({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=US(e,["classes","innerRef"]),c=u(_r({},r.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=ZS()||n,a&&(d=oy({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),x.createElement(r,_r({ref:s||t,classes:c},d))}));return Kw(c,r),c}},withTheme:Zw,withThemeCreator:Xw}),eC=Wt(Qw);
|
|
97
|
+
*/bx();var xx=Date.now(),Sx="fnValues"+xx,wx="fnStyle"+ ++xx,Cx="@global",Ex="@global ",Rx=function(){function e(e,t,r){for(var n in this.type="global",this.at=Cx,this.isProcessed=!1,this.key=e,this.options=r,this.rules=new Ky(zr({},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}(),Px=function(){function e(e,t,r){this.type="global",this.at=Cx,this.isProcessed=!1,this.key=e,this.options=r;var n=e.substr(8);this.rule=r.jss.createRule(n,t,zr({},r,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Ax=/\s*,\s*/g;function Ix(e,t){for(var r=e.split(Ax),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function kx(){return{onCreateRule:function(e,t,r){if(!e)return null;if(e===Cx)return new Rx(e,t,r);if("@"===e[0]&&e.substr(0,8)===Ex)return new Px(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[Cx]:null;if(o){for(var i in o)t.addRule(i,o[i],zr({},r,{selector:Ix(i,e.selector)}));delete n[Cx]}}(e,t),function(e,t){var r=e.options,n=e.style;for(var o in n)if("@"===o[0]&&o.substr(0,7)===Cx){var i=Ix(o.substr(7),e.selector);t.addRule(i,n[o],zr({},r,{selector:i})),delete n[o]}}(e,t))}}}var Mx=/\s*,\s*/g,Dx=/&/g,Tx=/\$([\w-]+)/g;function qx(){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(Mx),n=e.split(Mx),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(Dx,a):a+" "+l}return o}function r(e,t,r){if(r)return zr({},r,{index:r.index+1});var n=e.options.nestingLevel;n=void 0===n?1:n+1;var o=zr({},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(Tx,s);var h=l.key+"-"+c;"replaceRule"in u?u.replaceRule(h,n[c],zr({},a,{selector:f})):u.addRule(h,n[c],zr({},a,{selector:f}))}else p&&u.addRule(c,{},a).addRule(l.key,n[c],{selector:l.selector});delete n[c]}}return n}}}var Ox=/[A-Z]/g,Lx=/^ms-/,Nx={};function jx(e){return"-"+e.toLowerCase()}function _x(e){if(Nx.hasOwnProperty(e))return Nx[e];var t=e.replace(Ox,jx);return Nx[e]=Lx.test(t)?"-"+t:t}function zx(e){var t={};for(var r in e){t[0===r.indexOf("--")?r:_x(r)]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(zx):t.fallbacks=zx(e.fallbacks)),t}var Fx=vx&&CSS?CSS.px:"px",Hx=vx&&CSS?CSS.ms:"ms",$x=vx&&CSS?CSS.percent:"%";function Bx(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 Wx=Bx({"animation-delay":Hx,"animation-duration":Hx,"background-position":Fx,"background-position-x":Fx,"background-position-y":Fx,"background-size":Fx,border:Fx,"border-bottom":Fx,"border-bottom-left-radius":Fx,"border-bottom-right-radius":Fx,"border-bottom-width":Fx,"border-left":Fx,"border-left-width":Fx,"border-radius":Fx,"border-right":Fx,"border-right-width":Fx,"border-top":Fx,"border-top-left-radius":Fx,"border-top-right-radius":Fx,"border-top-width":Fx,"border-width":Fx,"border-block":Fx,"border-block-end":Fx,"border-block-end-width":Fx,"border-block-start":Fx,"border-block-start-width":Fx,"border-block-width":Fx,"border-inline":Fx,"border-inline-end":Fx,"border-inline-end-width":Fx,"border-inline-start":Fx,"border-inline-start-width":Fx,"border-inline-width":Fx,"border-start-start-radius":Fx,"border-start-end-radius":Fx,"border-end-start-radius":Fx,"border-end-end-radius":Fx,margin:Fx,"margin-bottom":Fx,"margin-left":Fx,"margin-right":Fx,"margin-top":Fx,"margin-block":Fx,"margin-block-end":Fx,"margin-block-start":Fx,"margin-inline":Fx,"margin-inline-end":Fx,"margin-inline-start":Fx,padding:Fx,"padding-bottom":Fx,"padding-left":Fx,"padding-right":Fx,"padding-top":Fx,"padding-block":Fx,"padding-block-end":Fx,"padding-block-start":Fx,"padding-inline":Fx,"padding-inline-end":Fx,"padding-inline-start":Fx,"mask-position-x":Fx,"mask-position-y":Fx,"mask-size":Fx,height:Fx,width:Fx,"min-height":Fx,"max-height":Fx,"min-width":Fx,"max-width":Fx,bottom:Fx,left:Fx,top:Fx,right:Fx,inset:Fx,"inset-block":Fx,"inset-block-end":Fx,"inset-block-start":Fx,"inset-inline":Fx,"inset-inline-end":Fx,"inset-inline-start":Fx,"box-shadow":Fx,"text-shadow":Fx,"column-gap":Fx,"column-rule":Fx,"column-rule-width":Fx,"column-width":Fx,"font-size":Fx,"font-size-delta":Fx,"letter-spacing":Fx,"text-decoration-thickness":Fx,"text-indent":Fx,"text-stroke":Fx,"text-stroke-width":Fx,"word-spacing":Fx,motion:Fx,"motion-offset":Fx,outline:Fx,"outline-offset":Fx,"outline-width":Fx,perspective:Fx,"perspective-origin-x":$x,"perspective-origin-y":$x,"transform-origin":$x,"transform-origin-x":$x,"transform-origin-y":$x,"transform-origin-z":$x,"transition-delay":Hx,"transition-duration":Hx,"vertical-align":Fx,"flex-basis":Fx,"shape-margin":Fx,size:Fx,gap:Fx,grid:Fx,"grid-gap":Fx,"row-gap":Fx,"grid-row-gap":Fx,"grid-column-gap":Fx,"grid-template-rows":Fx,"grid-template-columns":Fx,"grid-auto-rows":Fx,"grid-auto-columns":Fx,"box-shadow-x":Fx,"box-shadow-y":Fx,"box-shadow-blur":Fx,"box-shadow-spread":Fx,"font-line-height":Fx,"text-shadow-x":Fx,"text-shadow-y":Fx,"text-shadow-blur":Fx});function Vx(e,t,r){if(null==t)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=Vx(e,t[n],r);else if("object"==typeof t)if("fallbacks"===e)for(var o in t)t[o]=Vx(o,t[o],r);else for(var i in t)t[i]=Vx(e+"-"+i,t[i],r);else if("number"==typeof t&&!1===isNaN(t)){var a=r[e]||Wx[e];return!a||0===t&&a===Fx?t.toString():"function"==typeof a?a(t).toString():""+t+a}return t}function Ux(e){void 0===e&&(e={});var t=Bx(e);return{onProcessStyle:function(e,r){if("style"!==r.type)return e;for(var n in e)e[n]=Vx(n,e[n],t);return e},onChangeValue:function(e,r){return Vx(r,e,t)}}}var Gx="",Yx="",Kx="",Xx="",Jx=sy&&"ontouchstart"in document.documentElement;if(sy){var Zx={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Qx=document.createElement("p").style;for(var eS in Zx)if(eS+"Transform"in Qx){Gx=eS,Yx=Zx[eS];break}"Webkit"===Gx&&"msHyphens"in Qx&&(Gx="ms",Yx=Zx.ms,Xx="edge"),"Webkit"===Gx&&"-apple-trailing-word"in Qx&&(Kx="apple")}var tS=Gx,rS=Yx,nS=Kx,oS=Xx,iS=Jx;var aS={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===tS?"-webkit-"+e:rS+e)}},sS={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===tS?rS+"print-"+e:e)}},lS=/[-\s]+(.)?/g;function uS(e,t){return t?t.toUpperCase():""}function cS(e){return e.replace(lS,uS)}function dS(e){return cS("-"+e)}var pS,fS={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===tS){var r="mask-image";if(cS(r)in t)return e;if(tS+dS(r)in t)return rS+e}return e}},hS={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==nS||iS?e:rS+e)}},mS={noPrefill:["transform"],supportedProperty:function(e,t,r){return"transform"===e&&(r.transform?e:rS+e)}},gS={noPrefill:["transition"],supportedProperty:function(e,t,r){return"transition"===e&&(r.transition?e:rS+e)}},bS={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===tS||"ms"===tS&&"edge"!==oS?rS+e:e)}},vS={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===tS||"ms"===tS||"apple"===nS?rS+e:e)}},yS={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===tS?"WebkitColumn"+dS(e)in t&&rS+"column-"+e:"Moz"===tS&&("page"+dS(e)in t&&"page-"+e))}},xS={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===tS)return e;var r=e.replace("-inline","");return tS+dS(r)in t&&rS+r}},SS={supportedProperty:function(e,t){return cS(e)in t&&e}},wS={supportedProperty:function(e,t){var r=dS(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:tS+r in t?rS+e:"Webkit"!==tS&&"Webkit"+r in t&&"-webkit-"+e}},CS={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===tS?""+rS+e:e)}},ES={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===tS?rS+"scroll-chaining":e)}},RS={"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"},PS={supportedProperty:function(e,t){var r=RS[e];return!!r&&(tS+dS(r)in t&&rS+r)}},AS={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"},IS=Object.keys(AS),kS=function(e){return rS+e},MS={supportedProperty:function(e,t,r){var n=r.multiple;if(IS.indexOf(e)>-1){var o=AS[e];if(!Array.isArray(o))return tS+dS(o)in t&&rS+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(tS+dS(o[0])in t))return!1;return o.map(kS)}return!1}},DS=[aS,sS,fS,hS,mS,gS,bS,vS,yS,xS,SS,wS,CS,ES,PS,MS],TS=DS.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),qS=DS.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,db(t.noPrefill)),e}),[]),OS={};if(sy){pS=document.createElement("p");var LS=window.getComputedStyle(document.documentElement,"");for(var NS in LS)isNaN(NS)||(OS[LS[NS]]=LS[NS]);qS.forEach((function(e){return delete OS[e]}))}function jS(e,t){if(void 0===t&&(t={}),!pS)return e;if(null!=OS[e])return OS[e];"transition"!==e&&"transform"!==e||(t[e]=e in pS.style);for(var r=0;r<TS.length&&(OS[e]=TS[r](e,pS.style,t),!OS[e]);r++);try{pS.style[e]=""}catch(e){return!1}return OS[e]}var _S,zS={},FS={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},HS=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function $S(e,t,r){if("var"===t)return"var";if("all"===t)return"all";if("all"===r)return", all";var n=t?jS(t):", "+jS(r);return n||(t||r)}function BS(e,t){var r=t;if(!_S||"content"===e)return t;if("string"!=typeof r||!isNaN(parseInt(r,10)))return r;var n=e+r;if(null!=zS[n])return zS[n];try{_S.style[e]=r}catch(e){return zS[n]=!1,!1}if(FS[e])r=r.replace(HS,$S);else if(""===_S.style[e]&&("-ms-flex"===(r=rS+r)&&(_S.style[e]="-ms-flexbox"),_S.style[e]=r,""===_S.style[e]))return zS[n]=!1,!1;return _S.style[e]="",zS[n]=r,zS[n]}function WS(){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=jS(r);i&&i!==r&&(o=!0);var a=!1,s=BS(i,fy(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"===tS?e:"@"+rS+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,r){return"style"!==r.type?t:e(t)},onChangeValue:function(e,t){return BS(t,fy(e))||e}}}function VS(){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 US(){return{plugins:[{onCreateRule:function(e,t,r){if("function"!=typeof t)return null;var n=dy(e,{},r);return n[wx]=t,n},onProcessStyle:function(e,t){if(Sx in t||wx 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[Sx]=r,e},onUpdate:function(e,t,r,n){var o=t,i=o[wx];i&&(o.style=i(e)||{});var a=o[Sx];if(a)for(var s in a)o.prop(s,a[s](e),n)}},kx(),qx(),{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=zx(e[t]);return e}return zx(e)},onChangeValue:function(e,t,r){if(0===t.indexOf("--"))return e;var n=_x(t);return t===n?e:(r.prop(n,e),null)}},Ux(),"undefined"==typeof window?null:WS(),VS()]}}function GS(e,t){if(null==e)return{};var r,n,o=Fr(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 YS(){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=zr({},t);return Object.keys(r).forEach((function(e){r[e]&&(n[e]="".concat(t[e]," ").concat(r[e]))})),n}sy&&(_S=document.createElement("p"));var KS=function(e,t,r,n){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(r,n)},XS=function(e,t,r){var n=e.get(t);return n?n.get(r):void 0},JS=function(e,t,r){e.get(t).delete(r)},ZS=x.createContext(null);function QS(){return x.useContext(ZS)}var ew,tw=bx(US()),rw=oy(),nw=new Map,ow={disableGeneration:!1,generateClassName:rw,jss:tw,sheetsCache:null,sheetsManager:nw,sheetsRegistry:null},iw=x.createContext(ow);function aw(e){var t=e.children,r=e.injectFirst,n=void 0!==r&&r,o=e.disableGeneration,i=void 0!==o&&o,a=GS(e,["children","injectFirst","disableGeneration"]),s=zr({},x.useContext(iw),{disableGeneration:i},a);if(!s.jss.options.insertionPoint&&n&&"undefined"!=typeof window){if(!ew){var l=document.head;ew=document.createComment("mui-inject-first"),l.insertBefore(ew,l.firstChild)}s.jss=bx({plugins:US().plugins,insertionPoint:ew})}return x.createElement(iw.Provider,{value:s},t)}var sw=-1e9;var lw={};function uw(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=XS(o.sheetsManager,i,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},KS(o.sheetsManager,i,n,s));var l=zr({},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=XS(o.sheetsCache,i,n));var d=i.create(n,a);c||((c=o.jss.createStyleSheet(d,zr({link:!1},l))).attach(),o.sheetsCache&&KS(o.sheetsCache,i,n,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=yx(d)}if(s.dynamicStyles){var p=o.jss.createStyleSheet(s.dynamicStyles,zr({link:!0},l));p.update(t),p.attach(),r.dynamicSheet=p,r.classes=YS({baseClasses:s.staticSheet.classes,newClasses:p.classes}),u&&u.add(p)}else r.classes=s.staticSheet.classes;s.refs+=1}}function cw(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?lw:i,s=GS(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=zr({},o);return Object.keys(i).forEach((function(e){a[e]=wm(a[e],i[e])})),a},options:{}}}(e),u=r||n||"makeStyles";l.options={index:sw+=1,name:r,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=QS()||a,n=zr({},x.useContext(iw),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 uw(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=XS(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;0===i.refs&&(JS(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=YS({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}(i.current,e.classes,o);return c}}var dw=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 ly(e,[{key:"collect",value:function(e){var t=new Map;this.sheetsRegistry=new Zy;var r=oy();return x.createElement(aw,zr({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",zr({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},e))}}]),e}();function pw(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=pw(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function fw(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=pw(e))&&(n&&(n+=" "),n+=t);return n}var hw={exports:{}},mw={},gw="function"==typeof Symbol&&Symbol.for,bw=gw?Symbol.for("react.element"):60103,vw=gw?Symbol.for("react.portal"):60106,yw=gw?Symbol.for("react.fragment"):60107,xw=gw?Symbol.for("react.strict_mode"):60108,Sw=gw?Symbol.for("react.profiler"):60114,ww=gw?Symbol.for("react.provider"):60109,Cw=gw?Symbol.for("react.context"):60110,Ew=gw?Symbol.for("react.async_mode"):60111,Rw=gw?Symbol.for("react.concurrent_mode"):60111,Pw=gw?Symbol.for("react.forward_ref"):60112,Aw=gw?Symbol.for("react.suspense"):60113,Iw=gw?Symbol.for("react.suspense_list"):60120,kw=gw?Symbol.for("react.memo"):60115,Mw=gw?Symbol.for("react.lazy"):60116,Dw=gw?Symbol.for("react.block"):60121,Tw=gw?Symbol.for("react.fundamental"):60117,qw=gw?Symbol.for("react.responder"):60118,Ow=gw?Symbol.for("react.scope"):60119;function Lw(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case bw:switch(e=e.type){case Ew:case Rw:case yw:case Sw:case xw:case Aw:return e;default:switch(e=e&&e.$$typeof){case Cw:case Pw:case Mw:case kw:case ww:return e;default:return t}}case vw:return t}}}function Nw(e){return Lw(e)===Rw}mw.AsyncMode=Ew,mw.ConcurrentMode=Rw,mw.ContextConsumer=Cw,mw.ContextProvider=ww,mw.Element=bw,mw.ForwardRef=Pw,mw.Fragment=yw,mw.Lazy=Mw,mw.Memo=kw,mw.Portal=vw,mw.Profiler=Sw,mw.StrictMode=xw,mw.Suspense=Aw,mw.isAsyncMode=function(e){return Nw(e)||Lw(e)===Ew},mw.isConcurrentMode=Nw,mw.isContextConsumer=function(e){return Lw(e)===Cw},mw.isContextProvider=function(e){return Lw(e)===ww},mw.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===bw},mw.isForwardRef=function(e){return Lw(e)===Pw},mw.isFragment=function(e){return Lw(e)===yw},mw.isLazy=function(e){return Lw(e)===Mw},mw.isMemo=function(e){return Lw(e)===kw},mw.isPortal=function(e){return Lw(e)===vw},mw.isProfiler=function(e){return Lw(e)===Sw},mw.isStrictMode=function(e){return Lw(e)===xw},mw.isSuspense=function(e){return Lw(e)===Aw},mw.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===yw||e===Rw||e===Sw||e===xw||e===Aw||e===Iw||"object"==typeof e&&null!==e&&(e.$$typeof===Mw||e.$$typeof===kw||e.$$typeof===ww||e.$$typeof===Cw||e.$$typeof===Pw||e.$$typeof===Tw||e.$$typeof===qw||e.$$typeof===Ow||e.$$typeof===Dw)},mw.typeOf=Lw,hw.exports=mw;var jw=hw.exports,_w={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},zw={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Fw={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Hw={};function $w(e){return jw.isMemo(e)?Fw:Hw[e.$$typeof]||_w}Hw[jw.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Hw[jw.Memo]=Fw;var Bw=Object.defineProperty,Ww=Object.getOwnPropertyNames,Vw=Object.getOwnPropertySymbols,Uw=Object.getOwnPropertyDescriptor,Gw=Object.getPrototypeOf,Yw=Object.prototype;var Kw=function e(t,r,n){if("string"!=typeof r){if(Yw){var o=Gw(r);o&&o!==Yw&&e(t,o,n)}var i=Ww(r);Vw&&(i=i.concat(Vw(r)));for(var a=$w(t),s=$w(r),l=0;l<i.length;++l){var u=i[l];if(!(zw[u]||n&&n[u]||s&&s[u]||a&&a[u])){var c=Uw(r,u);try{Bw(t,u,c)}catch(e){}}}}return t},Xw=Wt(Kw);function Jw(){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=GS(r,["innerRef"]),a=QS()||e;return x.createElement(t,zr({theme:a,ref:o||n},i))}));return Xw(r,t),r}}var Zw,Qw=Jw(),eC=Object.freeze({__proto__:null,ServerStyleSheets:dw,StylesContext:iw,StylesProvider:aw,ThemeProvider:function(e){var t=e.children,r=e.theme,n=QS(),o=x.useMemo((function(){var e=null===n?r:function(e,t){return"function"==typeof t?t(e):zr({},e,t)}(n,r);return null!=e&&(e[ry]=null!==n),e}),[r,n]);return x.createElement(ZS.Provider,{value:o},t)},createGenerateClassName:oy,createStyles:function(e){return e},getThemeProps:iy,jssPreset:US,makeStyles:cw,mergeClasses:YS,sheetsManager:nw,styled:function(e){return function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.name,i=GS(n,["name"]),a=o,s=cw("function"==typeof t?function(e){return{root:function(r){return t(zr({theme:e},r))}}}:{root:t},zr({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=GS(t,["children","className","clone","component"]),f=fw(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,zr({className:fw(l.props.className,f)},h));if("function"==typeof l)return l(zr({className:f},h));var m=d||e;return x.createElement(m,zr({ref:n,className:f},h),l)}));return Xw(l,e),l}},useTheme:QS,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=GS(t,["defaultTheme","withTheme","name"]),l=a,u=cw(e,zr({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=GS(e,["classes","innerRef"]),c=u(zr({},r.defaultProps,e)),d=l;return("string"==typeof a||i)&&(o=QS()||n,a&&(d=iy({theme:o,name:a,props:l})),i&&!d.theme&&(d.theme=o)),x.createElement(r,zr({ref:s||t,classes:c},d))}));return Xw(c,r),c}},withTheme:Qw,withThemeCreator:Jw}),tC=Vt(eC);
|
|
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 tC,rC,nC={},oC={};function iC(){if(tC)return oC;tC=1;var e=Nl;Object.defineProperty(oC,"__esModule",{value:!0}),oC.default=void 0;var t=(0,e(Jv()).default)();return oC.default=t,oC}var aC,sC,lC={},uC={};function cC(){if(sC)return lC;sC=1;var e=Nl;Object.defineProperty(lC,"__esModule",{value:!0}),lC.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(Iu()),r=lg,n=function(){if(aC)return uC;aC=1;var e=Nl;Object.defineProperty(uC,"__esModule",{value:!0}),uC.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},uC.getUnit=r,uC.toUnitless=n,uC.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}},uC.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},uC.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},uC.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(Ig());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return uC}();return lC}var dC,pC={};var fC,hC={};var mC,gC={};var bC,vC={};!function(e){var t=Nl,r=bm;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=vm;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(Jv()),a=t(function(){if(Zv)return Qv;Zv=1;var e=Nl;Object.defineProperty(Qv,"__esModule",{value:!0}),Qv.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=lg,r=e(Jv());return Qv}()),s=t(function(){if(Jw)return ey;Jw=1,Object.defineProperty(ey,"__esModule",{value:!0}),ey.default=function(t){return(0,e.createStyles)(t)};var e=eC;return ey}()),l=t(function(){if(rC)return nC;rC=1;var e=Nl;Object.defineProperty(nC,"__esModule",{value:!0}),nC.default=void 0;var t=e(Iu()),r=eC,n=e(iC()),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 nC.default=o,nC}()),u=t(cC()),c=t(function(){if(dC)return pC;dC=1;var e=Nl;Object.defineProperty(pC,"__esModule",{value:!0}),pC.default=void 0;var t=e(Iu()),r=eC,n=e(iC()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return pC.default=o,pC}()),d=Gv();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(fC)return hC;fC=1;var e=Nl;Object.defineProperty(hC,"__esModule",{value:!0}),hC.default=function(){return(0,t.useTheme)()||r.default};var t=eC;e(x);var r=e(iC());return hC}()),f=t(function(){if(mC)return gC;mC=1;var e=Nl;Object.defineProperty(gC,"__esModule",{value:!0}),gC.default=void 0;var t=e(Iu()),r=eC,n=e(iC()),o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return gC.default=o,gC}()),h=t(function(){if(bC)return vC;bC=1;var e=Nl;Object.defineProperty(vC,"__esModule",{value:!0}),vC.default=void 0;var t=eC,r=e(iC()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return vC.default=n,vC}()),m=eC}(fm),fm.alpha(Tt.GREYSCALE_0,.05),fm.alpha(Tt.GREEN_PALE,.5),fm.alpha(Tt.BLUE_PALE,.5),fm.alpha(Tt.GREEN_PALE,.5),fm.alpha(Tt.BLUE_PALE,.5),fm.alpha(Tt.GREEN_PALE,.5),fm.alpha(Tt.BLUE_PALE,.5),fm.alpha(Tt.GREEN_PALE,.5),fm.alpha(Tt.BLUE_PALE,.5),fm.alpha(Tt.GREEN_PALE,.5),fm.alpha(Tt.BLUE_PALE,.5);const yC=(e="light",t=!1)=>dm(e,t),xC=yC().palette,SC={TEXT:xC.text.primary,DISABLED:xC.text.disabled,HOVER:xC.action.hover,WHITE:pm.GREYSCALE_100,BORDER_LIGHT:pm.GREYSCALE_90,BORDER_MEDIUM:pm.GREYSCALE_85,BORDER_HEAVY:pm.GREYSCALE_50,DARK_MODE_TEXT:pm.GREYSCALE_95,DARK_MODE_BORDER:pm.GREYSCALE_95,DARK_MODE_DISABLED:pm.GREYSCALE_70,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:pm.GREYSCALE_95,SELECTED:xC.primary.main,LINK:xC.info.main,ERROR:xC.error.main},wC=(e,t=SC.TEXT,r=SC.WHITE)=>{const n=te(e),o=te(t),i=te(r);return n.isInvalid()?t:function(e,t,r){const n=re(e,t),o=re(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},CC=e=>{const t=e.getStyle("","","dataColors.selected")||SC.SELECTED,r=function(e,t){const r=te("#FFFFFF"),n=te(e),o=te(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=re(r,n),a=re(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}(t,SC.TEXT);return{background:t,color:r}},EC=(e,t)=>{const r=te(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},RC=(e,t,r)=>{const n=t?e.getColorPickerColor(t):"none";return"none"===n?r:n},PC=e=>{const t=te(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},AC=(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)},IC=e=>{e.stopPropagation(),e.preventDefault()},kC=e=>!!e&&0===te(e).a,MC="#grid",DC=(e,t,r,n=SC.WHITE)=>e&&!kC(e)?e:kC(t)?r&&!kC(r)?r:n:t,TC=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},OC=(e,t,r,n,o)=>{const i=TC(".qv-object .qv-inner-object",r),a=TC(".qv-panel-sheet",r),s=TC(MC,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 PC(r);if("none"===n)return"transparent";if(void 0===n)return;const i=te(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=kC(d),f=!kC(h=p?s:d)&&wC(h,SC.TEXT,SC.DARK_MODE_TEXT)===X(SC.DARK_MODE_TEXT);var h;return{color:d,headerColor:DC(l,d,s),isDark:f}},qC=(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(MC),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>e?.includes("background"))).map((({oldValue:e})=>e)).join(",");return e((()=>({...l,background:OC(t,l,r,a,s)})),[l.name(),r,a,s,t,u])};function LC(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 NC=3;function jC(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=NC}=o??{},{estimateWidth:a,measureText:s,estimateLineCount:l}=C((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=yt(o.measureText.bind(o)),s=e=>+a(e).width.toFixed(2),l=yt((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=jC(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 zC,FC=F;zC=FC.createRoot,FC.hydrateRoot;const HC="Source Sans Pro, sans-serif";function $C(e,t){const[r,n]=w(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var BC={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 WC=({translator:e})=>(C((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(BC).forEach((t=>{e.add(BC[t])}))}}(e)}),[e]),e),VC="12px",UC="nebula-table-utils-head-menu-button",GC="nebula-table-utils-head-menu-wrapper",YC="nebula-table-utils-head-menu",KC="nebula-table-utils-head-menu-list-id",XC="sn-copy-cell";let JC=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 ZC="nebula-table-utils-column-adjuster";let QC=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}({}),eE=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const tE={darker:.15,brighter:.3,opacity:.03},rE={darker:.3,brighter:.5,opacity:.05};let nE=function(e){return e.Cyclic="C",e}({});const oE=document.createElement("textarea");function iE(e){oE.value=e,document.body.appendChild(oE),oE.select(),oE.setSelectionRange(0,oE.value.length),document.execCommand("copy"),document.body.removeChild(oE)}oE.style.position="absolute",oE.style.left="-9999px",oE.setAttribute("readonly","");const aE=e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch((()=>{iE(t)})):iE(t))};var sE={exports:{}};self,sE.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 k(e){return void 0===e}function M(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]=k(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)||M(t,o)||(k(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]&&k(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(!k(t[0])&&k(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){k(t[o])&&!M(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&&!M(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,q=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 L="accumulation";function N(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===L)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===L)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(L))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 B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={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,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!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 ke(e){return ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ke(e)}var Me={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const De={modifiers:Me,apply:Oe,applyModifiers:qe,cleanUpMeasure:Le,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 Me[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Me[e]&&Me[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"===ke(n))return qe({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"===ke(e)&&!e.disabled){if(r++,"object"!==ke(Me[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=Me[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&We(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),qe({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"===ke(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 Le(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(l)}function qe(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 Le(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"===ke(e)&&!e.disabled){if(s++,"object"!==ke(Me[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)");Me[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:Me[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 Me[n.type].updateModifier&&Me[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:Me[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}),Be(r)):Le(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 Le(e){!function(e){var t=Fe(e);return Array.isArray(t)&&t.some((function(e){return"object"===ke(e)&&!e.disabled&&!Me[e.type]}))}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(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(Me[n.type]&&!n.disabled)return n}}function _e(e){var t=je(e);return!t||Me[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 Be(e){var t=Fe(e);Array.isArray(t)&&t.forEach((function(t){"object"===ke(t)&&(t.disabled||!Me[t.type]&&He(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ve(e){var t=We(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"!==ke(e)||e.disabled||!Me[e.type])&&(void 0===o[e.type]&&(o[e.type]=Me[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):q(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"===ke(e)&&!e.disabled&&Me[e.type]&&Me[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 k=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},M=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:[]}},q=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)}},L=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)}))}},B=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(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}),q({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),L({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}),M("qMaxStackedCells",b,v),M("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),k(g,t,n),m.qProperty=g;var I=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:I}),p&&W(m.qProperty,"storedFilters"),"S"===v.qMode&&h&&W(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?W(r,"unsupportedAutoMinMax")||w()(r.measureAxis,t.measureAxis):W(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",ke="qDef.conditionalColoring";const Me={quarantine:function(e){Ee({properties:e,arrayPath:Pe,quarantineName:Ae,arrayName:Ie,itemPath:ke})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,itemPath:ke,arrayName:Ie,quarantineName:Ae})}};var De="qHyperCubeDef.qMeasures",Te="measures",Oe="qHyperCubeDef.qDimensions",qe="dimensions",Le="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:qe,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze}),Re({properties:e,arrayPath:Oe,quarantineName:Fe,arrayName:qe,itemPath:ze})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:Le,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Ee({properties:e,arrayPath:je,quarantineName:Fe,arrayName:_e,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Le,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:W,quarantineArrayProp:Ee,unquarantineArrayProp:Re,conditionalColoring:Me,conditionalShow:He}})(),n.default})();var lE=Bt(sE.exports);const uE="qHyperCubeDef.qMeasures",cE="measures",dE="qHyperCubeDef.qDimensions",pE="dimensions",fE="qDef.representation",hE="tableRepresentation",mE="qDef.conditionalColoring",gE="conditionalColoring",bE="qMiniChartDef",vE="miniChartDef",yE=({propertyTree:e,hyperCubePath:t})=>{const r=lE.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 vt(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),lE.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),lE.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),lE.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{lE.quarantineArrayProp({properties:e,arrayPath:dE,itemPath:fE,arrayName:pE,quarantineName:hE}),lE.quarantineArrayProp({properties:e,arrayPath:uE,itemPath:fE,arrayName:cE,quarantineName:hE}),lE.quarantineArrayProp({properties:e,arrayPath:uE,itemPath:mE,arrayName:cE,quarantineName:gE}),lE.quarantineArrayProp({properties:e,arrayPath:uE,itemPath:bE,arrayName:cE,quarantineName:vE})})(r.properties),r};const xE=/^q[A-Z]/,SE=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],wE=e=>"object"==typeof e&&null!==e,CE=(e,t)=>(Object.entries(e).forEach((([r,n])=>{const o=void 0===t?r:`${t}.${r}`;((e,t)=>!xE.test(e)&&!SE.some((e=>e.test(t))))(r,o)?delete e[r]:Array.isArray(n)?e[r]=n.map(((e,t)=>wE(e)?CE(e,`${o}.${t}`):e)):wE(n)&&(e[r]=CE(n,o))})),e),EE=(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:eE.Pixels,pixels:e}:{type:eE.FitToContent}:i.qDef.columnWidth=e}return i},RE=({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)}CE(e.properties)}const a=lE.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(lE.conditionalShow.unquarantine(a.qProperty),i)vt(a,"qProperty.totals.show",!1),vt(a,"qProperty.usePagination",!0),vt(a,"qProperty.accessibleHeader",!0);else{lE.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{lE.unquarantineArrayProp({properties:e,arrayPath:dE,itemPath:fE,arrayName:pE,quarantineName:hE}),lE.unquarantineArrayProp({properties:e,arrayPath:uE,itemPath:fE,arrayName:cE,quarantineName:hE}),lE.unquarantineArrayProp({properties:e,arrayPath:uE,itemPath:mE,arrayName:cE,quarantineName:gE}),lE.unquarantineArrayProp({properties:e,arrayPath:uE,itemPath:bE,arrayName:cE,quarantineName:vE})})(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=>EE(e,t,n))),measures:a.filter((e=>e>=o)).map((e=>EE(t,e,n,o)))}})(e,t,r,n);Array.isArray(n)&&n.length>0&&(vt(a,"qProperty.qHyperCubeDef.qDimensions",o),vt(a,"qProperty.qHyperCubeDef.qMeasures",i))}return a};var PE={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};const AE=(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 IE(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function kE(e){return e>0?0:1}function ME(e){return e.translator.get("Visualizations.Descriptions.Column")}function DE(e){return{measures:{min:kE,max:1e3,description:()=>ME(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;IE(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;AE(o,i)}},dimensions:{min:kE,max:1e3,description:()=>ME(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return IE(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(e?.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;AE(o,n)}}}}let TE=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}({}),OE=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const qE=e=>{switch(e?.type){case"url":return TE.Link;case"image":return TE.Image;case"indicator":return TE.Indicator;case"miniChart":return TE.MiniChart;default:return TE.Text}},LE=({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}}),NE=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>qE(e.qDef.representation)===TE.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}}}}}},jE=e=>{const{anything:t}=e,r=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:LE({isImagesEnabled:r}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>qE(e.qDef.representation)===TE.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>qE(e.qDef.representation)===TE.Link&&e.qDef.representation?.urlPosition===OE.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>qE(e.qDef.representation)===TE.Link&&e.qDef.representation?.urlPosition===OE.Attribute},...NE(r)}},_E=(e,t)=>{const{anything:r}=e,n=r.sense?.isUnsupportedFeature,o=!n?.("tableImages")&&t[TE.Image],i=!n?.("qMiniChartDef")&&t[TE.MiniChart],a=!n?.("tableIndicators")&&t[TE.Indicator],s=o&&t[TE.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=>qE(e.qDef.representation)===TE.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 zE,FE={};zE=FE,(()=>{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={},k=Array.isArray;function M(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 q(e,t){var r=!0;if(M(e)&&M(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){q(e[n],t[n])||(r=!1)})),r);if(k(e)&&k(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!q(e[n],t[n]))return!1;return!0}return e===t}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);q(i,a)||T(t,o)||(D(a)?n.push({op:"add",path:s,value:i}):M(i)&&M(a)?n=n.concat(I.generate(a,i,s)):k(i)&&k(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&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(q(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(k(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(k(a)&&k(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return 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(M(a)&&M(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);k(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(k(o)?o.splice(+i,1):delete o[i])}))},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 L=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 B(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 W={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,W)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(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(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(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:Me,applyModifiers:De,cleanUpMeasure:Te,destroy:function(e){e&&ke[e.id]&&ke[e.id].masterItemSubscriber&&(ke[e.id].masterItemSubscriber&&ke[e.id].masterItemSubscriber.unsubscribe(),delete ke[e.id])},hasActiveModifiers:Oe,getActiveModifier:qe,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);We({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ke({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Le};var ke={};function Me(){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;ke[t.id]=ke[t.id]||{isFirstTime:!0};var u=ke[t.id].isFirstTime;if(ke[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=ke[t.id].lastReloadTime;if(ke[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 Be({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 We({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(Be({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&&We({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||Le(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Le(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 We({modifiers:je(e),properties:r,layout:n})}))}function qe(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 Le(e){var t=qe(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=qe(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 Be(e){var t=e.measure,r=e.properties,n=e.layout;return!$e(t)&&We({modifiers:je(t),properties:r,layout:n})}function We(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=L.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(We({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)?(ke[t.id].masterItemSubscriber=ke[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 Me({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),ke[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}for(var Ze in zE.default=n.default,n)-1===["default"].indexOf(Ze)&&(zE[Ze]=n[Ze]);Object.defineProperty(zE,"__esModule",{value:!0})})();var HE=Bt(FE);const $E={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},BE={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}},WE=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)=>(!HE.hasActiveModifiers({measures:[e],properties:t.properties})||HE.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")}),VE={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:eE.Auto,translation:"Common.Auto"},{value:eE.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:eE.Pixels,translation:"Object.Table.Column.Pixels"},{value:eE.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:eE.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===eE.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:"20",show:e=>e.qDef.columnWidth?.type===eE.Percentage}},UE=()=>({...$E,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}]},...BE,...VE}),GE={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"}},YE=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:WE(e)}},KE=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:GE},presentation:{type:"items",translation:"properties.presentation",items:{...UE(),...jE(e)}}}}}),XE=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:YE(e)},presentation:{type:"items",translation:"properties.presentation",items:{...UE(),..._E(e,{[TE.Image]:!0,[TE.Indicator]:!0,[TE.MiniChart]:!0})}}}}}),JE=e=>({...KE(e),...XE(e)}),ZE=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...JE(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}}}),QE={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}},eR=({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},tR=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")}),rR=(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}}}),nR=(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},oR=({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=>nR(e,!0)))],l=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...be(n).filter((e=>!a.includes(e))).map((e=>nR(e,!0)))];return[...s,...l.length>1?l:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),iR=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],aR=({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=>nR(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...iR.filter((e=>!i.includes(e))).map((e=>nR(e,!1)))];return[...a,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),sR=({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:oR({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:aR({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:r}),fontColor:rR(`${e}.fontColor`,void 0,(t=>o(t,e,"color")??t.color))}},background:rR(`${e}.background`,"properties.background",((t,r)=>{const n=r?SC.WHITE:SC.TRANSPARENT;return o(t,e,"backgroundColor")??n}),a)}}}}),lR=({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:rR(`${e}.fontColor`,void 0,(t=>n(t,e,"color")??t.color))}},background:rR(`${e}.background`,"properties.background",(t=>n(t,e,"backgroundColor")??r??"transparent"))}}}}),uR=(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}},cR=e=>e.grid?.zebraStripes?.show,dR={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)}},pR=e=>e?.content?.hoverEffect,fR={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:pR,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:pR,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},hR=(e,t,{properties:r})=>"sn-table"===r.visualization&&!0===r.usePagination,mR=({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:sR({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:uR,disableNoneCallback:hR}),dimensionValueSection:sR({section:"dimensionValues",translator:t,flags:e,getThemeValue:uR}),measureValueSection:sR({section:"measureValues",translator:t,flags:e,getThemeValue:uR}),totalRowSection:sR({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:uR,disableNoneCallback:hR}),nullValues:lR({section:"nullValues",fallbackBackground:SC.NULL_VALUE_BACKGROUND,getThemeValue:uR}),grid:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>!0,...dR},border:rR("grid.border","properties.border",(e=>e.object?.straightTableV2?.grid?.borderColor??SC.BORDER_MEDIUM)),divider:rR("grid.divider","properties.pivot.divider",(e=>e.object?.straightTableV2?.grid?.divider?.borderColor??SC.BORDER_HEAVY))}}}},hoverEffectSection:fR,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:cR,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:cR,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:cR,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:cR,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),gR=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[mR(e),tR(e),eR(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:"-"}]},...QE}}),bR={uses:"sorting"},vR={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},yR=e=>({type:"items",component:"accordion",items:{data:ZE(e),sorting:bR,addOns:vR,settings:gR(e)}});function xR(e){return{definition:yR(e),exploration:PE,data:DE(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 RE({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:i,viewDataMode:o})},exportProperties:(e,t)=>yE({propertyTree:e,hyperCubePath:t})}}const SR=(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]),wR=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),CR=[];for(let e=0;e<256;++e)CR.push((e+256).toString(16).slice(1));let ER;const RR=new Uint8Array(16);var PR={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function AR(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!ER){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ER=crypto.getRandomValues.bind(crypto)}return ER(RR)}();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(CR[e[t+0]]+CR[e[t+1]]+CR[e[t+2]]+CR[e[t+3]]+"-"+CR[e[t+4]]+CR[e[t+5]]+"-"+CR[e[t+6]]+CR[e[t+7]]+"-"+CR[e[t+8]]+CR[e[t+9]]+"-"+CR[e[t+10]]+CR[e[t+11]]+CR[e[t+12]]+CR[e[t+13]]+CR[e[t+14]]+CR[e[t+15]]).toLowerCase()}(n)}const IR=()=>crypto?.randomUUID?.()??function(e){return PR.randomUUID&&!e?PR.randomUUID():AR(e)}(),kR=({cId:e})=>e??IR(),MR=e=>"number"==typeof e&&!Number.isNaN(+e),DR=e=>MR(e.qNum),TR=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e);var OR={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:LR(e),value:LR(t),useEqualSign:r}}(n,o,i))})),t}},qR=OR;function LR(e){try{return decodeURIComponent(e)}catch{return e}}function NR(e){if(!(this instanceof NR))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:()=>qR.fromSearchString(t.search)}})}function jR(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}NR.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},NR.encodeSearchParams=function(e){let t,r="";for(let n=0;n<e.length;n++)t=e[n],r+=0===n?"?":"&",r+=jR(t.key),t.value?r+=`=${jR(t.value)}`:r+=t.useEqualSign?"=":"";return r};var _R=NR;var zR,FR=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}},HR=class{decode(e){let t="";const r=new FR(e);let n;for(;r.hasNext();)n=this.decodeCharacter(r),t+=null!=n?n:r.next();return t}decodeCharacter(e){return e.next()}},$R=e=>e>=0&&e<=1114111,BR=e=>e.match(/[\s]/),WR=class extends HR{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&&!BR(o));n++){if("NaN"===parseInt(o,16)){e.pushback(o);break}r+=o}const a=parseInt(r,16);return $R(a)?String.fromCharCode(a):"�"}},VR=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}},UR=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 VR.newInstanceIfNeeded(e,this._value);const r=this.getNextNode(e.charAt(t));if(!r)return VR.newInstanceIfNeeded(e,t,this._value);const n=r.getLongestMatch(e,t+1);return n||VR.newInstanceIfNeeded(e,t,this._value)}},GR=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 UR);const r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}},YR=(()=>{const e=[],t=[],r=new GR;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})(),KR=class extends HR{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,YR.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();const i=YR.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)&&$R(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)&&$R(n)?String.fromCharCode(n):null}},XR=class extends HR{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),$R(i))?String.fromCharCode(i):(e.reset(),null)}},JR=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,ZR=5e6,QR=5e5,eP=(e,t)=>{const{maxByteSizeSvg:r=QR,maxByteSizeImage:n=ZR}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,r,n]=JR.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&&(zR=document.createElement("div"));var tP=Array.prototype.indexOf,rP=[",",".","_"," "],nP=[",",".","-","_"," "],oP={width:["%"],height:["%"]},iP={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},aP={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":iP.image,"background-color":iP.color,"border-color":iP.color,"border-image":iP.image,color:iP.color,icon:iP.image,"list-style-image":iP.image,"outline-color":iP.color},sP={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function lP(e,t,r){let n;if(t){if(tP)return tP.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 uP(e){if(null==e)return"";let t="";const r=document.createTextNode(e);return zR.appendChild(r),t=zR.innerHTML,zR.removeChild(r),t}function cP(e,t,r){let n,o,i,a,s,l,u,c,d;for(e=pP(e).toLowerCase(),t=pP(t),i=0;i<sP.attr_name.length;i++)if(e.match(sP.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<sP.attr_val.length;i++)if(t.toLowerCase().match(sP.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(n=oP[e],n||(n=nP),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]/)&&lP(u,n)<0?(d=c.toString(16),o+=`&#x${d};`):o+=u;return r||(o+='"'),o}function dP(e,t,r){let n,o,i,a,s,l,u,c,d,p;if(e=pP(e).toLowerCase(),t=pP(t),lP(e,sP.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(n=0;n<sP.css_val.length;n++)if(t.toLowerCase().indexOf(sP.css_val[n])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=aP[e],o||(o=iP.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]/)&&lP(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=u;return i}function pP(e,t){let r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;const s=[new KR,new XR,new WR];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 fP=[];for(let e=0;e<255;e++)fP[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);var hP={html:e=>uP(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]=dP(t,r[t],!0),i+=dP(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]=cP(e,t[e],!0),o+=cP(e,t[e],!0),n[e]=r[e]);return e.map?n:o}};function mP(e,t){throw new Error(t)}var gP={canonicalize:pP,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?hP.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&mP(this,"Invalid parameter type"),hP.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&mP(this,"Invalid parameter type"),hP.attr(e)):void mP(this,"Invalid parameter type")},encodeForAttr:cP,encodeForAttr2:function(e){return cP("nonsens",e,!0)},encodeForCSS:dP,encodeForHref:function(e){pP(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new _R(e),r=_R.encodeAuthorityAndPath(t.authorityAndPath),n=t.searchParams;e=r+_R.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=rP),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),lP(o,t)>=0||null==fP[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:uP,encodeForURL:function(e,t){let r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=pP(t).toLowerCase():mP(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:eP,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 bP=(e,t)=>t.qAttrExps?.qValues?.[e],vP=(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"}}},yP=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>n&&t&&!t.toLowerCase().includes("javascript:")&&gP.isSafeDataURL(t)?{type:TE.Image,url:t,text:e,imageSize:r,resolvedImagePosition:vP(n,a),labelStructure:o,imageBox:i}:{type:TE.Text,url:void 0,text:e,labelStructure:o},xP=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:TE.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:TE.MiniChart,text:n,miniChart:a}},SP=(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===OE.Attribute?void 0:r?.urlLabel},wP=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:TE.Link,url:gP.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:TE.Text,url:void 0,text:t,labelStructure:e}}},CP=({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=qE(t),d=s(e);return c===TE.Image&&u[TE.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=bP(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),yP({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 yP({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=bP(r.imageLabel??-1,e)?.qText??n;return yP({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:TE.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):c===TE.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===OE.Attribute){const i=SP(r.url??-1,e,t);return wP({labelStructure:n,text:o||i||"",url:i})}if(i===OE.Dimension){const i=SP(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),wP({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:TE.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):c===TE.Indicator&&u[TE.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:TE.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):c===TE.MiniChart&&u[TE.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?xP(e,t,i,d):{type:TE.Text,url:void 0,text:d,labelStructure:a}},EP=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,RP=(e,t,r)=>(e?void 0:r.nullValueRepresentation?.text)??t.qText??"-",PP=1e4;function AP(e,t){return[...t].reverse().find((t=>t*e<=PP))||Math.floor(PP/e)}function IP(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 kP(e,t,r,n){return t?0===r?e.totals.label??"":"":e.qHyperCube.qGrandTotalRow.at(n)?.qText??""}function MP(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return MR(r?.qNum)}function DP(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 TP=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right";const OP=(e,t,r)=>{const{qHyperCube:{qColumnOrder:n,qDimensionInfo:o,qMeasureInfo:i}}=e,a=o.length+i.length,s=n.length===a?n:Array.from(Array(a).keys()),{visibleColumnsOrder:l,visibleColumnIndexes:u}=((e,t,r)=>{const n=t.length,o=[];let i=0,a=0;return{visibleColumnsOrder:e.filter((e=>{const s=e<n,{qError:l}=s?t[e]:r[e-n],u=7005===l?.qErrorCode;return u?s?i++:a++:o[e]=s?e-i:e-n-a,!u})),visibleColumnIndexes:o}})(s,o,i);return l.map(((n,o)=>function(e,t,r,n,o,i){const{qDimensionInfo:a,qMeasureInfo:s,qEffectiveInterColumnSortOrder:l}=e.qHyperCube,u=a.length,c=t<u,d=c?a[t]:s[t-u],p=c&&a[t].qGrouping===nE.Cyclic,f=t===l[0];let h,m,g="",b=!1,v=-1,y=0,x=[];const{representation:S,conditionalColoring:w}=d;if(c){const e=d;g=e.qGroupFieldDefs[e.qGroupPos],y=e.qGroupPos,x=e.qGroupFallbackTitles,b=e.qLocked??!1,v=n,({qDimensionType:h}=e)}else({qMiniChart:m}=d);const{qFallbackTitle:C,textAlign:E,qAttrExprInfo:R,qSortIndicator:P,qReverseSort:A,qApprMaxGlyphCount:I,columnWidth:k,qLibraryId:M}=d;return{isDim:c,isCyclic:p,isLocked:b,fieldId:g,colIdx:t,qLibraryId:M,pageColIdx:r,qApprMaxGlyphCount:I,qReverseSort:A,columnWidth:k??{type:eE.Auto},selectionColIdx:v,isActivelySorted:f,id:kR(d),label:C,groupDimensionPos:y,groupDimensionLabels:x,qAttrExprInfoIDs:R.map((e=>e.id)),qAttrExprInfoIndex:wR(d),sortDirection:P&&"N"!==P?P:"A",totalInfo:kP(e,c,r,n),...!c&&{isTotalNumeric:MP(e,n)},...DP(E,h,c,o,i),representation:S,conditionalColoring:c?void 0:w,qMiniChart:m}}(e,n,o,u[n],t,r)))};const qP=(e,t)=>!(!e.snapshotData&&!t.viewState?.visibleHeight),LP=(e,t)=>void 0!==t.viewState?.usePagination?t.viewState.usePagination:!1!==e.usePagination||qP(e,t);var NP={exports:{}};
|
|
102
|
+
*/var rC,nC,oC={},iC={};function aC(){if(rC)return iC;rC=1;var e=jl;Object.defineProperty(iC,"__esModule",{value:!0}),iC.default=void 0;var t=(0,e(Zv()).default)();return iC.default=t,iC}var sC,lC,uC={},cC={};function dC(){if(lC)return uC;lC=1;var e=jl;Object.defineProperty(uC,"__esModule",{value:!0}),uC.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(ku()),r=ug,n=function(){if(sC)return cC;sC=1;var e=jl;Object.defineProperty(cC,"__esModule",{value:!0}),cC.isUnitless=function(e){return String(parseFloat(e)).length===String(e).length},cC.getUnit=r,cC.toUnitless=n,cC.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}},cC.alignProperty=function(e){var t=e.size,r=e.grid,n=t-t%r,o=n+r;return t-n<o-t?n:o},cC.fontGrid=function(e){var t=e.lineHeight;return e.pixels/(t*e.htmlFontSize)},cC.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(kg());function r(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function n(e){return parseFloat(e)}return cC}();return uC}var pC,fC={};var hC,mC={};var gC,bC={};var vC,yC={};!function(e){var t=jl,r=vm;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=ym;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(Zv()),a=t(function(){if(Qv)return ey;Qv=1;var e=jl;Object.defineProperty(ey,"__esModule",{value:!0}),ey.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=ug,r=e(Zv());return ey}()),s=t(function(){if(Zw)return ty;Zw=1,Object.defineProperty(ty,"__esModule",{value:!0}),ty.default=function(t){return(0,e.createStyles)(t)};var e=tC;return ty}()),l=t(function(){if(nC)return oC;nC=1;var e=jl;Object.defineProperty(oC,"__esModule",{value:!0}),oC.default=void 0;var t=e(ku()),r=tC,n=e(aC()),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 oC.default=o,oC}()),u=t(dC()),c=t(function(){if(pC)return fC;pC=1;var e=jl;Object.defineProperty(fC,"__esModule",{value:!0}),fC.default=void 0;var t=e(ku()),r=tC,n=e(aC()),o=function(e){var o=(0,r.styled)(e);return function(e,r){return o(e,(0,t.default)({defaultTheme:n.default},r))}};return fC.default=o,fC}()),d=Yv();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(hC)return mC;hC=1;var e=jl;Object.defineProperty(mC,"__esModule",{value:!0}),mC.default=function(){return(0,t.useTheme)()||r.default};var t=tC;e(x);var r=e(aC());return mC}()),f=t(function(){if(gC)return bC;gC=1;var e=jl;Object.defineProperty(bC,"__esModule",{value:!0}),bC.default=void 0;var t=e(ku()),r=tC,n=e(aC()),o=function(e,o){return(0,r.withStyles)(e,(0,t.default)({defaultTheme:n.default},o))};return bC.default=o,bC}()),h=t(function(){if(vC)return yC;vC=1;var e=jl;Object.defineProperty(yC,"__esModule",{value:!0}),yC.default=void 0;var t=tC,r=e(aC()),n=(0,t.withThemeCreator)({defaultTheme:r.default});return yC.default=n,yC}()),m=tC}(hm),hm.alpha(qt.GREYSCALE_0,.05),hm.alpha(qt.GREEN_PALE,.5),hm.alpha(qt.BLUE_PALE,.5),hm.alpha(qt.GREEN_PALE,.5),hm.alpha(qt.BLUE_PALE,.5),hm.alpha(qt.GREEN_PALE,.5),hm.alpha(qt.BLUE_PALE,.5),hm.alpha(qt.GREEN_PALE,.5),hm.alpha(qt.BLUE_PALE,.5),hm.alpha(qt.GREEN_PALE,.5),hm.alpha(qt.BLUE_PALE,.5);const xC=(e="light",t=!1)=>pm(e,t),SC=xC().palette,wC={TEXT:SC.text.primary,DISABLED:SC.text.disabled,HOVER:SC.action.hover,WHITE:fm.GREYSCALE_100,BORDER_LIGHT:fm.GREYSCALE_90,BORDER_MEDIUM:fm.GREYSCALE_85,BORDER_HEAVY:fm.GREYSCALE_50,DARK_MODE_TEXT:fm.GREYSCALE_95,DARK_MODE_BORDER:fm.GREYSCALE_95,DARK_MODE_DISABLED:fm.GREYSCALE_70,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:fm.GREYSCALE_95,SELECTED:SC.primary.main,LINK:SC.info.main,ERROR:SC.error.main},CC=(e,t=wC.TEXT,r=wC.WHITE)=>{const n=re(e),o=re(t),i=re(r);return n.isInvalid()?t:function(e,t,r){const n=ne(e,t),o=ne(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},EC=e=>{const t=e.getStyle("","","dataColors.selected")||wC.SELECTED,r=function(e,t){const r=re("#FFFFFF"),n=re(e),o=re(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=ne(r,n),a=ne(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?"#FFFFFF":"#000000"}(t,wC.TEXT);return{background:t,color:r}},RC=(e,t)=>{const r=re(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},PC=(e,t,r)=>{const n=t?e.getColorPickerColor(t):"none";return"none"===n?r:n},AC=e=>{const t=re(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},IC=(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)},kC=e=>{e.stopPropagation(),e.preventDefault()},MC=e=>!!e&&0===re(e).a,DC="#grid",TC=(e,t,r,n=wC.WHITE)=>e&&!MC(e)?e:MC(t)?r&&!MC(r)?r:n:t,qC=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},OC=(e,t,r,n,o)=>{const i=qC(".qv-object .qv-inner-object",r),a=qC(".qv-panel-sheet",r),s=qC(DC,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 AC(r);if("none"===n)return"transparent";if(void 0===n)return;const i=re(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=MC(d),f=!MC(h=p?s:d)&&CC(h,wC.TEXT,wC.DARK_MODE_TEXT)===J(wC.DARK_MODE_TEXT);var h;return{color:d,headerColor:TC(l,d,s),isDark:f}},LC=(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(DC),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>e?.includes("background"))).map((({oldValue:e})=>e)).join(",");return e((()=>({...l,background:OC(t,l,r,a,s)})),[l.name(),r,a,s,t,u])};function NC(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 jC=3;function _C(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 zC({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=jC}=o??{},{estimateWidth:a,measureText:s,estimateLineCount:l}=C((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=xt(o.measureText.bind(o)),s=e=>+a(e).width.toFixed(2),l=xt((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=_C(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 FC,HC=H;FC=HC.createRoot,HC.hydrateRoot;const $C="Source Sans Pro, sans-serif";function BC(e,t){const[r,n]=w(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}var WC={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 VC=({translator:e})=>(C((()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(WC).forEach((t=>{e.add(WC[t])}))}}(e)}),[e]),e),UC="12px",GC="nebula-table-utils-head-menu-button",YC="nebula-table-utils-head-menu-wrapper",KC="nebula-table-utils-head-menu",XC="nebula-table-utils-head-menu-list-id",JC="sn-copy-cell";let ZC=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 QC="nebula-table-utils-column-adjuster";let eE=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}({}),tE=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const rE={darker:.15,brighter:.3,opacity:.03},nE={darker:.3,brighter:.5,opacity:.05};let oE=function(e){return e.Cyclic="C",e}({});const iE=document.createElement("textarea");function aE(e){iE.value=e,document.body.appendChild(iE),iE.select(),iE.setSelectionRange(0,iE.value.length),document.execCommand("copy"),document.body.removeChild(iE)}iE.style.position="absolute",iE.style.left="-9999px",iE.setAttribute("readonly","");const sE=e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch((()=>{aE(t)})):aE(t))};var lE={exports:{}};self,lE.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 k(e){return void 0===e}function M(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]=k(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)||M(t,o)||(k(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]&&k(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(!k(t[0])&&k(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){k(t[o])&&!M(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&&!M(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 q=P,O=function(e,r,n){if(!e)return Promise.resolve();var o=q.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 L="accumulation";function N(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===L)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===L)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(L))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 B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={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,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!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 ke(e){return ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ke(e)}var Me={accumulation:z,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const De={modifiers:Me,apply:qe,applyModifiers:Oe,cleanUpMeasure:Le,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 Me[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Me[e]&&Me[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 qe(){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"===ke(n))return Oe({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"===ke(e)&&!e.disabled){if(r++,"object"!==ke(Me[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=Me[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&We(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),Oe({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"===ke(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 Le(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(l)}function Oe(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 Le(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"===ke(e)&&!e.disabled){if(s++,"object"!==ke(Me[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)");Me[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:Me[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 Me[n.type].updateModifier&&Me[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:Me[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}),Be(r)):Le(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 Le(e){!function(e){var t=Fe(e);return Array.isArray(t)&&t.some((function(e){return"object"===ke(e)&&!e.disabled&&!Me[e.type]}))}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(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(Me[n.type]&&!n.disabled)return n}}function _e(e){var t=je(e);return!t||Me[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 Be(e){var t=Fe(e);Array.isArray(t)&&t.forEach((function(t){"object"===ke(t)&&(t.disabled||!Me[t.type]&&He(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ve(e){var t=We(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"!==ke(e)||e.disabled||!Me[e.type])&&(void 0===o[e.type]&&(o[e.type]=Me[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):O(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"===ke(e)&&!e.disabled&&Me[e.type]&&Me[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 qe({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 k=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},M=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}}},q=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},O=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)}},L=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)}))}},B=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(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?q():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}),O({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),L({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}),M("qMaxStackedCells",b,v),M("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),k(g,t,n),m.qProperty=g;var I=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:I}),p&&W(m.qProperty,"storedFilters"),"S"===v.qMode&&h&&W(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?W(r,"unsupportedAutoMinMax")||w()(r.measureAxis,t.measureAxis):W(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",ke="qDef.conditionalColoring";const Me={quarantine:function(e){Ee({properties:e,arrayPath:Pe,quarantineName:Ae,arrayName:Ie,itemPath:ke})},unquarantine:function(e){Re({properties:e,arrayPath:Pe,itemPath:ke,arrayName:Ie,quarantineName:Ae})}};var De="qHyperCubeDef.qMeasures",Te="measures",qe="qHyperCubeDef.qDimensions",Oe="dimensions",Le="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:qe,quarantineName:Fe,arrayName:Oe,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:De,quarantineName:Fe,arrayName:Te,itemPath:ze}),Re({properties:e,arrayPath:qe,quarantineName:Fe,arrayName:Oe,itemPath:ze})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:Le,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Ee({properties:e,arrayPath:je,quarantineName:Fe,arrayName:_e,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Le,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:W,quarantineArrayProp:Ee,unquarantineArrayProp:Re,conditionalColoring:Me,conditionalShow:He}})(),n.default})();var uE=Wt(lE.exports);const cE="qHyperCubeDef.qMeasures",dE="measures",pE="qHyperCubeDef.qDimensions",fE="dimensions",hE="qDef.representation",mE="tableRepresentation",gE="qDef.conditionalColoring",bE="conditionalColoring",vE="qMiniChartDef",yE="miniChartDef",xE=({propertyTree:e,hyperCubePath:t})=>{const r=uE.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 yt(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),uE.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),uE.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),uE.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{uE.quarantineArrayProp({properties:e,arrayPath:pE,itemPath:hE,arrayName:fE,quarantineName:mE}),uE.quarantineArrayProp({properties:e,arrayPath:cE,itemPath:hE,arrayName:dE,quarantineName:mE}),uE.quarantineArrayProp({properties:e,arrayPath:cE,itemPath:gE,arrayName:dE,quarantineName:bE}),uE.quarantineArrayProp({properties:e,arrayPath:cE,itemPath:vE,arrayName:dE,quarantineName:yE})})(r.properties),r};const SE=/^q[A-Z]/,wE=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],CE=e=>"object"==typeof e&&null!==e,EE=(e,t)=>(Object.entries(e).forEach((([r,n])=>{const o=void 0===t?r:`${t}.${r}`;((e,t)=>!SE.test(e)&&!wE.some((e=>e.test(t))))(r,o)?delete e[r]:Array.isArray(n)?e[r]=n.map(((e,t)=>CE(e)?EE(e,`${o}.${t}`):e)):CE(n)&&(e[r]=EE(n,o))})),e),RE=(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:tE.Pixels,pixels:e}:{type:tE.FitToContent}:i.qDef.columnWidth=e}return i},PE=({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)}EE(e.properties)}const a=uE.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(uE.conditionalShow.unquarantine(a.qProperty),i)yt(a,"qProperty.totals.show",!1),yt(a,"qProperty.usePagination",!0),yt(a,"qProperty.accessibleHeader",!0);else{uE.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{uE.unquarantineArrayProp({properties:e,arrayPath:pE,itemPath:hE,arrayName:fE,quarantineName:mE}),uE.unquarantineArrayProp({properties:e,arrayPath:cE,itemPath:hE,arrayName:dE,quarantineName:mE}),uE.unquarantineArrayProp({properties:e,arrayPath:cE,itemPath:gE,arrayName:dE,quarantineName:bE}),uE.unquarantineArrayProp({properties:e,arrayPath:cE,itemPath:vE,arrayName:dE,quarantineName:yE})})(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=>RE(e,t,n))),measures:a.filter((e=>e>=o)).map((e=>RE(t,e,n,o)))}})(e,t,r,n);Array.isArray(n)&&n.length>0&&(yt(a,"qProperty.qHyperCubeDef.qDimensions",o),yt(a,"qProperty.qHyperCubeDef.qMeasures",i))}return a};var AE={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};const IE=(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 kE(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function ME(e){return e>0?0:1}function DE(e){return e.translator.get("Visualizations.Descriptions.Column")}function TE(e){return{measures:{min:ME,max:1e3,description:()=>DE(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;kE(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;IE(o,i)}},dimensions:{min:ME,max:1e3,description:()=>DE(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return kE(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(e?.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;IE(o,n)}}}}let qE=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}({}),OE=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const LE=e=>{switch(e?.type){case"url":return qE.Link;case"image":return qE.Image;case"indicator":return qE.Indicator;case"miniChart":return qE.MiniChart;default:return qE.Text}},NE=({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}}),jE=e=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:e=>LE(e.qDef.representation)===qE.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}}}}}},_E=e=>{const{anything:t}=e,r=!t.sense?.isUnsupportedFeature?.("tableImages");return{representationType:NE({isImagesEnabled:r}),representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:e=>LE(e.qDef.representation)===qE.Link},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:e=>LE(e.qDef.representation)===qE.Link&&e.qDef.representation?.urlPosition===OE.Dimension},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:e=>LE(e.qDef.representation)===qE.Link&&e.qDef.representation?.urlPosition===OE.Attribute},...jE(r)}},zE=(e,t)=>{const{anything:r}=e,n=r.sense?.isUnsupportedFeature,o=!n?.("tableImages")&&t[qE.Image],i=!n?.("qMiniChartDef")&&t[qE.MiniChart],a=!n?.("tableIndicators")&&t[qE.Indicator],s=o&&t[qE.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=>LE(e.qDef.representation)===qE.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 FE,HE={};FE=HE,(()=>{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={},k=Array.isArray;function M(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 q(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 O(e,t){var r=!0;if(M(e)&&M(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){O(e[n],t[n])||(r=!1)})),r);if(k(e)&&k(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!O(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);O(i,a)||T(t,o)||(D(a)?n.push({op:"add",path:s,value:i}):M(i)&&M(a)?n=n.concat(I.generate(a,i,s)):k(i)&&k(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&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(O(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=q(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(k(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(k(a)&&k(t.value)){var l,u=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return 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(M(a)&&M(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=q(e,t.from);k(o)?o.splice(+i,0,c.splice(+s,1)[0]):(o[i]=c[s],delete c[s])}else"remove"===t.op&&(k(o)?o.splice(+i,1):delete o[i])}))},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 L=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 B(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 W={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,W)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(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(B(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(B(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(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:Me,applyModifiers:De,cleanUpMeasure:Te,destroy:function(e){e&&ke[e.id]&&ke[e.id].masterItemSubscriber&&(ke[e.id].masterItemSubscriber&&ke[e.id].masterItemSubscriber.unsubscribe(),delete ke[e.id])},hasActiveModifiers:qe,getActiveModifier:Oe,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);We({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ke({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Le};var ke={};function Me(){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;ke[t.id]=ke[t.id]||{isFirstTime:!0};var u=ke[t.id].isFirstTime;if(ke[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=ke[t.id].lastReloadTime;if(ke[t.id].lastReloadTime=s(t,"app.layout.qLastReloadTime"),qe({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 Be({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 We({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(Be({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&&!qe({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&&We({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||Le(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Le(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 qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return We({modifiers:je(e),properties:r,layout:n})}))}function Oe(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 Le(e){var t=Oe(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=Oe(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 Be(e){var t=e.measure,r=e.properties,n=e.layout;return!$e(t)&&We({modifiers:je(t),properties:r,layout:n})}function We(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=L.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(We({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)?(ke[t.id].masterItemSubscriber=ke[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 Me({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),ke[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}for(var Ze in FE.default=n.default,n)-1===["default"].indexOf(Ze)&&(FE[Ze]=n[Ze]);Object.defineProperty(FE,"__esModule",{value:!0})})();var $E=Wt(HE);const BE={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},WE={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}},VE=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)=>(!$E.hasActiveModifiers({measures:[e],properties:t.properties})||$E.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")}),UE={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:tE.Auto,translation:"Common.Auto"},{value:tE.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:tE.Pixels,translation:"Object.Table.Column.Pixels"},{value:tE.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:tE.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===tE.Pixels},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:"20",show:e=>e.qDef.columnWidth?.type===tE.Percentage}},GE=()=>({...BE,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}]},...WE,...UE}),YE={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"}},KE=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:VE(e)}},XE=e=>({dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:YE},presentation:{type:"items",translation:"properties.presentation",items:{...GE(),..._E(e)}}}}}),JE=e=>({measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:KE(e)},presentation:{type:"items",translation:"properties.presentation",items:{...GE(),...zE(e,{[qE.Image]:!0,[qE.Indicator]:!0,[qE.MiniChart]:!0})}}}}}),ZE=e=>({...XE(e),...JE(e)}),QE=e=>({type:"items",translation:"Common.Data",component:"tabs-component",items:{columns:{component:"data-assets-panel",ref:"columns",tabName:"properties.DataAssetPanel.Columns",items:{...ZE(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}}}),eR={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}},tR=({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},rR=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")}),nR=(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}}}),oR=(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},iR=({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=>oR(e,!0)))],l=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...ve(n).filter((e=>!a.includes(e))).map((e=>oR(e,!0)))];return[...s,...l.length>1?l:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),aR=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],sR=({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=>oR(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...aR.filter((e=>!i.includes(e))).map((e=>oR(e,!1)))];return[...a,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),lR=({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:iR({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:sR({ref:`${e}.fontSize`,themeAccessor:t=>o(t,e,"fontSize")??t.fontSize,translator:r}),fontColor:nR(`${e}.fontColor`,void 0,(t=>o(t,e,"color")??t.color))}},background:nR(`${e}.background`,"properties.background",((t,r)=>{const n=r?wC.WHITE:wC.TRANSPARENT;return o(t,e,"backgroundColor")??n}),a)}}}}),uR=({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:nR(`${e}.fontColor`,void 0,(t=>n(t,e,"color")??t.color))}},background:nR(`${e}.background`,"properties.background",(t=>n(t,e,"backgroundColor")??r??"transparent"))}}}}),cR=(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}},dR=e=>e.grid?.zebraStripes?.show,pR={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)}},fR=e=>e?.content?.hoverEffect,hR={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:fR,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:fR,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},mR=(e,t,{properties:r})=>"sn-table"===r.visualization&&!0===r.usePagination,gR=({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:lR({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:cR,disableNoneCallback:mR}),dimensionValueSection:lR({section:"dimensionValues",translator:t,flags:e,getThemeValue:cR}),measureValueSection:lR({section:"measureValues",translator:t,flags:e,getThemeValue:cR}),totalRowSection:lR({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:cR,disableNoneCallback:mR}),nullValues:uR({section:"nullValues",fallbackBackground:wC.NULL_VALUE_BACKGROUND,getThemeValue:cR}),grid:{translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>!0,...pR},border:nR("grid.border","properties.border",(e=>e.object?.straightTableV2?.grid?.borderColor??wC.BORDER_MEDIUM)),divider:nR("grid.divider","properties.pivot.divider",(e=>e.object?.straightTableV2?.grid?.divider?.borderColor??wC.BORDER_HEAVY))}}}},hoverEffectSection:hR,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:dR,ref:"grid.zebraStripes.color.odd",translation:"properties.zebraStripes.color.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundrOdd:{show:dR,ref:"grid.zebraStripes.background.odd",translation:"properties.zebraStripes.background.odd",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1},zebraStripesColorEven:{show:dR,ref:"grid.zebraStripes.color.even",translation:"properties.zebraStripes.color.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!0},zebraStripesBackgroundEven:{show:dR,ref:"grid.zebraStripes.background.even",translation:"properties.zebraStripes.background.even",type:"object",component:"color-picker",dualOutput:!0,disableNone:!1}}}}}}}]}),bR=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[gR(e),rR(e),tR(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:"-"}]},...eR}}),vR={uses:"sorting"},yR={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},xR=e=>({type:"items",component:"accordion",items:{data:QE(e),sorting:vR,addOns:yR,settings:bR(e)}});function SR(e){return{definition:xR(e),exploration:AE,data:TE(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 PE({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:i,viewDataMode:o})},exportProperties:(e,t)=>xE({propertyTree:e,hyperCubePath:t})}}const wR=(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]),CR=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),ER=[];for(let e=0;e<256;++e)ER.push((e+256).toString(16).slice(1));let RR;const PR=new Uint8Array(16);var AR={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function IR(e,t,r){const n=(e=e||{}).random??e.rng?.()??function(){if(!RR){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");RR=crypto.getRandomValues.bind(crypto)}return RR(PR)}();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(ER[e[t+0]]+ER[e[t+1]]+ER[e[t+2]]+ER[e[t+3]]+"-"+ER[e[t+4]]+ER[e[t+5]]+"-"+ER[e[t+6]]+ER[e[t+7]]+"-"+ER[e[t+8]]+ER[e[t+9]]+"-"+ER[e[t+10]]+ER[e[t+11]]+ER[e[t+12]]+ER[e[t+13]]+ER[e[t+14]]+ER[e[t+15]]).toLowerCase()}(n)}const kR=()=>crypto?.randomUUID?.()??function(e){return AR.randomUUID&&!e?AR.randomUUID():IR(e)}(),MR=({cId:e})=>e??kR(),DR=e=>"number"==typeof e&&!Number.isNaN(+e),TR=e=>DR(e.qNum),qR=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e);var OR={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:NR(e),value:NR(t),useEqualSign:r}}(n,o,i))})),t}},LR=OR;function NR(e){try{return decodeURIComponent(e)}catch{return e}}function jR(e){if(!(this instanceof jR))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:()=>LR.fromSearchString(t.search)}})}function _R(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}jR.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},jR.encodeSearchParams=function(e){let t,r="";for(let n=0;n<e.length;n++)t=e[n],r+=0===n?"?":"&",r+=_R(t.key),t.value?r+=`=${_R(t.value)}`:r+=t.useEqualSign?"=":"";return r};var zR=jR;var FR,HR=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}},$R=class{decode(e){let t="";const r=new HR(e);let n;for(;r.hasNext();)n=this.decodeCharacter(r),t+=null!=n?n:r.next();return t}decodeCharacter(e){return e.next()}},BR=e=>e>=0&&e<=1114111,WR=e=>e.match(/[\s]/),VR=class extends $R{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&&!WR(o));n++){if("NaN"===parseInt(o,16)){e.pushback(o);break}r+=o}const a=parseInt(r,16);return BR(a)?String.fromCharCode(a):"�"}},UR=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}},GR=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 UR.newInstanceIfNeeded(e,this._value);const r=this.getNextNode(e.charAt(t));if(!r)return UR.newInstanceIfNeeded(e,t,this._value);const n=r.getLongestMatch(e,t+1);return n||UR.newInstanceIfNeeded(e,t,this._value)}},YR=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 GR);const r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}},KR=(()=>{const e=[],t=[],r=new YR;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})(),XR=class extends $R{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,KR.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();const i=KR.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)&&BR(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)&&BR(n)?String.fromCharCode(n):null}},JR=class extends $R{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),BR(i))?String.fromCharCode(i):(e.reset(),null)}},ZR=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,QR=5e6,eP=5e5,tP=(e,t)=>{const{maxByteSizeSvg:r=eP,maxByteSizeImage:n=QR}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,r,n]=ZR.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&&(FR=document.createElement("div"));var rP=Array.prototype.indexOf,nP=[",",".","_"," "],oP=[",",".","-","_"," "],iP={width:["%"],height:["%"]},aP={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},sP={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":aP.image,"background-color":aP.color,"border-color":aP.color,"border-image":aP.image,color:aP.color,icon:aP.image,"list-style-image":aP.image,"outline-color":aP.color},lP={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function uP(e,t,r){let n;if(t){if(rP)return rP.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 cP(e){if(null==e)return"";let t="";const r=document.createTextNode(e);return FR.appendChild(r),t=FR.innerHTML,FR.removeChild(r),t}function dP(e,t,r){let n,o,i,a,s,l,u,c,d;for(e=fP(e).toLowerCase(),t=fP(t),i=0;i<lP.attr_name.length;i++)if(e.match(lP.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<lP.attr_val.length;i++)if(t.toLowerCase().match(lP.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(n=iP[e],n||(n=oP),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]/)&&uP(u,n)<0?(d=c.toString(16),o+=`&#x${d};`):o+=u;return r||(o+='"'),o}function pP(e,t,r){let n,o,i,a,s,l,u,c,d,p;if(e=fP(e).toLowerCase(),t=fP(t),uP(e,lP.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(n=0;n<lP.css_val.length;n++)if(t.toLowerCase().indexOf(lP.css_val[n])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=sP[e],o||(o=aP.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]/)&&uP(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=u;return i}function fP(e,t){let r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;const s=[new XR,new JR,new VR];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 hP=[];for(let e=0;e<255;e++)hP[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);var mP={html:e=>cP(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]=pP(t,r[t],!0),i+=pP(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]=dP(e,t[e],!0),o+=dP(e,t[e],!0),n[e]=r[e]);return e.map?n:o}};function gP(e,t){throw new Error(t)}var bP={canonicalize:fP,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?mP.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&gP(this,"Invalid parameter type"),mP.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&gP(this,"Invalid parameter type"),mP.attr(e)):void gP(this,"Invalid parameter type")},encodeForAttr:dP,encodeForAttr2:function(e){return dP("nonsens",e,!0)},encodeForCSS:pP,encodeForHref:function(e){fP(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new zR(e),r=zR.encodeAuthorityAndPath(t.authorityAndPath),n=t.searchParams;e=r+zR.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=nP),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),uP(o,t)>=0||null==hP[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:cP,encodeForURL:function(e,t){let r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=fP(t).toLowerCase():gP(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:tP,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 vP=(e,t)=>t.qAttrExps?.qValues?.[e],yP=(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"}}},xP=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>n&&t&&!t.toLowerCase().includes("javascript:")&&bP.isSafeDataURL(t)?{type:qE.Image,url:t,text:e,imageSize:r,resolvedImagePosition:yP(n,a),labelStructure:o,imageBox:i}:{type:qE.Text,url:void 0,text:e,labelStructure:o},SP=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:qE.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:qE.MiniChart,text:n,miniChart:a}},wP=(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===OE.Attribute?void 0:r?.urlLabel},CP=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:qE.Link,url:bP.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:qE.Text,url:void 0,text:t,labelStructure:e}}},EP=({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=LE(t),d=s(e);return c===qE.Image&&u[qE.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=vP(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),xP({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 xP({text:u||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o});const l=vP(r.imageLabel??-1,e)?.qText??n;return xP({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:c,direction:o})}return{type:qE.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):c===qE.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===OE.Attribute){const i=wP(r.url??-1,e,t);return CP({labelStructure:n,text:o||i||"",url:i})}if(i===OE.Dimension){const i=wP(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),CP({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:qE.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):c===qE.Indicator&&u[qE.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:qE.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):c===qE.MiniChart&&u[qE.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?SP(e,t,i,d):{type:qE.Text,url:void 0,text:d,labelStructure:a}},RP=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,PP=(e,t,r)=>(e?void 0:r.nullValueRepresentation?.text)??t.qText??"-",AP=1e4;function IP(e,t){return[...t].reverse().find((t=>t*e<=AP))||Math.floor(AP/e)}function kP(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 MP(e,t,r,n){return t?0===r?e.totals.label??"":"":e.qHyperCube.qGrandTotalRow.at(n)?.qText??""}function DP(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return DR(r?.qNum)}function TP(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 qP=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right";const OP=(e,t,r)=>{const{qHyperCube:{qColumnOrder:n,qDimensionInfo:o,qMeasureInfo:i}}=e,a=o.length+i.length,s=n.length===a?n:Array.from(Array(a).keys()),{visibleColumnsOrder:l,visibleColumnIndexes:u}=((e,t,r)=>{const n=t.length,o=[];let i=0,a=0;return{visibleColumnsOrder:e.filter((e=>{const s=e<n,{qError:l}=s?t[e]:r[e-n],u=7005===l?.qErrorCode;return u?s?i++:a++:o[e]=s?e-i:e-n-a,!u})),visibleColumnIndexes:o}})(s,o,i);return l.map(((n,o)=>function(e,t,r,n,o,i){const{qDimensionInfo:a,qMeasureInfo:s,qEffectiveInterColumnSortOrder:l}=e.qHyperCube,u=a.length,c=t<u,d=c?a[t]:s[t-u],p=c&&a[t].qGrouping===oE.Cyclic,f=t===l[0];let h,m,g="",b=!1,v=-1,y=0,x=[];const{representation:S,conditionalColoring:w}=d;if(c){const e=d;g=e.qGroupFieldDefs[e.qGroupPos],y=e.qGroupPos,x=e.qGroupFallbackTitles,b=e.qLocked??!1,v=n,({qDimensionType:h}=e)}else({qMiniChart:m}=d);const{qFallbackTitle:C,textAlign:E,qAttrExprInfo:R,qSortIndicator:P,qReverseSort:A,qApprMaxGlyphCount:I,columnWidth:k,qLibraryId:M}=d;return{isDim:c,isCyclic:p,isLocked:b,fieldId:g,colIdx:t,qLibraryId:M,pageColIdx:r,qApprMaxGlyphCount:I,qReverseSort:A,columnWidth:k??{type:tE.Auto},selectionColIdx:v,isActivelySorted:f,id:MR(d),label:C,groupDimensionPos:y,groupDimensionLabels:x,qAttrExprInfoIDs:R.map((e=>e.id)),qAttrExprInfoIndex:CR(d),sortDirection:P&&"N"!==P?P:"A",totalInfo:MP(e,c,r,n),...!c&&{isTotalNumeric:DP(e,n)},...TP(E,h,c,o,i),representation:S,conditionalColoring:c?void 0:w,qMiniChart:m}}(e,n,o,u[n],t,r)))};const LP=(e,t)=>!(!e.snapshotData&&!t.viewState?.visibleHeight),NP=(e,t)=>void 0!==t.viewState?.usePagination?t.viewState.usePagination:!1!==e.usePagination||LP(e,t);var jP={exports:{}};
|
|
103
103
|
/*!
|
|
104
104
|
* CSSJanus. https://github.com/cssjanus/cssjanus
|
|
105
105
|
*
|
|
@@ -118,4 +118,4 @@ function qi(e,t){let r;return r=t?Ri(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"),k=new RegExp(s+"(right)"+v,"gi"),M=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"),q=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+y,"gi"),L=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"),B=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),W=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(M,"$1"+e).replace(D,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(r=r.replace(I,"$1"+e).replace(k,"$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(B,X).replace(W,X).replace(q,"$1$2$3$8$5$6$7$4$9").replace(L,"$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)}(NP,NP.exports);var jP=Bt(NP.exports),_P="comm",zP="rule",FP="decl",HP=Math.abs,$P=String.fromCharCode;function BP(e){return e.trim()}function WP(e,t,r){return e.replace(t,r)}function VP(e,t,r){return e.indexOf(t,r)}function UP(e,t){return 0|e.charCodeAt(t)}function GP(e,t,r){return e.slice(t,r)}function YP(e){return e.length}function KP(e,t){return t.push(e),e}var XP=1,JP=1,ZP=0,QP=0,eA=0,tA="";function rA(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:XP,column:JP,length:a,return:"",siblings:s}}function nA(){return eA=QP>0?UP(tA,--QP):0,JP--,10===eA&&(JP=1,XP--),eA}function oA(){return eA=QP<ZP?UP(tA,QP++):0,JP++,10===eA&&(JP=1,XP++),eA}function iA(){return UP(tA,QP)}function aA(){return QP}function sA(e,t){return GP(tA,e,t)}function lA(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 uA(e){return BP(sA(QP-1,pA(91===e?e+2:40===e?e+1:e)))}function cA(e){for(;(eA=iA())&&eA<33;)oA();return lA(e)>2||lA(eA)>3?"":" "}function dA(e,t){for(;--t&&oA()&&!(eA<48||eA>102||eA>57&&eA<65||eA>70&&eA<97););return sA(e,aA()+(t<6&&32==iA()&&32==oA()))}function pA(e){for(;oA();)switch(eA){case e:return QP;case 34:case 39:34!==e&&39!==e&&pA(eA);break;case 40:41===e&&pA(e);break;case 92:oA()}return QP}function fA(e,t){for(;oA()&&e+eA!==57&&(e+eA!==84||47!==iA()););return"/*"+sA(t,QP-1)+"*"+$P(47===e?e:oA())}function hA(e){for(;!lA(iA());)oA();return sA(e,QP)}function mA(e){return function(e){return tA="",e}(gA("",null,null,null,[""],e=function(e){return XP=JP=1,ZP=YP(tA=e),QP=0,[]}(e),0,[0],e))}function gA(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=oA()){case 40:if(108!=h&&58==UP(C,d-1)){-1!=VP(C+=WP(uA(v),"&","&\f"),"&\f",HP(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=uA(v);break;case 9:case 10:case 13:case 32:C+=cA(h);break;case 92:C+=dA(aA()-1,7);continue;case 47:switch(iA()){case 42:case 47:KP(vA(fA(oA(),aA()),t,r,l),l),5!=lA(h||1)&&5!=lA(iA()||1)||!YP(C)||" "===GP(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[u++]=YP(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=WP(C,/\f/g,"")),f>0&&(YP(C)-d||0===m&&47===h)&&KP(f>32?yA(C+";",n,r,d-1,l):yA(WP(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(KP(w=bA(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)gA(C,t,w,w,x,i,d,s,S);else{switch(p){case 99:if(110===UP(C,3))break;case 108:if(97===UP(C,2))break;default:c=0;case 100:case 109:case 115:}c?gA(e,w,w,n&&KP(bA(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S):gA(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+YP(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==nA())continue;switch(C+=$P(v),v*m){case 38:b=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(YP(C)-1)*b,b=1;break;case 64:45===iA()&&(C+=uA(oA())),p=iA(),c=d=YP(y=C+=hA(aA())),v++;break;case 45:45===h&&2==YP(C)&&(m=0)}}return i}function bA(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=function(e){return e.length}(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=GP(e,p+1,p=HP(g=a[m])),x=e;v<h;++v)(x=BP(g>0?f[v]+" "+y:WP(y,/&\f/g,f[v])))&&(l[b++]=x);return rA(e,t,r,0===o?zP:s,l,u,c,d)}function vA(e,t,r,n){return rA(e,t,r,_P,$P(eA),GP(e,2,-2),0,n)}function yA(e,t,r,n,o){return rA(e,t,r,FP,GP(e,0,n),GP(e,n+1,-1),n,o)}function xA(e,t,r){switch(e.type){case"@import":case FP:case _P:return e.return=e.return||e.value;case zP:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===_P&&(e.children=e.value)}))}var n=function(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}(Array.prototype.concat(e.children),xA);return YP(n)?e.return=e.value+"{"+n+"}":""}function SA(e,t,r,n){if("@keyframes"===e.type||"@supports"===e.type||e.type===zP&&(!e.parent||"@media"===e.parent.type||e.parent.type===zP)){var o=jP.transform(xA(e));e.children=o?mA(o)[0].children:[],e.return=""}}Object.defineProperty(SA,"name",{value:"stylisRTLPlugin"});let wA=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),CA=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}({}),EA=function(e){return e.A="ascending",e.D="descending",e}({}),RA=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const PA=[0,0],AA=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),IA=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},kA=(e,t,r)=>{const n={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const r=e.limits&&e.limits.concat().sort(((e,t)=>e.value-t.value));return{lowerLimit:r&&t>0?r[t-1]:{value:0,gradient:!1},upperLimit:r&&r[t]?r[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,r,n,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,u=n===i.value?1:(n-a.value)/(i.value-a.value);return a.gradient&&i.gradient?n-a.value<i.value-n?{color:s.color,t:.5-u}:{color:l.color,t:u-.5}:a.gradient?{color:s.color,t:1-(.5+u/2)}:i.gradient?{color:l.color,t:u/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return s&&te(e.localPaletteColors[t].color).blend(te(s.color),s.t)},MA=(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:AA(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:IA(n,t,r)})))),n},DA=(e,t,r,n)=>{const o=MA(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=kA(e,a,t);break}n=i}return r})(o,t);return a},TA=(e,t)=>{const r=(e=>e.map((e=>e.value??e)).sort(((e,t)=>e-t)))(e),n=r.some((e=>!MR(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||!MR(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)},OA=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=TA(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||!MR(t))return 0;let a=r&&MR(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=OA(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 IA(o,r.limitPaletteColorIndex,n);const a=AA(r.limitRange,t);return DA(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}},LA=(yC().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)"),NA=4/3,jA="12px",_A="600",zA="Source Sans Pro, sans-serif",FA={height:"auto",fontSize:jA,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"}},HA={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:_A},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},$A=(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,BA=(e,t)=>e.representation.type===TE.Image&&"fitHeight"===e.representation.imageSize?$A(t,e.representation):e.align,WA=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",VA=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},UA=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,GA=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",YA=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",KA=24,XA=ic("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0}))),JA=ic(Kd,{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?WA(e,n):void 0}))),ZA=ic(Kd,{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},[`& .${GC}`]:{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"},[`& .${GC}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),QA=ic(Kd,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"}))),eI=ic(Kd,{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"}))),tI=ic(id,{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}))),rI=25e4,nI=(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(QC.PixelsMax,Math.max(QC.PixelsMin,f)),i-=n[a]};switch(s){case eE.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?QC.PixelsDefault:+e)(l),h();break;case eE.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?QC.PercentageDefault:+e)(u)/100*t,h();break;case eE.FitToContent:e.representation?.type===TE.Image?o.push(a):(f=r(c,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case eE.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(QC.AutoMinTable,e)}))}return n},oI=(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"]})},iI=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},aI=e=>e.ctrlKey||e.metaKey,sI=e=>e.shiftKey&&aI(e),lI=e=>[JC.Left,JC.Right,JC.Up,JC.Down].includes(e),uI=e=>e.shiftKey&&lI(e.key),cI=e=>(e=>lI(e)||[JC.Home,JC.End,JC.PageUp,JC.PageDown].includes(e))(e.key)&&!sI(e),dI=(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),oI(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})},pI=(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&&uI(u)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const c=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&uI(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===JC.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 oI(l,n,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},fI=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}},hI=(e,t)=>{switch(t.type){case CA.Select:return dI(e,t.payload);case CA.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 CA.SelectMouseUp:return((e,t)=>fI(e.isSelectMultiValues||e.firstCell!==t.cell?e:dI(e,t)))(e,t.payload);case CA.SelectMultiAdd:return pI(e,t.payload);case CA.SelectMultiEnd:return fI(e);case CA.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case CA.Clear:return e.rows.size?{...e,rows:new Map}:e;case CA.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},mI=4/3,gI=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function bI(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const vI=(e,t)=>e?{borderBottomColor:SC.DARK_MODE_BORDER,borderRightColor:SC.DARK_MODE_BORDER,borderLeftColor:SC.DARK_MODE_BORDER,borderTopColor:SC.DARK_MODE_BORDER}:{borderLeftColor:SC.BORDER_MEDIUM,borderRightColor:SC.BORDER_MEDIUM,borderTopColor:SC.BORDER_HEAVY,borderBottomColor:t?SC.BORDER_HEAVY:SC.BORDER_LIGHT},yI=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*mI+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},xI=e=>e.components?.find((e=>"theme"===e.key)),SI=(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:gI(r?.fontColor)?bI(SC.TEXT,t,r?.fontColor):i||SC.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...vI(t.background.isDark,n)};return Object.keys(s).forEach((e=>{const t=e;null==s[t]&&delete s[t]})),s};function wI(e,t,r){const n=xI(e)?.header,o=SI("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=te(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=EC(o.background??SC.WHITE,tE),o.activeBackground=EC(o.background??SC.WHITE,rE),o}const CI=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach((e=>(e=>e in HA)(e)&&Object.assign(t,HA[e]))),t};function EI(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&&PC(i);a&&"none"!==a&&(n[r[t]]=a),o=i?CI(i,o):o})),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=wC(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const RI=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},PI=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=RI(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},AI=(e,t,r,n=SC.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=PI(e,t,r);return DC(i,o,a,n)??n},II=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return jA}},kI=e=>e?.some((e=>"italic"===e))?"italic":"normal",MI=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?_A:"normal",DI=e=>!1===e?1:3,TI=e=>parseInt(e??FA.fontSize,10)*NA,OI=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}=xI(t)??{},p=LP(t,o)?SC.WHITE:SC.TRANSPARENT,f=AI(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??zA,fontSize:II(i?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??r.head.fontSize),fontStyle:kI(i?.fontStyle),fontWeight:MI(i?.fontStyle,_A),textDecoration:OI(i?.fontStyle),color:RI(n,i?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??r.head.color??SC.TEXT,background:f},headerMenuHoverBackground:EC(f,tE),headerMenuActiveBackground:EC(f,rE),dimension:{values:{fontFamily:a?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??r.body.fontFamily??zA,fontSize:II(a?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??r.body.fontSize),fontStyle:kI(a?.fontStyle),fontWeight:MI(a?.fontStyle,"normal"),textDecoration:OI(a?.fontStyle),color:RI(n,a?.fontColor)??RI(n,d?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??r.body.color??SC.TEXT,background:PI(n,a,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??r.body.background??SC.TRANSPARENT}},measure:{values:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??r.body.fontFamily??zA,fontSize:II(s?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??r.body.fontSize),fontStyle:kI(s?.fontStyle),fontWeight:MI(s?.fontStyle,"normal"),textDecoration:OI(s?.fontStyle),color:RI(n,s?.fontColor)??RI(n,d?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??r.body.color??SC.TEXT,background:PI(n,s,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??r.body.background??SC.TRANSPARENT}},totalRow:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??r.totals.fontFamily??zA,fontSize:II(l?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??r.totals.fontSize),fontStyle:kI(l?.fontStyle),fontWeight:MI(l?.fontStyle,_A),textDecoration:OI(l?.fontStyle),color:RI(n,l?.fontColor)??RI(n,d?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??r.totals.color??SC.TEXT,background:AI(n,l,"object.straightTableV2.total.label.value.backgroundColor",p)},nullValues:{fontStyle:kI(u?.fontStyle),fontWeight:MI(u?.fontStyle,"normal"),textDecoration:OI(u?.fontStyle),color:RI(n,u?.fontColor)??RI(n,d?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??r.body.color??SC.TEXT,background:RI(n,u?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??SC.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:h??DI(t.multiline?.wrapTextInCells),headerLineClamp:DI(t.multiline?.wrapTextInHeaders),border:RI(n,c?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?SC.DARK_MODE_BORDER:SC.BORDER_MEDIUM),divider:RI(n,c?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??SC.BORDER_HEAVY,hoverColors:{color:RI(n,d?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??r.body.hoverColors?.color,background:RI(n,d?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??r.body.hoverColors?.background},zebraStripes:{show:!!c?.zebraStripes?.show,odd:{color:RI(n,c?.zebraStripes?.color?.odd),background:RI(n,c?.zebraStripes?.background?.odd)},even:{color:RI(n,c?.zebraStripes?.color?.even),background:RI(n,c?.zebraStripes?.background?.even)},overrideNullValueBackground:void 0===RI(n,u?.background),overrideNullValueColor:void 0===RI(n,u?.fontColor)},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:CC(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(TI(e.header.fontSize)+8,32),r=TI(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(TI(e.dimension.values.fontSize),TI(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},LI=(e,t,r,n)=>{const o=C((()=>{const o=r.totalsPosition.atTop,i=function(e,t,r,n){const o=xI(e)?.content,i=SI("content",t,o);i.background=t.background.color;const a=yI(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=gI(l)||!!c,p=gI(s)||!!u,f=d||p;let h;h=gI(s)?bI(SC.HOVER,t,s):u||(d?"":SC.HOVER);const m=f?bI(wC(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(e,t,r.rows.length,n),a=wI(e,t,!o),s=function(e,t,r){const n=xI(e)?.content,o=SI("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=wI(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},NI=new Map;const jI=M({}),_I=function(e){const t=M([()=>{},new Set]);return NI.set(e,t),({children:r,value:n})=>{const o=D(n),i=D(new Set);E((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=T((()=>o.current),[o]),s=C((()=>[a,i.current]),[a]);return er.jsx(e.Provider,{value:n,children:er.jsx(t.Provider,{value:s,children:r})})}}(jI),zI={rows:[],columns:[],totalsPosition:{}},FI=({app:e,children:t,tableData:r=zI,selectionsAPI:n,cellCoordMock:o,layout:i,model:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:h,setPage:m,pageInfo:g,initialDataPages:b,rect:v,viewService:y,downloadService:x,env:S,direction:E})=>{const[R,P]=w(0),[A,I]=w(o||PA),[M,D]=((e,t)=>{const[r,n]=k(hI,{pageRows:e,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(r.rows,n),[T,O]=w(-1),q=LI(i,u,r,d),L=((e,t,r,n,o)=>C((()=>qI(0,t,r,n,o)),[t,r,e,n,o]))(S,i,q,u,y),[N,j,_,z,F,H]=((e,t,r,n,o=!0)=>{const i=t.atBottom||t.atTop,a=_C({...n.header,fontWeight:_A},{maxNbrLinesOfText:3}).measureText,s=_C({...n.totalRow,fontWeight:_A},{maxNbrLinesOfText:3}).measureText,{estimateWidth:l}=_C(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:u}=_C(n.measure.values,{maxNbrLinesOfText:3}),c=C((()=>(e,t,r,n,c,d,p)=>{let f=0;if(o){const t=4;let r=25;r+=t+24,n&&(r+=20+t),c&&(r+=20),f=a(e)+r}else{let t=9;t+=16,p&&(t+=KA),t+=KA,t+=KA,f=a(e)+t}const h=d?l:u;return Math.max(f,i?s(t)+24+1:0,h(r))}),[l,u,a,s,i,o]),[d,p]=w(0),[f,h]=w(!1),[m,g]=w((()=>nI(e,r,c)));$C((()=>{g(nI(e,r-d,c)),h(!1)}),[e,r,d,c]);const b=C((()=>((e,t,r)=>e.length>0&&e.reduce(((e,t)=>e+t))+t<r)(m,d,r)),[m,d,r]);return[m,g,p,b,f,h]})(r.columns,r.totalsPosition,v.width,L,i.accessibleHeader),$=C((()=>({app:e,selectionsAPI:n,layout:i,model:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:h,rect:v,viewService:y,styleService:L,direction:E,downloadService:x})),[e,n,i,a,s,l,u,c.active,d,p,f,h,v,y,L,E,x]);return er.jsx(_I,{value:{headRowHeight:R,setHeadRowHeight:P,focusedCellCoord:A,setFocusedCellCoord:I,selectionState:M,selectionDispatch:D,hoverIndex:T,setHoverIndex:O,columnWidths:N,setColumnWidths:j,baseProps:$,tableData:r,setYScrollbarWidth:_,setPage:m,pageInfo:g,initialDataPages:b,showRightBorder:z,env:S,isAdjustingWidth:F,setIsAdjustingWidth:H},children:t})};function HI(e,t){const r=function(e){return NI.get(e)}(e),[n,o]=S(r),[,i]=k((e=>e+1),0),a=D(t),s=D(),l=n();if(void 0===l)throw new Error("You must call useContextSelector inside a valid context.");const u=C((()=>t(l)),[l,t]);return E((()=>{a.current=t,s.current=u}),[l,u,t]),E((()=>{const e=e=>{a.current(e)!==s.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function $I(e){const t=yC();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),wu({...t,direction:e})}const BI={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},WI={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},VI=ic("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":{...BI},"&::-moz-range-track":{...BI},"&::-ms-track":{...BI},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...WI},"&::-moz-range-thumb":{...WI},"&::-ms-thumb":{...WI},"&: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"}}))),UI=({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=WC({translator:c.translator}),f=D({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}};$C((()=>{m&&v()}),[e]);const y=e=>{const t=Math.max(e,QC.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:eE.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=>{IC(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=>{IC(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===JC.Left||e.key===JC.Right){IC(e);const t=5,r=e.key===JC.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===JC.Space||e.key===JC.Enter?(IC(e),s(e),l?.(!1),x()):e.key===JC.Esc&&(IC(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,P=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return er.jsx(VI,{style:b,hoverColor:o,isLastColumn:r,className:ZC,"data-testid":ZC,onMouseDown:e=>{IC(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:eE.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(IC(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":QC.PixelsMin,"aria-valuemax":QC.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},GI=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})}))),YI=({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},KI=ic(Kd,{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"}))),XI=ic(GI,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),JI=ic(Df)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),ZI=ic(Ap)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),QI=ic(Nf)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),ek=ic(Nf,{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"}))),tk=ic("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"}))),rk=ic("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),nk=ic(dd)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),ok=ic(nf,{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}))),ik=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),ak=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?ak(t):t:e.parentElement?.children?.[0]},sk=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?sk(t):t},lk=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===JC.Down||t===JC.Up){const r=e=>t===JC.Down?ak(e):sk(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},uk=(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 ck={};const dk=({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]=w(!1),f=x.useRef(null),h=T((e=>{e.stopPropagation(),p(!1)}),[p]);return er.jsxs(er.Fragment,{children:[er.jsxs(ek,{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),ck={}),a?.length&&(p(!0),ck[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:lk,children:[l?er.jsx(tk,{direction:u,isPagination:c}):null,er.jsxs(rk,{children:[er.jsx(ok,{direction:u,isPagination:c,children:er.jsx(o,{})}),er.jsx(nk,{variant:"body2",children:n})]}),a?.length?er.jsx(ik,{}):null]},t),a?.length?er.jsx(mk,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:uk(a,ck),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},pk=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&er.jsx(QI,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map((e=>er.jsx(dk,{...e,isSubMenu:t,direction:r,isPagination:n},e.id)))].filter(Boolean)])),fk=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[pk({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?er.jsx(ZI,{"data-testid":"group-divider",variant:"middle"}):void 0])),hk={appear:0,enter:0,exit:0},mk=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?er.jsx(JI,{className:YC,open:t,anchorEl:e,onClose:r,transitionDuration:hk,MenuListProps:{id:KC},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:fk({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,gk=({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:o,onPopoverClose:i})=>T((()=>{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]),bk=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),vk=(e,t)=>e.some((e=>t[e]>0)),yk={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},xk=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=w(null),[a,s]=w(yk);return $C((()=>{e||(s(yk),i(null))}),[e]),E((()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=bk(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:vk(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:vk(["qSelected"],e),canSelectPossible:vk(["qOption"],e),canSelectAlternative:vk(["qAlternative"],e),canSelectExcluded:vk(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},Sk=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.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"})}))),wk=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"})}))),Ck=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.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"})}))),Ek=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.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"})}))),Rk=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.454.858v6.484a1 1 0 0 1-.576.906L8.5 14.663V7.17z"})}))),Pk=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.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"})}))),Ak=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.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"})}))),Ik=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.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"})}))),kk=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.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"})}))),Mk=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.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"})}))),Dk=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.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"})}))),Tk=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.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"})}))),Ok=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.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"})}))),qk=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.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 Lk=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const Nk="/qListObjectDef",jk=({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[Lk.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:Sk,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:Ek,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:Ik,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:Rk,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[Lk.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:kk,enabled:!0}]}]),!e.isLocked&&r[Lk.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:qk,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(Nk))},icon:Mk,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(Nk))},icon:Ok,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(Nk))},icon:Dk,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(Nk))},icon:Tk,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(Nk))},icon:wk,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:Ak,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:Pk,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[Lk.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:Ck,enabled:!0}]}]),f},_k=({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=VC})=>{const v=D(null),y=WC({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=xk({open:e,headerData:n,app:C,qStateName:c?.qStateName}),P=YI({model:f,headerData:n}),A=gk({qLibraryId:x,fieldId:S,searchRelatedArgs:u,selectionRelatedArgs:c,direction:h}),I=T((e=>{e.stopPropagation(),t(!1)}),[t]),k=T((e=>{e.stopPropagation(),t((e=>!e))}),[t]);return i.active?er.jsxs(KI,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:GC,onClick:!1===g?k:void 0,ref:v,isAccessibleHeader:g,children:[s?er.jsx(XI,{height:b,className:UC,"data-testid":UC,isInteractionsActive:i.active??!1,children:er.jsx(GI,{})}):null,er.jsx(mk,{open:e,anchorEl:!1===g?v.current:r.current,onClose:I,menuGroups:jk({headerData:n,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:A,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:r,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:P,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},zk=e=>e.isDark?{background:e.color,borderColor:SC.DARK_MODE_BORDER,color:SC.DARK_MODE_TEXT,disabledColor:SC.DARK_MODE_DISABLED,iconColor:SC.DARK_MODE_TEXT}:{background:e.color,borderColor:SC.BORDER_MEDIUM,color:SC.TEXT,disabledColor:SC.DISABLED},Fk=ic(Kd,{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}`}))),Hk=ic(gh,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),$k=ic(ip,{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)}))),Bk=ic(dd)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),Wk=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=C((()=>zk(n.background)),[n]);if(!r.active)return null;const a=o?er.jsx(Fk,{footerStyle:i,children:e}):null;return t?F.createPortal(e,t):a},Vk=M({}),Uk=()=>S(Vk),Gk=({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=C((()=>zk(p.background)),[p]),y=o?o.getBoundingClientRect().width:h.width,x=WC({translator:d}),S=C((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator: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 er.jsx(Vk.Provider,{value:S,children:e})};let Yk=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),Kk=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 Xk=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),Jk=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),Zk=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),Qk={FirstPage:Jk,PreviousPage:Xk,NextPage:ik,LastPage:Zk,FirstPageRTL:Zk,PreviousPageRTL:ik,NextPageRTL:Xk,LastPageRTL:Jk},eM=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=Uk(),u=r.concat("rtl"===n?"RTL":""),c=Qk[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}},tM=()=>{const{pageInfo:e,width:t,interactions:r,visibilityThreshold:n}=Uk(),o=0===e.page,{IconComponent:i,styledProps:a}=eM({type:Yk.FirstPage,disabledCondition:o,pageNumber:0});return t<=(n?.firstPage||Kk.FirstPage)?null:er.jsx($k,{...a,disabled:!r.active,children:er.jsx(i,{height:VC})})},rM=(e,t,r=!1)=>{r&&e.key===JC.Tab&&!e.shiftKey&&(IC(e),AC(e.target,t,!1))},nM=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i,visibilityThreshold:a}=Uk(),s=e.page>=r-1,{IconComponent:l,styledProps:u}=eM({type:Yk.LastPage,disabledCondition:s,pageNumber:r-1}),c=t.enabled?e=>{rM(e,t,n)}:void 0;return o<=(a?.lastPage||Kk.LastPage)?null:er.jsx($k,{...u,onKeyDown:c,disabled:!i.active,children:er.jsx(l,{height:VC})})},oM=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=Uk(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=eM({type:Yk.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>Kk.FirstPage&&o>Kk.LastPage)&&t.enabled?e=>{rM(e,t,n)}:void 0;return er.jsx($k,{...l,onKeyDown:u,disabled:!i.active,children:er.jsx(s,{height:VC})})},iM=()=>{const{pageInfo:e,interactions:t}=Uk(),r=0===e.page,{IconComponent:n,styledProps:o}=eM({type:Yk.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return er.jsx($k,{...o,disabled:!t.active,children:er.jsx(n,{height:VC})})},aM=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=Uk(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||Kk.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return er.jsx(Bk,{variant:"caption",dir:"ltr",children:s})},sM=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=Uk(),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 er.jsxs(er.Fragment,{children:[er.jsxs(Bk,{variant:"caption",id:p,children:[c,":"]}),er.jsx(Hk,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},lM=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=Uk();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||Kk.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=er.jsx(er.Fragment,{children:e.rowsPerPageOptions.map((e=>er.jsx("option",{value:e,children:e},e)))});return er.jsx(sM,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},uM=1e3,cM="…",dM=({totalPages:e,page:t})=>{const r=Math.min(e,uM),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-uM):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return er.jsx("option",{value:t,children:t+1},t)}));return i>0&&a.unshift(er.jsx("option",{value:cM,disabled:!0,children:cM},"startMoreOptions")),o<e-1&&a.push(er.jsx("option",{value:cM,disabled:!0,children:cM},"endMoreOptions")),er.jsx(er.Fragment,{children:a})},pM=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=Uk(),{page:i}=e;if(t<=(o?.selectPage||Kk.SelectPage))return null;const a=er.jsx(dM,{totalPages:r,page:i});return er.jsx(sM,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var fM=q((e=>er.jsxs(Gk,{...e,children:[er.jsx(lM,{}),er.jsx(pM,{}),er.jsx(aM,{}),er.jsx(tM,{}),er.jsx(iM,{}),er.jsx(oM,{}),er.jsx(nM,{})]})));const hM=e=>er.jsx(Wk,{...e,children:er.jsx(fM,{...e})});var mM=Symbol.for("preact-signals");function gM(){if(SM>1)SM--;else{for(var e,t=!1;void 0!==xM;){var r=xM;for(xM=void 0,wM++;void 0!==r;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&AM(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(wM=0,SM--,t)throw e}}function bM(e){if(SM>0)return e();SM++;try{return e()}finally{gM()}}var vM=void 0;function yM(e){var t=vM;vM=void 0;try{return e()}finally{vM=t}}var xM=void 0,SM=0,wM=0,CM=0;function EM(e){if(void 0!==vM){var t=e.n;if(void 0===t||t.t!==vM)return t={i:0,S:e,p:vM.s,n:void 0,t:vM,e:void 0,x:void 0,r:t},void 0!==vM.s&&(vM.s.n=t),vM.s=t,e.n=t,32&vM.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=vM.s,t.n=void 0,vM.s.n=t,vM.s=t),t}}function RM(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 PM(e,t){return new RM(e,t)}function AM(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 IM(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 kM(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 MM(e,t){RM.call(this,void 0),this.x=e,this.s=void 0,this.g=CM-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 DM(e,t){return new MM(e,t)}function TM(e){var t=e.u;if(e.u=void 0,"function"==typeof t){SM++;var r=vM;vM=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,OM(e),t}finally{vM=r,gM()}}}function OM(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,TM(e)}function qM(e){if(vM!==this)throw new Error("Out-of-order effect");kM(this),vM=e,this.f&=-2,8&this.f&&OM(this),gM()}function LM(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 NM(e,t){var r=new LM(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}RM.prototype.brand=mM,RM.prototype.h=function(){return!0},RM.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:yM((function(){var e;null==(e=t.W)||e.call(t)})))},RM.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&&yM((function(){var e;null==(e=t.Z)||e.call(t)})))}},RM.prototype.subscribe=function(e){var t=this;return NM((function(){var r=t.value,n=vM;vM=void 0;try{e(r)}finally{vM=n}}),{name:"sub"})},RM.prototype.valueOf=function(){return this.value},RM.prototype.toString=function(){return this.value+""},RM.prototype.toJSON=function(){return this.value},RM.prototype.peek=function(){var e=vM;vM=void 0;try{return this.value}finally{vM=e}},Object.defineProperty(RM.prototype,"value",{get:function(){var e=EM(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(wM>100)throw new Error("Cycle detected");this.v=e,this.i++,CM++,SM++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{gM()}}}}),MM.prototype=new RM,MM.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===CM)return!0;if(this.g=CM,this.f|=1,this.i>0&&!AM(this))return this.f&=-2,!0;var e=vM;try{IM(this),vM=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 vM=e,kM(this),this.f&=-2,!0},MM.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)}RM.prototype.S.call(this,e)},MM.prototype.U=function(e){if(void 0!==this.t&&(RM.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)}},MM.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(MM.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=EM(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),LM.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()}},LM.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,TM(this),IM(this),SM++;var e=vM;return vM=this,qM.bind(this,e)},LM.prototype.N=function(){2&this.f||(this.f|=2,this.o=xM,xM=this)},LM.prototype.d=function(){this.f|=8,1&this.f||OM(this)},LM.prototype.dispose=function(){this.d()};var jM,_M,zM,FM,HM,$M,BM,WM,VM,UM,GM,YM,KM,XM,JM,ZM,QM,eD,tD,rD,nD=Object.create,oD=Object.defineProperty,iD=Object.defineProperties,aD=Object.getOwnPropertyDescriptor,sD=Object.getOwnPropertyDescriptors,lD=Object.getOwnPropertySymbols,uD=Object.prototype.hasOwnProperty,cD=Object.prototype.propertyIsEnumerable,dD=e=>{throw TypeError(e)},pD=(e,t,r)=>t in e?oD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fD=(e,t)=>oD(e,"name",{value:t,configurable:!0}),hD=["class","method","getter","setter","accessor","field","value","get","set"],mD=e=>void 0!==e&&"function"!=typeof e?dD("Function expected"):e,gD=(e,t,r,n,o)=>({kind:hD[e],name:t,metadata:n,addInitializer:e=>r._?dD("Already initialized"):o.push(mD(e||null))}),bD=(e,t)=>{return pD(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},vD=(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},yD=(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=hD[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)&&aD(d<4?o:{get[r](){return wD(this,i)},set[r](e){return ED(this,i,e)}},r));d?f&&d<4&&fD(i,(d>2?"set ":d>1?"get ":"")+r):fD(o,r);for(var y=n.length-1;y>=0;y--)u=gD(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>SD(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?wD:RD)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>ED(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?mD(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?dD("Object expected"):(mD(a=s.get)&&(v.get=a),mD(a=s.set)&&(v.set=a),mD(a=s.init)&&g.unshift(a));return d||bD(e,o),v&&oD(o,r,v),f?4^d?i:v:o},xD=(e,t,r)=>t.has(e)||dD("Cannot "+r),SD=(e,t)=>Object(t)!==t?dD('Cannot use the "in" operator on this value'):e.has(t),wD=(e,t,r)=>(xD(e,t,"read from private field"),r?r.call(e):t.get(e)),CD=(e,t,r)=>t.has(e)?dD("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),ED=(e,t,r,n)=>(xD(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),RD=(e,t,r)=>(xD(e,t,"access private method"),r);function PD(e,t){if(t){let r;return DM((()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)}))}return DM(e)}function AD(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)=>!AD(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=>!AD(e[r],t[r])));return!o}return!1}function ID({get:e},t){return{init:e=>PM(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function kD(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=PD(e.bind(this)),r.set(this,t)),t.value}}function MD(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)=>iD(e,sD(t)))(((e,t)=>{for(var r in t||(t={}))uD.call(t,r)&&pD(e,r,t[r]);if(lD)for(var r of lD(t))cD.call(t,r)&&pD(e,r,t[r]);return e})({},n),{enumerable:e}))}))}}function DD(...e){const t=e.map(NM);return()=>t.forEach((e=>e()))}$M=[ID],HM=[ID],FM=[ID],zM=[MD()],_M=[MD()],jM=[MD()];var TD,OD=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,vD(BM,5,this),CD(this,YM),CD(this,WM,vD(BM,8,this)),vD(BM,11,this),CD(this,KM,vD(BM,12,this)),vD(BM,15,this),CD(this,QM,vD(BM,16,this)),vD(BM,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return wD(this,YM,tD)}get initial(){return wD(this,YM,UM)}get previous(){return wD(this,YM,JM)}set current(e){const t=yM((()=>wD(this,YM,tD)));e&&t&&this.equals(t,e)||bM((()=>{wD(this,YM,UM)||ED(this,YM,e,GM),ED(this,YM,t,ZM),ED(this,YM,e,rD)}))}reset(e=this.defaultValue){bM((()=>{ED(this,YM,void 0,ZM),ED(this,YM,e,GM),ED(this,YM,e,rD)}))}};function qD(e){return yM((()=>{const t={};for(const r in e)t[r]=e[r];return t}))}BM=[,,,nD(null)],WM=new WeakMap,YM=new WeakSet,KM=new WeakMap,QM=new WeakMap,VM=yD(BM,20,"#initial",$M,YM,WM),UM=VM.get,GM=VM.set,XM=yD(BM,20,"#previous",HM,YM,KM),JM=XM.get,ZM=XM.set,eD=yD(BM,20,"#current",FM,YM,QM),tD=eD.get,rD=eD.set,yD(BM,2,"current",zM,OD),yD(BM,2,"initial",_M,OD),yD(BM,2,"previous",jM,OD),bD(BM,OD);TD=new WeakMap;var LD,ND,jD,_D,zD,FD=Object.create,HD=Object.defineProperty,$D=Object.getOwnPropertyDescriptor,BD=Object.getOwnPropertySymbols,WD=Object.prototype.hasOwnProperty,VD=Object.prototype.propertyIsEnumerable,UD=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),GD=e=>{throw TypeError(e)},YD=Math.pow,KD=(e,t,r)=>t in e?HD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,XD=["class","method","getter","setter","accessor","field","value","get","set"],JD=e=>void 0!==e&&"function"!=typeof e?GD("Function expected"):e,ZD=(e,t,r,n,o)=>({kind:XD[e],name:t,metadata:n,addInitializer:e=>r._?GD("Already initialized"):o.push(JD(e||null))}),QD=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=XD[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,$D(o,r)),h=n.length-1;h>=0;h--)(l=ZD(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,JD(a)&&(f[d]=a);return f&&HD(o,r,f),o},eT=(e,t,r)=>t.has(e)||GD("Cannot "+r),tT=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)}},rT=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={}))WD.call(t,r)&&KD(e,r,t[r]);if(BD)for(var r of BD(t))VD.call(t,r)&&KD(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 tT((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 tT.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 nT,oT=class extends(jD=OD,ND=[kD],LD=[kD],jD){constructor(e){var t,r,n;super(tT.from(e),((e,t)=>tT.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)})(zD,5,this),t=this,n=0,(r=_D).has(t)?GD("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 tT.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=tT.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(eT(a=this,s=_D,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);bM((()=>{((e,t,r)=>{eT(e,t,"write to private field"),t.set(e,r)})(this,_D,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(tT.from(e)),this.velocity={x:0,y:0}}};function iT({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(YD(n,2)+YD(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}zD=(e=>{var t;return[,,,FD(null!=(t=null==e?void 0:e[UD("metadata")])?t:null)]})(jD),_D=new WeakMap,QD(zD,2,"delta",ND,oT),QD(zD,2,"direction",LD,oT),nT=zD,KD(oT,UD("metadata"),nT[3]);var aT,sT,lT,uT,cT=(e=>(e.Horizontal="x",e.Vertical="y",e))(cT||{}),dT=Object.values(cT),pT=Object.create,fT=Object.defineProperty,hT=Object.defineProperties,mT=Object.getOwnPropertyDescriptor,gT=Object.getOwnPropertyDescriptors,bT=Object.getOwnPropertySymbols,vT=Object.prototype.hasOwnProperty,yT=Object.prototype.propertyIsEnumerable,xT=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),ST=e=>{throw TypeError(e)},wT=(e,t,r)=>t in e?fT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,CT=(e,t)=>{for(var r in t||(t={}))vT.call(t,r)&&wT(e,r,t[r]);if(bT)for(var r of bT(t))yT.call(t,r)&&wT(e,r,t[r]);return e},ET=(e,t)=>hT(e,gT(t)),RT=(e,t)=>fT(e,"name",{value:t,configurable:!0}),PT=(e,t)=>{var r={};for(var n in e)vT.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&bT)for(var n of bT(e))t.indexOf(n)<0&&yT.call(e,n)&&(r[n]=e[n]);return r},AT=e=>{var t;return[,,,pT(null!=(t=null==e?void 0:e[xT("metadata")])?t:null)]},IT=["class","method","getter","setter","accessor","field","value","get","set"],kT=e=>void 0!==e&&"function"!=typeof e?ST("Function expected"):e,MT=(e,t,r,n,o)=>({kind:IT[e],name:t,metadata:n,addInitializer:e=>r._?ST("Already initialized"):o.push(kT(e||null))}),DT=(e,t)=>wT(t,xT("metadata"),e[3]),TT=(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},OT=(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=IT[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)&&mT(d<4?o:{get[r](){return NT(this,i)},set[r](e){return _T(this,i,e)}},r));d?f&&d<4&&RT(i,(d>2?"set ":d>1?"get ":"")+r):RT(o,r);for(var y=n.length-1;y>=0;y--)u=MT(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>LT(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?NT:zT)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>_T(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?kT(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?ST("Object expected"):(kT(a=s.get)&&(v.get=a),kT(a=s.set)&&(v.set=a),kT(a=s.init)&&g.unshift(a));return d||DT(e,o),v&&fT(o,r,v),f?4^d?i:v:o},qT=(e,t,r)=>t.has(e)||ST("Cannot "+r),LT=(e,t)=>Object(t)!==t?ST('Cannot use the "in" operator on this value'):e.has(t),NT=(e,t,r)=>(qT(e,t,"read from private field"),r?r.call(e):t.get(e)),jT=(e,t,r)=>t.has(e)?ST("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),_T=(e,t,r,n)=>(qT(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),zT=(e,t,r)=>(qT(e,t,"access private method"),r);function FT(e,t){return{plugin:e,options:t}}function HT(e){return t=>FT(e,t)}function $T(e){return"function"==typeof e?{plugin:e,options:void 0}:e}aT=[ID];var BT=class{constructor(e,t){this.manager=e,this.options=t,jT(this,lT,TT(sT,8,this,!1)),TT(sT,11,this),jT(this,uT,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return yM((()=>this.disabled))}configure(e){this.options=e}registerEffect(e){const t=NM(e.bind(this));return NT(this,uT).add(t),t}destroy(){NT(this,uT).forEach((e=>e()))}static configure(e){return FT(this,e)}};sT=AT(null),lT=new WeakMap,uT=new WeakMap,OT(sT,4,"disabled",aT,BT,lT),DT(sT,BT);var WT,VT=class extends BT{},UT=class{constructor(e){this.manager=e,this.instances=new Map,jT(this,WT,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map($T).reduceRight(((e,t)=>e.some((({plugin:e})=>e===t.plugin))?e:[t,...e]),[]),r=t.map((({plugin:e})=>e));for(const e of NT(this,WT))if(!r.includes(e)){if(e.prototype instanceof VT)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);_T(this,WT,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 GT(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}WT=new WeakMap;var YT,KT,XT=[],JT=class extends BT{constructor(e){super(e),jT(this,YT),jT(this,KT),this.computeCollisions=this.computeCollisions.bind(this),_T(this,KT,PM(XT)),this.destroy=DD((()=>{const e=this.computeCollisions(),t=yM((()=>this.manager.dragOperation.position.current));if(e!==XT){const e=NT(this,YT);if(_T(this,YT,t),e&&t.x==e.x&&t.y==e.y)return}else _T(this,YT,void 0);NT(this,KT).value=e}),(()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()}))}forceUpdate(e=!0){yM((()=>{e?NT(this,KT).value=this.computeCollisions():_T(this,YT,void 0)}))}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return XT;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=yM((()=>e({droppable:i,dragOperation:n})));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?XT:(s.sort(GT),s)}get collisions(){return NT(this,KT).value}};YT=new WeakMap,KT=new WeakMap;var ZT=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)}},QT=class extends ZT{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function eO(e,t=!0){let r=!1;return ET(CT({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var tO,rO,nO,oO,iO,aO,sO,lO,uO,cO=class extends VT{constructor(e){super(e);let t=[];this.destroy=DD((()=>{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=eO({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;yM((()=>{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()})))}))}))}},dO=(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))(dO||{}),pO=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(pO||{});sO=[ID],aO=[kD],iO=[kD],oO=[kD],nO=[kD],rO=[kD],tO=[kD];var fO=class{constructor(){TT(lO,5,this),jT(this,uO,TT(lO,8,this,"idle")),TT(lO,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}};lO=AT(null),uO=new WeakMap,OT(lO,4,"value",sO,fO,uO),OT(lO,2,"current",aO,fO),OT(lO,2,"idle",iO,fO),OT(lO,2,"initializing",oO,fO),OT(lO,2,"initialized",nO,fO),OT(lO,2,"dragging",rO,fO),OT(lO,2,"dropped",tO,fO),DT(lO,fO);var hO,mO,gO,bO,vO,yO,xO,SO,wO,CO=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 yM((()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=eO({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then((()=>n.defaultPrevented))}))}start(e){return yM((()=>{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;bM((()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)}));const i=eO({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 yM((()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=eO({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 yM((()=>{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=yM((()=>{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=NM((()=>{"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()}))}};bO=[ID],gO=[ID],mO=[ID],hO=[ID];var EO=class{constructor(e,t){jT(this,yO,TT(vO,8,this)),TT(vO,11,this),jT(this,xO,TT(vO,12,this)),TT(vO,15,this),jT(this,SO,TT(vO,16,this)),TT(vO,19,this),jT(this,wO,TT(vO,20,this)),TT(vO,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)}};vO=AT(null),yO=new WeakMap,xO=new WeakMap,SO=new WeakMap,wO=new WeakMap,OT(vO,4,"manager",bO,EO,yO),OT(vO,4,"id",gO,EO,xO),OT(vO,4,"data",mO,EO,SO),OT(vO,4,"disabled",hO,EO,wO),DT(vO,EO);var RO,PO,AO,IO,kO,MO,DO,TO,OO,qO,LO,NO,jO,_O,zO,FO,HO,$O,BO,WO,VO,UO,GO,YO,KO=class{constructor(){this.map=PM(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=DD(...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}},XO=class extends(DO=EO,MO=[ID],kO=[ID],IO=[ID],AO=[kD],PO=[kD],RO=[kD],DO){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i}=r,a=PT(r,["modifiers","type","sensors"]);super(a,t),TT(TO,5,this),jT(this,OO,TT(TO,8,this)),TT(TO,11,this),jT(this,qO,TT(TO,12,this)),TT(TO,15,this),jT(this,LO,TT(TO,16,this,this.isDragSource?"dragging":"idle")),TT(TO,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}};TO=AT(DO),OO=new WeakMap,qO=new WeakMap,LO=new WeakMap,OT(TO,4,"type",MO,XO,OO),OT(TO,4,"modifiers",kO,XO,qO),OT(TO,4,"status",IO,XO,LO),OT(TO,2,"isDropping",AO,XO),OT(TO,2,"isDragging",PO,XO),OT(TO,2,"isDragSource",RO,XO),DT(TO,XO);var JO=class extends($O=EO,HO=[ID],FO=[ID],zO=[ID],_O=[ID],jO=[ID],NO=[kD],$O){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super(PT(r,["accept","collisionDetector","collisionPriority","type"]),t),TT(BO,5,this),jT(this,WO,TT(BO,8,this)),TT(BO,11,this),jT(this,VO,TT(BO,12,this)),TT(BO,15,this),jT(this,UO,TT(BO,16,this)),TT(BO,19,this),jT(this,GO,TT(BO,20,this)),TT(BO,23,this),jT(this,YO,TT(BO,24,this)),TT(BO,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}};BO=AT($O),WO=new WeakMap,VO=new WeakMap,UO=new WeakMap,GO=new WeakMap,YO=new WeakMap,OT(BO,4,"accept",HO,JO,WO),OT(BO,4,"type",FO,JO,VO),OT(BO,4,"collisionDetector",zO,JO,UO),OT(BO,4,"collisionPriority",_O,JO,GO),OT(BO,4,"shape",jO,JO,YO),OT(BO,2,"isDropTarget",NO,JO),DT(BO,JO);var ZO,QO,eq,tq,rq,nq,oq,iq,aq,sq,lq,uq,cq,dq,pq,fq,hq,mq,gq,bq=class extends BT{constructor(e,t){super(e,t),this.manager=e,this.options=t}},vq=class extends BT{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},yq=class{constructor(e){this.draggables=new KO,this.droppables=new KO,this.plugins=new UT(e),this.sensors=new UT(e),this.modifiers=new UT(e)}register(e,t){if(e instanceof XO)return this.draggables.register(e.id,e);if(e instanceof JO)return this.droppables.register(e.id,e);if(e.prototype instanceof vq)return this.modifiers.register(e,t);if(e.prototype instanceof bq)return this.sensors.register(e,t);if(e.prototype instanceof BT)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof EO)return e instanceof XO?this.draggables.unregister(e.id,e):e instanceof JO?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof vq)return this.modifiers.unregister(e);if(e.prototype instanceof bq)return this.sensors.unregister(e);if(e.prototype instanceof BT)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()}};aq=[kD],iq=[ID],oq=[ID],nq=[ID],rq=[ID],tq=[ID],eq=[kD],QO=[kD],ZO=[kD];var xq=class{constructor(e){TT(cq,5,this),jT(this,sq),jT(this,lq),jT(this,uq,new OD(void 0,((e,t)=>e&&t?e.equals(t):e===t))),this.status=new fO,jT(this,dq,TT(cq,8,this,!1)),TT(cq,11,this),jT(this,pq,TT(cq,12,this,null)),TT(cq,15,this),jT(this,fq,TT(cq,16,this,null)),TT(cq,19,this),jT(this,hq,TT(cq,20,this,null)),TT(cq,23,this),jT(this,mq,TT(cq,24,this,[])),TT(cq,27,this),this.position=new oT({x:0,y:0}),jT(this,gq,{x:0,y:0}),_T(this,sq,e)}get shape(){const{current:e,initial:t,previous:r}=NT(this,uq);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?NT(this,uq).current=e:NT(this,uq).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=NT(this,sq).registry.draggables.get(t);return r&&_T(this,lq,r),null!=(e=null!=r?r:NT(this,lq))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=NT(this,sq).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(ET(CT({},this.snapshot()),{transform:r}));return _T(this,gq,r),r}snapshot(){return yM((()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:NT(this,gq),shape:this.shape?qD(this.shape):null,position:qD(this.position),status:qD(this.status),canceled:this.canceled})))}reset(){bM((()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,NT(this,uq).reset(),this.position.reset({x:0,y:0}),_T(this,gq,{x:0,y:0}),this.modifiers=[]}))}};cq=AT(null),sq=new WeakMap,lq=new WeakMap,uq=new WeakMap,dq=new WeakMap,pq=new WeakMap,fq=new WeakMap,hq=new WeakMap,mq=new WeakMap,gq=new WeakMap,OT(cq,2,"shape",aq,xq),OT(cq,4,"canceled",iq,xq,dq),OT(cq,4,"activatorEvent",oq,xq,pq),OT(cq,4,"sourceIdentifier",nq,xq,fq),OT(cq,4,"targetIdentifier",rq,xq,hq),OT(cq,4,"modifiers",tq,xq,mq),OT(cq,2,"source",eq,xq),OT(cq,2,"target",QO,xq),OT(cq,2,"transform",ZO,xq),DT(cq,xq);var Sq={get rendering(){return Promise.resolve()}},wq=class{constructor(e){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{plugins:t=[],sensors:r=[],modifiers:n=[],renderer:o=Sq}=null!=e?e:{},i=new QT(this),a=new yq(this);this.registry=a,this.monitor=i,this.renderer=o,this.actions=new CO(this),this.dragOperation=new xq(this),this.collisionObserver=new JT(this),this.plugins=[cO,...t],this.modifiers=n,this.sensors=r;const{destroy:s}=this,l=DD((()=>{var e,t,r;const n=yM((()=>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}=$T(e);return new t(this,r)})))?r:o}));this.destroy=()=>{l(),s()}}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}},Cq=e=>{throw TypeError(e)},Eq=(e,t,r)=>t.has(e)||Cq("Cannot "+r),Rq=(e,t,r)=>(Eq(e,t,"read from private field"),t.get(e)),Pq=(e,t,r)=>t.has(e)?Cq("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Aq=(e,t,r,n)=>(Eq(e,t,"write to private field"),t.set(e,r),r),Iq=(e,t,r)=>(Eq(e,t,"access private method"),r);function kq(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function Mq(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=(kq(r)?r.getKeyframes():[]).filter(t);if(n.length>0)return[n[n.length-1],e]}return null}function Dq(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}}var Tq="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Oq(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function qq(e){return"nodeType"in e}function Lq(e){var t,r,n;return e?Oq(e)?e:qq(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 Nq(e){const{Document:t}=Lq(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function jq(e){return!(!e||Oq(e))&&(e instanceof Lq(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function _q(e){return e instanceof Lq(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function zq(e){return e?Oq(e)?e.document:qq(e)?Nq(e)?e:jq(e)||_q(e)?e.ownerDocument:document:document:document}function Fq(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 Hq(e,t=e.getBoundingClientRect(),r=0){var n;let o=t;const{ownerDocument:i}=e,a=null!=(n=i.defaultView)?n:window;let s=e.parentElement;for(;s&&s!==i.documentElement;){if(!Fq(s)){const e=s.getBoundingClientRect(),t=r*(e.bottom-e.top),n=r*(e.right-e.left),i=r*(e.bottom-e.top),a=r*(e.right-e.left);o={top:Math.max(o.top,e.top-t),right:Math.min(o.right,e.right+n),bottom:Math.min(o.bottom,e.bottom+i),left:Math.max(o.left,e.left-a),width:0,height:0},o.width=o.right-o.left,o.height=o.bottom-o.top}s=s.parentElement}const l=a.innerWidth,u=a.innerHeight,c=r*u,d=r*l;return o={top:Math.max(o.top,0-c),right:Math.min(o.right,l+d),bottom:Math.min(o.bottom,u+c),left:Math.max(o.left,0-d),width:0,height:0},o.width=o.right-o.left,o.height=o.bottom-o.top,o.width<0&&(o.width=0),o.height<0&&(o.height=0),o}function $q(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function Bq(e){return"value"in e}function Wq(e){return"CANVAS"===e.tagName}function Vq(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 Vq(e,{x:t-o,y:r-i})}}return n}var Uq=new WeakMap,Gq=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(t)?t:[t],n=[];for(const t of r){const{type:r,listener:o,options:i}=t,a=[e,t];e.addEventListener(r,o,i),this.entries.add(a),n.push(a)}return function(){for(const[e,{type:t,listener:r,options:o}]of n)e.removeEventListener(t,r,o)}}};function Yq(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function Kq(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 Xq,Jq=Tq?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},Zq=class extends Jq{constructor(e){super((t=>{Rq(this,Xq)?e(t,this):Aq(this,Xq,!0)})),Pq(this,Xq,!1)}};Xq=new WeakMap;var Qq,eL,tL,rL,nL,oL,iL,aL,sL,lL,uL,cL=Array.from({length:100},((e,t)=>t/100)),dL=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,Pq(this,sL),this.disconnect=()=>{var e,t,r;Aq(this,iL,!0),null==(e=Rq(this,tL))||e.disconnect(),null==(t=Rq(this,rL))||t.disconnect(),Rq(this,nL).disconnect(),null==(r=Rq(this,oL))||r.remove()},Pq(this,Qq,!0),Pq(this,eL),Pq(this,tL),Pq(this,rL),Pq(this,nL),Pq(this,oL),Pq(this,iL,!1),Pq(this,aL,Kq((()=>{var e,t,r;const{element:n}=this;if(null==(e=Rq(this,rL))||e.disconnect(),Rq(this,iL)||!Rq(this,Qq)||!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=Hq(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,Aq(this,rL,new IntersectionObserver((e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:rT.intersectionRatio(r,Hq(n)))&&Rq(this,aL).call(this)}),{threshold:cL,rootMargin:m,root:o})),Rq(this,rL).observe(n),Iq(this,sL,lL).call(this)}),75)),this.boundingClientRect=e.getBoundingClientRect(),Aq(this,Qq,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=Hq(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)&&(Aq(this,oL,document.createElement("div")),Rq(this,oL).style.background="rgba(0,0,0,0.15)",Rq(this,oL).style.position="fixed",Rq(this,oL).style.pointerEvents="none",o.body.appendChild(Rq(this,oL))),Aq(this,nL,new IntersectionObserver((t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=Rq(this,Qq);Aq(this,Qq,a),(s||l)&&(u&&!a?(null==(r=Rq(this,rL))||r.disconnect(),this.callback(null),null==(n=Rq(this,tL))||n.disconnect(),Aq(this,tL,void 0),Rq(this,oL)&&(Rq(this,oL).style.visibility="hidden")):Rq(this,aL).call(this),a&&!Rq(this,tL)&&(Aq(this,tL,new Zq(Rq(this,aL))),Rq(this,tL).observe(e)))}),{threshold:cL,root:o})),Rq(this,Qq)&&!r.skipInitial&&this.callback(this.boundingClientRect),Rq(this,nL).observe(e)}};Qq=new WeakMap,eL=new WeakMap,tL=new WeakMap,rL=new WeakMap,nL=new WeakMap,oL=new WeakMap,iL=new WeakMap,aL=new WeakMap,sL=new WeakSet,lL=function(){Rq(this,iL)||(Iq(this,sL,uL).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,Rq(this,eL))||(this.callback(this.boundingClientRect),Aq(this,eL,this.boundingClientRect)))},uL=function(){if(Rq(this,oL)){const{top:e,left:t,width:r,height:n}=Hq(this.element);Rq(this,oL).style.overflow="hidden",Rq(this,oL).style.visibility="visible",Rq(this,oL).style.top=`${Math.floor(e)}px`,Rq(this,oL).style.left=`${Math.floor(t)}px`,Rq(this,oL).style.width=`${Math.floor(r)}px`,Rq(this,oL).style.height=`${Math.floor(n)}px`}};var pL,fL,hL,mL,gL=new WeakMap,bL=new WeakMap;function vL(e,t){let r=gL.get(e);if(!r){const t=new dL(e,(t=>{const r=gL.get(e);r&&r.callbacks.forEach((e=>e(t)))}),{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),gL.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&(gL.delete(e),r.disconnect())}}var yL=class{constructor(e,t,r){this.callback=t,Pq(this,pL),Pq(this,fL,!1),Pq(this,hL),Pq(this,mL,Kq((e=>{if(!Rq(this,fL)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of Rq(this,hL))if(e.target.contains(t)){this.callback(Rq(this,pL).boundingClientRect);break}}),75));const n=function(e){const t=new Set;let r=Yq(e);for(;r;)t.add(r),r=Yq(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=vL(n,t);r.add(e)}return()=>r.forEach((e=>e()))}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!bL.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}),bL.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=bL.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),bL.delete(n))}):()=>{}}(e,Rq(this,mL));Aq(this,hL,n),Aq(this,pL,new dL(e,t,r)),this.disconnect=()=>{Rq(this,fL)||(Aq(this,fL,!0),o(),i(),Rq(this,pL).disconnect())}}};function xL(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function SL(e){try{xL(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function wL(e){return!(!Tq||!e)&&e===zq(e).scrollingElement}function CL(e){const t=Lq(e),r=wL(e)?function(e){const{documentElement:t}=zq(e),r=t.clientWidth,n=t.clientHeight;return{top:0,left:0,right:r,bottom:n,width:r,height:n}}(e):Dq(e),n=wL(e)?{height:t.innerHeight,width:t.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-n.width,y:e.scrollHeight-n.height}};return{rect:r,position:o,isTop:o.current.y<=0,isLeft:o.current.x<=0,isBottom:o.current.y>=o.max.y,isRight:o.current.x>=o.max.x}}function EL(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=CL(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}}pL=new WeakMap,fL=new WeakMap,hL=new WeakMap,mL=new WeakMap;var RL=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)))}},PL=new RL((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),AL=new RL((e=>setTimeout(e,50))),IL=new Map,kL=IL.clear.bind(IL);function ML(e,t=!1){if(!t)return DL(e);let r=IL.get(e);return r||(r=DL(e),IL.set(e,r),AL.schedule(kL),r)}function DL(e){return Lq(e).getComputedStyle(e)}var TL={excludeElement:!0};function OL(e,t=TL){const{limit:r,excludeElement:n}=t,o=new Set;return e?function t(i){if(null!=r&&o.size>=r)return o;if(!i)return o;if(Nq(i)&&null!=i.scrollingElement&&!o.has(i.scrollingElement))return o.add(i.scrollingElement),o;if(!jq(i))return _q(i)?t(i.parentElement):o;if(o.has(i))return o;const a=ML(i,!0);if(n&&i===e||function(e,t=ML(e,!0)){const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const n=t[e];return"string"==typeof n&&r.test(n)}))}(i,a)&&o.add(i),function(e,t=ML(e,!0)){return"fixed"===t.position||"sticky"===t.position}(i,a)){const{scrollingElement:e}=i.ownerDocument;return e&&o.add(e),o}return t(i.parentNode)}(e):o}function qL(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=Yq(e);for(;n;){if(n===t)return r;const e=Dq(n),{x:o,y:i}=LL(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=Yq(n)}return r}function LL(e,t=Dq(e)){const r=Math.round(t.width),n=Math.round(t.height);if(jq(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=ML(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function NL(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 jL(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=NL(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 _L=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(_L||{}),zL={x:.2,y:.2},FL={x:10,y:10};function HL(e,t,r,n=25,o=zL,i=FL){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=CL(e),f=qL(e),h=jL(ML(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,b=new rT(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 $L(e,t=!1){if("scrollIntoViewIfNeeded"in(r=e)&&"function"==typeof r.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var r;if(!jq(e))return e.scrollIntoView();var n=function(e){const[t]=OL(e,{limit:1});return null!=t?t:null}(e);if(!jq(n))return;const o=ML(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 BL({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function WL(e,t=ML(e).translate,r=!0){if(r){const t=Mq(e,(e=>"translate"in e));if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=NL(e);if(t)return t}}}if(t){const e=NL(t);if(e)return e}return{x:0,y:0,z:0}}var VL=new RL((e=>setTimeout(e,0))),UL=new Map,GL=UL.clear.bind(UL);function YL(e,t){const r=function(e){const t=e.ownerDocument;let r=UL.get(t);if(r)return r;r=t.getAnimations(),UL.set(t,r),VL.schedule(GL);const n=r.filter((t=>kq(t.effect)&&t.effect.target===e));return UL.set(e,n),r}(e).filter((e=>{var r,n;if(kq(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 KL=class extends rT{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=qL(e),ignoreTransforms:s,getBoundingClientRect:l=Dq}=t,u=YL(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||$q())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=ML(e),b=jL(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=kq(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=jL({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 XL(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 JL=class{constructor(e){this.element=e,this.initial=new Map}set(e,t=""){const{element:r}=this;if(XL(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(XL(r))for(const n of e){const e=`${t}${n}`;r.style.removeProperty(e)}}reset(){const{element:e}=this;if(XL(e)){for(const[t,r]of this.initial)e.style.setProperty(t,r);""===e.getAttribute("style")&&e.removeAttribute("style")}}};function ZL(e){return!!e&&(e instanceof Lq(e).Element||qq(e)&&e.nodeType===Node.ELEMENT_NODE)}function QL(e){if(!e)return!1;const{KeyboardEvent:t}=Lq(e.target);return e instanceof t}var eN={};function tN(e){const t=null==eN[e]?0:eN[e]+1;return eN[e]=t,`${e}-${t}`}var rN=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/tT.distance(t.shape.center,r),type:pO.PointerIntersection,priority:dO.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=tT.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:pO.ShapeIntersection,priority:dO.Normal}}return null})(e)},nN=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?rT.from(n.current.boundingRectangle).corners:void 0,a=rT.from(r.shape.boundingRectangle).corners.reduce(((e,t,r)=>{var n;return e+tT.distance(tT.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:pO.Collision,priority:dO.Normal}},oN=Object.create,iN=Object.defineProperty,aN=Object.defineProperties,sN=Object.getOwnPropertyDescriptor,lN=Object.getOwnPropertyDescriptors,uN=Object.getOwnPropertySymbols,cN=Object.prototype.hasOwnProperty,dN=Object.prototype.propertyIsEnumerable,pN=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),fN=e=>{throw TypeError(e)},hN=(e,t,r)=>t in e?iN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,mN=(e,t)=>{for(var r in t||(t={}))cN.call(t,r)&&hN(e,r,t[r]);if(uN)for(var r of uN(t))dN.call(t,r)&&hN(e,r,t[r]);return e},gN=(e,t)=>aN(e,lN(t)),bN=(e,t)=>iN(e,"name",{value:t,configurable:!0}),vN=(e,t)=>{var r={};for(var n in e)cN.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&uN)for(var n of uN(e))t.indexOf(n)<0&&dN.call(e,n)&&(r[n]=e[n]);return r},yN=e=>{var t;return[,,,oN(null!=(t=null==e?void 0:e[pN("metadata")])?t:null)]},xN=["class","method","getter","setter","accessor","field","value","get","set"],SN=e=>void 0!==e&&"function"!=typeof e?fN("Function expected"):e,wN=(e,t,r,n,o)=>({kind:xN[e],name:t,metadata:n,addInitializer:e=>r._?fN("Already initialized"):o.push(SN(e||null))}),CN=(e,t)=>hN(t,pN("metadata"),e[3]),EN=(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},RN=(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=xN[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)&&sN(d<4?o:{get[r](){return IN(this,i)},set[r](e){return MN(this,i,e)}},r));d?f&&d<4&&bN(i,(d>2?"set ":d>1?"get ":"")+r):bN(o,r);for(var y=n.length-1;y>=0;y--)u=wN(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>AN(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?IN:DN)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>MN(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?SN(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?fN("Object expected"):(SN(a=s.get)&&(v.get=a),SN(a=s.set)&&(v.set=a),SN(a=s.init)&&g.unshift(a));return d||CN(e,o),v&&iN(o,r,v),f?4^d?i:v:o},PN=(e,t,r)=>t.has(e)||fN("Cannot "+r),AN=(e,t)=>Object(t)!==t?fN('Cannot use the "in" operator on this value'):e.has(t),IN=(e,t,r)=>(PN(e,t,"read from private field"),r?r.call(e):t.get(e)),kN=(e,t,r)=>t.has(e)?fN("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),MN=(e,t,r,n)=>(PN(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),DN=(e,t,r)=>(PN(e,t,"access private method"),r),TN="button",ON="draggable",qN="dnd-kit-description",LN="dnd-kit-announcement",NN={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."},jN={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 _N(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var zN=["dragover","dragmove"],FN=class extends BT{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=qN,announcement:o=LN}={},announcements:i=jN,screenReaderInstructions:a=NN,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:tN(n),u=r?`${o}-${r}`:tN(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>PL.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,zN.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),_N(r)&&!$q()||r.hasAttribute("tabindex")||y.add((()=>r.setAttribute("tabindex","0"))),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||y.add((()=>r.setAttribute("role",TN))),r.hasAttribute("aria-roledescription")||y.add((()=>r.setAttribute("aria-roledescription",ON))),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&&PL.schedule(x)})),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),b.forEach((e=>e()))}}};var HN="data-dnd-",$N=`${HN}dropping`,BN="--dnd-",WN=`${HN}dragging`,VN=`${HN}placeholder`,UN=[WN,VN,"popover","aria-pressed","aria-grabbing"],GN=["view-transition-name"],YN=`\n :root [${WN}] {\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(${BN}top, 0px) !important;\n left: var(${BN}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${BN}width, auto);\n max-width: var(${BN}width, auto);\n height: var(${BN}height, auto);\n max-height: var(${BN}height, auto);\n transition: var(${BN}transition) !important;\n }\n\n :root [${VN}] {\n transition: none;\n }\n\n :root [${VN}='hidden'] {\n visibility: hidden;\n }\n\n [${WN}] * {\n pointer-events: none !important;\n }\n\n [${WN}]:not([${$N}]) {\n translate: var(${BN}translate) !important;\n }\n\n [${WN}][style*='${BN}scale'] {\n scale: var(${BN}scale) !important;\n transform-origin: var(${BN}transform-origin) !important;\n }\n\n @layer {\n :where([${WN}][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 [${WN}]::backdrop, [${HN}overlay]:not([${WN}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function KN(e,t="hidden"){return yM((()=>{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=`${HN}${tN("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(Bq(e)&&Bq(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),Wq(e)&&Wq(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),Uq.set(a,i),r.push((()=>{Uq.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(VN,t)}(a,t),a.remove=()=>{i.forEach((e=>e())),s.call(a)},a}))}function XN(e,t){return e===t||Yq(e)===Yq(t)}function JN(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&ZL(t)&&t.hasAttribute("popover")&&requestAnimationFrame((()=>SL(t)))}function ZN(e){return"TR"===e.tagName}var QN,ej,tj,rj,nj,oj,ij,aj=new Map,sj=class extends(ej=BT,QN=[ID],ej){constructor(e,t){super(e,t),kN(this,nj),kN(this,rj,EN(tj,8,this)),EN(tj,11,this),this.state={initial:{},current:{}},this.registerEffect(DN(this,nj,ij)),this.registerEffect(DN(this,nj,oj))}destroy(){super.destroy();for(const[e,t]of aj.entries())t.instances.has(this)&&(t.instances.delete(this),0===t.instances.size&&(t.cleanup(),aj.delete(e)))}};tj=yN(ej),rj=new WeakMap,nj=new WeakSet,oj=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=qL(f),m=qL(c),g=!XN(c,f),b=new KL(c,{frameTransform:g?m:null,ignoreTransforms:!g}),v=m.scaleX/h.scaleX,y=m.scaleY/h.scaleY;let x,S,{width:w,height:C,top:E,left:R}=b;g&&(w/=v,C/=y);const P=new JL(f),{transition:A,translate:I,boxSizing:k,paddingBlockStart:M,paddingBlockEnd:D,paddingInlineStart:T,paddingInlineEnd:O,borderInlineStartWidth:q,borderInlineEndWidth:L,borderBlockStartWidth:N,borderBlockEndWidth:j}=ML(c),_="clone"===d,z="content-box"===k,F=z?parseInt(T)+parseInt(O)+parseInt(q)+parseInt(L):0,H=z?parseInt(M)+parseInt(D)+parseInt(N)+parseInt(j):0,$="move"===d||this.overlay?null:KN(l,_?"clone":"hidden"),B=yM((()=>QL(o.dragOperation.activatorEvent)));if("none"!==I){const e=NL(I);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=yM((()=>s.current));p.transformOrigin={x:(e.x-R*h.scaleX-h.x)/(w*h.scaleX),y:(e.y-E*h.scaleY-h.y)/(C*h.scaleY)}}const{transformOrigin:W}=p,V=E*h.scaleY+h.y,U=R*h.scaleX+h.x;if(!p.coordinates&&(p.coordinates={x:U,y:V},1!==v||1!==y)){const{scaleX:e,scaleY:t}=m,{x:r,y:n}=W;p.coordinates.x+=(w*e-w)*r,p.coordinates.y+=(C*t-C)*n}p.dimensions||(p.dimensions={width:w,height:C}),p.frameTransform||(p.frameTransform=h);const G=p.coordinates.x-U,Y=p.coordinates.y-V,K=(p.dimensions.width*p.frameTransform.scaleX-w*h.scaleX)*W.x,X=(p.dimensions.height*p.frameTransform.scaleY-C*h.scaleY)*W.y,J=G/h.scaleX+K,Z=Y/h.scaleY+X,Q={left:R+J,top:E+Z};f.setAttribute(WN,"true");const ee=yM((()=>a.transform)),te=null!=(t=p.translate)?t:{x:0,y:0},re=`${ee.x*h.scaleX+te.x}px ${ee.y*h.scaleY+te.y}px 0`,ne=A?`${A}, translate 0ms linear`:"";if(P.set({width:w-F,height:C-H,top:Q.top,left:Q.left,translate:re,transition:ne,scale:g?`${v} ${y}`:"","transform-origin":`${100*W.x}% ${100*W.y}%`},BN),$&&(c.insertAdjacentElement("afterend",$),null==i?void 0:i.rootElement)){("function"==typeof i.rootElement?i.rootElement(l):i.rootElement).appendChild(c)}xL(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),SL(f),f.addEventListener("beforetoggle",JN));const oe=new ResizeObserver((()=>{if(!$)return;const e=new KL($,{frameTransform:h,ignoreTransforms:!0}),t=null!=W?W:{x:1,y:1},r=(w-e.width)*t.x+J,n=(C-e.height)*t.y+Z;if(P.set({width:e.width-F,height:e.height-H,top:E+n,left:R+r},BN),null==x||x.takeRecords(),ZN(c)&&ZN($)){const e=Array.from(c.cells),t=Array.from($.cells);for(const[r,n]of e.entries()){const e=t[r];n.style.width=`${e.offsetWidth}px`}}a.shape=new KL(f)})),ie=new KL(f);yM((()=>a.shape=ie));const ae=Lq(f),se=e=>{this.manager.actions.stop({event:e})};B&&ae.addEventListener("resize",se),"idle"===yM((()=>l.status))&&requestAnimationFrame((()=>l.status="dragging")),$&&(oe.observe($),x=new MutationObserver((e=>{let t=!1;for(const r of e){if(r.target!==c){t=!0;continue}if("attributes"!==r.type)continue;const e=r.attributeName;if(e.startsWith("aria-")||UN.includes(e))continue;const n=c.getAttribute(e);if("style"===e){if(XL(c)&&XL($)){const e=c.style;for(const t of Array.from($.style))""===e.getPropertyValue(t)&&$.style.removeProperty(t);for(const t of Array.from(e)){if(GN.includes(t)||t.startsWith(BN))continue;const r=e.getPropertyValue(t);$.style.setProperty(t,r)}}}else null!==n?$.setAttribute(e,n):$.removeAttribute(e)}t&&_&&($.innerHTML=c.innerHTML)})),x.observe(c,{attributes:!0,subtree:!0,childList:!0}),S=new MutationObserver((e=>{for(const t of e)if(0!==t.addedNodes.length)for(const e of Array.from(t.addedNodes)){if(e.contains(c)&&c.nextElementSibling!==$)return c.insertAdjacentElement("afterend",$),void SL(f);if(e.contains($)&&$.previousElementSibling!==c)return $.insertAdjacentElement("beforebegin",c),void SL(f)}})),S.observe(c.ownerDocument.body,{childList:!0,subtree:!0}));const le=null==(r=o.dragOperation.source)?void 0:r.id,ue=()=>{var e;if(!B||null==le)return;const t=o.registry.draggables.get(le),r=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;jq(r)&&r.focus()},ce=()=>{null==x||x.disconnect(),null==S||S.disconnect(),oe.disconnect(),ae.removeEventListener("resize",se),xL(f)&&(f.removeEventListener("beforetoggle",JN),f.removeAttribute("popover")),f.removeAttribute(WN),P.reset(),l.status="idle";const e=null!=n.current.translate;$&&(e||$.parentElement!==f.parentElement)&&f.isConnected&&$.replaceWith(f),null==$||$.remove()},de=DD((()=>{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=yM((()=>a.modifiers)),l=yM((()=>{var e;return null==(e=a.shape)?void 0:e.current})),u=B?"250ms cubic-bezier(0.25, 1, 0.5, 1)":"0ms linear";if(P.set({transition:`${A}, translate ${u}`,translate:`${o.x}px ${o.y}px 0`},BN),null==x||x.takeRecords(),l&&l!==ie&&i&&!s.length){const e=tT.delta(o,i);a.shape=rT.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new KL(f);n.current.translate=o}}),(function(){if(a.status.dropped){this.dispose(),l.status="dropping";let e=n.current.translate;const t=null!=e;if(e||c===f||(e={x:0,y:0}),!e)return void ce();const r=()=>{var r,n;{SL(f);const[,o]=null!=(r=Mq(f,(e=>"translate"in e)))?r:[];null==o||o.pause();const i=null!=$?$:c,a={frameTransform:XN(f,i)?null:void 0},s=new KL(f,a),u=null!=(n=NL(ML(f).translate))?n:e,d=new KL(i,a),p=rT.delta(s,d,l.alignment),h={x:u.x-p.x,y:u.y-p.y},m=Math.round(s.intrinsicHeight)!==Math.round(d.intrinsicHeight)?{minHeight:[`${s.intrinsicHeight}px`,`${d.intrinsicHeight}px`],maxHeight:[`${s.intrinsicHeight}px`,`${d.intrinsicHeight}px`]}:{},g=Math.round(s.intrinsicWidth)!==Math.round(d.intrinsicWidth)?{minWidth:[`${s.intrinsicWidth}px`,`${d.intrinsicWidth}px`],maxWidth:[`${s.intrinsicWidth}px`,`${d.intrinsicWidth}px`]}:{};P.set({transition:A},BN),f.setAttribute($N,""),null==x||x.takeRecords(),BL({element:f,keyframes:gN(mN(mN({},m),g),{translate:[`${u.x}px ${u.y}px 0`,`${h.x}px ${h.y}px 0`]}),options:{duration:t||f!==c?250:0,easing:"ease"}}).then((()=>{f.removeAttribute($N),null==o||o.finish(),ce(),requestAnimationFrame(ue)}))}};o.renderer.rendering.then(r)}}));return()=>{ce(),de()}},ij=function(){var e,t,r;const{status:n,source:o,target:i}=this.manager.dragOperation,{nonce:a}=null!=(e=this.options)?e:{};if(n.initializing){const e=zq(null!=(t=null==o?void 0:o.element)?t:null),n=zq(null!=(r=null==i?void 0:i.element)?r:null),s=new Set([e,n]);for(const e of s){let t=aj.get(e);if(!t){const r=document.createElement("style");r.textContent=YN,a&&r.setAttribute("nonce",a),e.head.prepend(r);const n=new MutationObserver((t=>{for(const n of t)if("childList"===n.type){const t=Array.from(n.removedNodes);t.length>0&&t.includes(r)&&e.head.prepend(r)}}));n.observe(e.head,{childList:!0}),t={cleanup:()=>{n.disconnect(),r.remove()},instances:new Set},aj.set(e,t)}t.instances.add(this)}}},RN(tj,4,"overlay",QN,sj,rj),CN(tj,sj),sj.configure=HT(sj);var lj,uj,cj,dj,pj,fj,hj,mj=sj,gj=!0;cj=[ID],dj=_L.Forward,lj=[ID],uj=_L.Reverse;var bj=class{constructor(){kN(this,fj,EN(pj,8,this,gj)),EN(pj,11,this),kN(this,hj,EN(pj,12,this,gj)),EN(pj,15,this)}isLocked(e){return e!==_L.Idle&&(null==e?this[_L.Forward]===gj&&this[_L.Reverse]===gj:this[e]===gj)}unlock(e){e!==_L.Idle&&(this[e]=false)}};pj=yN(null),fj=new WeakMap,hj=new WeakMap,RN(pj,4,dj,cj,bj,fj),RN(pj,4,uj,lj,bj,hj),CN(pj,bj);var vj,yj,xj,Sj,wj,Cj,Ej=[_L.Forward,_L.Reverse],Rj=class{constructor(){this.x=new bj,this.y=new bj}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},Pj=class extends BT{constructor(e){super(e);const t=PM(new Rj);let r=null;this.signal=t,NM((()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new Rj);const{delta:o}=e.dragOperation.position;if(r){const e={x:Aj(o.x,r.x),y:Aj(o.y,r.y)},n=t.peek();bM((()=>{for(const t of dT)for(const r of Ej)e[t]===r&&n[t].unlock(r);t.value=n}))}r=o}))}get current(){return this.signal.peek()}};function Aj(e,t){return Math.sign(e-t)}var Ij=class extends(yj=VT,vj=[ID],yj){constructor(e){super(e),kN(this,Sj,EN(xj,8,this,!1)),EN(xj,11,this),kN(this,wj),kN(this,Cj,(()=>{if(!IN(this,wj))return;const{element:e,by:t}=IN(this,wj);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 MN(this,wj,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:kj(n.x),y:kj(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=EL(e,n);if(r.x||r.y){const{speed:r,direction:s}=HL(e,o,i);if(a)for(const e of dT)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=IN(this,wj))?void 0:t.by;if(this.autoScrolling&&r){if(r.x&&!a||r.y&&!l)continue}return MN(this,wj,{element:e,by:{x:a,y:l}}),PL.schedule(IN(this,Cj)),!0}}}}}return MN(this,wj,void 0),!1};let t=null,r=null;const n=PD((()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=Vq(zq(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t})),o=PD((()=>{const t=n.value,{documentElement:o}=zq(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=OL(n,{excludeElement:!1});return r=e,e}}if(t){const e=OL(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null}),AD);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new Pj(e),this.destroy=e.monitor.addEventListener("dragmove",(t=>{!this.disabled&&!t.defaultPrevented&&QL(e.dragOperation.activatorEvent)&&t.by&&this.scroll({by:t.by})&&t.preventDefault()}))}};function kj(e){return e>0?_L.Forward:e<0?_L.Reverse:_L.Idle}xj=yN(yj),Sj=new WeakMap,wj=new WeakMap,Cj=new WeakMap,RN(xj,4,"autoScrolling",vj,Ij,Sj),CN(xj,Ij);var Mj,Dj=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()})),Tj=class extends BT{constructor(e,t){super(e);const r=e.registry.plugins.get(Ij);if(!r)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=NM((()=>{if(this.disabled)return;const{position:t,status:n}=e.dragOperation;if(n.dragging){if(r.scroll()){r.autoScrolling=!0;const e=setInterval((()=>Dj.schedule(r.scroll)),10);return()=>{clearInterval(e)}}r.autoScrolling=!1}}))}},Oj={capture:!0,passive:!0},qj=class extends VT{constructor(e){super(e),kN(this,Mj),this.handleScroll=()=>{null==IN(this,Mj)&&MN(this,Mj,setTimeout((()=>{this.manager.collisionObserver.forceUpdate(!1),MN(this,Mj,void 0)}),50))};const{dragOperation:t}=this.manager;this.destroy=NM((()=>{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,Oj),()=>{o.removeEventListener("scroll",this.handleScroll,Oj)}}}))}};Mj=new WeakMap;function Lj(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var Nj,jj=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},shouldActivate(e){var t;const{event:r,source:n}=e,o=null!=(t=n.handle)?t:n.element;return r.target===o}}),_j=class extends bq{constructor(e,t){super(e),this.manager=e,this.options=t,kN(this,Nj,[]),this.listeners=new Gq,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!ZL(e.target))return;if(t.disabled)return;const{keyboardCodes:n=jj.keyboardCodes,shouldActivate:o=jj.shouldActivate}=null!=r?r:{};n.start.includes(e.code)&&this.manager.dragOperation.status.idle&&o({event:e,source:t,manager:this.manager})&&this.handleStart(e,t,r)}}bind(e,t=this.options){const r=NM((()=>{var r;const n=null!=(r=e.handle)?r:e.element,o=r=>{QL(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(),$L(n);const{center:o}=new KL(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=zq(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];IN(this,Nj).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=jj.keyboardCodes}=null!=r?r:{};if(Fj(e,[...n.end,...n.cancel])){e.preventDefault();const t=Fj(e,n.cancel);this.handleEnd(e,t)}else Fj(e,n.up)?this.handleMove("up",e):Fj(e,n.down)&&this.handleMove("down",e),Fj(e,n.left)?this.handleMove("left",e):Fj(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:jj.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(Tj);!1===(null==e?void 0:e.disabled)&&(e.disable(),IN(this,Nj).push((()=>{e.enable()})))}cleanup(){IN(this,Nj).forEach((e=>e())),MN(this,Nj,[])}destroy(){this.cleanup(),this.listeners.clear()}};Nj=new WeakMap,_j.configure=HT(_j),_j.defaults=jj;var zj=_j;function Fj(e,t){return t.includes(e.code)}var Hj,$j,Bj=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!ZL(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?{delay:{value:250,tolerance:5}}:function(e){if(!ZL(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?{delay:{value:200,tolerance:0}}:{delay:{value:200,tolerance:10},distance:{value:5}}}}),Wj=class extends bq{constructor(e,t){super(e),this.manager=e,this.options=t,kN(this,Hj,new Set),kN(this,$j),this.listeners=new Gq,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){var r;const{activationConstraints:n=Bj.activationConstraints}=null!=(r=this.options)?r:{};return"function"==typeof n?n(e,t):n}bind(e,t=this.options){const r=NM((()=>{var r;const n=new AbortController,{signal:o}=n,i=r=>{(function(e){if(!e)return!1;const{PointerEvent:t}=Lq(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&&(Kj(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||!ZL(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{target:n}=e,o=jq(n)&&n.draggable&&"true"===n.getAttribute("draggable"),i=qL(t.element);this.initialCoordinates={x:e.clientX*i.scaleX+i.x,y:e.clientY*i.scaleY+i.y};const a=this.activationConstraints(e,t);if(e.sensor=this,(null==a?void 0:a.delay)||(null==a?void 0:a.distance)){const{delay:r}=a;if(r){const n=setTimeout((()=>this.handleStart(t,e)),r.value);MN(this,$j,(()=>{clearTimeout(n),MN(this,$j,void 0)}))}}else this.handleStart(t,e);const s=zq(e.target),l=this.listeners.bind(s,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"dragstart",listener:o?this.handleCancel:Uj,options:{capture:!0}}]);IN(this,Hj).add((()=>{var e;l(),null==(e=IN(this,$j))||e.call(this),this.initialCoordinates=void 0}))}handlePointerMove(e,t){const r={x:e.clientX,y:e.clientY},n=qL(t.element);if(r.x=r.x*n.scaleX+n.x,r.y=r.y*n.scaleY+n.y,this.manager.dragOperation.status.dragging)return e.preventDefault(),e.stopPropagation(),this.latest.event=e,this.latest.coordinates=r,void PL.schedule(this.handleMove);if(!this.initialCoordinates)return;const o={x:r.x-this.initialCoordinates.x,y:r.y-this.initialCoordinates.y},i=this.activationConstraints(e,t),{distance:a,delay:s}=null!=i?i:{};if(a){if(null!=a.tolerance&&iT(o,a.tolerance))return this.handleCancel(e);if(iT(o,a.value))return this.handleStart(t,e)}return s&&iT(o,s.tolerance)?this.handleCancel(e):void 0}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){var r;const{manager:n,initialCoordinates:o}=this;if(null==(r=IN(this,$j))||r.call(this),!o||!n.dragOperation.status.idle)return;if(t.defaultPrevented)return;if(n.actions.start({coordinates:o,event:t,source:e}).signal.aborted)return this.cleanup();t.preventDefault();const i=zq(t.target),a=i.body;a.setPointerCapture(t.pointerId);const s=this.listeners.bind(i,[{type:"touchmove",listener:Uj,options:{passive:!1}},{type:"click",listener:Uj},{type:"contextmenu",listener:Uj},{type:"keydown",listener:this.handleKeyDown},{type:"lostpointercapture",listener:e=>{e.target===a&&this.handlePointerUp(e)}}]);IN(this,Hj).add(s)}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},IN(this,Hj).forEach((e=>e())),IN(this,Hj).clear()}destroy(){this.cleanup(),this.listeners.clear()}};Hj=new WeakMap,$j=new WeakMap,Wj.configure=HT(Wj),Wj.defaults=Bj;var Vj=Wj;function Uj(e){e.preventDefault()}function Gj(){}var Yj=new WeakSet;function Kj(e){e&&!Yj.has(e)&&(e.addEventListener("touchmove",Gj,{capture:!1,passive:!1}),Yj.add(e))}var Xj,Jj,Zj,Qj,e_,t_,r_,n_,o_,i_,a_,s_,l_,u_,c_,d_,p_,f_,h_={modifiers:[],plugins:[FN,Tj,class extends BT{constructor(e,t){super(e,t),this.manager=e;const r=PD((()=>{var e;return zq(null==(e=this.manager.dragOperation.source)?void 0:e.element)}));this.destroy=NM((()=>{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()}}))}},mj,class extends BT{constructor(e,t){super(e,t),this.manager=e,this.destroy=NM((()=>{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),Lj(),document.addEventListener("selectionchange",Lj,{capture:!0}),()=>{document.removeEventListener("selectionchange",Lj,{capture:!0}),e.remove()}}}))}}],sensors:[Vj,zj]},m_=class extends wq{constructor(e={}){const{plugins:t=h_.plugins,sensors:r=h_.sensors,modifiers:n=[]}=e;super(gN(mN({},e),{plugins:[qj,Ij,...t],sensors:r,modifiers:n}))}},g_=class extends(Qj=XO,Zj=[ID],Jj=[ID],Xj=[ID],Qj){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i,feedback:a="default"}=r,s=vN(r,["element","effects","handle","feedback"]);super(mN({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map($T))?t:[...r.sensors]).map((e=>{const t=e instanceof bq?e:r.registry.register(e.plugin),n=e instanceof bq?void 0:e.options;return t.bind(this,n)}));return function(){n.forEach((e=>e()))}}]},s),t),kN(this,t_,EN(e_,8,this)),EN(e_,11,this),kN(this,r_,EN(e_,12,this)),EN(e_,15,this),kN(this,n_,EN(e_,16,this)),EN(e_,19,this),this.element=n,this.handle=i,this.feedback=a}};e_=yN(Qj),t_=new WeakMap,r_=new WeakMap,n_=new WeakMap,RN(e_,4,"handle",Zj,g_,t_),RN(e_,4,"element",Jj,g_,r_),RN(e_,4,"feedback",Xj,g_,n_),CN(e_,g_);var b_=class extends(a_=JO,i_=[ID],o_=[ID],a_){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=vN(r,["element","effects"]);const{collisionDetector:a=rN}=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 KL(r),o=yM((()=>this.shape));return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=PM(!1);super(gN(mN({},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 yL(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),kN(this,p_),kN(this,l_,EN(s_,8,this)),EN(s_,11,this),kN(this,f_,EN(s_,12,this)),EN(s_,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){MN(this,p_,e,d_)}get element(){var e;return null!=(e=this.proxy)?e:IN(this,p_,c_)}};function v_(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}s_=yN(a_),l_=new WeakMap,p_=new WeakSet,f_=new WeakMap,u_=RN(s_,20,"#element",i_,p_,l_),c_=u_.get,d_=u_.set,RN(s_,4,"proxy",o_,b_,f_),CN(s_,b_);var y_="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?L:E;function x_(){const e=w(0)[1];return T((()=>{e((e=>e+1))}),[e])}function S_(e,t=[],r=!1){const n=D(e);return n.current=e,function(e,t=!1){const r=D(e.peek()),n=D(!1),o=x_();return y_((()=>NM((()=>{const i=r.current,a=e.value;if(i!==a){if(r.current=a,!n.current)return;t?H(o):o()}}))),[e,t,o]),{get value(){return n.current=!0,e.peek()}}}(C((()=>PD((()=>n.current()))),t),r)}function w_(e,t){const r=D(new Map),n=x_();return y_((()=>{if(e)return NM((()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=yM((()=>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?H(n):n())}));r.current.clear()}),[e]),C((()=>e?new Proxy(e,{get(e,t){const n=e[t];return r.current.set(t,n),n}}):e),[e])}function C_(e,t){e()}function E_(e){const t=D(e);return y_((()=>{t.current=e}),[e]),t}function R_(e,t,r=E,n=Object.is){const o=D(e);r((()=>{const r=o.current;n(e,r)||(o.current=e,t(e,r))}),[t,e])}function P_(e,t){const r=D(v_(e));y_((()=>{const n=v_(e);n!==r.current&&(r.current=n,t(n))}))}var A_=Object.getOwnPropertySymbols,I_=Object.prototype.hasOwnProperty,k_=Object.prototype.propertyIsEnumerable,M_=new m_,D_=M(M_),T_=q(O((({children:e},t)=>{const[r,n]=w(0),o=D(null),i=D(null),a=C((()=>({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}))),N((()=>{e(),n((e=>e+1))}))}})),[]);return y_((()=>{var e;null==(e=i.current)||e.call(i),o.current=null}),[e,r]),j(t,(()=>a)),null}))),O_=[void 0,AD];function q_(e){var t,r=e,{children:n,onCollision:o,onBeforeDragStart:i,onDragStart:a,onDragMove:s,onDragOver:l,onDragEnd:u}=r,c=((e,t)=>{var r={};for(var n in e)I_.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&A_)for(var n of A_(e))t.indexOf(n)<0&&k_.call(e,n)&&(r[n]=e[n]);return r})(r,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const d=D(null),[p,f]=w(null!=(t=c.manager)?t:null),{plugins:h,modifiers:m,sensors:g}=c,b=E_(i),v=E_(a),y=E_(l),x=E_(s),S=E_(u),C=E_(o);return E((()=>{var e;if(!d.current)throw new Error("Renderer not found");const{renderer:t,trackRendering:r}=d.current,n=null!=(e=c.manager)?e:new m_(c);return n.renderer=t,n.monitor.addEventListener("beforedragstart",(e=>{const t=b.current;t&&r((()=>t(e,n)))})),n.monitor.addEventListener("dragstart",(e=>{var t;return null==(t=v.current)?void 0:t.call(v,e,n)})),n.monitor.addEventListener("dragover",(e=>{const t=y.current;t&&r((()=>t(e,n)))})),n.monitor.addEventListener("dragmove",(e=>{const t=x.current;t&&r((()=>t(e,n)))})),n.monitor.addEventListener("dragend",(e=>{const t=S.current;t&&r((()=>t(e,n)))})),n.monitor.addEventListener("collision",(e=>{var t;return null==(t=C.current)?void 0:t.call(C,e,n)})),N((()=>f(n))),n.destroy}),[c.manager]),R_(h,(()=>p&&(p.plugins=null!=h?h:h_.plugins)),...O_),R_(g,(()=>p&&(p.sensors=null!=g?g:h_.sensors)),...O_),R_(m,(()=>p&&(p.modifiers=null!=m?m:h_.modifiers)),...O_),er.jsxs(D_.Provider,{value:p,children:[er.jsx(T_,{ref:d,children:n}),n]})}function L_(){return S(D_)}function N_({children:e,className:t,style:r,tag:n,disabled:o}){var i;const a=D(null),s=L_(),l=null!=(i=S_((()=>null==s?void 0:s.dragOperation.source),[s]).value)?i:null,u="function"==typeof o?o(l):o;E((()=>{if(!a.current||!s||u)return;const e=s.plugins.find((e=>e instanceof mj));return e?(e.overlay=a.current,()=>{e.overlay=void 0}):void 0}),[s,u]);const c=C((()=>{if(!s)return null;const e=new Proxy(s.registry,{get:(e,t)=>"register"===t||"unregister"===t?j_:e[t]});return new Proxy(s,{get:(t,r)=>"registry"===r?e:t[r]})}),[s]);return er.jsx(D_.Provider,{value:c,children:R(n||"div",{ref:a,className:t,style:r,"data-dnd-overlay":!0},function(){if(!l||u)return null;if("function"==typeof e)return er.jsx(__,{source:l,children:e});return e}())})}function j_(){return()=>{}}function __({children:e,source:t}){return e(w_(t))}var z_,F_,H_,$_,B_,W_=Object.create,V_=Object.defineProperty,U_=Object.getOwnPropertyDescriptor,G_=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Y_=e=>{throw TypeError(e)},K_=["class","method","getter","setter","accessor","field","value","get","set"],X_=e=>void 0!==e&&"function"!=typeof e?Y_("Function expected"):e,J_=(e,t,r,n,o)=>({kind:K_[e],name:t,metadata:n,addInitializer:e=>r._?Y_("Already initialized"):o.push(X_(e||null))}),Z_=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=K_[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,U_(o,r)),h=n.length-1;h>=0;h--)(l=J_(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,X_(a)&&(f[d]=a);return f&&V_(o,r,f),o},Q_=(e,t,r)=>t.has(e)||Y_("Cannot "+r),ez=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)}},tz=class extends(H_=OD,F_=[kD],z_=[kD],H_){constructor(e){var t,r,n;super(ez.from(e),((e,t)=>ez.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)})(B_,5,this),t=this,n=0,(r=$_).has(t)?Y_("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 ez.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=ez.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(Q_(a=this,s=$_,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);bM((()=>{((e,t,r)=>{Q_(e,t,"write to private field"),t.set(e,r)})(this,$_,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(ez.from(e)),this.velocity={x:0,y:0}}};B_=(e=>{var t;return[,,,W_(null!=(t=null==e?void 0:e[G_("metadata")])?t:null)]})(H_),$_=new WeakMap,Z_(B_,2,"delta",F_,tz),Z_(B_,2,"direction",z_,tz),((e,t)=>{((e,t,r)=>{t in e?V_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,G_("metadata"),e[3])})(B_,tz);var rz=(e=>(e.Horizontal="x",e.Vertical="y",e))(rz||{});function nz(e){const t=L_();E((()=>{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(rz);const oz=()=>{const[e,t]=w(!1);return nz({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?er.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},iz=()=>{const{flags:e}=HI(jI,(e=>e.env)),t=HI(jI,(e=>e.baseProps.layout));return!e.isEnabled("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")||void 0===t.accessibleHeader||t.accessibleHeader},az=(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}),sz=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),lz=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),uz=e=>e.atTop?2:1,cz=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],dz=e=>e?.setAttribute("tabIndex","0"),pz=e=>e?.setAttribute("tabIndex","-1"),fz=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(pz)},hz=e=>{e?.focus(),dz(e)},mz=e=>{setTimeout((()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${ZC}`);hz(t)}),0)},gz=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{fz(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 JC.Down:u<s&&u++;break;case JC.Up:u>a&&u--;break;case JC.Right:if(i)break;[u,c]="rtl"===n?sz({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):lz({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case JC.Left:if(i)break;[u,c]="rtl"===n?lz({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):sz({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case JC.Home:(aI(e)||i)&&(u=a),i||(c=0);break;case JC.End:(aI(e)||i)&&(u=s),i||(c=l);break;case JC.PageDown:u=Math.min(s,u+10);break;case JC.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=cz(t,a);return hz(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}},bz=(e,t,r,n)=>{fz(t),r(e),n.enabled&&!n.active?n.focus?.():hz(cz(t,e))},vz=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!!n?.contains(o),a=o?.closest(`.${YC}`);!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${RA.First}`),r=e.querySelector(`.${RA.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},yz=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.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"})}))),xz=ic(qh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...FA,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?r:n}}))),Sz=ic("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})((({align:e,dir:t})=>({minWidth:jA,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),wz=parseInt(jA,10)/2,Cz=ic("div")({position:"absolute",bottom:-wz,left:`calc(50% - ${wz}px)`}),Ez={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},Rz=ic(Kd)({height:"100%"}),Pz=ic("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?{...Ez,whiteSpace:"nowrap",display:r?"block":void 0}:{...Ez,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"})),Az=ic("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),Iz="cell-text",kz=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const{styleService:a}=HI(jI,(e=>e.baseProps));return o?er.jsx(Pz,{"data-testid":Iz,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):er.jsx(Pz,{"data-testid":Iz,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:i??a.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},Mz=({column:e,isInteractionEnabled:t,open:r,setOpen:n,isPagination:o,forwardRef:i})=>{const{translator:a,changeSortOrder:s,interactions:l,embed:u,app:c,styleService:d,layout:p,direction:f}=HI(jI,(e=>e.baseProps)),h=HI(jI,(t=>t.columnWidths[e.pageColIdx])),m=HI(jI,(e=>e.baseProps.model)),g=D(null),b=D(null),v=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=_C({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:_A});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:d,column:e,columnWidth:h}),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?er.jsx(Sk,{height:jA,"data-testid":"head-cell-sort-ascending-icon"}):er.jsx(Ek,{height:jA,"data-testid":"head-cell-sort-descending-icon"}),a=r?er.jsx(Sz,{align:t,dir:o,children:i}):void 0,s=n?er.jsx(QA,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:er.jsx(yz,{height:jA,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(e,v,f);return er.jsxs(ZA,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:VA(e,o,f),children:[S,er.jsxs(JA,{className:"sn-table-head-label",textAlign:e.headTextAlign,direction:f,isPagination:o,children:[y,er.jsx(kz,{forwardRef:i,isPagination:o,isHeadCell:!0,children:e.label}),x]}),t?er.jsxs(er.Fragment,{children:[er.jsx(_k,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:a,anchorRef:g,menuAvailabilityFlags:{[Lk.Sorting]:!0,[Lk.Searching]:!0,[Lk.Selections]:!0,[Lk.AdjusterHeaderSize]:!0},open:r,setOpen:n,interactions:l,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),s(e,r))},searchRelatedArgs:{embed:u,listboxRef:b},selectionRelatedArgs:{app:c,qStateName:p.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:mz},shouldShowMenuIcon:v.shouldShowMenuIcon,model:m,direction:f,isPagination:o,isAccessibleHeader:!0}),er.jsx(XA,{ref:b,direction:f,isPagination:o}),er.jsx(XA,{ref:g,direction:f})]}):null]})},Dz=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.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"})}))),Tz=(e,t)=>e.isCyclic&&t,Oz=({column:e})=>{const{direction:t,model:r,styleService:n}=HI(jI,(e=>e.baseProps)),o=x.useRef(null),[i,a]=x.useState(!1),s=YI({model:r,headerData:{...e,dimensionInfoIndex:e.colIdx}});return er.jsxs(er.Fragment,{children:[er.jsx(tI,{hoverBackground:n.headerMenuHoverBackground,activeBackground:n.headerMenuActiveBackground,isActive:i,onClick:e=>{e.stopPropagation(),a(!0)},children:er.jsx(Dz,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),er.jsx(mk,{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:Rk,isActive:e.groupDimensionPos===r})))}]],anchorEl:o.current,direction:t,isPagination:!1})]})},qz=e=>e.isLocked,Lz=({column:e})=>{const t=HI(jI,(e=>e.baseProps.app)),r=HI(jI,(e=>e.baseProps.layout.qStateName)),n=HI(jI,(e=>e.baseProps.styleService));return er.jsx(tI,{hoverBackground:n.headerMenuHoverBackground,onClick:n=>{n.stopPropagation(),(async(e,t,r)=>{const n=bk(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:er.jsx(yz,{height:16,"data-testid":"head-cell-lock-icon"})})},Nz=({column:e,open:t,setOpen:r,isPagination:n})=>{const{translator:o,interactions:i,app:a,layout:s,direction:l,changeSortOrder:u,embed:c,styleService:d}=HI(jI,(e=>e.baseProps)),p=HI(jI,(e=>e.baseProps.model)),f=x.useRef(null),h=x.useRef(null);return er.jsxs(tI,{hoverBackground:d.headerMenuHoverBackground,activeBackground:d.headerMenuActiveBackground,isActive:t,order:e.isDim?void 0:-1,children:[er.jsx(_k,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:o,anchorRef:f,menuAvailabilityFlags:{[Lk.Sorting]:!0,[Lk.Searching]:!0,[Lk.Selections]:!0,[Lk.AdjusterHeaderSize]:!0},open:t,setOpen:r,interactions:i,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),u(e,r))},searchRelatedArgs:{embed:c,listboxRef:h},selectionRelatedArgs:{app:a,qStateName:s.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:mz},shouldShowMenuIcon:!0,model:p,direction:l,isPagination:n,isAccessibleHeader:!1,iconSize:16}),er.jsx(XA,{ref:h,direction:l,isPagination:n}),er.jsx(XA,{ref:f,direction:l})]})},jz=e=>e.at(0)?.contentBoxSize.at(0)?.blockSize,_z=(e,t)=>{const r=D(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])},zz=ic(Kd)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),Fz=({children:e})=>{const t=x.useRef(null),[r,n]=w((()=>new Set(e.filter((({props:e})=>void 0!==e.prio&&e.children)).map((({key:e})=>e))))),o=C((()=>Array.from(e).sort(((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)))),[e]),i=T((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 _z(t,i),er.jsx(zz,{ref:t,"data-testid":"responsive-container",children:e.filter((e=>!r.has(e.key)))})};Fz.Item=({children:e})=>e;const Hz=(e,t)=>!e.isLocked&&e.isDim&&t,$z=({column:e,open:t,setOpen:r})=>{const{embed:n,app:o,direction:i,layout:a,styleService:s}=HI(jI,(e=>e.baseProps)),l=x.useRef(null),u=T((()=>{r(!1)}),[r]),c=gk({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:n,listboxRef:l},selectionRelatedArgs:{qStateName:a.qStateName},direction:i,onPopoverClose:u});return er.jsx(tI,{hoverBackground:s.headerMenuHoverBackground,activeBackground:s.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),c(),r(!0)},children:er.jsx(kk,{ref:l,height:16,"data-testid":"head-cell-search-icon"})})},Bz=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.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"})}))),Wz=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.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"})}))),Vz=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?er.jsx(Wz,{height:jA,"data-testid":"head-cell-sort-ascending-icon"}):er.jsx(Bz,{height:jA,"data-testid":"head-cell-sort-descending-icon"});return r?er.jsx(Cz,{children:n}):void 0},Uz=0,Gz=1,Yz=2,Kz=3,Xz=({column:e,open:t,setOpen:r,isPagination:n,forwardRef:o})=>{const{styleService:i}=HI(jI,(e=>e.baseProps)),a=(()=>{const e=HI(jI,(e=>e.baseProps.interactions.active)),t=HI(jI,(e=>e.baseProps.selectionsAPI?.isModal()));return!!e&&!t})(),{measureText:s}=_C(i.header),[l,u]=x.useState(!1);return er.jsxs(Fz,{children:[er.jsx(Fz.Item,{prio:Yz,minWidth:KA,children:qz(e)?er.jsx(Lz,{column:e}):null},"Lock"),er.jsx(Fz.Item,{prio:Gz,minWidth:KA,children:Tz(e,a)?er.jsx(Oz,{column:e}):null},"Cyclic"),er.jsx(Fz.Item,{ignore:!0,children:er.jsx(Vz,{column:e})},"Sort"),er.jsx(Fz.Item,{minWidth:s(e.label)+8,children:er.jsx(eI,{justifyContent:e.headTextAlign,children:er.jsx(kz,{forwardRef:o,isPagination:n,isHeadCell:!0,children:e.label})})},"Text"),er.jsx(Fz.Item,{prio:Uz,minWidth:KA,children:l||Hz(e,a)?er.jsx($z,{open:l,setOpen:u,column:e}):null},"Search"),er.jsx(Fz.Item,{prio:Kz,minWidth:KA,children:a?er.jsx(Nz,{column:e,open:t,setOpen:r,isPagination:n}):null},"Menu")]})},Jz=ic("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e})((({background:e,applicableStyle:t})=>({...t,background:e}))),Zz=()=>{},Qz=({column:e,isPagination:t})=>{const{styleService:r,direction:n}=HI(jI,(e=>e.baseProps)),o=HI(jI,(e=>e.showRightBorder)),i=HI(jI,(e=>e.tableData.totalsPosition)),a=!1,s=iz()?Mz:Xz;return er.jsx(Jz,{className:"sn-table-cell",applicableStyle:{...r.header,...az(r,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:GA(n,a,o),borderLeftWidth:YA(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:er.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:Zz})})},eF=({isPagination:e})=>{const{columns:t}=HI(jI,(e=>e.tableData)),[r,n]=w();nz({onDragStart:e=>{const t=e.operation.source?.id;n(t)},onDragEnd:()=>{}});const o=r?t.find((e=>e.id===r)):void 0,i=e?"calc(100% + 9px)":"100%";return o?er.jsx(N_,{children:er.jsx("div",{style:{background:"white",height:i,display:"flex",position:"relative"},children:er.jsx(Qz,{column:o,isPagination:e})})}):null},tF=h_.sensors.filter((e=>e!==zj)),rF=h_.plugins.filter((e=>e!==FN)),nF=({children:e})=>{const{model:t}=HI(jI,(e=>e.baseProps)),{columns:r}=HI(jI,(e=>e.tableData));return er.jsx(q_,{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:tF,plugins:rF,children:e})};function oF(e,t){const r=D(!1);E((()=>{r.current?e():r.current=!0}),t)}const iF=()=>{const{downloadService:e}=HI(jI,(e=>e.baseProps));E((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))},aF=(e,t,r)=>{const{rootElement:n,keyboard:o}=HI(jI,(e=>e.baseProps)),{totalColumnCount:i,totalRowCount:a,rows:s,totalsPosition:l}=HI(jI,(e=>e.tableData)),u=HI(jI,(e=>e.focusedCellCoord)),c=HI(jI,(e=>e.setFocusedCellCoord)),d=HI(jI,(e=>e.baseProps.selectionsAPI?.isModal()));oF((()=>{const r=((e,t,r=!1)=>{const n=[uz(t),e[1]];return r?n:PA})(u,l,d);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(fz(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=cz(t,e);r.current?(hz(s),r.current=!1):dz(s),n&&(a({keys:[s?.textContent??""]}),iI(a,s,n))})({resetCellCoord:r,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:d,keyboard:o,announce:t})}),[s.length,a,i,r])},sF=(e,t,r)=>{E((()=>{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])},lF=e=>{IC(e),aI(e)&&aE(e.currentTarget)},uF=e=>{cI(e.evt)&&(IC(e.evt),gz(e))},cF=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!cI(t))return;IC(t);const i=((e,t)=>[e.pageRowIdx+uz(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?uz(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=gz({...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:CA.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):iI(o,a,i)})({...e,nextCell:s})},dF=e=>{const{evt:t}=e;sI(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{IC(e);const a=Math.ceil(t/r)-1;e.key===JC.Right&&n<a?(o(),i(n+1)):e.key===JC.Left&&n>0&&(o(),i(n-1))})(e):t.key===JC.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(IC(e),t.blur?.(!0))})(e):lI(t.key)&&IC(t)},pF=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(wA.Disabled))return void IC(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case JC.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{IC(e),t.isSelectable&&r&&n({type:CA.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case JC.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{IC(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case JC.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(IC(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case JC.C:lF(t);break;case JC.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(IC(e),AC(e.currentTarget,t,e.shiftKey))})(n);break;default:cF(n)}},fF=e=>{const[t,r]=w(0),[n,o]=w(0),i=HI(jI,(e=>e.isAdjustingWidth));return _z(e,(t=>{if(e.current&&!i){const e=t.at(0)?.borderBoxSize.at(0)?.inlineSize??0,n=t.at(0)?.borderBoxSize.at(0)?.blockSize??0,i=t.at(0)?.contentBoxSize.at(0)?.inlineSize??0,a=n-(t.at(0)?.contentBoxSize.at(0)?.blockSize??0);o(e-i),r(a)}})),{xScrollbarWidth:t,yScrollbarWidth:n}},hF=ic("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),mF=ic(_h,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"}))),gF=ic(wh,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),bF=()=>er.jsxs(er.Fragment,{children:[er.jsx(hF,{className:RA.First,"data-testid":RA.First,"aria-live":"polite","aria-atomic":"true"}),er.jsx(hF,{className:RA.Second,"data-testid":RA.Second,"aria-live":"polite","aria-atomic":"true"})]}),vF=e=>{const t=D(new Map),r=D(null);E((()=>{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=T(((e,n)=>{t.current.set(e,n),r.current?.observe(e)}),[t,r]),o=T((e=>{t.current.delete(e),r.current?.unobserve(e)}),[r,t]);return C((()=>({addTask:n,removeTask:o})),[n,o])},yF=e=>new ResizeObserver((t=>{t.forEach((t=>{const r=e.get(t.target);r?.(t)}))})),xF=()=>vF(yF),SF=({selectionsAPI:e,selectionDispatch:t,updateShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{E((()=>{const i=()=>{t({type:CA.Reset})},a=()=>{t({type:CA.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])},wF=e=>{e.stopPropagation()},CF=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:wF,color:SC.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),EF=({href:e,text:t,interactions:r,color:n})=>er.jsx(Gp,{...CF({href:e,text:t,interactions:r,color:n}),children:t}),RF=window.requestIdleCallback??(e=>setTimeout((()=>{e({})}),0)),PF=window.cancelIdleCallback??(e=>{clearTimeout(e)}),AF="qDimensionInfo/0",IF="qMeasureInfo/0",kF="x",MF="y",DF=e=>({key:"bars",type:"box",data:{extract:{field:AF,props:{start:0,end:{field:IF}}}},settings:{major:{scale:kF},minor:{scale:MF},box:{maxWidthPx:8,fill:{fn:e}}}}),TF=e=>({key:"p",type:"point",data:{extract:{field:AF,props:{y:{field:IF}}}},settings:{x:{scale:kF},y:{scale:MF},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),OF=({qNum:e})=>void 0===e?0:Math.sign(e),qF=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=RC(e,t?.negative,r),a=RC(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:AF,props:{start:0,end:{field:IF,value:OF}}}},settings:{major:{scale:kF},minor:{scale:MF},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}}}}},LF=(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=RC(e,t?.main,o),l=RC(e,t?.max,s),u=RC(e,t?.min,s),c=RC(e,t?.first,s),d=RC(e,t?.last,s);return e=>{const t=MF in e.datum?MF:"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[DF(a)];case"dots":return[TF(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:AF,props:{v:{field:IF}}}},settings:{coordinates:{major:{scale:kF},minor:{scale:MF,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(RC(e,n?.main,e.getDataColorSpecials().primary));return r?[t,TF(a)]:[t]}case"posNeg":return[qF(e,n)];default:return[]}},NF=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"}),jF=(e,t,r,n)=>({y:{data:{field:IF},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:AF}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),_F=B();_F.use($),_F.renderer.prio(["canvas"]);const zF={resolve:()=>{},promise:{}},FF=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=D(e.isDownloadedAsPDForImage?At():zF);return{addChartPromiseToQueue:T((()=>{e.waitForPromise(t.current.promise)}),[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:T((()=>{if(null===t.current||null!==e.current)return;u();r.current=RF((()=>{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 _F.chart({element:e,data:{type:"q",key:"qHyperCube",data:NF(s)},settings:{scales:jF(a,l,u,i),components:LF(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:T((()=>{null!==r.current&&PF(r.current),r.current=null,l()}),[r,l])}},HF=e=>{const t=D(null),r=D(!1);return T((n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(PF(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=RF((()=>{e.current?.update()}),{timeout:2e3})):r.current=!1:r.current=!0}),[e])},$F=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=D(null),l=D(null),u=D(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=FF({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=T((e=>{e.isIntersecting?n():r()}),[n,r]);E((()=>{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})=>{E((()=>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=HF(t);E((()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}}),[e,n,r])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},BF=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=$F({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return er.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},WF=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}`},VF=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},UF=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{direction:o}=HI(jI,(e=>e.baseProps)),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=er.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:VF(s),objectPosition:WF(l),overflow:"hidden"}});return n?er.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?$A(o,e):void 0},children:c}):c},GF=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})}))),YF=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.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"})}))),KF=O(((e,t)=>er.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:[er.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"}),er.jsx("use",{fillRule:"evenodd"})]}))),XF=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.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"})}))),JF=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.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"})}))),ZF=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.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"})}))),QF=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"M2 7h12v2H2z"})}))),eH=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.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"})}))),tH=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.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"})}))),rH=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.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"})}))),nH=O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.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"})}))),oH={m:O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),"ï":rH,R:Wz,S:Bz,T:O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.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:O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.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:tH,Q:ZF,"è":O(((e,t)=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:er.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"})}))),"¢":XF,"©":KF,"23F4":JF,2013:nH,"&":eH,add:GF,"minus-2":QF,dot:YF},iH=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&oH[t];return o&&er.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:er.jsx(o,{style:{height:e}})})},aH=({representation:e,cellValue:t,paginationCellAlign:r})=>{const{styleService:n,theme:o,direction:i}=HI(jI,(e=>e.baseProps)),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=qA(e,t,i,o),d=(e=>parseInt(e||jA,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=c||{};return l?er.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&&iH({size:d,iconKey:f,color:p}),er.jsx(kz,{isNumeric:!0,children:a}),"right"===h&&iH({size:d,iconKey:f,color:p})]}):iH({size:d,iconKey:f,color:p})},sH=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(t??e.grid.contentLineClamp):e.contentLineHeight,lH=({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}=HI(jI,(e=>e.baseProps)),h=HI(jI,(e=>e.selectionState.api?.isActive()));let m=t.representation.text;if(t.representation.type!==TE.Link||h||(m=er.jsx(EF,{href:t.representation.url,text:t.representation.text,interactions:l,color:r.cellForegroundColor})),t.representation.type===TE.Image)return er.jsx(UF,{representation:t.representation,textStyle:r,maxImageHeight:sH(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!==TE.Indicator||Number.isNaN(g)?t.representation.type===TE.MiniChart&&t.representation.miniChart&&!t.isNull?er.jsx(BF,{height:sH(u,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:c,isSnapshot:!!d.snapshotData,direction:f,downloadService:p}):er.jsx(kz,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:m}):er.jsx(aH,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:s})},uH=()=>er.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:er.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),cH=ic("div")({"& path":{stroke:"none !important"}}),dH=({children:e,cellSelectionState:t})=>t===wA.Selected?er.jsxs(Az,{children:[e,er.jsx(cH,{children:er.jsx(uH,{})})]}):e,pH=e=>{const t=function(){const e=L_(),t=S_((()=>null==e?void 0:e.dragOperation.source),[e]),r=S_((()=>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},fH=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:CA.SelectMultiEnd})};r({type:CA.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:CA.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:CA.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),hH=(e,t)=>{const{paginationNeeded:r,totalsPosition:n}=HI(jI,(e=>e.tableData)),{selectionsAPI:o,rootElement:i,keyboard:a,interactions:s,direction:l}=HI(jI,(e=>e.baseProps)),u=HI(jI,(e=>e.setFocusedCellCoord)),c=HI(jI,(e=>e.selectionDispatch)),d=!!s.active&&!!s.select,p=s=>{pF({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===JC.Shift&&t({type:CA.SelectMultiEnd})})(e,c)},h=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;bz([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}=fH(h,e,c,t);return{onKeyDown:p,onKeyUp:f,onMouseDown:m,onMouseUp:b,onMouseOver:g}},mH=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=wA.Inactive;return o?.isModal()&&(i=r!==e.selectionColIdx?wA.Disabled:n.has(e.qElemNumber)?wA.Selected:wA.Possible),i},gH=(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},bH=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},vH=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return bH(t,e,n?"even":"odd")}return e},yH=(e,t)=>{const{styleService:r}=HI(jI,(e=>e.baseProps)),n=HI(jI,(t=>mH(e,t.selectionState)));let o=t.isDim?r.dimension.values:r.measure.values;o=vH(o,r,e),o=gH(o,r,e);const i=EI(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===wA.Selected?{...e,...r}:t===wA.Disabled?{...e,background:`${LA}, ${e.background}`}:e}(C((()=>e.isNull?o:EI(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}},xH=ic(kh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),SH=ic(Xh,{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}}}))),wH=ic(qh,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...FA,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}))),CH=ic(qh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...FA,...e,fontWeight:_A,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?r:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",zIndex:t?1:void 0}))),EH=({cell:e,announce:t,column:r,columnIndex:n,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i})=>{const{interactions:a,direction:s}=HI(jI,(e=>e.baseProps)),{onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p}=hH(e,t),{cellStyle:f,representationStyle:h,cellSelectionState:m}=yH(e,r),g=pH(r.id);return er.jsx(wH,{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} ${XC}`,title:a.passive?e.representation.text:void 0,onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p,children:er.jsx(dH,{cellSelectionState:m,children:er.jsx(lH,{cell:e,style:h,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i,paginationCellAlign:UA(s,e.align)})})})},RH=({column:e,headRowHeight:t,totalsPosition:r,onKeyDown:n,onMouseDown:o})=>{const{styleService:i,interactions:a}=HI(jI,(e=>e.baseProps)),s=pH(e.id);return er.jsx(CH,{totalsStyle:{...i.totalRow,...az(i,r,!1),opacity:s},headRowHeight:t,atTop:r.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${XC}`,tabIndex:-1,title:a.passive?e.totalInfo:void 0,onKeyDown:n,onMouseDown:o,children:er.jsx(kz,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},PH=()=>{const{columns:e,totalsPosition:t,rows:r}=HI(jI,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,interactions:a,direction:s}=HI(jI,(e=>e.baseProps)),l=HI(jI,(e=>e.headRowHeight)),u=HI(jI,(e=>e.setFocusedCellCoord)),c=!!o?.isModal(),d=!!a.active;return er.jsx(Xh,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,o)=>{const a=[t.atTop?1:r.length+1,o];return er.jsx(RH,{column:e,headRowHeight:l,totalsPosition:t,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case JC.C:lF(r);break;case JC.Space:r.preventDefault();break;default:uF(e)}else IC(r)})({evt:e,rootElement:n,cellCoord:a,setFocusedCellCoord:u,isSelectionMode:c,isInteractionEnabled:d,direction:s})},onMouseDown:()=>{bz(a,n,u,i)}},e.id)}))})};var AH=q(PH);const IH=({updateShouldRefocus:e,tableWrapperRef:t,announce:r})=>{const{rows:n,columns:o,totalsPosition:i}=HI(jI,(e=>e.tableData)),{selectionsAPI:a,keyboard:s,layout:l,styleService:u}=HI(jI,(e=>e.baseProps)),c=HI(jI,(e=>e.selectionDispatch)),d=!!xI(l)?.content?.hoverEffect;SF({keyboard:s,selectionDispatch:c,selectionsAPI:a,updateShouldRefocus:e,tableWrapperRef:t});const p=(e=>{const t=T((t=>new IntersectionObserver((e=>{e.forEach((e=>{const r=t.get(e.target);r?.(e)}))}),{root:e.current})),[e]);return vF(t)})(t),f=xF();return er.jsxs(xH,{lastRowBottomBorder:u.grid.lastRowBottomBorder,children:[i.atTop?er.jsx(AH,{}):void 0,n.map(((e,t)=>er.jsx(SH,{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 er.jsx(EH,{columnIndex:n,cell:i,column:t,announce:r,intersectionObserverTaskScheduler:p,resizeObserverTaskScheduler:f},o)}))},`row-${t}`))),i.atBottom?er.jsx(AH,{}):void 0]})};var kH=q(IH);const MH=(e,t)=>!!e.viewState?.skipHeader||!!t.hideHeader,DH=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:s,translator:l,direction:u}=HI(jI,(e=>e.baseProps)),c=HI(jI,(e=>e.columnWidths)),d=HI(jI,(e=>e.setColumnWidths));if(!s.active)return null;return er.jsx(UI,{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=>{pz(e);const t=e.closest(".sn-table-cell");hz(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:l,columnLabel:i},direction:u})},TH=e=>e.target?.getAttribute("class")?.includes(ZC),OH=({isInteractionEnabled:e,column:t})=>{const[r,n]=w(!1),{changeSortOrder:o}=HI(jI,(e=>e.baseProps)),i=HI(jI,(e=>e.isAdjustingWidth)),a=HI(jI,(e=>e.setIsAdjustingWidth));return{open:r,setOpen:n,handleOpenMenu:t=>{!e||TH(t)||i||n(!0)},setIsAdjustingWidth:a,toggleSortOrder:r=>{e&&!TH(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o(t,"A"===t.sortDirection?"D":"A"))}}};var qH=Object.defineProperty,LH=Object.defineProperties,NH=Object.getOwnPropertyDescriptors,jH=Object.getOwnPropertySymbols,_H=Object.prototype.hasOwnProperty,zH=Object.prototype.propertyIsEnumerable,FH=(e,t,r)=>t in e?qH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,HH=(e,t)=>{for(var r in t||(t={}))_H.call(t,r)&&FH(e,r,t[r]);if(jH)for(var r of jH(t))zH.call(t,r)&&FH(e,r,t[r]);return e},$H=(e,t)=>LH(e,NH(t)),BH=class extends vq{apply({transform:e}){if(!this.options)return e;const{axis:t,value:r}=this.options;return $H(HH({},e),{[t]:r})}};BH.configure=HT(BH);var WH=BH;WH.configure({axis:"x",value:0});var VH=WH.configure({axis:"y",value:0}),UH=class extends vq{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 $H(HH({},e),{x:Math.ceil(e.x/n)*n,y:Math.ceil(e.y/o)*o})}};UH.configure=HT(UH);var GH=Object.create,YH=Object.defineProperty,KH=Object.defineProperties,XH=Object.getOwnPropertyDescriptor,JH=Object.getOwnPropertyDescriptors,ZH=Object.getOwnPropertySymbols,QH=Object.prototype.hasOwnProperty,e$=Object.prototype.propertyIsEnumerable,t$=e=>{throw TypeError(e)},r$=(e,t,r)=>t in e?YH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,n$=["class","method","getter","setter","accessor","field","value","get","set"],o$=e=>void 0!==e&&"function"!=typeof e?t$("Function expected"):e,i$=(e,t,r,n,o)=>({kind:n$[e],name:t,metadata:n,addInitializer:e=>r._?t$("Already initialized"):o.push(o$(e||null))}),a$=(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},s$=(e,t,r,n,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=n$[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,XH({get[r](){return u$(this,i)},set[r](e){return d$(this,i,e)}},r)),b=n.length-1;b>=0;b--)(u=i$(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?o$(s)&&(g[f]=s):"object"!=typeof s||null===s?t$("Object expected"):(o$(a=s.get)&&(g.get=a),o$(a=s.set)&&(g.set=a),o$(a=s.init)&&h.unshift(a));return g&&YH(o,r,g),o},l$=(e,t,r)=>t.has(e)||t$("Cannot "+r),u$=(e,t,r)=>(l$(e,t,"read from private field"),t.get(e)),c$=(e,t,r)=>t.has(e)?t$("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),d$=(e,t,r,n)=>(l$(e,t,"write to private field"),t.set(e,r),r);function p$(e){return e instanceof H$||e instanceof F$}var f$=Object.defineProperty,h$=Object.defineProperties,m$=Object.getOwnPropertyDescriptors,g$=Object.getOwnPropertySymbols,b$=Object.prototype.hasOwnProperty,v$=Object.prototype.propertyIsEnumerable,y$=(e,t,r)=>t in e?f$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x$=(e,t)=>{for(var r in t||(t={}))b$.call(t,r)&&y$(e,r,t[r]);if(g$)for(var r of g$(t))v$.call(t,r)&&y$(e,r,t[r]);return e},S$=(e,t)=>h$(e,m$(t));function w$(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function C$(e,t){return function(e,t,r){var n,o;const{source:i,target:a,canceled:s}=t.operation;if(!i||!a||s)return"preventDefault"in t&&t.preventDefault(),e;const l=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const t=e.findIndex((e=>l(e,i.id))),n=e.findIndex((e=>l(e,a.id)));if(-1===t||-1===n)return e;if(!s&&"index"in i&&"number"==typeof i.index){const n=i.index;if(n!==t)return r(e,t,n)}return r(e,t,n)}const u=Object.entries(e);let c,d,p=-1,f=-1;for(const[e,t]of u)if(-1===p&&(p=t.findIndex((e=>l(e,i.id))),-1!==p&&(c=e)),-1===f&&(f=t.findIndex((e=>l(e,a.id))),-1!==f&&(d=e)),-1!==p&&-1!==f)break;if(!i.manager)return e;const{dragOperation:h}=i.manager,m=null!=(o=null==(n=h.shape)?void 0:n.current.center)?o:h.position.current;if(null==d&&a.id in e){const t=a.shape&&m.y>a.shape.center.y?e[a.id].length:0;d=a.id,f=t}if(null==c||null==d||c===d&&p===f)return"preventDefault"in t&&t.preventDefault(),e;if(c===d)return S$(x$({},e),{[c]:r(e[c],p,f)});const g=a.shape&&Math.round(m.y)>Math.round(a.shape.center.y)?1:0,b=e[c][p];return S$(x$({},e),{[c]:[...e[c].slice(0,p),...e[c].slice(p+1)],[d]:[...e[d].slice(0,f+g),b,...e[d].slice(f+g)]})}(e,t,w$)}var E$="__default__";function R$(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function P$(e,t){return e.index-t.index}function A$(e){return Array.from(e).sort(P$)}var I$,k$,M$,D$,T$,O$,q$,L$,N$=[class extends BT{constructor(e){super(e);const t=NM((()=>{const{dragOperation:t}=e;if(QL(t.activatorEvent)&&p$(t.source)&&t.status.initialized){const t=e.registry.plugins.get(Ij);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(!QL(e.nativeEvent))return;if(!p$(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=[];bM((()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&p$(e)||!e.element)continue;let r=e.shape;const n=new KL(e.element,{getBoundingClientRect:e=>Hq(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,nN);bM((()=>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||!p$(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;$L(c);const d=new KL(c);if(!d)return;const p=rT.delta(d,rT.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 BT{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof H$){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(A$(r)));return t},r=[e.monitor.addEventListener("dragover",((e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!p$(o)||!p$(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=A$(l),g=s?m:A$(u),b=null!=(c=o.sortable.group)?c:E$,v=null!=(d=i.sortable.group)?d:E$,y={[b]:m,[v]:g},x=C$(y,e);if(y===x)return;const S=x[v].indexOf(o.sortable),w=x[v].indexOf(i.sortable);r.collisionObserver.disable(),R$(f,S,h,w),bM((()=>{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;p$(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=A$(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(R$(r,i.index,a,o.index),bM((()=>{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()}}}],j$={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},_$=new class{constructor(){CD(this,TD,new WeakMap)}get(e,t){var r;return e?null==(r=wD(this,TD).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return wD(this,TD).has(e)||wD(this,TD).set(e,new Map),null==(n=wD(this,TD).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=wD(this,TD).get(e))?void 0:t.clear():void 0}};k$=[ID],I$=[ID];var z$=class{constructor(e,t){c$(this,D$,a$(M$,8,this)),a$(M$,11,this),c$(this,T$),c$(this,O$),c$(this,q$,a$(M$,12,this)),a$(M$,15,this),c$(this,L$),this.register=()=>(bM((()=>{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=()=>{bM((()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)}))},this.destroy=()=>{bM((()=>{this.droppable.destroy(),this.draggable.destroy()}))};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=j$,plugins:u=N$}=r,c=((e,t)=>{var r={};for(var n in e)QH.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&ZH)for(var n of ZH(e))t.indexOf(n)<0&&e$.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new H$(c,t,this),this.draggable=new F$(((e,t)=>KH(e,JH(t)))(((e,t)=>{for(var r in t||(t={}))QH.call(t,r)&&r$(e,r,t[r]);if(ZH)for(var r of ZH(t))e$.call(t,r)&&r$(e,r,t[r]);return e})({},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)&&_$.clear(this.manager),(null==n?void 0:n.dragging)&&_$.set(this.manager,this.id,yM((()=>({initialIndex:this.index,initialGroup:this.group}))))},()=>{const{index:e,group:t,manager:r}=this,n=u$(this,O$),o=u$(this,T$);e===n&&t===o||(d$(this,O$,e),d$(this,T$,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),d$(this,L$,c.element),this.manager=t,this.index=i,d$(this,O$,i),this.group=o,d$(this,T$,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=_$.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=_$.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){yM((()=>{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}=ML(n),l=WL(n,s,!1),u=WL(n,s);(i||a)&&BL({element:n,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${u.x}px ${u.y}px ${u.z}`]},options:t}).then((()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)}))}))}))}get manager(){return this.draggable.manager}set manager(e){bM((()=>{this.draggable.manager=e,this.droppable.manager=e}))}set element(e){bM((()=>{const t=u$(this,L$),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),d$(this,L$,e)}))}get element(){var e,t;const r=u$(this,L$);if(r)return null!=(t=null!=(e=Uq.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){bM((()=>{this.droppable.disabled=e,this.draggable.disabled=e}))}set data(e){bM((()=>{this.droppable.data=e,this.draggable.data=e}))}set handle(e){this.draggable.handle=e}set id(e){bM((()=>{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:rN}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){bM((()=>{this.droppable.type=e,this.draggable.type=e}))}get type(){return this.draggable.type}set accept(e){this.droppable.accept=e}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(e){return this.droppable.accepts(e)}};M$=[,,,GH(null)],D$=new WeakMap,T$=new WeakMap,O$=new WeakMap,q$=new WeakMap,L$=new WeakMap,s$(M$,4,"index",k$,z$,D$),s$(M$,4,"group",I$,z$,q$),((e,t)=>{return r$(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(M$,z$);var F$=class extends g_{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}},H$=class extends b_{constructor(e,t,r){super(e,t),this.sortable=r}},$$=Object.defineProperty,B$=Object.defineProperties,W$=Object.getOwnPropertyDescriptors,V$=Object.getOwnPropertySymbols,U$=Object.prototype.hasOwnProperty,G$=Object.prototype.propertyIsEnumerable,Y$=(e,t,r)=>t in e?$$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,K$=(e,t)=>{for(var r in t||(t={}))U$.call(t,r)&&Y$(e,r,t[r]);if(V$)for(var r of V$(t))G$.call(t,r)&&Y$(e,r,t[r]);return e};function X$(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=K$(K$({},j$),e.transition),b=function(e){var t;const r=null!=(t=L_())?t:void 0,[n]=w((()=>e(r)));return n.manager!==r&&(n.manager=r),y_(n.register,[r,n]),n}((t=>new z$(((e,t)=>B$(e,W$(t)))(K$({},e),{transition:g,register:!1,handle:v_(s),element:v_(a),target:v_(h),feedback:d}),t))),v=w_(b,J$);return R_(o,(()=>b.id=o)),y_((()=>{bM((()=>{b.group=u,b.index=l}))}),[b,u,l]),R_(m,(()=>b.type=m)),R_(t,(()=>b.accept=t),void 0,AD),R_(i,(()=>i&&(b.data=i))),R_(l,(()=>{var e;(null==(e=b.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&b.refreshShape()}),C_),P_(s,(e=>b.handle=e)),P_(a,(e=>b.element=e)),P_(h,(e=>b.target=e)),R_(c,(()=>b.disabled=!0===c)),R_(f,(()=>b.sensors=f)),R_(r,(()=>b.collisionDetector=r)),R_(n,(()=>b.collisionPriority=n)),R_(d,(()=>b.feedback=null!=d?d:"default")),R_(g,(()=>b.transition=g),void 0,AD),R_(p,(()=>b.modifiers=p),void 0,AD),R_(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:T((e=>{b.handle=null!=e?e:void 0}),[b]),ref:T((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:T((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:T((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 J$(e,t,r){return!("isDragSource"!==e||r||!t)}const Z$=({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/tT.distance(r.shape.center,s),type:pO.Collision,priority:dO.Normal}:null},Q$=(e,t)=>{const{interactions:r,direction:n}=HI(jI,(e=>e.baseProps)),{flags:o}=HI(jI,(e=>e.env)),i=!r.active||!o.isEnabled("TLV-1531_DRAG_AND_DROP_COLUMNS");return X$({id:e.id,disabled:i,index:t,type:"item",accept:"item",group:"column",modifiers:[VH],data:e,feedback:"clone",collisionDetector:Z$({invert:"rtl"===n})})},eB=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a,direction:s}=HI(jI,(e=>e.baseProps)),{columns:l,totalsPosition:u}=HI(jI,(e=>e.tableData)),c=HI(jI,(e=>e.columnWidths[t])),d=HI(jI,(e=>e.baseProps.selectionsAPI?.isModal())),p=HI(jI,(e=>e.setFocusedCellCoord)),f=HI(jI,(({focusedCellCoord:[e,r]})=>0===e&&r===t)),h=!!n.active&&!d,{open:m,setOpen:g,handleOpenMenu:b,setIsAdjustingWidth:v,toggleSortOrder:y}=OH({isInteractionEnabled:h,column:e}),{ref:x,isDragging:S}=Q$(e,t),w=pH(e.id),C=iz(),E=C?Mz:Xz,R=e.isActivelySorted?EA[e.sortDirection]:void 0,P=m?KC:void 0,A=m?"true":void 0,I=t===r-1,k=[0,e.pageColIdx],M={width:c-(I?8:9),zIndex:l.length-t},D=f&&0===t&&!i.enabled&&h?0:-1;return er.jsxs(xz,{"data-dragging":S,ref:x,headerStyle:{...a.header,...az(a,u,!0),opacity:w},background:C&&m?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:n,style:M,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${XC}`,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 JC.C:lF(r);break;case JC.Enter:case JC.Space:n?.(r);break;default:uF(e)}else IC(r)})({evt:e,rootElement:o,cellCoord:k,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&&bz(r,t,n,o)})({evt:e,rootElement:o,cellCoord:k,setFocusedCellCoord:p,keyboard:i,isInteractionEnabled:h})},onClick:C?b:y,"aria-sort":R,"aria-controls":P,"aria-expanded":A,"aria-haspopup":"true",children:[er.jsx(E,{column:e,isInteractionEnabled:h,open:m,setOpen:g,isPagination:!0}),er.jsx(DH,{column:e,isLastColumn:I,setIsAdjustingWidth:v})]},e.id)},tB=()=>{const{columns:e}=HI(jI,(e=>e.tableData)),{styleService:t,viewService:r,layout:n}=HI(jI,(e=>e.baseProps)),o=HI(jI,(e=>e.setHeadRowHeight)),i=HI(jI,(e=>e.columnWidths)),a=D(null),s=MH(r,n);return E((()=>{a.current&&o(a.current.getBoundingClientRect().height)}),[t.header.fontSize,i,o,s]),er.jsx(Wh,{style:{visibility:s?"collapse":void 0},children:er.jsx(Xh,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map(((t,r)=>er.jsx(eB,{column:t,columnIndex:r,columnsLength:e.length},t.id)))})})};var rB=q(tB);const nB=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}=HI(jI,(e=>e.tableData)),{rootElement:f,keyboard:h,translator:m,theme:g,interactions:b,styleService:v,viewService:y,layout:x,rect:S,direction:w}=HI(jI,(e=>e.baseProps)),C=HI(jI,(e=>e.setYScrollbarWidth)),R=HI(jI,(e=>e.showRightBorder)),P=HI(jI,(e=>e.selectionDispatch)),A=HI(jI,(e=>e.baseProps.selectionsAPI?.isModal())),I=D(!1),k=D(null),M=D(null),{yScrollbarWidth:O}=fF(k),q=`${m.get("SNTable.Accessibility.RowsAndColumns",[String(d.length),String(p.length)])} ${m.get("SNTable.Accessibility.NavigationInstructions")}`,L=qP(x,y),N=L?y.scrollLeft??0:0,j=L?y.rowPartialHeight??0:0,_=T((()=>{I.current=f.getElementsByTagName("table")[0].contains(document.activeElement)}),[f]),z=T((e=>{r({...t,page:e}),o({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),u.toString()]],politeness:"assertive"})}),[t,r,u,o]),F=T((e=>{r({...t,page:0,rowsPerPage:e}),o({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[o,t,r]);return sF(k,w,y),((e,t)=>{const{keyboard:r}=HI(jI,(e=>e.baseProps));E((()=>{const n=e.current;if(!n)return;const o=e=>{vz(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(M,I),(()=>{const{rootElement:e,keyboard:t}=HI(jI,(e=>e.baseProps)),r=HI(jI,(e=>e.focusedCellCoord));$C((()=>{const n=cz(e,r);t.active?hz(n):(n?.blur(),fz(e))}),[t.active,e])})(),aF(I,o,i),E((()=>{const e=k.current;e&&(e.scrollLeft=N,e.scrollTop=j)}),[t,l,N,j]),oF((()=>{C(O)}),[O]),oF((()=>{P({type:CA.UpdatePageRows,payload:{pageRows:d}})}),[d]),iF(),er.jsxs(nF,{children:[er.jsxs(Rz,{ref:M,dir:w,onKeyDown:e=>{dF({evt:e,totalRowCount:l,page:i,rowsPerPage:a,handleChangePage:z,updateShouldRefocus:_,keyboard:h,isSelectionMode:A})},"data-testid":"sn-table",children:[er.jsx(bF,{}),er.jsxs(mF,{ref:k,className:"sn-table-container",fullHeight:!!n||!b.active||!c,interactions:b,tabIndex:-1,role:"application","data-testid":"table-container",children:[er.jsxs(gF,{stickyHeader:!0,"aria-label":q,borderRight:R?`1px solid ${v.grid.border}`:void 0,children:[er.jsx(rB,{}),er.jsx(kH,{...e,updateShouldRefocus:_,tableWrapperRef:M})]}),er.jsx(oz,{})]}),er.jsx(hM,{footerContainer:n,pageInfo:t,paginationNeeded:c,theme:g,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:h,translator:m,interactions:b,rect:S,layout:x,handleChangePage:z,handleChangeRowsPerPage:F,isSelectionMode:A,direction:w})]}),er.jsx(eF,{isPagination:!0})]})};var oB=q(nB);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 aB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sB(e,t){return sB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sB(e,t)}function lB(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,sB(e,t)}var uB=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function cB(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||uB(n)&&uB(o)))return!1;var n,o;return!0}function dB(e,t){var r;void 0===t&&(t=cB);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 pB(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 fB="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function hB(e){cancelAnimationFrame(e.id)}function mB(e,t){var r=fB();var n={id:requestAnimationFrame((function o(){fB()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var gB=-1;function bB(e){if(void 0===e&&(e=!1),-1===gB||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),gB=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return gB}var vB=null;function yB(e){if(void 0===e&&(e=!1),null===vB||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?vB="positive-descending":(t.scrollLeft=1,vB=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),vB}return vB}var xB=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function SB(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,aB(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:aB(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=dB((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=dB((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=dB((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(yB()){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&&hB(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=mB(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}lB(t,e),t.getDerivedStateFromProps=function(e,t){return wB(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=bB();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(yB()){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&&hB(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?xB:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),w=S[0],C=S[1],E=this._getVerticalRangeToRender(),P=E[0],A=E[1],I=[];if(n>0&&g)for(var k=P;k<=A;k++)for(var M=w;M<=C;M++)I.push(R(t,{columnIndex:M,data:d,isScrolling:v?x:void 0,key:f({columnIndex:M,data:d,rowIndex:k}),rowIndex:k,style:this._getItemStyle(k,M)}));var D=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return R(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)},R(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}(_),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var wB=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},CB=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},EB=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},RB=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]},PB=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?AB(e,t,r,i,0,n):IB(e,t,r,Math.max(0,i),n)},AB=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=RB(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},IB=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&RB(e,t,n,r).offset<o;)n+=a,a*=2;return AB(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},kB=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=RB(e,t,r,i),u="column"===e?EB(t,i):CB(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}},MB=SB({getColumnOffset:function(e,t,r){return RB("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return PB("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=RB("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=RB("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:CB,getEstimatedTotalWidth:EB,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return kB("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return kB("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return RB("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return PB("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=RB("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=RB("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}}),DB=function(e,t){return e};function TB(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,aB(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:aB(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=dB((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=dB((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=dB((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(yB()){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&&hB(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=mB(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}lB(t,e),t.getDerivedStateFromProps=function(e,t){return OB(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?bB():0:l.scrollHeight>l.clientHeight?bB():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(yB()){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&&hB(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?DB:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),C=w[0],E=w[1],P=[];if(u>0)for(var A=C;A<=E;A++)P.push(R(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 R(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:iB({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},R(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}(_),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var OB=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},qB=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]},LB=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=qB(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},NB=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&qB(e,r,t).offset<n;)r+=i,i*=2;return LB(e,t,Math.min(r,o-1),Math.floor(r/2),n)},jB=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},_B=TB({getItemOffset:function(e,t,r){return qB(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:jB,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=qB(e,t,o),p=jB(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?LB(e,t,o,0,r):NB(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=qB(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=qB(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 zB(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 FB=["style"],HB=["style"];function $B(e,t){var r=e.style,n=pB(e,FB),o=t.style,i=pB(t,HB);return!zB(r,o)&&!zB(n,i)}const BB=({style:e})=>er.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var WB=x.memo(BB,$B);const VB=()=>{},UB=e=>{e.preventDefault()};const GB=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u}=n,c=HI(jI,(e=>e.hoverIndex===t)),d=HI(jI,(e=>e.setHoverIndex)),{interactions:p,styleService:f,direction:h}=HI(jI,(e=>e.baseProps)),m=HI(jI,(e=>e.showRightBorder)),g=o[t]?.[e],{handleMouseDown:b,handleMouseOver:v,handleMouseUp:y,cellSelectionState:x}=function(e){const{interactions:t}=HI(jI,(e=>e.baseProps)),r=HI(jI,(e=>e.selectionDispatch)),n="object"==typeof e,o=HI(jI,(t=>n?mH(e,t.selectionState):wA.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=fH(UB,e,r,VB);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g),S=((e,t,r,n)=>{const o=D(null),i=r&&!r.isNumeric,a=T((r=>{const o=jz(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return _z(o,a),o})(t,e,g,s),w=i[e]?.isDim?f.dimension.values:f.measure.values,C=pH(i[e].id);if("object"==typeof g){const n=((e,t,r,n,o,i)=>{let a=vH(o,i,e);a=gH(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?EI(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===wA.Selected?{...s,...i.selectedColors}:n===wA.Disabled?{...s,color:r?i.grid.hoverColors?.color:s.color,background:`${LA}, ${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 er.jsx("div",{className:`sn-table-cell ${x} ${XC}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:f.grid.border,borderTop:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:GA(h,g.isLastColumn,m),borderLeftWidth:YA(h,g.isLastColumn,m),justifyContent:BA(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:er.jsx(dH,{cellSelectionState:x,children:er.jsx(lH,{forwardRef:f.contentStaticLineCount||1===l?void 0:S,cell:g,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})})}return er.jsx(WB,{style:{...r,...w,borderColor:f.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:C}})};var YB=q(GB,$B);const KB=e=>{const t=D(e);return t.current=e,t},XB=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,JB=(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},ZB=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!e[t]))},QB=(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=RP(h,e,a),C=!h&&e.qIsNull,E=C?TR(w):DR(e);f[r]={id:IR(),...e,align:TP(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)&&EP(e,h),representation:CP({cell:e,representationProperties:y,attrExprInfoIndex:v,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>C?w:e.qText,direction:u,enabledFeatures:{[TE.Image]:!0,[TE.Indicator]:!0,[TE.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}))}))},eW=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:s,columns:l,gridState:u,setEstimatedCellHeight:c})=>{const d=HI(jI,(e=>e.env)),{direction:p}=HI(jI,(e=>e.baseProps)),f=D([]),h=T(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return QB(t,o,n,l,e,d,c,p),f.current=n,n}),[i,o,l,e,d,c,p]),[m,g]=w((()=>h(n??[])));$C((()=>{g(h(n??[]))}),[n,p]);const b=((e,t)=>{const r=D(new Set),n=D(new Set),o=D(new Set),i=KB(e),a=KB(t),s=C((()=>({enqueue:e=>{const t=XB(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(XB(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=T(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(ZB(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}}),[f,b]),y=T(((e,t,r,n)=>{for(let i=t;i<t+n;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(JB(f.current,e,t,r,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:r};b.enqueue(t)}}}),[f,b,o]);return E((()=>{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}},tW=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},rW=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,nW=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=HI(jI,(e=>e.baseProps.styleService)),i=HI(jI,(e=>e.columnWidths)),{estimateLineCount:a}=_C(o.dimension.values),s=TI(o.dimension.values.fontSize),l=e||t||1===r;return T(((e,t,o)=>{if(l||e.representation.type===TE.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])},oW=({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])},iW=({rowCount:e,isSnapshot:t,viewService:r,gridRef:n,pageInfo:o})=>{const{styleService:i}=HI(jI,(e=>e.baseProps)),[a,s]=w({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}=HI(jI,(e=>e.baseProps)),o=HI(jI,(e=>e.columnWidths)),i=n.multiline?.wrapTextInCells,a=n.nullValueRepresentation?.text;$C((()=>{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]),$C((()=>{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})=>T(((o,i,a)=>{N((()=>{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(!rW(u.get(a),l))return e;const c={...e};return u.set(a,l),c.rowHeights.set(i,tW(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})=>T(((o,i,a)=>{e||t||1===r||n(o,i,a)}),[e,t,r,n]))({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:m}),b=nW({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:m}),v=T((e=>c?h??u:a.rowHeights.get(e)??u),[c,u,a.rowHeights,h]);return oW({isStaticNbrOfLines:c,minRowHeight:u,state:a,staticRowHeight:h,viewService:r}),{setMeasuredCellHeight:g,setEstimatedCellHeight:b,getRowHeight:v,lineClamp:f}},aW=(e,t)=>{L((()=>()=>{t(0)}),[e,t]);const r=T((e=>{const r=jz(e);void 0!==r&&t(r)}),[t]);_z(e,r)};let sW=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const lW=({layout:e,loadRows:t,loadColumns:r,rowCount:n,pageInfo:o,gridState:i,viewService:a})=>T((({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=sW.None,i=sW.None;return o=n>t?sW.Down:n<t?sW.Up:sW.None,i=r>e?sW.Right:r<e?sW.Left:sW.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===sW.Down){const e=x+25;t(b,v,y,u+e>n?n-u:e)}else if(m===sW.Up){const e=x+25,r=o.page*o.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(g===sW.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(g===sW.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]),uW={enabled:!1},cW=()=>{},dW={current:null};const pW=(e,t,r,n,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(r.height/o)),s=C((()=>n.reduce(((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[r,n]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:s}},fW=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},hW={overflow:"hidden",willChange:"auto"};var mW=q(O(((e,t)=>{const{rect:r,columns:n,pageInfo:o,headerAndTotalsHeight:i,setInnerBodyHeight:a}=e,{layout:s,model:l,theme:u,viewService:c,styleService:d,direction:p}=HI(jI,(e=>e.baseProps)),f=HI(jI,(e=>e.columnWidths)),h=HI(jI,(e=>e.initialDataPages)),m=D(null),g=D(null),b=D({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),v=D(0),y=!!xI(s)?.content?.hoverEffect,{rowCount:x,visibleRowCount:S,visibleColumnCount:w}=pW(s,o,r,f,d.contentMinRowHeight),{setMeasuredCellHeight:R,setEstimatedCellHeight:P,getRowHeight:A,lineClamp:I}=iW({rowCount:x,isSnapshot:!!s.snapshotData,viewService:c,gridRef:m,pageInfo:o}),{rowsInPage:k,loadRows:M,loadColumns:T}=eW({layout:s,model:l,theme:u,initialDataPages:h,pageInfo:o,rowCount:x,visibleRowCount:S,visibleColumnCount:w,columns:n,gridState:b,setEstimatedCellHeight:P}),O=lW({layout:s,loadRows:M,loadColumns:T,rowCount:x,pageInfo:o,gridState:b,viewService:c}),q=xF(),N=C((()=>({rowsInPage:k,columns:n,isHoverEnabled:y,lineClamp:I,setMeasuredCellHeight:R,resizeObserverTaskScheduler:q})),[k,n,y,I,R,q]),_=((e,t)=>e.height-t)(r,i);return L((()=>{1===v.current&&m.current?.scrollToItem({rowIndex:x-1,align:"start"})})),function(e){const{selectionsAPI:t}=HI(jI,(e=>e.baseProps)),r=HI(jI,(e=>e.selectionDispatch));E((()=>{r({type:CA.UpdatePageRows,payload:{pageRows:e}})}),[r,e]),SF({selectionsAPI:t,selectionDispatch:r,updateShouldRefocus:cW,keyboard:uW,tableWrapperRef:dW})}(k),j(t,(()=>({interpolatedScrollTo:(e,t)=>{const r=(g.current?.clientHeight??_)-_,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,_,x]),aW(g,a),er.jsx(MB,{"data-key":"body",ref:m,innerRef:g,style:hW,columnCount:s.qHyperCube.qSize.qcx,columnWidth:e=>f[e],height:_,rowCount:x,rowHeight:A,estimatedRowHeight:c.estimatedRowHeight,width:r.width,itemData:N,onItemsRendered:O,itemKey:fW,className:"sn-table-body",direction:p,children:YB})})));const gW=({width:e,height:t,children:r})=>er.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),bW=(e,t)=>{const r=D(null),n=HI(jI,(e=>e.columnWidths));L((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=T((r=>{const n=jz(r);n&&t(n+9,e)}),[e,t]);return _z(r,o),r},vW=ic("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}}))),yW=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i}=r,{interactions:a,styleService:s,direction:l}=HI(jI,(e=>e.baseProps)),u=HI(jI,(e=>e.baseProps.selectionsAPI?.isModal())),c=HI(jI,(e=>e.showRightBorder)),d=HI(jI,(e=>e.tableData.totalsPosition)),p=!!a.active&&!u,f=n[e],{open:h,setOpen:m,handleOpenMenu:g,setIsAdjustingWidth:b,toggleSortOrder:v}=OH({isInteractionEnabled:p,column:f}),y=iz(),x=bW(e,i),S=n.length-1===e,w=y?Mz:Xz,{ref:C,isDragging:E}=Q$(f,e),R=pH(f.id);return er.jsxs(vW,{"data-dragging":E,ref:C,className:`sn-table-cell ${XC}`,title:a.passive?f.label:void 0,onClick:y?g:v,applicableStyle:{...s.header,...az(s,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:GA(l,S,c),borderLeftWidth:YA(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:[er.jsx(w,{forwardRef:x,column:f,isInteractionEnabled:p,open:h,setOpen:m}),er.jsx(DH,{column:f,isLastColumn:S,onColumnResize:o,setIsAdjustingWidth:b})]})},xW=e=>{const[t,r]=w(new Map);$C((()=>{r(new Map)}),[e.length]);const n=T(((e,t)=>{r((r=>rW(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:C((()=>tW(t)),[t]),setMeasuredCellHeight:n}},SW=(e,t)=>{j(e,(()=>({scrollTo:e=>t.current?.scrollTo(e)})),[t])},wW=(e,t,r,n,o)=>{$C((()=>{e.current?.resetAfterIndex(0,!1)}),[t,r,e,n,o])},CW={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},EW=O(((e,t)=>{const{rect:r,columns:n,pageInfo:o,columResizeHandler:i,setHeaderRowHeight:a}=e,s=x.useRef(null),l=D(null),{layout:u,theme:c,styleService:d,direction:p,viewService:f}=HI(jI,(e=>e.baseProps)),h=HI(jI,(e=>e.columnWidths)),{rowHeight:m,setMeasuredCellHeight:g}=xW(n),b=MH(f,u);return SW(t,s),wW(s,u,o,h,c),aW(l,a),er.jsx(_B,{ref:s,outerRef:l,layout:"horizontal",style:{...CW,...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:yW})}));var RW=q(EW);const PW=O(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a,direction:s}=HI(jI,(e=>e.baseProps));return er.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.scroll?"auto":"hidden",width:n,height:o},onScroll:i,dir:s,children:r})})),AW=({children:e,rect:t})=>{const{direction:r}=HI(jI,(e=>e.baseProps));return er.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})},IW=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,{layout:a,interactions:s,styleService:l,direction:u}=HI(jI,(e=>e.baseProps)),c=HI(jI,(e=>e.showRightBorder)),d=bW(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:h}=n[e],m=a.qHyperCube.qSize.qcx-1===e,g=pH(n[e].id);return er.jsx("div",{className:`sn-table-cell ${XC}`,title:s.passive?p:void 0,style:{...t,...l.totalRow,...az(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:GA(u,m,c),borderLeftWidth:YA(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:er.jsx(kz,{forwardRef:h?void 0:d,isNumeric:h,children:p})})},kW=O(((e,t)=>{const{rect:r,pageInfo:n,totals:o,columns:i,setTotalsRowHeight:a}=e,s=D(null),l=D(null),{layout:u,theme:c,styleService:d,direction:p}=HI(jI,(e=>e.baseProps)),f=HI(jI,(e=>e.columnWidths)),{rowHeight:h,setMeasuredCellHeight:m}=xW(i);return SW(t,s),wW(s,u,n,f,c),aW(l,a),er.jsx(_B,{ref:s,outerRef:l,layout:"horizontal",style:CW,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:IW})}));var MW=q(kW);const DW=(e,t,r,n,o)=>T((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]),TW=e=>{const{pageInfo:t}=e,{totalsPosition:r,columns:n,paginationNeeded:o}=HI(jI,(e=>e.tableData)),{layout:i,theme:a,rect:s,viewService:l,direction:u}=HI(jI,(e=>e.baseProps)),c=HI(jI,(e=>e.columnWidths)),d=HI(jI,(e=>e.setYScrollbarWidth)),p=D(null),f=D(null),h=D(null),m=D(null),{xScrollbarWidth:g,yScrollbarWidth:b}=fF(p),v=C((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(s,o)),[s,o]),y=C((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(v,g,b)),[v,g,b]),{rowCount:x}=pW(i,t,y,c,0),{headerAndTotalsHeight:S,innerBodyHeight:E,setHeaderRowHeight:R,setTotalsRowHeight:P,setInnerBodyHeight:A}=(()=>{const[e,t]=w(0),[r,n]=w(0),[o,i]=w(0);return{headerAndTotalsHeight:e+r,innerBodyHeight:o,setHeaderRowHeight:t,setTotalsRowHeight:n,setInnerBodyHeight:i}})(),{width:I,height:k}=(({innerBodyHeight:e,headerAndTotalsHeight:t,rowCount:r,stickyContainerRect:n,columnWidths:o})=>{const{styleService:i}=HI(jI,(e=>e.baseProps)),a=e+t,s=r*i.contentMinRowHeight+t;let l=s;return s<n.height&&a>n.height&&(l=a),{width:o.reduce(((e,t)=>e+t),0),height:l}})({innerBodyHeight:E,headerAndTotalsHeight:S,rowCount:x,stickyContainerRect:y,columnWidths:c}),M=DW(f,h,m,l,u),O=T((()=>{p.current&&(p.current.scrollTop=0)}),[p]);iF(),L((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[n.length]),L((()=>{p.current&&(p.current.scrollTop=0)}),[t,x,a]),oF((()=>{d(b)}),[b]);const q=er.jsx(MW,{rect:y,pageInfo:t,columns:n,ref:h,totals:r,setTotalsRowHeight:P},"totals");return er.jsxs(nF,{children:[er.jsx(PW,{ref:p,width:v.width,height:v.height,onScroll:M,children:er.jsxs(gW,{width:I,height:k,children:[er.jsxs(AW,{rect:y,children:[er.jsx(RW,{rect:y,pageInfo:t,columns:n,ref:f,columResizeHandler:O,setHeaderRowHeight:R}),r.atTop?q:null,er.jsx(mW,{ref:m,rect:y,pageInfo:t,columns:n,headerAndTotalsHeight:S,setInnerBodyHeight:A}),r.atBottom?q:null]}),er.jsx(oz,{})]})}),er.jsx(eF,{isPagination:!1})]})};var OW=q(TW);const qW=()=>{const{theme:e,keyboard:t,translator:r,interactions:n,rect:o,layout:i}=HI(jI,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:s,totalColumnCount:l,totalPages:u}=HI(jI,(e=>e.tableData)),c=HI(jI,(e=>e.pageInfo)),d=HI(jI,(e=>e.setPage));return er.jsxs(Rz,{"data-testid":"sn-table",children:[er.jsx(OW,{pageInfo:c}),er.jsx(hM,{paginationNeeded:a,handleChangePage:e=>{d(e)},pageInfo:c,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:t,translator:r,theme:e,interactions:n,rect:o,layout:i})]})};var LW=q(qW);var NW={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 jW=(t,r)=>e((()=>(function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(NW).forEach((t=>{e.add(NW[t])}))}(r),((e,t)=>{let r;return({keys:n,politeness:o="polite"})=>{const i=n.map((e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)})).join(" "),a=e.querySelector(`.${RA.First}`),s=e.querySelector(`.${RA.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;r===RA.First?(l=s,r=RA.Second):(l=a,r=RA.First),l.innerHTML=l.innerHTML.endsWith(" ")?i:`${i} `,l.setAttribute("aria-live",o)}})(t,r))),[t,r.language()]),_W={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},zW=e=>{const{app:r,model:i,rootElement:a,layout:s,translator:l,reactRoot:u,isFontLoaded:c,viewService:d,env:p}=e,{direction:f,footerContainer:h}=t(),m=LP(s,d),g=jW(a,l),[b,v]=n(((e,t)=>qP(e,t)?{page:t.page||_W.page,rowsPerPage:t.rowsPerPage||_W.rowsPerPage,rowsPerPageOptions:_W.rowsPerPageOptions}:_W)(s,d)),[y,x]=LC((async()=>m?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>PP)return n({...r,rowsPerPage:AP(d,c),page:0}),null;const g=p>10,b=IP(t,o),v=OP(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=RP(o.isDim,u,t),d=!o.isDim&&u.qIsNull,p=d?TR(c):DR(u);n[l]={id:IR(),...u,align:TP(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)&&EP(u,o.isDim),representation:CP({cell:u,representationProperties:o.representation,attrExprInfoIndex:o.qAttrExprInfoIndex,env:i,conditionalColoring:o.conditionalColoring,miniChartOnMeasure:o.qMiniChart,getText:()=>d?c:u.qText,direction:s,enabledFeatures:{[TE.Image]:!0,[TE.Indicator]:!0,[TE.MiniChart]:!0}})}})),n}))??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(i,s,b,v,d,p,!0,f):null),[s,b,i,m,f]);o((()=>{m&&e.model&&e.changeSortOrder&&y&&c&&!x&&function(e,t){const{direction:r,...n}=e,o=$I(r);t.render(er.jsx(si,{stylisPlugins:"rtl"===r?[SA]:void 0,children:er.jsx(sc,{theme:o,children:er.jsx(FI,{...e,children:er.jsx(oB,{...n})})})}))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:y,pageInfo:b,setPageInfo:v,direction:f,footerContainer:h,announce:g},u)}),[g,r,f,h,c,b,u,e,m,y,x])},FW=(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 HW=({model:e,layout:t,shouldRender:r,page:n})=>{const[o,i]=LC((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(rI,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}},$W=t=>{const{layout:r,model:i,keyboard:a,interactions:s,reactRoot:l,isFontLoaded:u,viewService:c,direction:d}=t,p=!LP(r,c),[f,h]=n(!1);f&&h(!1);const m=e((()=>function(e,t,r,n,o){const i=OP(e,o,n),a=IP(e,r),s=e.qHyperCube.qSize.qcy,l=Math.min(rI,s),u=s>rI&&!!t.active;return{totalsPosition:a,columns:i,rows:[],totalRowCount:s,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(s/l),paginationNeeded:u}}(r,s,c,d,f)),[r,s,c,d,f]),{pageInfo:g,setPage:b}=((t,r)=>{const[o,i]=n(0),a=Math.min(rI,t.qHyperCube.qSize.qcy),s=e((()=>({page:o,rowsPerPage:a,rowsPerPageOptions:[]})),[a,o]);if(r){const e=Math.floor(t.qHyperCube.qSize.qcy/rI);e<o&&i(e)}return{pageInfo:s,setPage:i}})(r,p),{initialDataPages:v,isLoading:y}=HW({model:i,layout:r,page:g.page,shouldRender:p});o((()=>{p&&a.active&&a.blur?.(!1)}),[a,p]),o((()=>{p&&t.model&&t.changeSortOrder&&v&&!y&&u&&function(e,t){const{direction:r}=e,n=$I(r);t.render(er.jsx(x.StrictMode,{children:er.jsx(sc,{theme:n,children:er.jsx(FI,{...e,children:er.jsx(LW,{})})})}))}({...t,model:t.model,changeSortOrder:t.changeSortOrder,tableData:m,pageInfo:g,setPage:b,initialDataPages:v},l)}),[v,u,y,g,l,t,b,p,m])},BW={version:JSON.stringify("6.4.2"),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 WW(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 VW=(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]}},UW=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const GW=(e,t,r,n)=>{if(e<0)return 0;const o=r.qHyperCube.qSize.qcy,i=n.rowsPerPage||_W.rowsPerPage,a=n.viewState?.isMultiPage?0:3;return Math.min(o,i,e-t+1+a)},YW=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=IP(e,t);if(LP(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=WW(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:GW(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=VW(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=(UW(h,m,g)?d:d+1)+c;let v=p+c;const y=VW(p,o),x=y?.getBoundingClientRect();return y&&x&&(UW(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:GW(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},KW=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),XW=e=>e.getStyle("object","straightTableV2","backgroundColor");function JW(r){return{qae:{properties:{initial:BW},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>RE({...e}),exportProperties:yE,exploration:PE},ext:xR(r),component(){const n=c(),i=(t=>{const r=e((()=>zC(t)),[t]);return o((()=>()=>{r.unmount()}),[r]),r})(n),y=d(),x=p(),S=f(),w=(e=>{const t=a();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(!!y.snapshotData),C=h(),E=m(),R=g(),P=t(),{freeResize:A}=P,I=b(),k=e((()=>y.snapshotData?.content&&!A?{...I,...y.snapshotData.content.size}:I),[I,A,y.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])})(y),D=v(),T=qC(y,n,KW,XW),O=P.direction,q=FW(y.qHyperCube,S),L=SR(y.qHyperCube,S),N=((e,t,r)=>{const[,n,o]=LC((async()=>{const t=be(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,HC].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})(T,y,r),j=Mt(),_={app:x,layout:y,model:S,rect:k,theme:T,keyboard:R,translator:C,interactions:w,selectionsAPI:E,changeSortOrder:q,rootElement:n,embed:D,reactRoot:i,applyColumnWidths:L,isFontLoaded:N,downloadService:j,viewService:M,direction:O,env:r};s?.(((e,t)=>{const r=t.target,n=r?.closest(`.${XC}`);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()=>{aE(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}=YW(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:()=>YW(e,t,n)})),[e,t,n])})({layout:y,viewService:M,model:S,rootElement:n,contentRect:I}),$W(_),zW(_)}}}export{JW 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"),k=new RegExp(s+"(right)"+v,"gi"),M=new RegExp(s+"(ltr)"+v,"gi"),D=new RegExp(s+"(rtl)"+v,"gi"),T=new RegExp(s+"([ns]?)e-resize","gi"),q=new RegExp(s+"([ns]?)w-resize","gi"),O=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+y,"gi"),L=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"),B=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),W=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(M,"$1"+e).replace(D,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(r=r.replace(I,"$1"+e).replace(k,"$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(q,"$1$2e-resize").replace(x,"w-resize").replace(_,G).replace(z,K).replace(F,J).replace(H,J).replace($,K).replace(B,X).replace(W,X).replace(O,"$1$2$3$8$5$6$7$4$9").replace(L,"$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)}(jP,jP.exports);var _P=Wt(jP.exports),zP="comm",FP="rule",HP="decl",$P=Math.abs,BP=String.fromCharCode;function WP(e){return e.trim()}function VP(e,t,r){return e.replace(t,r)}function UP(e,t,r){return e.indexOf(t,r)}function GP(e,t){return 0|e.charCodeAt(t)}function YP(e,t,r){return e.slice(t,r)}function KP(e){return e.length}function XP(e,t){return t.push(e),e}var JP=1,ZP=1,QP=0,eA=0,tA=0,rA="";function nA(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:JP,column:ZP,length:a,return:"",siblings:s}}function oA(){return tA=eA>0?GP(rA,--eA):0,ZP--,10===tA&&(ZP=1,JP--),tA}function iA(){return tA=eA<QP?GP(rA,eA++):0,ZP++,10===tA&&(ZP=1,JP++),tA}function aA(){return GP(rA,eA)}function sA(){return eA}function lA(e,t){return YP(rA,e,t)}function uA(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 cA(e){return WP(lA(eA-1,fA(91===e?e+2:40===e?e+1:e)))}function dA(e){for(;(tA=aA())&&tA<33;)iA();return uA(e)>2||uA(tA)>3?"":" "}function pA(e,t){for(;--t&&iA()&&!(tA<48||tA>102||tA>57&&tA<65||tA>70&&tA<97););return lA(e,sA()+(t<6&&32==aA()&&32==iA()))}function fA(e){for(;iA();)switch(tA){case e:return eA;case 34:case 39:34!==e&&39!==e&&fA(tA);break;case 40:41===e&&fA(e);break;case 92:iA()}return eA}function hA(e,t){for(;iA()&&e+tA!==57&&(e+tA!==84||47!==aA()););return"/*"+lA(t,eA-1)+"*"+BP(47===e?e:iA())}function mA(e){for(;!uA(aA());)iA();return lA(e,eA)}function gA(e){return function(e){return rA="",e}(bA("",null,null,null,[""],e=function(e){return JP=ZP=1,QP=KP(rA=e),eA=0,[]}(e),0,[0],e))}function bA(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=iA()){case 40:if(108!=h&&58==GP(C,d-1)){-1!=UP(C+=VP(cA(v),"&","&\f"),"&\f",$P(u?s[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=cA(v);break;case 9:case 10:case 13:case 32:C+=dA(h);break;case 92:C+=pA(sA()-1,7);continue;case 47:switch(aA()){case 42:case 47:XP(yA(hA(iA(),sA()),t,r,l),l),5!=uA(h||1)&&5!=uA(aA()||1)||!KP(C)||" "===YP(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*m:s[u++]=KP(C)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=VP(C,/\f/g,"")),f>0&&(KP(C)-d||0===m&&47===h)&&XP(f>32?xA(C+";",n,r,d-1,l):xA(VP(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(XP(w=vA(C,t,r,u,c,o,s,y,x=[],S=[],d,i),i),123===v)if(0===c)bA(C,t,w,w,x,i,d,s,S);else{switch(p){case 99:if(110===GP(C,3))break;case 108:if(97===GP(C,2))break;default:c=0;case 100:case 109:case 115:}c?bA(e,w,w,n&&XP(vA(e,w,w,0,0,o,s,y,o,x=[],d,S),S),o,S,d,s,n?x:S):bA(C,w,w,w,[""],S,0,s,S)}}u=c=f=0,m=b=1,y=C="",d=a;break;case 58:d=1+KP(C),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==oA())continue;switch(C+=BP(v),v*m){case 38:b=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(KP(C)-1)*b,b=1;break;case 64:45===aA()&&(C+=cA(iA())),p=aA(),c=d=KP(y=C+=mA(sA())),v++;break;case 45:45===h&&2==KP(C)&&(m=0)}}return i}function vA(e,t,r,n,o,i,a,s,l,u,c,d){for(var p=o-1,f=0===o?i:[""],h=function(e){return e.length}(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=YP(e,p+1,p=$P(g=a[m])),x=e;v<h;++v)(x=WP(g>0?f[v]+" "+y:VP(y,/&\f/g,f[v])))&&(l[b++]=x);return nA(e,t,r,0===o?FP:s,l,u,c,d)}function yA(e,t,r,n){return nA(e,t,r,zP,BP(tA),YP(e,2,-2),0,n)}function xA(e,t,r,n,o){return nA(e,t,r,HP,YP(e,0,n),YP(e,n+1,-1),n,o)}function SA(e,t,r){switch(e.type){case"@import":case HP:case zP:return e.return=e.return||e.value;case FP:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===zP&&(e.children=e.value)}))}var n=function(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}(Array.prototype.concat(e.children),SA);return KP(n)?e.return=e.value+"{"+n+"}":""}function wA(e,t,r,n){if("@keyframes"===e.type||"@supports"===e.type||e.type===FP&&(!e.parent||"@media"===e.parent.type||e.parent.type===FP)){var o=_P.transform(SA(e));e.children=o?gA(o)[0].children:[],e.return=""}}Object.defineProperty(wA,"name",{value:"stylisRTLPlugin"});let CA=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),EA=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}({}),RA=function(e){return e.A="ascending",e.D="descending",e}({}),PA=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const AA=[0,0],IA=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),kA=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},MA=(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&&re(e.localPaletteColors[t].color).blend(re(s.color),s.t)},DA=(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:IA(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:kA(n,t,r)})))),n},TA=(e,t,r,n)=>{const o=DA(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=MA(e,a,t);break}n=i}return r})(o,t);return a},qA=(e,t)=>{const r=(e=>e.map((e=>e.value??e)).sort(((e,t)=>e-t)))(e),n=r.some((e=>!DR(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||!DR(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)},OA=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=qA(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||!DR(t))return 0;let a=r&&DR(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}},LA=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=OA(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 kA(o,r.limitPaletteColorIndex,n);const a=IA(r.limitRange,t);return TA(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}},NA=(xC().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)"),jA=4/3,_A="12px",zA="600",FA="Source Sans Pro, sans-serif",HA={height:"auto",fontSize:_A,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"}},$A={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:zA},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},BA=(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,WA=(e,t)=>e.representation.type===qE.Image&&"fitHeight"===e.representation.imageSize?BA(t,e.representation):e.align,VA=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",UA=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},GA=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,YA=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",KA=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",XA=24,JA=ac("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})((({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0}))),ZA=ac(Xd,{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?VA(e,n):void 0}))),QA=ac(Xd,{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},[`& .${YC}`]:{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"},[`& .${YC}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),eI=ac(Xd,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"}))),tI=ac(Xd,{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"}))),rI=ac(ad,{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}))),nI=25e4,oI=(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(eE.PixelsMax,Math.max(eE.PixelsMin,f)),i-=n[a]};switch(s){case tE.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?eE.PixelsDefault:+e)(l),h();break;case tE.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?eE.PercentageDefault:+e)(u)/100*t,h();break;case tE.FitToContent:e.representation?.type===qE.Image?o.push(a):(f=r(c,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case tE.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(eE.AutoMinTable,e)}))}return n},iI=(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"]})},aI=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},sI=e=>e.ctrlKey||e.metaKey,lI=e=>e.shiftKey&&sI(e),uI=e=>[ZC.Left,ZC.Right,ZC.Up,ZC.Down].includes(e),cI=e=>e.shiftKey&&uI(e.key),dI=e=>(e=>uI(e)||[ZC.Home,ZC.End,ZC.PageUp,ZC.PageDown].includes(e))(e.key)&&!lI(e),pI=(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),iI(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})},fI=(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&&cI(u)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const c=((e,t,r,n,o)=>{const i=new Map(t);if("key"in n&&cI(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===ZC.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 iI(l,n,c),{...e,rows:c,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},hI=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}},mI=(e,t)=>{switch(t.type){case EA.Select:return pI(e,t.payload);case EA.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 EA.SelectMouseUp:return((e,t)=>hI(e.isSelectMultiValues||e.firstCell!==t.cell?e:pI(e,t)))(e,t.payload);case EA.SelectMultiAdd:return fI(e,t.payload);case EA.SelectMultiEnd:return hI(e);case EA.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case EA.Clear:return e.rows.size?{...e,rows:new Map}:e;case EA.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},gI=4/3,bI=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function vI(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const yI=(e,t)=>e?{borderBottomColor:wC.DARK_MODE_BORDER,borderRightColor:wC.DARK_MODE_BORDER,borderLeftColor:wC.DARK_MODE_BORDER,borderTopColor:wC.DARK_MODE_BORDER}:{borderLeftColor:wC.BORDER_MEDIUM,borderRightColor:wC.BORDER_MEDIUM,borderTopColor:wC.BORDER_HEAVY,borderBottomColor:t?wC.BORDER_HEAVY:wC.BORDER_LIGHT},xI=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*gI+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},SI=e=>e.components?.find((e=>"theme"===e.key)),wI=(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:bI(r?.fontColor)?vI(wC.TEXT,t,r?.fontColor):i||wC.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...yI(t.background.isDark,n)};return Object.keys(s).forEach((e=>{const t=e;null==s[t]&&delete s[t]})),s};function CI(e,t,r){const n=SI(e)?.header,o=wI("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=re(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=RC(o.background??wC.WHITE,rE),o.activeBackground=RC(o.background??wC.WHITE,nE),o}const EI=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach((e=>(e=>e in $A)(e)&&Object.assign(t,$A[e]))),t};function RI(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&&AC(i);a&&"none"!==a&&(n[r[t]]=a),o=i?EI(i,o):o})),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=CC(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const PI=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},AI=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=PI(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},II=(e,t,r,n=wC.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=AI(e,t,r);return TC(i,o,a,n)??n},kI=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return _A}},MI=e=>e?.some((e=>"italic"===e))?"italic":"normal",DI=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?zA:"normal",TI=e=>!1===e?1:3,qI=e=>parseInt(e??HA.fontSize,10)*jA,OI=e=>e?.some((e=>"underline"===e))?"underline":"none",LI=(e,t,r,n,o)=>{const{header:i,dimensionValues:a,measureValues:s,totalValues:l,nullValues:u,grid:c,content:d}=SI(t)??{},p=NP(t,o)?wC.WHITE:wC.TRANSPARENT,f=II(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??FA,fontSize:kI(i?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??r.head.fontSize),fontStyle:MI(i?.fontStyle),fontWeight:DI(i?.fontStyle,zA),textDecoration:OI(i?.fontStyle),color:PI(n,i?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??r.head.color??wC.TEXT,background:f},headerMenuHoverBackground:RC(f,rE),headerMenuActiveBackground:RC(f,nE),dimension:{values:{fontFamily:a?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??r.body.fontFamily??FA,fontSize:kI(a?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??r.body.fontSize),fontStyle:MI(a?.fontStyle),fontWeight:DI(a?.fontStyle,"normal"),textDecoration:OI(a?.fontStyle),color:PI(n,a?.fontColor)??PI(n,d?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??r.body.color??wC.TEXT,background:AI(n,a,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??r.body.background??wC.TRANSPARENT}},measure:{values:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??r.body.fontFamily??FA,fontSize:kI(s?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??r.body.fontSize),fontStyle:MI(s?.fontStyle),fontWeight:DI(s?.fontStyle,"normal"),textDecoration:OI(s?.fontStyle),color:PI(n,s?.fontColor)??PI(n,d?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??r.body.color??wC.TEXT,background:AI(n,s,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??r.body.background??wC.TRANSPARENT}},totalRow:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??r.totals.fontFamily??FA,fontSize:kI(l?.fontSize??d?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??r.totals.fontSize),fontStyle:MI(l?.fontStyle),fontWeight:DI(l?.fontStyle,zA),textDecoration:OI(l?.fontStyle),color:PI(n,l?.fontColor)??PI(n,d?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??r.totals.color??wC.TEXT,background:II(n,l,"object.straightTableV2.total.label.value.backgroundColor",p)},nullValues:{fontStyle:MI(u?.fontStyle),fontWeight:DI(u?.fontStyle,"normal"),textDecoration:OI(u?.fontStyle),color:PI(n,u?.fontColor)??PI(n,d?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??r.body.color??wC.TEXT,background:PI(n,u?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??wC.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:h??TI(t.multiline?.wrapTextInCells),headerLineClamp:TI(t.multiline?.wrapTextInHeaders),border:PI(n,c?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?wC.DARK_MODE_BORDER:wC.BORDER_MEDIUM),divider:PI(n,c?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??wC.BORDER_HEAVY,hoverColors:{color:PI(n,d?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??r.body.hoverColors?.color,background:PI(n,d?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??r.body.hoverColors?.background},zebraStripes:{show:!!c?.zebraStripes?.show,odd:{color:PI(n,c?.zebraStripes?.color?.odd),background:PI(n,c?.zebraStripes?.background?.odd)},even:{color:PI(n,c?.zebraStripes?.color?.even),background:PI(n,c?.zebraStripes?.background?.even)},overrideNullValueBackground:void 0===PI(n,u?.background),overrideNullValueColor:void 0===PI(n,u?.fontColor)},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:EC(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(qI(e.header.fontSize)+8,32),r=qI(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(qI(e.dimension.values.fontSize),qI(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},NI=(e,t,r,n)=>{const o=C((()=>{const o=r.totalsPosition.atTop,i=function(e,t,r,n){const o=SI(e)?.content,i=wI("content",t,o);i.background=t.background.color;const a=xI(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=bI(l)||!!c,p=bI(s)||!!u,f=d||p;let h;h=bI(s)?vI(wC.HOVER,t,s):u||(d?"":wC.HOVER);const m=f?vI(CC(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(e,t,r.rows.length,n),a=CI(e,t,!o),s=function(e,t,r){const n=SI(e)?.content,o=wI("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=CI(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},jI=new Map;const _I=M({}),zI=function(e){const t=M([()=>{},new Set]);return jI.set(e,t),({children:r,value:n})=>{const o=D(n),i=D(new Set);E((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=T((()=>o.current),[o]),s=C((()=>[a,i.current]),[a]);return tr.jsx(e.Provider,{value:n,children:tr.jsx(t.Provider,{value:s,children:r})})}}(_I),FI={rows:[],columns:[],totalsPosition:{}},HI=({app:e,children:t,tableData:r=FI,selectionsAPI:n,cellCoordMock:o,layout:i,model:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:h,setPage:m,pageInfo:g,initialDataPages:b,rect:v,viewService:y,downloadService:x,env:S,direction:E})=>{const[R,P]=w(0),[A,I]=w(o||AA),[M,D]=((e,t)=>{const[r,n]=k(mI,{pageRows:e,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(r.rows,n),[T,q]=w(-1),O=NI(i,u,r,d),L=((e,t,r,n,o)=>C((()=>LI(0,t,r,n,o)),[t,r,e,n,o]))(S,i,O,u,y),[N,j,_,z,F,H]=((e,t,r,n,o=!0)=>{const i=t.atBottom||t.atTop,a=zC({...n.header,fontWeight:zA},{maxNbrLinesOfText:3}).measureText,s=zC({...n.totalRow,fontWeight:zA},{maxNbrLinesOfText:3}).measureText,{estimateWidth:l}=zC(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:u}=zC(n.measure.values,{maxNbrLinesOfText:3}),c=C((()=>(e,t,r,n,c,d,p)=>{let f=0;if(o){const t=4;let r=25;r+=t+24,n&&(r+=20+t),c&&(r+=20),f=a(e)+r}else{let t=9;t+=16,p&&(t+=XA),t+=XA,t+=XA,f=a(e)+t}const h=d?l:u;return Math.max(f,i?s(t)+24+1:0,h(r))}),[l,u,a,s,i,o]),[d,p]=w(0),[f,h]=w(!1),[m,g]=w((()=>oI(e,r,c)));BC((()=>{g(oI(e,r-d,c)),h(!1)}),[e,r,d,c]);const b=C((()=>((e,t,r)=>e.length>0&&e.reduce(((e,t)=>e+t))+t<r)(m,d,r)),[m,d,r]);return[m,g,p,b,f,h]})(r.columns,r.totalsPosition,v.width,L,i.accessibleHeader),$=C((()=>({app:e,selectionsAPI:n,layout:i,model:a,translator:s,interactions:l,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:h,rect:v,viewService:y,styleService:L,direction:E,downloadService:x})),[e,n,i,a,s,l,u,c.active,d,p,f,h,v,y,L,E,x]);return tr.jsx(zI,{value:{headRowHeight:R,setHeadRowHeight:P,focusedCellCoord:A,setFocusedCellCoord:I,selectionState:M,selectionDispatch:D,hoverIndex:T,setHoverIndex:q,columnWidths:N,setColumnWidths:j,baseProps:$,tableData:r,setYScrollbarWidth:_,setPage:m,pageInfo:g,initialDataPages:b,showRightBorder:z,env:S,isAdjustingWidth:F,setIsAdjustingWidth:H},children:t})};function $I(e,t){const r=function(e){return jI.get(e)}(e),[n,o]=S(r),[,i]=k((e=>e+1),0),a=D(t),s=D(),l=n();if(void 0===l)throw new Error("You must call useContextSelector inside a valid context.");const u=C((()=>t(l)),[l,t]);return E((()=>{a.current=t,s.current=u}),[l,u,t]),E((()=>{const e=e=>{a.current(e)!==s.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function BI(e){const t=xC();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),Cu({...t,direction:e})}const WI={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},VI={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},UI=ac("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":{...WI},"&::-moz-range-track":{...WI},"&::-ms-track":{...WI},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...VI},"&::-moz-range-thumb":{...VI},"&::-ms-thumb":{...VI},"&: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"}}))),GI=({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=VC({translator:c.translator}),f=D({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}};BC((()=>{m&&v()}),[e]);const y=e=>{const t=Math.max(e,eE.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:tE.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=>{kC(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=>{kC(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===ZC.Left||e.key===ZC.Right){kC(e);const t=5,r=e.key===ZC.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===ZC.Space||e.key===ZC.Enter?(kC(e),s(e),l?.(!1),x()):e.key===ZC.Esc&&(kC(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,P=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return tr.jsx(UI,{style:b,hoverColor:o,isLastColumn:r,className:QC,"data-testid":QC,onMouseDown:e=>{kC(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:tE.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(kC(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":eE.PixelsMin,"aria-valuemax":eE.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},YI=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})}))),KI=({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},XI=ac(Xd,{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"}))),JI=ac(YI,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),ZI=ac(Tf)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),QI=ac(Ip)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),ek=ac(jf)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),tk=ac(jf,{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"}))),rk=ac("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"}))),nk=ac("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"}))),ok=ac(pd)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}))),ik=ac(of,{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}))),ak=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})}))),sk=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?sk(t):t:e.parentElement?.children?.[0]},lk=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?lk(t):t},uk=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===ZC.Down||t===ZC.Up){const r=e=>t===ZC.Down?sk(e):lk(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},ck=(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 dk={};const pk=({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]=w(!1),f=x.useRef(null),h=T((e=>{e.stopPropagation(),p(!1)}),[p]);return tr.jsxs(tr.Fragment,{children:[tr.jsxs(tk,{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),dk={}),a?.length&&(p(!0),dk[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:uk,children:[l?tr.jsx(rk,{direction:u,isPagination:c}):null,tr.jsxs(nk,{children:[tr.jsx(ik,{direction:u,isPagination:c,children:tr.jsx(o,{})}),tr.jsx(ok,{variant:"body2",children:n})]}),a?.length?tr.jsx(ak,{}):null]},t),a?.length?tr.jsx(gk,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:ck(a,dk),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:u,isPagination:c}):null]})},fk=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((e=>[[e.groupHeading&&tr.jsx(ek,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map((e=>tr.jsx(pk,{...e,isSubMenu:t,direction:r,isPagination:n},e.id)))].filter(Boolean)])),hk=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(((o,i)=>[fk({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?tr.jsx(QI,{"data-testid":"group-divider",variant:"middle"}):void 0])),mk={appear:0,enter:0,exit:0},gk=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?tr.jsx(ZI,{className:KC,open:t,anchorEl:e,onClose:r,transitionDuration:mk,MenuListProps:{id:XC},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:hk({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,bk=({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:o,onPopoverClose:i})=>T((()=>{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]),vk=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),yk=(e,t)=>e.some((e=>t[e]>0)),xk={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},Sk=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=w(null),[a,s]=w(xk);return BC((()=>{e||(s(xk),i(null))}),[e]),E((()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=vk(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:yk(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:yk(["qSelected"],e),canSelectPossible:yk(["qOption"],e),canSelectAlternative:yk(["qAlternative"],e),canSelectExcluded:yk(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},wk=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.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"})}))),Ck=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.jsx("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"})}))),Ek=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.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"})}))),Rk=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.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"})}))),Pk=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.jsx("path",{d:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.454.858v6.484a1 1 0 0 1-.576.906L8.5 14.663V7.17z"})}))),Ak=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.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"})}))),Ik=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.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"})}))),kk=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.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"})}))),Mk=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.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"})}))),Dk=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.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"})}))),Tk=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.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"})}))),qk=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.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"})}))),Ok=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.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"})}))),Lk=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.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 Nk=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const jk="/qListObjectDef",_k=({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[Nk.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:wk,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:Rk,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:kk,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:Pk,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[Nk.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:Mk,enabled:!0}]}]),!e.isLocked&&r[Nk.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:Lk,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(jk))},icon:Dk,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(jk))},icon:Ok,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(jk))},icon:Tk,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(jk))},icon:qk,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(jk))},icon:Ck,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:Ik,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:Ak,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[Nk.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),c?.(u)},icon:Ek,enabled:!0}]}]),f},zk=({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=UC})=>{const v=D(null),y=VC({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=c?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=Sk({open:e,headerData:n,app:C,qStateName:c?.qStateName}),P=KI({model:f,headerData:n}),A=bk({qLibraryId:x,fieldId:S,searchRelatedArgs:u,selectionRelatedArgs:c,direction:h}),I=T((e=>{e.stopPropagation(),t(!1)}),[t]),k=T((e=>{e.stopPropagation(),t((e=>!e))}),[t]);return i.active?tr.jsxs(XI,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:YC,onClick:!1===g?k:void 0,ref:v,isAccessibleHeader:g,children:[s?tr.jsx(JI,{height:b,className:GC,"data-testid":GC,isInteractionsActive:i.active??!1,children:tr.jsx(YI,{})}):null,tr.jsx(gk,{open:e,anchorEl:!1===g?v.current:r.current,onClose:I,menuGroups:_k({headerData:n,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:A,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:r,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:P,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},Fk=e=>e.isDark?{background:e.color,borderColor:wC.DARK_MODE_BORDER,color:wC.DARK_MODE_TEXT,disabledColor:wC.DARK_MODE_DISABLED,iconColor:wC.DARK_MODE_TEXT}:{background:e.color,borderColor:wC.BORDER_MEDIUM,color:wC.TEXT,disabledColor:wC.DISABLED},Hk=ac(Xd,{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}`}))),$k=ac(bh,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),Bk=ac(ap,{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)}))),Wk=ac(pd)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),Vk=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=C((()=>Fk(n.background)),[n]);if(!r.active)return null;const a=o?tr.jsx(Hk,{footerStyle:i,children:e}):null;return t?H.createPortal(e,t):a},Uk=M({}),Gk=()=>S(Uk),Yk=({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=C((()=>Fk(p.background)),[p]),y=o?o.getBoundingClientRect().width:h.width,x=VC({translator:d}),S=C((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:c,translator: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 tr.jsx(Uk.Provider,{value:S,children:e})};let Kk=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),Xk=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 Jk=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})}))),Zk=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})}))),Qk=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})}))),eM={FirstPage:Zk,PreviousPage:Jk,NextPage:ak,LastPage:Qk,FirstPageRTL:Qk,PreviousPageRTL:ak,NextPageRTL:Jk,LastPageRTL:Zk},tM=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:s,tabIndex:l}=Gk(),u=r.concat("rtl"===n?"RTL":""),c=eM[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}},rM=()=>{const{pageInfo:e,width:t,interactions:r,visibilityThreshold:n}=Gk(),o=0===e.page,{IconComponent:i,styledProps:a}=tM({type:Kk.FirstPage,disabledCondition:o,pageNumber:0});return t<=(n?.firstPage||Xk.FirstPage)?null:tr.jsx(Bk,{...a,disabled:!r.active,children:tr.jsx(i,{height:UC})})},nM=(e,t,r=!1)=>{r&&e.key===ZC.Tab&&!e.shiftKey&&(kC(e),IC(e.target,t,!1))},oM=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i,visibilityThreshold:a}=Gk(),s=e.page>=r-1,{IconComponent:l,styledProps:u}=tM({type:Kk.LastPage,disabledCondition:s,pageNumber:r-1}),c=t.enabled?e=>{nM(e,t,n)}:void 0;return o<=(a?.lastPage||Xk.LastPage)?null:tr.jsx(Bk,{...u,onKeyDown:c,disabled:!i.active,children:tr.jsx(l,{height:UC})})},iM=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o,interactions:i}=Gk(),a=e.page>=r-1,{IconComponent:s,styledProps:l}=tM({type:Kk.NextPage,disabledCondition:a,pageNumber:e.page+1}),u=!(o>Xk.FirstPage&&o>Xk.LastPage)&&t.enabled?e=>{nM(e,t,n)}:void 0;return tr.jsx(Bk,{...l,onKeyDown:u,disabled:!i.active,children:tr.jsx(s,{height:UC})})},aM=()=>{const{pageInfo:e,interactions:t}=Gk(),r=0===e.page,{IconComponent:n,styledProps:o}=tM({type:Kk.PreviousPage,disabledCondition:r,pageNumber:e.page-1});return tr.jsx(Bk,{...o,disabled:!t.active,children:tr.jsx(n,{height:UC})})},sM=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=Gk(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||Xk.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return tr.jsx(Wk,{variant:"caption",dir:"ltr",children:s})},lM=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=Gk(),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 tr.jsxs(tr.Fragment,{children:[tr.jsxs(Wk,{variant:"caption",id:p,children:[c,":"]}),tr.jsx($k,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},uM=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=Gk();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||Xk.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=tr.jsx(tr.Fragment,{children:e.rowsPerPageOptions.map((e=>tr.jsx("option",{value:e,children:e},e)))});return tr.jsx(lM,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},cM=1e3,dM="…",pM=({totalPages:e,page:t})=>{const r=Math.min(e,cM),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-cM):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return tr.jsx("option",{value:t,children:t+1},t)}));return i>0&&a.unshift(tr.jsx("option",{value:dM,disabled:!0,children:dM},"startMoreOptions")),o<e-1&&a.push(tr.jsx("option",{value:dM,disabled:!0,children:dM},"endMoreOptions")),tr.jsx(tr.Fragment,{children:a})},fM=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=Gk(),{page:i}=e;if(t<=(o?.selectPage||Xk.SelectPage))return null;const a=tr.jsx(pM,{totalPages:r,page:i});return tr.jsx(lM,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var hM=O((e=>tr.jsxs(Yk,{...e,children:[tr.jsx(uM,{}),tr.jsx(fM,{}),tr.jsx(sM,{}),tr.jsx(rM,{}),tr.jsx(aM,{}),tr.jsx(iM,{}),tr.jsx(oM,{})]})));const mM=e=>tr.jsx(Vk,{...e,children:tr.jsx(hM,{...e})});var gM=Symbol.for("preact-signals");function bM(){if(wM>1)wM--;else{for(var e,t=!1;void 0!==SM;){var r=SM;for(SM=void 0,CM++;void 0!==r;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&IM(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(CM=0,wM--,t)throw e}}function vM(e){if(wM>0)return e();wM++;try{return e()}finally{bM()}}var yM=void 0;function xM(e){var t=yM;yM=void 0;try{return e()}finally{yM=t}}var SM=void 0,wM=0,CM=0,EM=0;function RM(e){if(void 0!==yM){var t=e.n;if(void 0===t||t.t!==yM)return t={i:0,S:e,p:yM.s,n:void 0,t:yM,e:void 0,x:void 0,r:t},void 0!==yM.s&&(yM.s.n=t),yM.s=t,e.n=t,32&yM.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=yM.s,t.n=void 0,yM.s.n=t,yM.s=t),t}}function PM(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 AM(e,t){return new PM(e,t)}function IM(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 kM(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 MM(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 DM(e,t){PM.call(this,void 0),this.x=e,this.s=void 0,this.g=EM-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 TM(e,t){return new DM(e,t)}function qM(e){var t=e.u;if(e.u=void 0,"function"==typeof t){wM++;var r=yM;yM=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,OM(e),t}finally{yM=r,bM()}}}function OM(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,qM(e)}function LM(e){if(yM!==this)throw new Error("Out-of-order effect");MM(this),yM=e,this.f&=-2,8&this.f&&OM(this),bM()}function NM(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 jM(e,t){var r=new NM(e,t);try{r.c()}catch(e){throw r.d(),e}var n=r.d.bind(r);return n[Symbol.dispose]=n,n}PM.prototype.brand=gM,PM.prototype.h=function(){return!0},PM.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:xM((function(){var e;null==(e=t.W)||e.call(t)})))},PM.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&&xM((function(){var e;null==(e=t.Z)||e.call(t)})))}},PM.prototype.subscribe=function(e){var t=this;return jM((function(){var r=t.value,n=yM;yM=void 0;try{e(r)}finally{yM=n}}),{name:"sub"})},PM.prototype.valueOf=function(){return this.value},PM.prototype.toString=function(){return this.value+""},PM.prototype.toJSON=function(){return this.value},PM.prototype.peek=function(){var e=yM;yM=void 0;try{return this.value}finally{yM=e}},Object.defineProperty(PM.prototype,"value",{get:function(){var e=RM(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(CM>100)throw new Error("Cycle detected");this.v=e,this.i++,EM++,wM++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{bM()}}}}),DM.prototype=new PM,DM.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===EM)return!0;if(this.g=EM,this.f|=1,this.i>0&&!IM(this))return this.f&=-2,!0;var e=yM;try{kM(this),yM=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 yM=e,MM(this),this.f&=-2,!0},DM.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)}PM.prototype.S.call(this,e)},DM.prototype.U=function(e){if(void 0!==this.t&&(PM.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)}},DM.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(DM.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=RM(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),NM.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()}},NM.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,qM(this),kM(this),wM++;var e=yM;return yM=this,LM.bind(this,e)},NM.prototype.N=function(){2&this.f||(this.f|=2,this.o=SM,SM=this)},NM.prototype.d=function(){this.f|=8,1&this.f||OM(this)},NM.prototype.dispose=function(){this.d()};var _M,zM,FM,HM,$M,BM,WM,VM,UM,GM,YM,KM,XM,JM,ZM,QM,eD,tD,rD,nD,oD=Object.create,iD=Object.defineProperty,aD=Object.defineProperties,sD=Object.getOwnPropertyDescriptor,lD=Object.getOwnPropertyDescriptors,uD=Object.getOwnPropertySymbols,cD=Object.prototype.hasOwnProperty,dD=Object.prototype.propertyIsEnumerable,pD=e=>{throw TypeError(e)},fD=(e,t,r)=>t in e?iD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hD=(e,t)=>iD(e,"name",{value:t,configurable:!0}),mD=["class","method","getter","setter","accessor","field","value","get","set"],gD=e=>void 0!==e&&"function"!=typeof e?pD("Function expected"):e,bD=(e,t,r,n,o)=>({kind:mD[e],name:t,metadata:n,addInitializer:e=>r._?pD("Already initialized"):o.push(gD(e||null))}),vD=(e,t)=>{return fD(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n},yD=(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},xD=(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=mD[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)&&sD(d<4?o:{get[r](){return CD(this,i)},set[r](e){return RD(this,i,e)}},r));d?f&&d<4&&hD(i,(d>2?"set ":d>1?"get ":"")+r):hD(o,r);for(var y=n.length-1;y>=0;y--)u=bD(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>wD(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?CD:PD)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>RD(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?gD(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?pD("Object expected"):(gD(a=s.get)&&(v.get=a),gD(a=s.set)&&(v.set=a),gD(a=s.init)&&g.unshift(a));return d||vD(e,o),v&&iD(o,r,v),f?4^d?i:v:o},SD=(e,t,r)=>t.has(e)||pD("Cannot "+r),wD=(e,t)=>Object(t)!==t?pD('Cannot use the "in" operator on this value'):e.has(t),CD=(e,t,r)=>(SD(e,t,"read from private field"),r?r.call(e):t.get(e)),ED=(e,t,r)=>t.has(e)?pD("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),RD=(e,t,r,n)=>(SD(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),PD=(e,t,r)=>(SD(e,t,"access private method"),r);function AD(e,t){if(t){let r;return TM((()=>{const n=e();return n&&r&&t(r,n)?r:(r=n,n)}))}return TM(e)}function ID(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)=>!ID(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=>!ID(e[r],t[r])));return!o}return!1}function kD({get:e},t){return{init:e=>AM(e),get(){return e.call(this).value},set(t){const r=e.call(this);r.peek()!==t&&(r.value=t)}}}function MD(e,t){const r=new WeakMap;return function(){let t=r.get(this);return t||(t=AD(e.bind(this)),r.set(this,t)),t.value}}function DD(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)=>aD(e,lD(t)))(((e,t)=>{for(var r in t||(t={}))cD.call(t,r)&&fD(e,r,t[r]);if(uD)for(var r of uD(t))dD.call(t,r)&&fD(e,r,t[r]);return e})({},n),{enumerable:e}))}))}}function TD(...e){const t=e.map((e=>jM(e)));return()=>t.forEach((e=>e()))}BM=[kD],$M=[kD],HM=[kD],FM=[DD()],zM=[DD()],_M=[DD()];var qD,OD=class{constructor(e,t=Object.is){this.defaultValue=e,this.equals=t,yD(WM,5,this),ED(this,KM),ED(this,VM,yD(WM,8,this)),yD(WM,11,this),ED(this,XM,yD(WM,12,this)),yD(WM,15,this),ED(this,eD,yD(WM,16,this)),yD(WM,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return CD(this,KM,rD)}get initial(){return CD(this,KM,GM)}get previous(){return CD(this,KM,ZM)}set current(e){const t=xM((()=>CD(this,KM,rD)));e&&t&&this.equals(t,e)||vM((()=>{CD(this,KM,GM)||RD(this,KM,e,YM),RD(this,KM,t,QM),RD(this,KM,e,nD)}))}reset(e=this.defaultValue){vM((()=>{RD(this,KM,void 0,QM),RD(this,KM,e,YM),RD(this,KM,e,nD)}))}};function LD(e){return xM((()=>{const t={};for(const r in e)t[r]=e[r];return t}))}WM=[,,,oD(null)],VM=new WeakMap,KM=new WeakSet,XM=new WeakMap,eD=new WeakMap,UM=xD(WM,20,"#initial",BM,KM,VM),GM=UM.get,YM=UM.set,JM=xD(WM,20,"#previous",$M,KM,XM),ZM=JM.get,QM=JM.set,tD=xD(WM,20,"#current",HM,KM,eD),rD=tD.get,nD=tD.set,xD(WM,2,"current",FM,OD),xD(WM,2,"initial",zM,OD),xD(WM,2,"previous",_M,OD),vD(WM,OD);qD=new WeakMap;var ND,jD,_D,zD,FD,HD=Object.create,$D=Object.defineProperty,BD=Object.getOwnPropertyDescriptor,WD=Object.getOwnPropertySymbols,VD=Object.prototype.hasOwnProperty,UD=Object.prototype.propertyIsEnumerable,GD=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),YD=e=>{throw TypeError(e)},KD=Math.pow,XD=(e,t,r)=>t in e?$D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,JD=["class","method","getter","setter","accessor","field","value","get","set"],ZD=e=>void 0!==e&&"function"!=typeof e?YD("Function expected"):e,QD=(e,t,r,n,o)=>({kind:JD[e],name:t,metadata:n,addInitializer:e=>r._?YD("Already initialized"):o.push(ZD(e||null))}),eT=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=JD[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,BD(o,r)),h=n.length-1;h>=0;h--)(l=QD(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,ZD(a)&&(f[d]=a);return f&&$D(o,r,f),o},tT=(e,t,r)=>t.has(e)||YD("Cannot "+r),rT=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)}},nT=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={}))VD.call(t,r)&&XD(e,r,t[r]);if(WD)for(var r of WD(t))UD.call(t,r)&&XD(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 rT((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 rT.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 oT,iT=class extends(_D=OD,jD=[MD],ND=[MD],_D){constructor(e){var t,r,n;super(rT.from(e),((e,t)=>rT.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)})(FD,5,this),t=this,n=0,(r=zD).has(t)?YD("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 rT.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=rT.from(e),n={x:r.x-t.x,y:r.y-t.y},o=Date.now(),i=o-(tT(a=this,s=zD,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);vM((()=>{((e,t,r)=>{tT(e,t,"write to private field"),t.set(e,r)})(this,zD,o),this.velocity={x:l(n.x),y:l(n.y)},super.current=r}))}reset(e=this.defaultValue){super.reset(rT.from(e)),this.velocity={x:0,y:0}}};function aT({x:e,y:t},r){const n=Math.abs(e),o=Math.abs(t);return"number"==typeof r?Math.sqrt(KD(n,2)+KD(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}FD=(e=>{var t;return[,,,HD(null!=(t=null==e?void 0:e[GD("metadata")])?t:null)]})(_D),zD=new WeakMap,eT(FD,2,"delta",jD,iT),eT(FD,2,"direction",ND,iT),oT=FD,XD(iT,GD("metadata"),oT[3]);var sT,lT,uT,cT,dT=(e=>(e.Horizontal="x",e.Vertical="y",e))(dT||{}),pT=Object.values(dT),fT=Object.create,hT=Object.defineProperty,mT=Object.defineProperties,gT=Object.getOwnPropertyDescriptor,bT=Object.getOwnPropertyDescriptors,vT=Object.getOwnPropertySymbols,yT=Object.prototype.hasOwnProperty,xT=Object.prototype.propertyIsEnumerable,ST=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),wT=e=>{throw TypeError(e)},CT=(e,t,r)=>t in e?hT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ET=(e,t)=>{for(var r in t||(t={}))yT.call(t,r)&&CT(e,r,t[r]);if(vT)for(var r of vT(t))xT.call(t,r)&&CT(e,r,t[r]);return e},RT=(e,t)=>mT(e,bT(t)),PT=(e,t)=>hT(e,"name",{value:t,configurable:!0}),AT=(e,t)=>{var r={};for(var n in e)yT.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&vT)for(var n of vT(e))t.indexOf(n)<0&&xT.call(e,n)&&(r[n]=e[n]);return r},IT=e=>{var t;return[,,,fT(null!=(t=null==e?void 0:e[ST("metadata")])?t:null)]},kT=["class","method","getter","setter","accessor","field","value","get","set"],MT=e=>void 0!==e&&"function"!=typeof e?wT("Function expected"):e,DT=(e,t,r,n,o)=>({kind:kT[e],name:t,metadata:n,addInitializer:e=>r._?wT("Already initialized"):o.push(MT(e||null))}),TT=(e,t)=>CT(t,ST("metadata"),e[3]),qT=(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},OT=(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=kT[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)&&gT(d<4?o:{get[r](){return jT(this,i)},set[r](e){return zT(this,i,e)}},r));d?f&&d<4&&PT(i,(d>2?"set ":d>1?"get ":"")+r):PT(o,r);for(var y=n.length-1;y>=0;y--)u=DT(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>NT(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?jT:FT)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>zT(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?MT(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?wT("Object expected"):(MT(a=s.get)&&(v.get=a),MT(a=s.set)&&(v.set=a),MT(a=s.init)&&g.unshift(a));return d||TT(e,o),v&&hT(o,r,v),f?4^d?i:v:o},LT=(e,t,r)=>t.has(e)||wT("Cannot "+r),NT=(e,t)=>Object(t)!==t?wT('Cannot use the "in" operator on this value'):e.has(t),jT=(e,t,r)=>(LT(e,t,"read from private field"),r?r.call(e):t.get(e)),_T=(e,t,r)=>t.has(e)?wT("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),zT=(e,t,r,n)=>(LT(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),FT=(e,t,r)=>(LT(e,t,"access private method"),r);function HT(e,t){return{plugin:e,options:t}}function $T(e){return t=>HT(e,t)}function BT(e){return"function"==typeof e?{plugin:e,options:void 0}:e}sT=[kD];var WT=class{constructor(e,t){this.manager=e,this.options=t,_T(this,uT,qT(lT,8,this,!1)),qT(lT,11,this),_T(this,cT,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return xM((()=>this.disabled))}configure(e){this.options=e}registerEffect(e){const t=jM(e.bind(this));return jT(this,cT).add(t),t}destroy(){jT(this,cT).forEach((e=>e()))}static configure(e){return HT(this,e)}};lT=IT(null),uT=new WeakMap,cT=new WeakMap,OT(lT,4,"disabled",sT,WT,uT),TT(lT,WT);var VT,UT=class extends WT{},GT=class{constructor(e){this.manager=e,this.instances=new Map,_T(this,VT,[])}get values(){return Array.from(this.instances.values())}set values(e){const t=e.map(BT).reduceRight(((e,t)=>e.some((({plugin:e})=>e===t.plugin))?e:[t,...e]),[]),r=t.map((({plugin:e})=>e));for(const e of jT(this,VT))if(!r.includes(e)){if(e.prototype instanceof UT)continue;this.unregister(e)}for(const{plugin:e,options:r}of t)this.register(e,r);zT(this,VT,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 YT(e,t){return e.priority===t.priority?e.type===t.type?t.value-e.value:t.type-e.type:t.priority-e.priority}VT=new WeakMap;var KT,XT,JT=[],ZT=class extends WT{constructor(e){super(e),_T(this,KT),_T(this,XT),this.computeCollisions=this.computeCollisions.bind(this),zT(this,XT,AM(JT)),this.destroy=TD((()=>{const e=this.computeCollisions(),t=xM((()=>this.manager.dragOperation.position.current));if(e!==JT){const e=jT(this,KT);if(zT(this,KT,t),e&&t.x==e.x&&t.y==e.y)return}else zT(this,KT,void 0);jT(this,XT).value=e}),(()=>{const{dragOperation:e}=this.manager;e.status.initialized&&this.forceUpdate()}))}forceUpdate(e=!0){xM((()=>{e?jT(this,XT).value=this.computeCollisions():zT(this,KT,void 0)}))}computeCollisions(e,t){const{registry:r,dragOperation:n}=this.manager,{source:o,shape:i,status:a}=n;if(!a.initialized||!i)return JT;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=xM((()=>e({droppable:i,dragOperation:n})));r&&(null!=i.collisionPriority&&(r.priority=i.collisionPriority),s.push(r))}return 0===l.length?JT:(s.sort(YT),s)}get collisions(){return jT(this,XT).value}};KT=new WeakMap,XT=new WeakMap;var QT=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)}},eq=class extends QT{constructor(e){super(),this.manager=e}dispatch(e,t){const r=[t,this.manager];super.dispatch(e,...r)}};function tq(e,t=!0){let r=!1;return RT(ET({},e),{cancelable:t,get defaultPrevented(){return r},preventDefault(){t&&(r=!0)}})}var rq,nq,oq,iq,aq,sq,lq,uq,cq,dq=class extends UT{constructor(e){super(e);let t=[];this.destroy=TD((()=>{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=tq({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;xM((()=>{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()})))}))}))}},pq=(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))(pq||{}),fq=(e=>(e[e.Collision=0]="Collision",e[e.ShapeIntersection=1]="ShapeIntersection",e[e.PointerIntersection=2]="PointerIntersection",e))(fq||{});lq=[kD],sq=[MD],aq=[MD],iq=[MD],oq=[MD],nq=[MD],rq=[MD];var hq=class{constructor(){qT(uq,5,this),_T(this,cq,qT(uq,8,this,"idle")),qT(uq,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}};uq=IT(null),cq=new WeakMap,OT(uq,4,"value",lq,hq,cq),OT(uq,2,"current",sq,hq),OT(uq,2,"idle",aq,hq),OT(uq,2,"initializing",iq,hq),OT(uq,2,"initialized",oq,hq),OT(uq,2,"dragging",nq,hq),OT(uq,2,"dropped",rq,hq),TT(uq,hq);var mq,gq,bq,vq,yq,xq,Sq,wq,Cq,Eq=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 xM((()=>{const{dragOperation:t}=this.manager,r=null!=e?e:null;if(t.targetIdentifier===r)return Promise.resolve(!1);t.targetIdentifier=r;const n=tq({operation:t.snapshot()});return t.status.dragging&&this.manager.monitor.dispatch("dragover",n),this.manager.renderer.rendering.then((()=>n.defaultPrevented))}))}start(e){return xM((()=>{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;vM((()=>{t.status.set("initialization-pending"),t.shape=null,t.canceled=!1,t.activatorEvent=null!=n?n:null,t.position.reset(o)}));const i=tq({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 xM((()=>{var t,r;const{dragOperation:n}=this.manager,{status:o,controller:i}=n;if(!o.dragging||!i||i.signal.aborted)return;const a=tq({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 xM((()=>{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=xM((()=>{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=jM((()=>{"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()}))}};vq=[kD],bq=[kD],gq=[kD],mq=[kD];var Rq=class{constructor(e,t){_T(this,xq,qT(yq,8,this)),qT(yq,11,this),_T(this,Sq,qT(yq,12,this)),qT(yq,15,this),_T(this,wq,qT(yq,16,this)),qT(yq,19,this),_T(this,Cq,qT(yq,20,this)),qT(yq,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)}};yq=IT(null),xq=new WeakMap,Sq=new WeakMap,wq=new WeakMap,Cq=new WeakMap,OT(yq,4,"manager",vq,Rq,xq),OT(yq,4,"id",bq,Rq,Sq),OT(yq,4,"data",gq,Rq,wq),OT(yq,4,"disabled",mq,Rq,Cq),TT(yq,Rq);var Pq,Aq,Iq,kq,Mq,Dq,Tq,qq,Oq,Lq,Nq,jq,_q,zq,Fq,Hq,$q,Bq,Wq,Vq,Uq,Gq,Yq,Kq,Xq=class{constructor(){this.map=AM(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=TD(...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}},Jq=class extends(Tq=Rq,Dq=[kD],Mq=[kD],kq=[kD],Iq=[MD],Aq=[MD],Pq=[MD],Tq){constructor(e,t){var r=e,{modifiers:n,type:o,sensors:i}=r,a=AT(r,["modifiers","type","sensors"]);super(a,t),qT(qq,5,this),_T(this,Oq,qT(qq,8,this)),qT(qq,11,this),_T(this,Lq,qT(qq,12,this)),qT(qq,15,this),_T(this,Nq,qT(qq,16,this,this.isDragSource?"dragging":"idle")),qT(qq,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}};qq=IT(Tq),Oq=new WeakMap,Lq=new WeakMap,Nq=new WeakMap,OT(qq,4,"type",Dq,Jq,Oq),OT(qq,4,"modifiers",Mq,Jq,Lq),OT(qq,4,"status",kq,Jq,Nq),OT(qq,2,"isDropping",Iq,Jq),OT(qq,2,"isDragging",Aq,Jq),OT(qq,2,"isDragSource",Pq,Jq),TT(qq,Jq);var Zq=class extends(Bq=Rq,$q=[kD],Hq=[kD],Fq=[kD],zq=[kD],_q=[kD],jq=[MD],Bq){constructor(e,t){var r=e,{accept:n,collisionDetector:o,collisionPriority:i,type:a}=r;super(AT(r,["accept","collisionDetector","collisionPriority","type"]),t),qT(Wq,5,this),_T(this,Vq,qT(Wq,8,this)),qT(Wq,11,this),_T(this,Uq,qT(Wq,12,this)),qT(Wq,15,this),_T(this,Gq,qT(Wq,16,this)),qT(Wq,19,this),_T(this,Yq,qT(Wq,20,this)),qT(Wq,23,this),_T(this,Kq,qT(Wq,24,this)),qT(Wq,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}};Wq=IT(Bq),Vq=new WeakMap,Uq=new WeakMap,Gq=new WeakMap,Yq=new WeakMap,Kq=new WeakMap,OT(Wq,4,"accept",$q,Zq,Vq),OT(Wq,4,"type",Hq,Zq,Uq),OT(Wq,4,"collisionDetector",Fq,Zq,Gq),OT(Wq,4,"collisionPriority",zq,Zq,Yq),OT(Wq,4,"shape",_q,Zq,Kq),OT(Wq,2,"isDropTarget",jq,Zq),TT(Wq,Zq);var Qq,eO=class extends WT{constructor(e,t){super(e,t),this.manager=e,this.options=t}},tO=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)}},rO=class{constructor(e){this.options=e,_T(this,Qq)}set controller(e){zT(this,Qq,e),e.signal.addEventListener("abort",(()=>this.abort()))}activate(e){var t;null==(t=jT(this,Qq))||t.activate(e)}};Qq=new WeakMap;var nO,oO,iO,aO,sO,lO,uO,cO,dO,pO,fO,hO,mO,gO,bO,vO,yO,xO,SO,wO=class extends WT{constructor(e,t){super(e,t),this.manager=e,this.options=t}apply(e){return e.transform}},CO=class{constructor(e){this.draggables=new Xq,this.droppables=new Xq,this.plugins=new GT(e),this.sensors=new GT(e),this.modifiers=new GT(e)}register(e,t){if(e instanceof Jq)return this.draggables.register(e.id,e);if(e instanceof Zq)return this.droppables.register(e.id,e);if(e.prototype instanceof wO)return this.modifiers.register(e,t);if(e.prototype instanceof eO)return this.sensors.register(e,t);if(e.prototype instanceof WT)return this.plugins.register(e,t);throw new Error("Invalid instance type")}unregister(e){if(e instanceof Rq)return e instanceof Jq?this.draggables.unregister(e.id,e):e instanceof Zq?this.droppables.unregister(e.id,e):()=>{};if(e.prototype instanceof wO)return this.modifiers.unregister(e);if(e.prototype instanceof eO)return this.sensors.unregister(e);if(e.prototype instanceof WT)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()}};dO=[MD],cO=[kD],uO=[kD],lO=[kD],sO=[kD],aO=[kD],iO=[MD],oO=[MD],nO=[MD];var EO=class{constructor(e){qT(mO,5,this),_T(this,pO),_T(this,fO),_T(this,hO,new OD(void 0,((e,t)=>e&&t?e.equals(t):e===t))),this.status=new hq,_T(this,gO,qT(mO,8,this,!1)),qT(mO,11,this),_T(this,bO,qT(mO,12,this,null)),qT(mO,15,this),_T(this,vO,qT(mO,16,this,null)),qT(mO,19,this),_T(this,yO,qT(mO,20,this,null)),qT(mO,23,this),_T(this,xO,qT(mO,24,this,[])),qT(mO,27,this),this.position=new iT({x:0,y:0}),_T(this,SO,{x:0,y:0}),zT(this,pO,e)}get shape(){const{current:e,initial:t,previous:r}=jT(this,hO);return e&&t?{current:e,initial:t,previous:r}:null}set shape(e){e?jT(this,hO).current=e:jT(this,hO).reset()}get source(){var e;const t=this.sourceIdentifier;if(null==t)return null;const r=jT(this,pO).registry.draggables.get(t);return r&&zT(this,fO,r),null!=(e=null!=r?r:jT(this,fO))?e:null}get target(){var e;const t=this.targetIdentifier;return null!=t&&null!=(e=jT(this,pO).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(RT(ET({},this.snapshot()),{transform:r}));return zT(this,SO,r),r}snapshot(){return xM((()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:jT(this,SO),shape:this.shape?LD(this.shape):null,position:LD(this.position),status:LD(this.status),canceled:this.canceled})))}reset(){vM((()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,jT(this,hO).reset(),this.position.reset({x:0,y:0}),zT(this,SO,{x:0,y:0}),this.modifiers=[]}))}};mO=IT(null),pO=new WeakMap,fO=new WeakMap,hO=new WeakMap,gO=new WeakMap,bO=new WeakMap,vO=new WeakMap,yO=new WeakMap,xO=new WeakMap,SO=new WeakMap,OT(mO,2,"shape",dO,EO),OT(mO,4,"canceled",cO,EO,gO),OT(mO,4,"activatorEvent",uO,EO,bO),OT(mO,4,"sourceIdentifier",lO,EO,vO),OT(mO,4,"targetIdentifier",sO,EO,yO),OT(mO,4,"modifiers",aO,EO,xO),OT(mO,2,"source",iO,EO),OT(mO,2,"target",oO,EO),OT(mO,2,"transform",nO,EO),TT(mO,EO);var RO={get rendering(){return Promise.resolve()}},PO=class{constructor(e){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{plugins:t=[],sensors:r=[],modifiers:n=[],renderer:o=RO}=null!=e?e:{},i=new eq(this),a=new CO(this);this.registry=a,this.monitor=i,this.renderer=o,this.actions=new Eq(this),this.dragOperation=new EO(this),this.collisionObserver=new ZT(this),this.plugins=[dq,...t],this.modifiers=n,this.sensors=r;const{destroy:s}=this,l=TD((()=>{var e,t,r;const n=xM((()=>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}=BT(e);return new t(this,r)})))?r:o}));this.destroy=()=>{l(),s()}}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}},AO=e=>{throw TypeError(e)},IO=(e,t,r)=>t.has(e)||AO("Cannot "+r),kO=(e,t,r)=>(IO(e,t,"read from private field"),t.get(e)),MO=(e,t,r)=>t.has(e)?AO("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),DO=(e,t,r,n)=>(IO(e,t,"write to private field"),t.set(e,r),r),TO=(e,t,r)=>(IO(e,t,"access private method"),r);function qO(e){return!!e&&(e instanceof KeyframeEffect||"getKeyframes"in e&&"function"==typeof e.getKeyframes)}function OO(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=(qO(r)?r.getKeyframes():[]).filter(t);if(n.length>0)return[n[n.length-1],e]}return null}function LO(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 NO(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function jO(e){return"nodeType"in e}function _O(e){var t,r,n;return e?NO(e)?e:jO(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 zO(e){const{Document:t}=_O(e);return e instanceof t||"nodeType"in e&&e.nodeType===Node.DOCUMENT_NODE}function FO(e){return!(!e||NO(e))&&(e instanceof _O(e).HTMLElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("html"))}function HO(e){return e instanceof _O(e).SVGElement||"namespaceURI"in e&&"string"==typeof e.namespaceURI&&e.namespaceURI.endsWith("svg")}function $O(e){return e?NO(e)?e.document:jO(e)?zO(e)?e:FO(e)||HO(e)?e.ownerDocument:document:document:document}function BO(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 WO(e,t=e.getBoundingClientRect(),r=0){var n;let o=t;const{ownerDocument:i}=e,a=null!=(n=i.defaultView)?n:window;let s=e.parentElement;for(;s&&s!==i.documentElement;){if(!BO(s)){const e=s.getBoundingClientRect(),t=r*(e.bottom-e.top),n=r*(e.right-e.left),i=r*(e.bottom-e.top),a=r*(e.right-e.left);o={top:Math.max(o.top,e.top-t),right:Math.min(o.right,e.right+n),bottom:Math.min(o.bottom,e.bottom+i),left:Math.max(o.left,e.left-a),width:0,height:0},o.width=o.right-o.left,o.height=o.bottom-o.top}s=s.parentElement}const l=a.innerWidth,u=a.innerHeight,c=r*u,d=r*l;return o={top:Math.max(o.top,0-c),right:Math.min(o.right,l+d),bottom:Math.min(o.bottom,u+c),left:Math.max(o.left,0-d),width:0,height:0},o.width=o.right-o.left,o.height=o.bottom-o.top,o.width<0&&(o.width=0),o.height<0&&(o.height=0),o}function VO(e){return{x:e.clientX,y:e.clientY}}var UO="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function GO(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(...GO(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(...GO(o.document,t))}}catch(e){}return r}function YO(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function KO(e){return"value"in e}function XO(e){return"CANVAS"===e.tagName}function JO(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 JO(e,{x:t-o,y:r-i})}}return n}var ZO=new WeakMap;var QO=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 eL(e){const t=null==e?void 0:e.ownerDocument.defaultView;if(t&&t.self!==t.parent)return t.frameElement}function tL(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 rL,nL=UO?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},oL=class extends nL{constructor(e){super((t=>{kO(this,rL)?e(t,this):DO(this,rL,!0)})),MO(this,rL,!1)}};rL=new WeakMap;var iL,aL,sL,lL,uL,cL,dL,pL,fL,hL,mL,gL=Array.from({length:100},((e,t)=>t/100)),bL=class{constructor(e,t,r={debug:!1,skipInitial:!1}){this.element=e,this.callback=t,MO(this,fL),this.disconnect=()=>{var e,t,r;DO(this,dL,!0),null==(e=kO(this,sL))||e.disconnect(),null==(t=kO(this,lL))||t.disconnect(),kO(this,uL).disconnect(),null==(r=kO(this,cL))||r.remove()},MO(this,iL,!0),MO(this,aL),MO(this,sL),MO(this,lL),MO(this,uL),MO(this,cL),MO(this,dL,!1),MO(this,pL,tL((()=>{var e,t,r;const{element:n}=this;if(null==(e=kO(this,lL))||e.disconnect(),kO(this,dL)||!kO(this,iL)||!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=WO(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,DO(this,lL,new IntersectionObserver((e=>{const[t]=e,{intersectionRect:r}=t;1!==(1!==t.intersectionRatio?t.intersectionRatio:nT.intersectionRatio(r,WO(n)))&&kO(this,pL).call(this)}),{threshold:gL,rootMargin:m,root:o})),kO(this,lL).observe(n),TO(this,fL,hL).call(this)}),75)),this.boundingClientRect=e.getBoundingClientRect(),DO(this,iL,function(e,t=e.getBoundingClientRect()){const{width:r,height:n}=WO(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)&&(DO(this,cL,document.createElement("div")),kO(this,cL).style.background="rgba(0,0,0,0.15)",kO(this,cL).style.position="fixed",kO(this,cL).style.pointerEvents="none",o.body.appendChild(kO(this,cL))),DO(this,uL,new IntersectionObserver((t=>{var r,n;const o=t[t.length-1],{boundingClientRect:i,isIntersecting:a}=o,{width:s,height:l}=i,u=kO(this,iL);DO(this,iL,a),(s||l)&&(u&&!a?(null==(r=kO(this,lL))||r.disconnect(),this.callback(null),null==(n=kO(this,sL))||n.disconnect(),DO(this,sL,void 0),kO(this,cL)&&(kO(this,cL).style.visibility="hidden")):kO(this,pL).call(this),a&&!kO(this,sL)&&(DO(this,sL,new oL(kO(this,pL))),kO(this,sL).observe(e)))}),{threshold:gL,root:o})),kO(this,iL)&&!r.skipInitial&&this.callback(this.boundingClientRect),kO(this,uL).observe(e)}};iL=new WeakMap,aL=new WeakMap,sL=new WeakMap,lL=new WeakMap,uL=new WeakMap,cL=new WeakMap,dL=new WeakMap,pL=new WeakMap,fL=new WeakSet,hL=function(){kO(this,dL)||(TO(this,fL,mL).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,kO(this,aL))||(this.callback(this.boundingClientRect),DO(this,aL,this.boundingClientRect)))},mL=function(){if(kO(this,cL)){const{top:e,left:t,width:r,height:n}=WO(this.element);kO(this,cL).style.overflow="hidden",kO(this,cL).style.visibility="visible",kO(this,cL).style.top=`${Math.floor(e)}px`,kO(this,cL).style.left=`${Math.floor(t)}px`,kO(this,cL).style.width=`${Math.floor(r)}px`,kO(this,cL).style.height=`${Math.floor(n)}px`}};var vL,yL,xL,SL,wL=new WeakMap,CL=new WeakMap;function EL(e,t){let r=wL.get(e);if(!r){const t=new bL(e,(t=>{const r=wL.get(e);r&&r.callbacks.forEach((e=>e(t)))}),{skipInitial:!0});r={disconnect:t.disconnect,callbacks:new Set}}return r.callbacks.add(t),wL.set(e,r),()=>{r.callbacks.delete(t),0===r.callbacks.size&&(wL.delete(e),r.disconnect())}}var RL=class{constructor(e,t,r){this.callback=t,MO(this,vL),MO(this,yL,!1),MO(this,xL),MO(this,SL,tL((e=>{if(!kO(this,yL)&&e.target&&"contains"in e.target&&"function"==typeof e.target.contains)for(const t of kO(this,xL))if(e.target.contains(t)){this.callback(kO(this,vL).boundingClientRect);break}}),75));const n=function(e){const t=new Set;let r=eL(e);for(;r;)t.add(r),r=eL(r);return t}(e),o=function(e,t){const r=new Set;for(const n of e){const e=EL(n,t);r.add(e)}return()=>r.forEach((e=>e()))}(n,t),i=function(e,t){var r;const n=e.ownerDocument;if(!CL.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}),CL.set(n,{disconnect:()=>e.abort(),listeners:t})}const{listeners:o,disconnect:i}=null!=(r=CL.get(n))?r:{};return o&&i?(o.add(t),()=>{o.delete(t),0===o.size&&(i(),CL.delete(n))}):()=>{}}(e,kO(this,SL));DO(this,xL,n),DO(this,vL,new bL(e,t,r)),this.disconnect=()=>{kO(this,yL)||(DO(this,yL,!0),o(),i(),kO(this,vL).disconnect())}}};function PL(e){return"showPopover"in e&&"hidePopover"in e&&"function"==typeof e.showPopover&&"function"==typeof e.hidePopover}function AL(e){try{PL(e)&&e.isConnected&&e.hasAttribute("popover")&&!e.matches(":popover-open")&&e.showPopover()}catch(e){}}function IL(e){return!(!UO||!e)&&e===$O(e).scrollingElement}function kL(e){const t=_O(e),r=IL(e)?function(e){const{documentElement:t}=$O(e),r=t.clientWidth,n=t.clientHeight;return{top:0,left:0,right:r,bottom:n,width:r,height:n}}(e):LO(e),n=IL(e)?{height:t.innerHeight,width:t.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={current:{x:e.scrollLeft,y:e.scrollTop},max:{x:e.scrollWidth-n.width,y:e.scrollHeight-n.height}};return{rect:r,position:o,isTop:o.current.y<=0,isLeft:o.current.x<=0,isBottom:o.current.y>=o.max.y,isRight:o.current.x>=o.max.x}}function ML(e,t){const{isTop:r,isBottom:n,isLeft:o,isRight:i,position:a}=kL(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}}vL=new WeakMap,yL=new WeakMap,xL=new WeakMap,SL=new WeakMap;var DL=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)))}},TL=new DL((e=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(e):e()})),qL=new DL((e=>setTimeout(e,50))),OL=new Map,LL=OL.clear.bind(OL);function NL(e,t=!1){if(!t)return jL(e);let r=OL.get(e);return r||(r=jL(e),OL.set(e,r),qL.schedule(LL),r)}function jL(e){return _O(e).getComputedStyle(e)}var _L={excludeElement:!0};function zL(e,t=_L){const{limit:r,excludeElement:n}=t,o=new Set;return e?function t(i){if(null!=r&&o.size>=r)return o;if(!i)return o;if(zO(i)&&null!=i.scrollingElement&&!o.has(i.scrollingElement))return o.add(i.scrollingElement),o;if(!FO(i))return HO(i)?t(i.parentElement):o;if(o.has(i))return o;const a=NL(i,!0);if(n&&i===e||function(e,t=NL(e,!0)){const r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const n=t[e];return"string"==typeof n&&r.test(n)}))}(i,a)&&o.add(i),function(e,t=NL(e,!0)){return"fixed"===t.position||"sticky"===t.position}(i,a)){const{scrollingElement:e}=i.ownerDocument;return e&&o.add(e),o}return t(i.parentNode)}(e):o}function FL(e,t=window.frameElement){const r={x:0,y:0,scaleX:1,scaleY:1};if(!e)return r;let n=eL(e);for(;n;){if(n===t)return r;const e=LO(n),{x:o,y:i}=HL(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=eL(n)}return r}function HL(e,t=LO(e)){const r=Math.round(t.width),n=Math.round(t.height);if(FO(e))return{x:r/e.offsetWidth,y:n/e.offsetHeight};const o=NL(e,!0);return{x:(parseFloat(o.width)||r)/r,y:(parseFloat(o.height)||n)/n}}function $L(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 BL(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=$L(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 WL=(e=>(e[e.Idle=0]="Idle",e[e.Forward=1]="Forward",e[e.Reverse=-1]="Reverse",e))(WL||{}),VL={x:.2,y:.2},UL={x:10,y:10};function GL(e,t,r,n=25,o=VL,i=UL){const{x:a,y:s}=t,{rect:l,isTop:u,isBottom:c,isLeft:d,isRight:p}=kL(e),f=FL(e),h=BL(NL(e,!0)),m=null!==h&&(null==h?void 0:h.scaleX)<0,g=null!==h&&(null==h?void 0:h.scaleY)<0,b=new nT(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 YL(e,t=!1){if("scrollIntoViewIfNeeded"in(r=e)&&"function"==typeof r.scrollIntoViewIfNeeded)return void e.scrollIntoViewIfNeeded(t);var r;if(!FO(e))return e.scrollIntoView();var n=function(e){const[t]=zL(e,{limit:1});return null!=t?t:null}(e);if(!FO(n))return;const o=NL(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 KL({element:e,keyframes:t,options:r}){return e.animate(t,r).finished}function XL(e,t=NL(e).translate,r=!0){if(r){const t=OO(e,(e=>"translate"in e));if(t){const{translate:e=""}=t[0];if("string"==typeof e){const t=$L(e);if(t)return t}}}if(t){const e=$L(t);if(e)return e}return{x:0,y:0,z:0}}var JL=new DL((e=>setTimeout(e,0))),ZL=new Map,QL=ZL.clear.bind(ZL);function eN(e,t){const r=function(e){const t=e.ownerDocument;let r=ZL.get(t);if(r)return r;r=t.getAnimations(),ZL.set(t,r),JL.schedule(QL);const n=r.filter((t=>qO(t.effect)&&t.effect.target===e));return ZL.set(e,n),r}(e).filter((e=>{var r,n;if(qO(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 tN=class extends nT{constructor(e,t={}){var r,n,o,i;const{frameTransform:a=FL(e),ignoreTransforms:s,getBoundingClientRect:l=LO}=t,u=eN(e,{properties:["transform","translate","scale","width","height"],isValidTarget:t=>(t!==e||YO())&&t.contains(e)}),c=l(e);let d,{top:p,left:f,width:h,height:m}=c;const g=NL(e),b=BL(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=qO(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=BL({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 nN=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 oN(e){return!!e&&(e instanceof _O(e).Element||jO(e)&&e.nodeType===Node.ELEMENT_NODE)}function iN(e){if(!e)return!1;const{KeyboardEvent:t}=_O(e.target);return e instanceof t}var aN={};function sN(e){const t=null==aN[e]?0:aN[e]+1;return aN[e]=t,`${e}-${t}`}var lN=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/rT.distance(t.shape.center,r),type:fq.PointerIntersection,priority:pq.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=rT.distance(t.shape.center,o.current),a=n/(r.current.area+t.shape.area-n)/i;return{id:t.id,value:a,type:fq.ShapeIntersection,priority:pq.Normal}}return null})(e)},uN=e=>{const{dragOperation:t,droppable:r}=e,{shape:n,position:o}=t;if(!r.shape)return null;const i=n?nT.from(n.current.boundingRectangle).corners:void 0,a=nT.from(r.shape.boundingRectangle).corners.reduce(((e,t,r)=>{var n;return e+rT.distance(rT.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:fq.Collision,priority:pq.Normal}},cN=Object.create,dN=Object.defineProperty,pN=Object.defineProperties,fN=Object.getOwnPropertyDescriptor,hN=Object.getOwnPropertyDescriptors,mN=Object.getOwnPropertySymbols,gN=Object.prototype.hasOwnProperty,bN=Object.prototype.propertyIsEnumerable,vN=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),yN=e=>{throw TypeError(e)},xN=(e,t,r)=>t in e?dN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,SN=(e,t)=>{for(var r in t||(t={}))gN.call(t,r)&&xN(e,r,t[r]);if(mN)for(var r of mN(t))bN.call(t,r)&&xN(e,r,t[r]);return e},wN=(e,t)=>pN(e,hN(t)),CN=(e,t)=>dN(e,"name",{value:t,configurable:!0}),EN=(e,t)=>{var r={};for(var n in e)gN.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&mN)for(var n of mN(e))t.indexOf(n)<0&&bN.call(e,n)&&(r[n]=e[n]);return r},RN=e=>{var t;return[,,,cN(null!=(t=null==e?void 0:e[vN("metadata")])?t:null)]},PN=["class","method","getter","setter","accessor","field","value","get","set"],AN=e=>void 0!==e&&"function"!=typeof e?yN("Function expected"):e,IN=(e,t,r,n,o)=>({kind:PN[e],name:t,metadata:n,addInitializer:e=>r._?yN("Already initialized"):o.push(AN(e||null))}),kN=(e,t)=>xN(t,vN("metadata"),e[3]),MN=(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},DN=(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=PN[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)&&fN(d<4?o:{get[r](){return ON(this,i)},set[r](e){return NN(this,i,e)}},r));d?f&&d<4&&CN(i,(d>2?"set ":d>1?"get ":"")+r):CN(o,r);for(var y=n.length-1;y>=0;y--)u=IN(d,r,l={},e[3],b),d&&(u.static=p,u.private=f,c=u.access={has:f?e=>qN(o,e):e=>r in e},3^d&&(c.get=f?e=>(1^d?ON:jN)(e,o,4^d?i:v.get):e=>e[r]),d>2&&(c.set=f?(e,t)=>NN(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?AN(s)&&(d>4?g.unshift(s):d?f?i=s:v[m]=s:o=s):"object"!=typeof s||null===s?yN("Object expected"):(AN(a=s.get)&&(v.get=a),AN(a=s.set)&&(v.set=a),AN(a=s.init)&&g.unshift(a));return d||kN(e,o),v&&dN(o,r,v),f?4^d?i:v:o},TN=(e,t,r)=>t.has(e)||yN("Cannot "+r),qN=(e,t)=>Object(t)!==t?yN('Cannot use the "in" operator on this value'):e.has(t),ON=(e,t,r)=>(TN(e,t,"read from private field"),r?r.call(e):t.get(e)),LN=(e,t,r)=>t.has(e)?yN("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),NN=(e,t,r,n)=>(TN(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),jN=(e,t,r)=>(TN(e,t,"access private method"),r),_N="button",zN="draggable",FN="dnd-kit-description",HN="dnd-kit-announcement",$N={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."},BN={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 WN(e){const t=e.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(t)}var VN=["dragover","dragmove"],UN=class extends WT{constructor(e,t){super(e);const{id:r,idPrefix:{description:n=FN,announcement:o=HN}={},announcements:i=BN,screenReaderInstructions:a=$N,debounce:s=500}=null!=t?t:{},l=r?`${n}-${r}`:sN(n),u=r?`${o}-${r}`:sN(o);let c,d,p,f;const h=(e=f)=>{p&&e&&(null==p?void 0:p.nodeValue)!==e&&(p.nodeValue=e)},m=()=>TL.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,VN.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),WN(r)&&!YO()||r.hasAttribute("tabindex")||y.add((()=>r.setAttribute("tabindex","0"))),r.hasAttribute("role")||"button"===r.tagName.toLowerCase()||y.add((()=>r.setAttribute("role",_N))),r.hasAttribute("aria-roledescription")||y.add((()=>r.setAttribute("aria-roledescription",zN))),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&&TL.schedule(x)})),this.destroy=()=>{super.destroy(),null==c||c.remove(),null==d||d.remove(),b.forEach((e=>e()))}}};var GN="data-dnd-",YN=`${GN}dropping`,KN="--dnd-",XN=`${GN}dragging`,JN=`${GN}placeholder`,ZN=[XN,JN,"popover","aria-pressed","aria-grabbing"],QN=["view-transition-name"],ej=`\n :root [${XN}] {\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(${KN}top, 0px) !important;\n left: var(${KN}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${KN}width, auto);\n max-width: var(${KN}width, auto);\n height: var(${KN}height, auto);\n max-height: var(${KN}height, auto);\n transition: var(${KN}transition) !important;\n }\n\n :root [${JN}] {\n transition: none;\n }\n\n :root [${JN}='hidden'] {\n visibility: hidden;\n }\n\n [${XN}] * {\n pointer-events: none !important;\n }\n\n [${XN}]:not([${YN}]) {\n translate: var(${KN}translate) !important;\n }\n\n [${XN}][style*='${KN}scale'] {\n scale: var(${KN}scale) !important;\n transform-origin: var(${KN}transform-origin) !important;\n }\n\n @layer {\n :where([${XN}][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 [${XN}]::backdrop, [${GN}overlay]:not([${XN}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function tj(e,t="hidden"){return xM((()=>{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=`${GN}${sN("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(KO(e)&&KO(r)&&("file"!==e.type&&(e.value=r.value),"radio"===e.type&&e.name&&(e.name=`Cloned__${e.name}`)),XO(e)&&XO(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),ZO.set(a,i),r.push((()=>{ZO.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(JN,t)}(a,t),a.remove=()=>{i.forEach((e=>e())),s.call(a)},a}))}function rj(e,t){return e===t||eL(e)===eL(t)}function nj(e){const{target:t}=e;"newState"in e&&"closed"===e.newState&&oN(t)&&t.hasAttribute("popover")&&requestAnimationFrame((()=>AL(t)))}function oj(e){return"TR"===e.tagName}var ij,aj,sj,lj,uj,cj,dj,pj=new Map,fj=class extends(aj=WT,ij=[kD],aj){constructor(e,t){super(e,t),LN(this,uj),LN(this,lj,MN(sj,8,this)),MN(sj,11,this),this.state={initial:{},current:{}},this.registerEffect(jN(this,uj,dj)),this.registerEffect(jN(this,uj,cj))}destroy(){super.destroy();for(const[e,t]of pj.entries())t.instances.has(this)&&(t.instances.delete(this),0===t.instances.size&&(t.cleanup(),pj.delete(e)))}};sj=RN(aj),lj=new WeakMap,uj=new WeakSet,cj=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=FL(f),m=FL(c),g=!rj(c,f),b=new tN(c,{frameTransform:g?m:null,ignoreTransforms:!g}),v=m.scaleX/h.scaleX,y=m.scaleY/h.scaleY;let x,S,{width:w,height:C,top:E,left:R}=b;g&&(w/=v,C/=y);const P=new nN(f),{transition:A,translate:I,boxSizing:k,paddingBlockStart:M,paddingBlockEnd:D,paddingInlineStart:T,paddingInlineEnd:q,borderInlineStartWidth:O,borderInlineEndWidth:L,borderBlockStartWidth:N,borderBlockEndWidth:j}=NL(c),_="clone"===d,z="content-box"===k,F=z?parseInt(T)+parseInt(q)+parseInt(O)+parseInt(L):0,H=z?parseInt(M)+parseInt(D)+parseInt(N)+parseInt(j):0,$="move"===d||this.overlay?null:tj(l,_?"clone":"hidden"),B=xM((()=>iN(o.dragOperation.activatorEvent)));if("none"!==I){const e=$L(I);e&&!p.translate&&(p.translate=e)}if(!p.transformOrigin){const e=xM((()=>s.current));p.transformOrigin={x:(e.x-R*h.scaleX-h.x)/(w*h.scaleX),y:(e.y-E*h.scaleY-h.y)/(C*h.scaleY)}}const{transformOrigin:W}=p,V=E*h.scaleY+h.y,U=R*h.scaleX+h.x;if(!p.coordinates&&(p.coordinates={x:U,y:V},1!==v||1!==y)){const{scaleX:e,scaleY:t}=m,{x:r,y:n}=W;p.coordinates.x+=(w*e-w)*r,p.coordinates.y+=(C*t-C)*n}p.dimensions||(p.dimensions={width:w,height:C}),p.frameTransform||(p.frameTransform=h);const G=p.coordinates.x-U,Y=p.coordinates.y-V,K=(p.dimensions.width*p.frameTransform.scaleX-w*h.scaleX)*W.x,X=(p.dimensions.height*p.frameTransform.scaleY-C*h.scaleY)*W.y,J=G/h.scaleX+K,Z=Y/h.scaleY+X,Q={left:R+J,top:E+Z};f.setAttribute(XN,"true");const ee=xM((()=>a.transform)),te=null!=(t=p.translate)?t:{x:0,y:0},re=`${ee.x*h.scaleX+te.x}px ${ee.y*h.scaleY+te.y}px 0`,ne=A?`${A}, translate 0ms linear`:"";if(P.set({width:w-F,height:C-H,top:Q.top,left:Q.left,translate:re,transition:ne,scale:g?`${v} ${y}`:"","transform-origin":`${100*W.x}% ${100*W.y}%`},KN),$&&(c.insertAdjacentElement("afterend",$),null==i?void 0:i.rootElement)){("function"==typeof i.rootElement?i.rootElement(l):i.rootElement).appendChild(c)}PL(f)&&(f.hasAttribute("popover")||f.setAttribute("popover","manual"),AL(f),f.addEventListener("beforetoggle",nj));const oe=new ResizeObserver((()=>{if(!$)return;const e=new tN($,{frameTransform:h,ignoreTransforms:!0}),t=null!=W?W:{x:1,y:1},r=(w-e.width)*t.x+J,n=(C-e.height)*t.y+Z;if(P.set({width:e.width-F,height:e.height-H,top:E+n,left:R+r},KN),null==x||x.takeRecords(),oj(c)&&oj($)){const e=Array.from(c.cells),t=Array.from($.cells);for(const[r,n]of e.entries()){const e=t[r];n.style.width=`${e.offsetWidth}px`}}a.shape=new tN(f)})),ie=new tN(f);xM((()=>a.shape=ie));const ae=_O(f),se=e=>{this.manager.actions.stop({event:e})};B&&ae.addEventListener("resize",se),"idle"===xM((()=>l.status))&&requestAnimationFrame((()=>l.status="dragging")),$&&(oe.observe($),x=new MutationObserver((e=>{let t=!1;for(const r of e){if(r.target!==c){t=!0;continue}if("attributes"!==r.type)continue;const e=r.attributeName;if(e.startsWith("aria-")||ZN.includes(e))continue;const n=c.getAttribute(e);if("style"===e){if(rN(c)&&rN($)){const e=c.style;for(const t of Array.from($.style))""===e.getPropertyValue(t)&&$.style.removeProperty(t);for(const t of Array.from(e)){if(QN.includes(t)||t.startsWith(KN))continue;const r=e.getPropertyValue(t);$.style.setProperty(t,r)}}}else null!==n?$.setAttribute(e,n):$.removeAttribute(e)}t&&_&&($.innerHTML=c.innerHTML)})),x.observe(c,{attributes:!0,subtree:!0,childList:!0}),S=new MutationObserver((e=>{for(const t of e)if(0!==t.addedNodes.length)for(const e of Array.from(t.addedNodes)){if(e.contains(c)&&c.nextElementSibling!==$)return c.insertAdjacentElement("afterend",$),void AL(f);if(e.contains($)&&$.previousElementSibling!==c)return $.insertAdjacentElement("beforebegin",c),void AL(f)}})),S.observe(c.ownerDocument.body,{childList:!0,subtree:!0}));const le=null==(r=o.dragOperation.source)?void 0:r.id,ue=()=>{var e;if(!B||null==le)return;const t=o.registry.draggables.get(le),r=null!=(e=null==t?void 0:t.handle)?e:null==t?void 0:t.element;FO(r)&&r.focus()},ce=()=>{null==x||x.disconnect(),null==S||S.disconnect(),oe.disconnect(),ae.removeEventListener("resize",se),PL(f)&&(f.removeEventListener("beforetoggle",nj),f.removeAttribute("popover")),f.removeAttribute(XN),P.reset(),l.status="idle";const e=null!=n.current.translate;$&&(e||$.parentElement!==f.parentElement)&&f.isConnected&&$.replaceWith(f),null==$||$.remove()},de=TD((()=>{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=xM((()=>a.modifiers)),l=xM((()=>{var e;return null==(e=a.shape)?void 0:e.current})),u=B?"250ms cubic-bezier(0.25, 1, 0.5, 1)":"0ms linear";if(P.set({transition:`${A}, translate ${u}`,translate:`${o.x}px ${o.y}px 0`},KN),null==x||x.takeRecords(),l&&l!==ie&&i&&!s.length){const e=rT.delta(o,i);a.shape=nT.from(l.boundingRectangle).translate(e.x*h.scaleX,e.y*h.scaleY)}else a.shape=new tN(f);n.current.translate=o}}),(function(){if(a.status.dropped){this.dispose(),l.status="dropping";let e=n.current.translate;const t=null!=e;if(e||c===f||(e={x:0,y:0}),!e)return void ce();const r=()=>{var r,n;{AL(f);const[,o]=null!=(r=OO(f,(e=>"translate"in e)))?r:[];null==o||o.pause();const i=null!=$?$:c,a={frameTransform:rj(f,i)?null:void 0},s=new tN(f,a),u=null!=(n=$L(NL(f).translate))?n:e,d=new tN(i,a),p=nT.delta(s,d,l.alignment),h={x:u.x-p.x,y:u.y-p.y},m=Math.round(s.intrinsicHeight)!==Math.round(d.intrinsicHeight)?{minHeight:[`${s.intrinsicHeight}px`,`${d.intrinsicHeight}px`],maxHeight:[`${s.intrinsicHeight}px`,`${d.intrinsicHeight}px`]}:{},g=Math.round(s.intrinsicWidth)!==Math.round(d.intrinsicWidth)?{minWidth:[`${s.intrinsicWidth}px`,`${d.intrinsicWidth}px`],maxWidth:[`${s.intrinsicWidth}px`,`${d.intrinsicWidth}px`]}:{};P.set({transition:A},KN),f.setAttribute(YN,""),null==x||x.takeRecords(),KL({element:f,keyframes:wN(SN(SN({},m),g),{translate:[`${u.x}px ${u.y}px 0`,`${h.x}px ${h.y}px 0`]}),options:{duration:t||f!==c?250:0,easing:"ease"}}).then((()=>{f.removeAttribute(YN),null==o||o.finish(),ce(),requestAnimationFrame(ue)}))}};o.renderer.rendering.then(r)}}));return()=>{ce(),de()}},dj=function(){var e,t,r;const{status:n,source:o,target:i}=this.manager.dragOperation,{nonce:a}=null!=(e=this.options)?e:{};if(n.initializing){const e=$O(null!=(t=null==o?void 0:o.element)?t:null),n=$O(null!=(r=null==i?void 0:i.element)?r:null),s=new Set([e,n]);for(const e of s){let t=pj.get(e);if(!t){const r=document.createElement("style");r.textContent=ej,a&&r.setAttribute("nonce",a),e.head.prepend(r);const n=new MutationObserver((t=>{for(const n of t)if("childList"===n.type){const t=Array.from(n.removedNodes);t.length>0&&t.includes(r)&&e.head.prepend(r)}}));n.observe(e.head,{childList:!0}),t={cleanup:()=>{n.disconnect(),r.remove()},instances:new Set},pj.set(e,t)}t.instances.add(this)}}},DN(sj,4,"overlay",ij,fj,lj),kN(sj,fj),fj.configure=$T(fj);var hj,mj,gj,bj,vj,yj,xj,Sj=fj,wj=!0;gj=[kD],bj=WL.Forward,hj=[kD],mj=WL.Reverse;var Cj=class{constructor(){LN(this,yj,MN(vj,8,this,wj)),MN(vj,11,this),LN(this,xj,MN(vj,12,this,wj)),MN(vj,15,this)}isLocked(e){return e!==WL.Idle&&(null==e?this[WL.Forward]===wj&&this[WL.Reverse]===wj:this[e]===wj)}unlock(e){e!==WL.Idle&&(this[e]=false)}};vj=RN(null),yj=new WeakMap,xj=new WeakMap,DN(vj,4,bj,gj,Cj,yj),DN(vj,4,mj,hj,Cj,xj),kN(vj,Cj);var Ej,Rj,Pj,Aj,Ij,kj,Mj=[WL.Forward,WL.Reverse],Dj=class{constructor(){this.x=new Cj,this.y=new Cj}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},Tj=class extends WT{constructor(e){super(e);const t=AM(new Dj);let r=null;this.signal=t,jM((()=>{const{status:n}=e.dragOperation;if(!n.initialized)return r=null,void(t.value=new Dj);const{delta:o}=e.dragOperation.position;if(r){const e={x:qj(o.x,r.x),y:qj(o.y,r.y)},n=t.peek();vM((()=>{for(const t of pT)for(const r of Mj)e[t]===r&&n[t].unlock(r);t.value=n}))}r=o}))}get current(){return this.signal.peek()}};function qj(e,t){return Math.sign(e-t)}var Oj=class extends(Rj=UT,Ej=[kD],Rj){constructor(e){super(e),LN(this,Aj,MN(Pj,8,this,!1)),MN(Pj,11,this),LN(this,Ij),LN(this,kj,(()=>{if(!ON(this,Ij))return;const{element:e,by:t}=ON(this,Ij);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 NN(this,Ij,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:Lj(n.x),y:Lj(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=ML(e,n);if(r.x||r.y){const{speed:r,direction:s}=GL(e,o,i);if(a)for(const e of pT)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=ON(this,Ij))?void 0:t.by;if(this.autoScrolling&&r){if(r.x&&!a||r.y&&!l)continue}return NN(this,Ij,{element:e,by:{x:a,y:l}}),TL.schedule(ON(this,kj)),!0}}}}}return NN(this,Ij,void 0),!1};let t=null,r=null;const n=AD((()=>{const{position:r,source:n}=e.dragOperation;if(!r)return null;const o=JO($O(null==n?void 0:n.element),r.current);return o&&(t=o),null!=o?o:t})),o=AD((()=>{const t=n.value,{documentElement:o}=$O(t);if(!t||t===o){const{target:t}=e.dragOperation,n=null==t?void 0:t.element;if(n){const e=zL(n,{excludeElement:!1});return r=e,e}}if(t){const e=zL(t,{excludeElement:!1});return this.autoScrolling&&r&&e.size<(null==r?void 0:r.size)?r:(r=e,e)}return r=null,null}),ID);this.getScrollableElements=()=>o.value,this.scrollIntentTracker=new Tj(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 Lj(e){return e>0?WL.Forward:e<0?WL.Reverse:WL.Idle}Pj=RN(Rj),Aj=new WeakMap,Ij=new WeakMap,kj=new WeakMap,DN(Pj,4,"autoScrolling",Ej,Oj,Aj),kN(Pj,Oj);var Nj,jj=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()})),_j=class extends WT{constructor(e,t){super(e);const r=e.registry.plugins.get(Oj);if(!r)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=jM((()=>{if(this.disabled)return;const{position:t,status:n}=e.dragOperation;if(n.dragging){if(r.scroll()){r.autoScrolling=!0;const e=setInterval((()=>jj.schedule(r.scroll)),10);return()=>{clearInterval(e)}}r.autoScrolling=!1}}))}},zj={capture:!0,passive:!0},Fj=class extends UT{constructor(e){super(e),LN(this,Nj),this.handleScroll=()=>{null==ON(this,Nj)&&NN(this,Nj,setTimeout((()=>{this.manager.collisionObserver.forceUpdate(!1),NN(this,Nj,void 0)}),50))};const{dragOperation:t}=this.manager;this.destroy=jM((()=>{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,zj),()=>{o.removeEventListener("scroll",this.handleScroll,zj)}}}))}};Nj=new WeakMap;function Hj(){var e;null==(e=document.getSelection())||e.removeAllRanges()}var $j,Bj=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}}),Wj=class extends eO{constructor(e,t){super(e),this.manager=e,this.options=t,LN(this,$j,[]),this.listeners=new QO,this.handleSourceKeyDown=(e,t,r)=>{if(this.disabled||e.defaultPrevented)return;if(!oN(e.target))return;if(t.disabled)return;const{keyboardCodes:n=Bj.keyboardCodes,preventActivation:o=Bj.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=jM((()=>{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(),YL(n);const{center:o}=new tN(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=$O(n),a=[this.listeners.bind(i,[{type:"keydown",listener:e=>this.handleKeyDown(e,t,r),options:{capture:!0}}])];ON(this,$j).push(...a)}handleKeyDown(e,t,r){const{keyboardCodes:n=Bj.keyboardCodes}=null!=r?r:{};if(Gj(e,[...n.end,...n.cancel])){e.preventDefault();const t=Gj(e,n.cancel);this.handleEnd(e,t)}else Gj(e,n.up)?this.handleMove("up",e):Gj(e,n.down)&&this.handleMove("down",e),Gj(e,n.left)?this.handleMove("left",e):Gj(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:Bj.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(_j);!1===(null==e?void 0:e.disabled)&&(e.disable(),ON(this,$j).push((()=>{e.enable()})))}cleanup(){ON(this,$j).forEach((e=>e())),NN(this,$j,[])}destroy(){this.cleanup(),this.listeners.clear()}};$j=new WeakMap,Wj.configure=$T(Wj),Wj.defaults=Bj;var Vj,Uj=Wj;function Gj(e,t){return t.includes(e.code)}var Yj,Kj;Vj=new WeakMap;Yj=new WeakMap,Kj=new WeakMap;var Xj=class{};Xj.Delay=class extends rO{constructor(){super(...arguments),LN(this,Yj),LN(this,Kj)}onEvent(e){switch(e.type){case"pointerdown":NN(this,Kj,VO(e)),NN(this,Yj,setTimeout((()=>this.activate(e)),this.options.value));break;case"pointermove":if(!ON(this,Kj))return;const{x:t,y:r}=VO(e);aT({x:t-ON(this,Kj).x,y:r-ON(this,Kj).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){ON(this,Yj)&&(clearTimeout(ON(this,Yj)),NN(this,Kj,void 0),NN(this,Yj,void 0))}},Xj.Distance=class extends rO{constructor(){super(...arguments),LN(this,Vj)}onEvent(e){switch(e.type){case"pointerdown":NN(this,Vj,VO(e));break;case"pointermove":if(!ON(this,Vj))return;const{x:t,y:r}=VO(e),n={x:t-ON(this,Vj).x,y:r-ON(this,Vj).y},{tolerance:o}=this.options;if(o&&aT(n,o))return void this.abort();aT(n,this.options.value)&&this.activate(e);break;case"pointerup":this.abort()}}abort(){NN(this,Vj,void 0)}};var Jj,Zj=Object.freeze({activationConstraints(e,t){var r;const{pointerType:n,target:o}=e;if("mouse"!==n||!oN(o)||t.handle!==o&&!(null==(r=t.handle)?void 0:r.contains(o)))return"touch"===n?[new Xj.Delay({value:250,tolerance:5})]:function(e){if(!oN(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 Xj.Delay({value:200,tolerance:0})]:[new Xj.Delay({value:200,tolerance:10}),new Xj.Distance({value:5})]},preventActivation(e,t){var r;const{target:n}=e;return n!==t.element&&(n!==t.handle&&(!!oN(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 ')))))}}),Qj=class extends eO{constructor(e,t){super(e),this.manager=e,this.options=t,LN(this,Jj,new Set),this.listeners=new QO,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){var r;const{activationConstraints:n=Zj.activationConstraints}=null!=(r=this.options)?r:{};return"function"==typeof n?n(e,t):n}bind(e,t=this.options){const r=jM((()=>{var r;const n=new AbortController,{signal:o}=n,i=r=>{(function(e){if(!e)return!1;const{PointerEvent:t}=_O(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&&(o_(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||!oN(e.target)||t.disabled||function(e){return"sensor"in e}(e)||!this.manager.dragOperation.status.idle)return;const{preventActivation:n=Zj.preventActivation}=null!=r?r:{};if(null==n?void 0:n(e,t))return;const{target:o}=e,i=FO(o)&&o.draggable&&"true"===o.getAttribute("draggable"),a=FL(t.element),{x:s,y:l}=VO(e);this.initialCoordinates={x:s*a.scaleX+a.x,y:l*a.scaleY+a.y};const u=this.activationConstraints(e,t);e.sensor=this;const c=new tO(u,(e=>this.handleStart(t,e)));c.signal.onabort=()=>this.handleCancel(e),c.onEvent(e),this.controller=c;const d=GO(),p=this.listeners.bind(d,[{type:"pointermove",listener:e=>this.handlePointerMove(e,t)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"dragstart",listener:i?this.handleCancel:t_,options:{capture:!0}}]);ON(this,Jj).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=VO(e),n=FL(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,TL.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=$O(t.target);o.body.setPointerCapture(t.pointerId);const i=oN(t.target)?[t.target,o.body]:o.body,a=this.listeners.bind(i,[{type:"touchmove",listener:t_,options:{passive:!1}},{type:"click",listener:t_},{type:"contextmenu",listener:t_},{type:"keydown",listener:this.handleKeyDown}]);ON(this,Jj).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},ON(this,Jj).forEach((e=>e())),ON(this,Jj).clear()}destroy(){this.cleanup(),this.listeners.clear()}};Jj=new WeakMap,Qj.configure=$T(Qj),Qj.defaults=Zj;var e_=Qj;function t_(e){e.preventDefault()}function r_(){}var n_=new WeakSet;function o_(e){e&&!n_.has(e)&&(e.addEventListener("touchmove",r_,{capture:!1,passive:!1}),n_.add(e))}var i_,a_,s_,l_,u_,c_,d_,p_,f_,h_,m_,g_,b_,v_,y_,x_,S_,w_,C_={modifiers:[],plugins:[UN,_j,class extends WT{constructor(e,t){super(e,t),this.manager=e;const r=AD((()=>{var e;return $O(null==(e=this.manager.dragOperation.source)?void 0:e.element)}));this.destroy=jM((()=>{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()}}))}},Sj,class extends WT{constructor(e,t){super(e,t),this.manager=e,this.destroy=jM((()=>{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),Hj(),document.addEventListener("selectionchange",Hj,{capture:!0}),()=>{document.removeEventListener("selectionchange",Hj,{capture:!0}),e.remove()}}}))}}],sensors:[e_,Uj]},E_=class extends PO{constructor(e={}){const{plugins:t=C_.plugins,sensors:r=C_.sensors,modifiers:n=[]}=e;super(wN(SN({},e),{plugins:[Fj,Oj,...t],sensors:r,modifiers:n}))}},R_=class extends(l_=Jq,s_=[kD],a_=[kD],i_=[kD],l_){constructor(e,t){var r=e,{element:n,effects:o=()=>[],handle:i,feedback:a="default"}=r,s=EN(r,["element","effects","handle","feedback"]);super(SN({effects:()=>[...o(),()=>{var e,t;const{manager:r}=this;if(!r)return;const n=(null!=(t=null==(e=this.sensors)?void 0:e.map(BT))?t:[...r.sensors]).map((e=>{const t=e instanceof eO?e:r.registry.register(e.plugin),n=e instanceof eO?void 0:e.options;return t.bind(this,n)}));return function(){n.forEach((e=>e()))}}]},s),t),LN(this,c_,MN(u_,8,this)),MN(u_,11,this),LN(this,d_,MN(u_,12,this)),MN(u_,15,this),LN(this,p_,MN(u_,16,this)),MN(u_,19,this),this.element=n,this.handle=i,this.feedback=a}};u_=RN(l_),c_=new WeakMap,d_=new WeakMap,p_=new WeakMap,DN(u_,4,"handle",s_,R_,c_),DN(u_,4,"element",a_,R_,d_),DN(u_,4,"feedback",i_,R_,p_),kN(u_,R_);var P_=class extends(m_=Zq,h_=[kD],f_=[kD],m_){constructor(e,t){var r=e,{element:n,effects:o=()=>[]}=r,i=EN(r,["element","effects"]);const{collisionDetector:a=lN}=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 tN(r),o=xM((()=>this.shape));return n&&(null==o?void 0:o.equals(n))?o:(this.shape=n,n)},l=AM(!1);super(wN(SN({},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 RL(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),LN(this,S_),LN(this,b_,MN(g_,8,this)),MN(g_,11,this),LN(this,w_,MN(g_,12,this)),MN(g_,15,this),this.element=n,this.refreshShape=()=>s()}set element(e){NN(this,S_,e,x_)}get element(){var e;return null!=(e=this.proxy)?e:ON(this,S_,y_)}};function A_(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}g_=RN(m_),b_=new WeakMap,S_=new WeakSet,w_=new WeakMap,v_=DN(g_,20,"#element",h_,S_,b_),y_=v_.get,x_=v_.set,DN(g_,4,"proxy",f_,P_,w_),kN(g_,P_);var I_="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?L:E;function k_(){const e=w(0)[1];return T((()=>{e((e=>e+1))}),[e])}function M_(e,t=[],r=!1){const n=D(e);return n.current=e,function(e,t=!1){const r=D(e.peek()),n=D(!1),o=k_();return I_((()=>jM((()=>{const i=r.current,a=e.value;if(i!==a){if(r.current=a,!n.current)return;t?$(o):o()}}))),[e,t,o]),{get value(){return n.current=!0,e.peek()}}}(C((()=>AD((()=>n.current()))),t),r)}function D_(e,t){const r=D(new Map),n=k_();return I_((()=>{if(e)return jM((()=>{var o;let i=!1,a=!1;for(const n of r.current){const[s]=n,l=xM((()=>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?$(n):n())}));r.current.clear()}),[e]),C((()=>e?new Proxy(e,{get(e,t){const n=e[t];return r.current.set(t,n),n}}):e),[e])}function T_(e,t){e()}function q_(e){const t=D(e);return I_((()=>{t.current=e}),[e]),t}function O_(e,t,r=E,n=Object.is){const o=D(e);r((()=>{const r=o.current;n(e,r)||(o.current=e,t(e,r))}),[t,e])}function L_(e,t){const r=D(A_(e));I_((()=>{const n=A_(e);n!==r.current&&(r.current=n,t(n))}))}var N_=Object.getOwnPropertySymbols,j_=Object.prototype.hasOwnProperty,__=Object.prototype.propertyIsEnumerable,z_=new E_,F_=M(z_),H_=O(q((({children:e},t)=>{const[r,n]=w(0),o=D(null),i=D(null),a=C((()=>({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}))),j((()=>{e(),n((e=>e+1))}))}})),[]);return I_((()=>{var e;null==(e=i.current)||e.call(i),o.current=null}),[e,r]),_(t,(()=>a)),null}))),$_=[void 0,ID];function B_(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)j_.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&&__.call(e,n)&&(r[n]=e[n]);return r})(t,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const c=D(null),{plugins:d,modifiers:p,sensors:f}=u,h=q_(o),m=q_(i),g=q_(s),b=q_(a),v=q_(l),y=q_(n),x=function(e){const t=D(null);t.current||(t.current=e());return N((()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()}),[]),t.current}((()=>{var e;return null!=(e=u.manager)?e:new E_(u)}));return E((()=>{if(!c.current)throw new Error("Renderer not found");const{renderer:e,trackRendering:t}=c.current,{monitor:r}=x;x.renderer=e;const n=[r.addEventListener("beforedragstart",(e=>{const r=h.current;r&&t((()=>r(e,x)))})),r.addEventListener("dragstart",(e=>{var t;return null==(t=m.current)?void 0:t.call(m,e,x)})),r.addEventListener("dragover",(e=>{const r=g.current;r&&t((()=>r(e,x)))})),r.addEventListener("dragmove",(e=>{const r=b.current;r&&t((()=>r(e,x)))})),r.addEventListener("dragend",(e=>{const r=v.current;r&&t((()=>r(e,x)))})),r.addEventListener("collision",(e=>{var t;return null==(t=y.current)?void 0:t.call(y,e,x)}))];return()=>n.forEach((e=>e()))}),[x]),O_(d,(()=>x&&(x.plugins=null!=d?d:C_.plugins)),...$_),O_(f,(()=>x&&(x.sensors=null!=f?f:C_.sensors)),...$_),O_(p,(()=>x&&(x.modifiers=null!=p?p:C_.modifiers)),...$_),tr.jsxs(F_.Provider,{value:x,children:[tr.jsx(H_,{ref:c,children:r}),r]})}function W_(){return S(F_)}function V_({children:e,className:t,style:r,tag:n,disabled:o}){var i;const a=D(null),s=W_(),l=null!=(i=M_((()=>null==s?void 0:s.dragOperation.source),[s]).value)?i:null,u="function"==typeof o?o(l):o;E((()=>{if(!a.current||!s||u)return;const e=s.plugins.find((e=>e instanceof Sj));return e?(e.overlay=a.current,()=>{e.overlay=void 0}):void 0}),[s,u]);const c=C((()=>{if(!s)return null;const e=new Proxy(s.registry,{get:(e,t)=>"register"===t||"unregister"===t?U_:e[t]});return new Proxy(s,{get:(t,r)=>"registry"===r?e:t[r]})}),[s]);return tr.jsx(F_.Provider,{value:c,children:R(n||"div",{ref:a,className:t,style:r,"data-dnd-overlay":!0},function(){if(!l||u)return null;if("function"==typeof e)return tr.jsx(G_,{source:l,children:e});return e}())})}function U_(){return()=>{}}function G_({children:e,source:t}){return e(D_(t))}var Y_,K_,X_,J_,Z_,Q_=Object.create,ez=Object.defineProperty,tz=Object.getOwnPropertyDescriptor,rz=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),nz=e=>{throw TypeError(e)},oz=["class","method","getter","setter","accessor","field","value","get","set"],iz=e=>void 0!==e&&"function"!=typeof e?nz("Function expected"):e,az=(e,t,r,n,o)=>({kind:oz[e],name:t,metadata:n,addInitializer:e=>r._?nz("Already initialized"):o.push(iz(e||null))}),sz=(e,t,r,n,o,i)=>{for(var a,s,l,u,c=7&t,d=oz[c+5],p=e[2]||(e[2]=[]),f=(o=o.prototype,tz(o,r)),h=n.length-1;h>=0;h--)(l=az(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,iz(a)&&(f[d]=a);return f&&ez(o,r,f),o},lz=(e,t,r)=>t.has(e)||nz("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)}},cz=class extends(X_=OD,K_=[MD],Y_=[MD],X_){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)})(Z_,5,this),t=this,n=0,(r=J_).has(t)?nz("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-(lz(a=this,s=J_,"read from private field"),s.get(a));var a,s;const l=e=>Math.round(e/i*100);vM((()=>{((e,t,r)=>{lz(e,t,"write to private field"),t.set(e,r)})(this,J_,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}}};Z_=(e=>{var t;return[,,,Q_(null!=(t=null==e?void 0:e[rz("metadata")])?t:null)]})(X_),J_=new WeakMap,sz(Z_,2,"delta",K_,cz),sz(Z_,2,"direction",Y_,cz),((e,t)=>{((e,t,r)=>{t in e?ez(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(t,rz("metadata"),e[3])})(Z_,cz);var dz=(e=>(e.Horizontal="x",e.Vertical="y",e))(dz||{});function pz(e){const t=W_();E((()=>{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(dz);const fz=()=>{const[e,t]=w(!1);return pz({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?tr.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},hz=()=>{const{flags:e}=$I(_I,(e=>e.env)),t=$I(_I,(e=>e.baseProps.layout));return!e.isEnabled("CLIENT_VNA_373_IMPROVE_TABLE_HEADERS")||void 0===t.accessibleHeader||t.accessibleHeader},mz=(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}),gz=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),bz=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),vz=e=>e.atTop?2:1,yz=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],xz=e=>e?.setAttribute("tabIndex","0"),Sz=e=>e?.setAttribute("tabIndex","-1"),wz=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(Sz)},Cz=e=>{e?.focus(),xz(e)},Ez=e=>{setTimeout((()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${QC}`);Cz(t)}),0)},Rz=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{wz(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 ZC.Down:u<s&&u++;break;case ZC.Up:u>a&&u--;break;case ZC.Right:if(i)break;[u,c]="rtl"===n?gz({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0}):bz({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case ZC.Left:if(i)break;[u,c]="rtl"===n?bz({colIdx:c,rowIdx:u,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):gz({colIdx:c,rowIdx:u,lastColIdx:l,firstColIdx:0});break;case ZC.Home:(sI(e)||i)&&(u=a),i||(c=0);break;case ZC.End:(sI(e)||i)&&(u=s),i||(c=l);break;case ZC.PageDown:u=Math.min(s,u+10);break;case ZC.PageUp:u=Math.max(a,u-10)}return[u,c]})(e,t,r,i,o),s=yz(t,a);return Cz(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}},Pz=(e,t,r,n)=>{wz(t),r(e),n.enabled&&!n.active?n.focus?.():Cz(yz(t,e))},Az=(e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!!n?.contains(o),a=o?.closest(`.${KC}`);!r.enabled||i||a||t.current||!n||((e=>{const t=e.querySelector(`.${PA.First}`),r=e.querySelector(`.${PA.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),r.blur?.(!1))},Iz=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.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"})}))),kz=ac(Lh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...HA,...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}}))),Mz=ac("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})((({align:e,dir:t})=>({minWidth:_A,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),Dz=parseInt(_A,10)/2,Tz=ac("div")({position:"absolute",bottom:-Dz,left:`calc(50% - ${Dz}px)`}),qz={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},Oz=ac(Xd)({height:"100%"}),Lz=ac("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?{...qz,whiteSpace:"nowrap",display:r?"block":void 0}:{...qz,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"})),Nz=ac("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),jz="cell-text",_z=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const{styleService:a}=$I(_I,(e=>e.baseProps));return o?tr.jsx(Lz,{"data-testid":jz,ref:t,className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):tr.jsx(Lz,{"data-testid":jz,ref:t,className:"sn-table-cell-text",isNumeric:r,lineClamp:i??a.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},zz=x.forwardRef(((e,t)=>{const{column:r,isInteractionEnabled:n,open:o,setOpen:i,isPagination:a,forwardRef:s}=e,{translator:l,changeSortOrder:u,interactions:c,embed:d,app:p,styleService:f,layout:h,direction:m}=$I(_I,(e=>e.baseProps)),g=$I(_I,(e=>e.columnWidths[r.pageColIdx])),b=$I(_I,(e=>e.baseProps.model)),v=D(null),y=D(null),x=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=zC({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:zA});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:f,column:r,columnWidth:g}),{StartIcon:S,EndIcon:w,LockIcon:C}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?tr.jsx(wk,{height:_A,"data-testid":"head-cell-sort-ascending-icon"}):tr.jsx(Rk,{height:_A,"data-testid":"head-cell-sort-descending-icon"}),a=r?tr.jsx(Mz,{align:t,dir:o,children:i}):void 0,s=n?tr.jsx(eI,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:tr.jsx(Iz,{height:_A,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(r,x,m);return tr.jsxs(QA,{ref:t,shouldShowMenuIcon:x.shouldShowMenuIcon,shouldShowLockIcon:x.shouldShowLockIcon,alignment:UA(r,a,m),children:[C,tr.jsxs(ZA,{className:"sn-table-head-label",textAlign:r.headTextAlign,direction:m,isPagination:a,children:[S,tr.jsx(_z,{forwardRef:s,isPagination:a,isHeadCell:!0,children:r.label}),w]}),n?tr.jsxs(tr.Fragment,{children:[tr.jsx(zk,{headerData:{...r,dimensionInfoIndex:r.colIdx},translator:l,anchorRef:v,menuAvailabilityFlags:{[Nk.Sorting]:!0,[Nk.Searching]:!0,[Nk.Selections]:!0,[Nk.AdjusterHeaderSize]:!0},open:o,setOpen:i,interactions:c,sortRelatedArgs:{sortFromMenu:(e,t)=>(e.stopPropagation(),u(r,t))},searchRelatedArgs:{embed:d,listboxRef:y},selectionRelatedArgs:{app:p,qStateName:h.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:Ez},shouldShowMenuIcon:x.shouldShowMenuIcon,model:b,direction:m,isPagination:a,isAccessibleHeader:!0}),tr.jsx(JA,{ref:y,direction:m,isPagination:a}),tr.jsx(JA,{ref:v,direction:m})]}):null]})})),Fz=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.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"})}))),Hz=(e,t)=>e.isCyclic&&t,$z=({column:e})=>{const{direction:t,model:r,styleService:n}=$I(_I,(e=>e.baseProps)),o=x.useRef(null),[i,a]=x.useState(!1),s=KI({model:r,headerData:{...e,dimensionInfoIndex:e.colIdx}});return tr.jsxs(tr.Fragment,{children:[tr.jsx(rI,{hoverBackground:n.headerMenuHoverBackground,activeBackground:n.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:tr.jsx(Fz,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),tr.jsx(gk,{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:Pk,isActive:e.groupDimensionPos===r})))}]],anchorEl:o.current,direction:t,isPagination:!1})]})},Bz=e=>e.isLocked,Wz=({column:e})=>{const t=$I(_I,(e=>e.baseProps.app)),r=$I(_I,(e=>e.baseProps.layout.qStateName)),n=$I(_I,(e=>e.baseProps.styleService));return tr.jsx(rI,{tabIndex:-1,hoverBackground:n.headerMenuHoverBackground,onClick:n=>{n.stopPropagation(),(async(e,t,r)=>{const n=vk(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:tr.jsx(Iz,{height:16,"data-testid":"head-cell-lock-icon"})})},Vz=({column:e,open:t,setOpen:r,isPagination:n})=>{const{translator:o,interactions:i,app:a,layout:s,direction:l,changeSortOrder:u,embed:c,styleService:d}=$I(_I,(e=>e.baseProps)),p=$I(_I,(e=>e.baseProps.model)),f=x.useRef(null),h=x.useRef(null);return tr.jsxs(rI,{tabIndex:-1,hoverBackground:d.headerMenuHoverBackground,activeBackground:d.headerMenuActiveBackground,isActive:t,order:e.isDim?void 0:-1,children:[tr.jsx(zk,{headerData:{...e,dimensionInfoIndex:e.colIdx},translator:o,anchorRef:f,menuAvailabilityFlags:{[Nk.Sorting]:!0,[Nk.Searching]:!0,[Nk.Selections]:!0,[Nk.AdjusterHeaderSize]:!0},open:t,setOpen:r,interactions:i,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),u(e,r))},searchRelatedArgs:{embed:c,listboxRef:h},selectionRelatedArgs:{app:a,qStateName:s.qStateName},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:Ez},shouldShowMenuIcon:!0,model:p,direction:l,isPagination:n,isAccessibleHeader:!1,iconSize:16}),tr.jsx(JA,{ref:h,direction:l,isPagination:n}),tr.jsx(JA,{ref:f,direction:l})]})},Uz=e=>e.at(0)?.contentBoxSize.at(0)?.blockSize,Gz=(e,t)=>{const r=D(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])},Yz=ac(Xd)({display:"flex",alignItems:"center",justifyContent:"center",width:"100%",boxSizing:"border-box"}),Kz=x.forwardRef((({children:e},t)=>{const r=x.useRef(null),[n,o]=w((()=>new Set(e.filter((({props:e})=>void 0!==e.prio&&e.children)).map((({key:e})=>e))))),i=C((()=>Array.from(e).sort(((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)))),[e]),a=T((e=>{const t=new Set,r=e.at(0)?.contentBoxSize.at(0)?.inlineSize??0;let n=0;i.forEach((e=>{if(e.props.ignore||!e.props.children)return;const o=e.props.minWidth+1;void 0===e.props.prio||n+o<=r?n+=o:t.add(e.key)})),o((e=>e.size===t.size&&[...e].every((e=>t.has(e)))?e:t))}),[i]);Gz(r,a);const s=T((e=>{r.current=e,"function"==typeof t?t(e):t&&(t.current=e)}),[r,t]);return tr.jsx(Yz,{ref:s,"data-testid":"responsive-container",children:e.filter((e=>!n.has(e.key)))})})),Xz=({children:e})=>e,Jz=(e,t)=>!e.isLocked&&e.isDim&&t,Zz=({column:e,open:t,setOpen:r})=>{const{embed:n,app:o,direction:i,layout:a,styleService:s}=$I(_I,(e=>e.baseProps)),l=x.useRef(null),u=T((()=>{r(!1)}),[r]),c=bk({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:n,listboxRef:l},selectionRelatedArgs:{qStateName:a.qStateName},direction:i,onPopoverClose:u});return tr.jsx(rI,{tabIndex:-1,hoverBackground:s.headerMenuHoverBackground,activeBackground:s.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),c(),r(!0)},children:tr.jsx(Mk,{ref:l,height:16,"data-testid":"head-cell-search-icon"})})},Qz=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.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"})}))),eF=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.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"})}))),tF=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?tr.jsx(eF,{height:_A,"data-testid":"head-cell-sort-ascending-icon"}):tr.jsx(Qz,{height:_A,"data-testid":"head-cell-sort-descending-icon"});return r?tr.jsx(Tz,{children:n}):void 0},rF=0,nF=1,oF=2,iF=3,aF=x.forwardRef(((e,t)=>{const{column:r,open:n,setOpen:o,isPagination:i,forwardRef:a}=e,{styleService:s}=$I(_I,(e=>e.baseProps)),l=(()=>{const e=$I(_I,(e=>e.baseProps.interactions.active)),t=$I(_I,(e=>e.baseProps.selectionsAPI?.isModal()));return!!e&&!t})(),{measureText:u}=zC(s.header),[c,d]=x.useState(!1);return tr.jsxs(Kz,{ref:t,children:[tr.jsx(Xz,{prio:oF,minWidth:XA,children:Bz(r)?tr.jsx(Wz,{column:r}):null},"Lock"),tr.jsx(Xz,{prio:nF,minWidth:XA,children:Hz(r,l)?tr.jsx($z,{column:r}):null},"Cyclic"),tr.jsx(Xz,{ignore:!0,children:tr.jsx(tF,{column:r})},"Sort"),tr.jsx(Xz,{minWidth:u(r.label)+8,children:tr.jsx(tI,{justifyContent:r.headTextAlign,children:tr.jsx(_z,{forwardRef:a,isPagination:i,isHeadCell:!0,children:r.label})})},"Text"),tr.jsx(Xz,{prio:rF,minWidth:XA,children:c||Jz(r,l)?tr.jsx(Zz,{open:c,setOpen:d,column:r}):null},"Search"),tr.jsx(Xz,{prio:iF,minWidth:XA,children:l?tr.jsx(Vz,{column:r,open:n,setOpen:o,isPagination:i}):null},"Menu")]})})),sF=ac("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e})((({background:e,applicableStyle:t})=>({...t,background:e}))),lF=()=>{},uF=({column:e,isPagination:t})=>{const{styleService:r,direction:n}=$I(_I,(e=>e.baseProps)),o=$I(_I,(e=>e.showRightBorder)),i=$I(_I,(e=>e.tableData.totalsPosition)),a=!1,s=hz()?zz:aF;return tr.jsx(sF,{className:"sn-table-cell",applicableStyle:{...r.header,...mz(r,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:YA(n,a,o),borderLeftWidth:KA(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:tr.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:lF})})},cF=({isPagination:e})=>{const{columns:t}=$I(_I,(e=>e.tableData)),[r,n]=w();pz({onDragStart:e=>{const t=e.operation.source?.id;n(t)},onDragEnd:()=>{}});const o=r?t.find((e=>e.id===r)):void 0;return o?tr.jsx(V_,{children:tr.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:tr.jsx(uF,{column:o,isPagination:e})})}):null},dF=C_.sensors.filter((e=>e!==Uj)),pF=C_.plugins.filter((e=>e!==UN)),fF=({children:e})=>{const{model:t}=$I(_I,(e=>e.baseProps)),{columns:r}=$I(_I,(e=>e.tableData));return tr.jsx(B_,{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:dF,plugins:pF,children:e})};function hF(e,t){const r=D(!1);E((()=>{r.current?e():r.current=!0}),t)}const mF=()=>{const{downloadService:e}=$I(_I,(e=>e.baseProps));E((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))},gF=(e,t,r)=>{const{rootElement:n,keyboard:o}=$I(_I,(e=>e.baseProps)),{totalColumnCount:i,totalRowCount:a,rows:s,totalsPosition:l}=$I(_I,(e=>e.tableData)),u=$I(_I,(e=>e.focusedCellCoord)),c=$I(_I,(e=>e.setFocusedCellCoord)),d=$I(_I,(e=>e.baseProps.selectionsAPI?.isModal()));hF((()=>{const r=((e,t,r=!1)=>{const n=[vz(t),e[1]];return r?n:AA})(u,l,d);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(wz(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=yz(t,e);r.current?(Cz(s),r.current=!1):xz(s),n&&(a({keys:[s?.textContent??""]}),aI(a,s,n))})({resetCellCoord:r,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:d,keyboard:o,announce:t})}),[s.length,a,i,r])},bF=(e,t,r)=>{E((()=>{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])},vF=e=>{kC(e),sI(e)&&sE(e.currentTarget)},yF=e=>{dI(e.evt)&&(kC(e.evt),Rz(e))},xF=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!dI(t))return;kC(t);const i=((e,t)=>[e.pageRowIdx+vz(t),e.pageColIdx])(n,r),a=((e,t)=>({top:e?vz(t):0,bottom:e&&t.atBottom?1:0}))(o,r),{nextCell:s,nextCellCoord:l}=Rz({...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:EA.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):aI(o,a,i)})({...e,nextCell:s})},SF=e=>{const{evt:t}=e;lI(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{kC(e);const a=Math.ceil(t/r)-1;e.key===ZC.Right&&n<a?(o(),i(n+1)):e.key===ZC.Left&&n>0&&(o(),i(n-1))})(e):t.key===ZC.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(kC(e),t.blur?.(!0))})(e):uI(t.key)&&kC(t)},wF=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(CA.Disabled))return void kC(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case ZC.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{kC(e),t.isSelectable&&r&&n({type:EA.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case ZC.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{kC(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case ZC.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(kC(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case ZC.C:vF(t);break;case ZC.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(kC(e),IC(e.currentTarget,t,e.shiftKey))})(n);break;default:xF(n)}},CF=e=>{const[t,r]=w(0),[n,o]=w(0),i=$I(_I,(e=>e.isAdjustingWidth));return Gz(e,(t=>{if(e.current&&!i){const e=t.at(0)?.borderBoxSize.at(0)?.inlineSize??0,n=t.at(0)?.borderBoxSize.at(0)?.blockSize??0,i=t.at(0)?.contentBoxSize.at(0)?.inlineSize??0,a=n-(t.at(0)?.contentBoxSize.at(0)?.blockSize??0);o(e-i),r(a)}})),{xScrollbarWidth:t,yScrollbarWidth:n}},EF=ac("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),RF=ac(zh,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"}))),PF=ac(Ch,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),AF=()=>tr.jsxs(tr.Fragment,{children:[tr.jsx(EF,{className:PA.First,"data-testid":PA.First,"aria-live":"polite","aria-atomic":"true"}),tr.jsx(EF,{className:PA.Second,"data-testid":PA.Second,"aria-live":"polite","aria-atomic":"true"})]}),IF=e=>{const t=D(new Map),r=D(null);E((()=>{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=T(((e,n)=>{t.current.set(e,n),r.current?.observe(e)}),[t,r]),o=T((e=>{t.current.delete(e),r.current?.unobserve(e)}),[r,t]);return C((()=>({addTask:n,removeTask:o})),[n,o])},kF=e=>new ResizeObserver((t=>{t.forEach((t=>{const r=e.get(t.target);r?.(t)}))})),MF=()=>IF(kF),DF=({selectionsAPI:e,selectionDispatch:t,updateShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{E((()=>{const i=()=>{t({type:EA.Reset})},a=()=>{t({type:EA.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])},TF=e=>{e.stopPropagation()},qF=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:TF,color:wC.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),OF=({href:e,text:t,interactions:r,color:n})=>tr.jsx(Yp,{...qF({href:e,text:t,interactions:r,color:n}),children:t}),LF=window.requestIdleCallback??(e=>setTimeout((()=>{e({})}),0)),NF=window.cancelIdleCallback??(e=>{clearTimeout(e)}),jF="qDimensionInfo/0",_F="qMeasureInfo/0",zF="x",FF="y",HF=e=>({key:"bars",type:"box",data:{extract:{field:jF,props:{start:0,end:{field:_F}}}},settings:{major:{scale:zF},minor:{scale:FF},box:{maxWidthPx:8,fill:{fn:e}}}}),$F=e=>({key:"p",type:"point",data:{extract:{field:jF,props:{y:{field:_F}}}},settings:{x:{scale:zF},y:{scale:FF},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),BF=({qNum:e})=>void 0===e?0:Math.sign(e),WF=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=PC(e,t?.negative,r),a=PC(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:jF,props:{start:0,end:{field:_F,value:BF}}}},settings:{major:{scale:zF},minor:{scale:FF},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}}}}},VF=(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=PC(e,t?.main,o),l=PC(e,t?.max,s),u=PC(e,t?.min,s),c=PC(e,t?.first,s),d=PC(e,t?.last,s);return e=>{const t=FF in e.datum?FF:"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[HF(a)];case"dots":return[$F(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:jF,props:{v:{field:_F}}}},settings:{coordinates:{major:{scale:zF},minor:{scale:FF,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(PC(e,n?.main,e.getDataColorSpecials().primary));return r?[t,$F(a)]:[t]}case"posNeg":return[WF(e,n)];default:return[]}},UF=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"}),GF=(e,t,r,n)=>({y:{data:{field:_F},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:jF}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),YF=W();YF.use(B),YF.renderer.prio(["canvas"]);const KF={resolve:()=>{},promise:{}},XF=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:u}=(e=>{const t=D(e.isDownloadedAsPDForImage?It():KF);return{addChartPromiseToQueue:T((()=>{e.waitForPromise(t.current.promise)}),[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:T((()=>{if(null===t.current||null!==e.current)return;u();r.current=LF((()=>{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 YF.chart({element:e,data:{type:"q",key:"qHyperCube",data:UF(s)},settings:{scales:GF(a,l,u,i),components:VF(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:T((()=>{null!==r.current&&NF(r.current),r.current=null,l()}),[r,l])}},JF=e=>{const t=D(null),r=D(!1);return T((n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(NF(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=LF((()=>{e.current?.update()}),{timeout:2e3})):r.current=!1:r.current=!0}),[e])},ZF=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=D(null),l=D(null),u=D(null),{renderChartWithRequestIdleCallback:c,safeCancelIdleCallback:d}=XF({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=T((e=>{e.isIntersecting?n():r()}),[n,r]);E((()=>{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})=>{E((()=>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=JF(t);E((()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}}),[e,n,r])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},QF=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=ZF({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return tr.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},eH=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}`},tH=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},rH=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{direction:o}=$I(_I,(e=>e.baseProps)),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,u="fitHeight"===s,c=tr.jsx("img",{src:i,alt:a,style:{...t,width:u?"auto":"100%",height:"100%",maxHeight:r,objectFit:tH(s),objectPosition:eH(l),overflow:"hidden"}});return n?tr.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:u?r:"100%",overflow:"hidden",display:"flex",justifyContent:u?BA(o,e):void 0},children:c}):c},nH=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.jsx("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"})}))),oH=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.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"})}))),iH=q(((e,t)=>tr.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:[tr.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"}),tr.jsx("use",{fillRule:"evenodd"})]}))),aH=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.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"})}))),sH=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.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"})}))),lH=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.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"})}))),uH=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.jsx("path",{d:"M2 7h12v2H2z"})}))),cH=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.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"})}))),dH=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.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"})}))),pH=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.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"})}))),fH=q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.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"})}))),hH={m:q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})}))),"ï":pH,R:eF,S:Qz,T:q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.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)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.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:dH,Q:lH,"è":q(((e,t)=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:tr.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"})}))),"¢":aH,"©":iH,"23F4":sH,2013:fH,"&":cH,add:nH,"minus-2":uH,dot:oH},mH=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&hH[t];return o&&tr.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:tr.jsx(o,{style:{height:e}})})},gH=({representation:e,cellValue:t,paginationCellAlign:r})=>{const{styleService:n,theme:o,direction:i}=$I(_I,(e=>e.baseProps)),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:u}=s??{},c=LA(e,t,i,o),d=(e=>parseInt(e||_A,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=c||{};return l?tr.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&&mH({size:d,iconKey:f,color:p}),tr.jsx(_z,{isNumeric:!0,children:a}),"right"===h&&mH({size:d,iconKey:f,color:p})]}):mH({size:d,iconKey:f,color:p})},bH=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(t??e.grid.contentLineClamp):e.contentLineHeight,vH=({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}=$I(_I,(e=>e.baseProps)),h=$I(_I,(e=>e.selectionState.api?.isActive()));let m=t.representation.text;if(t.representation.type!==qE.Link||h||(m=tr.jsx(OF,{href:t.representation.url,text:t.representation.text,interactions:l,color:r.cellForegroundColor})),t.representation.type===qE.Image)return tr.jsx(rH,{representation:t.representation,textStyle:r,maxImageHeight:bH(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!==qE.Indicator||Number.isNaN(g)?t.representation.type===qE.MiniChart&&t.representation.miniChart&&!t.isNull?tr.jsx(QF,{height:bH(u,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:c,isSnapshot:!!d.snapshotData,direction:f,downloadService:p}):tr.jsx(_z,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:m}):tr.jsx(gH,{representation:t.representation,cellValue:g,paginationCellAlign:n?void 0:s})},yH=()=>tr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:tr.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),xH=ac("div")({"& path":{stroke:"none !important"}}),SH=({children:e,cellSelectionState:t})=>t===CA.Selected?tr.jsxs(Nz,{children:[e,tr.jsx(xH,{children:tr.jsx(yH,{})})]}):e,wH=e=>{const t=function(){const e=W_(),t=M_((()=>null==e?void 0:e.dragOperation.source),[e]),r=M_((()=>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},CH=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:EA.SelectMultiEnd})};r({type:EA.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:EA.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:EA.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),EH=(e,t)=>{const{paginationNeeded:r,totalsPosition:n}=$I(_I,(e=>e.tableData)),{selectionsAPI:o,rootElement:i,keyboard:a,interactions:s,direction:l}=$I(_I,(e=>e.baseProps)),u=$I(_I,(e=>e.setFocusedCellCoord)),c=$I(_I,(e=>e.selectionDispatch)),d=!!s.active&&!!s.select,p=s=>{wF({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===ZC.Shift&&t({type:EA.SelectMultiEnd})})(e,c)},h=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;Pz([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}=CH(h,e,c,t);return{onKeyDown:p,onKeyUp:f,onMouseDown:m,onMouseUp:b,onMouseOver:g}},RH=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=CA.Inactive;return o?.isModal()&&(i=r!==e.selectionColIdx?CA.Disabled:n.has(e.qElemNumber)?CA.Selected:CA.Possible),i},PH=(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},AH=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},IH=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return AH(t,e,n?"even":"odd")}return e},kH=(e,t)=>{const{styleService:r}=$I(_I,(e=>e.baseProps)),n=$I(_I,(t=>RH(e,t.selectionState)));let o=t.isDim?r.dimension.values:r.measure.values;o=IH(o,r,e),o=PH(o,r,e);const i=RI(o,e.qAttrExps,t.qAttrExprInfoIDs),a=function(e,t,r){return t===CA.Selected?{...e,...r}:t===CA.Disabled?{...e,background:`${NA}, ${e.background}`}:e}(C((()=>e.isNull?o:RI(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}},MH=ac(Mh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),DH=ac(Jh,{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}}}))),TH=ac(Lh,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...HA,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"}))),qH=ac(Lh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...HA,...e,fontWeight:zA,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}))),OH=({cell:e,announce:t,column:r,columnIndex:n,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i})=>{const{interactions:a,direction:s}=$I(_I,(e=>e.baseProps)),{onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p}=EH(e,t),{cellStyle:f,representationStyle:h,cellSelectionState:m}=kH(e,r),g=wH(r.id);return tr.jsx(TH,{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} ${JC}`,title:a.passive?e.representation.text:void 0,onKeyDown:l,onKeyUp:u,onMouseDown:c,onMouseUp:d,onMouseOver:p,children:tr.jsx(SH,{cellSelectionState:m,children:tr.jsx(vH,{cell:e,style:h,intersectionObserverTaskScheduler:o,resizeObserverTaskScheduler:i,paginationCellAlign:GA(s,e.align)})})})},LH=({column:e,headRowHeight:t,totalsPosition:r,onKeyDown:n,onMouseDown:o})=>{const{styleService:i,interactions:a}=$I(_I,(e=>e.baseProps)),s=wH(e.id);return tr.jsx(qH,{totalsStyle:{...i.totalRow,...mz(i,r,!1),opacity:s},headRowHeight:t,atTop:r.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${JC}`,tabIndex:-1,title:a.passive?e.totalInfo:void 0,onKeyDown:n,onMouseDown:o,children:tr.jsx(_z,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},NH=()=>{const{columns:e,totalsPosition:t,rows:r}=$I(_I,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,interactions:a,direction:s}=$I(_I,(e=>e.baseProps)),l=$I(_I,(e=>e.headRowHeight)),u=$I(_I,(e=>e.setFocusedCellCoord)),c=!!o?.isModal(),d=!!a.active;return tr.jsx(Jh,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,o)=>{const a=[t.atTop?1:r.length+1,o];return tr.jsx(LH,{column:e,headRowHeight:l,totalsPosition:t,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case ZC.C:vF(r);break;case ZC.Space:r.preventDefault();break;default:yF(e)}else kC(r)})({evt:e,rootElement:n,cellCoord:a,setFocusedCellCoord:u,isSelectionMode:c,isInteractionEnabled:d,direction:s})},onMouseDown:()=>{Pz(a,n,u,i)}},e.id)}))})};var jH=O(NH);const _H=({updateShouldRefocus:e,tableWrapperRef:t,announce:r})=>{const{rows:n,columns:o,totalsPosition:i}=$I(_I,(e=>e.tableData)),{selectionsAPI:a,keyboard:s,layout:l,styleService:u}=$I(_I,(e=>e.baseProps)),c=$I(_I,(e=>e.selectionDispatch)),d=!!SI(l)?.content?.hoverEffect;DF({keyboard:s,selectionDispatch:c,selectionsAPI:a,updateShouldRefocus:e,tableWrapperRef:t});const p=(e=>{const t=T((t=>new IntersectionObserver((e=>{e.forEach((e=>{const r=t.get(e.target);r?.(e)}))}),{root:e.current})),[e]);return IF(t)})(t),f=MF();return tr.jsxs(MH,{lastRowBottomBorder:u.grid.lastRowBottomBorder,children:[i.atTop?tr.jsx(jH,{}):void 0,n.map(((e,t)=>tr.jsx(DH,{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 tr.jsx(OH,{columnIndex:n,cell:i,column:t,announce:r,intersectionObserverTaskScheduler:p,resizeObserverTaskScheduler:f},o)}))},`row-${t}`))),i.atBottom?tr.jsx(jH,{}):void 0]})};var zH=O(_H);const FH=(e,t)=>!!e.viewState?.skipHeader||!!t.hideHeader,HH=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:s,translator:l,direction:u}=$I(_I,(e=>e.baseProps)),c=$I(_I,(e=>e.columnWidths)),d=$I(_I,(e=>e.setColumnWidths));if(!s.active)return null;return tr.jsx(GI,{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=>{Sz(e);const t=e.closest(".sn-table-cell");Cz(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:l,columnLabel:i},direction:u})},$H=e=>e.target?.getAttribute("class")?.includes(QC),BH=({isInteractionEnabled:e,column:t})=>{const[r,n]=w(!1),{changeSortOrder:o}=$I(_I,(e=>e.baseProps)),i=$I(_I,(e=>e.isAdjustingWidth)),a=$I(_I,(e=>e.setIsAdjustingWidth));return{open:r,setOpen:n,handleOpenMenu:t=>{!e||$H(t)||i||n(!0)},setIsAdjustingWidth:a,toggleSortOrder:r=>{e&&!$H(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o(t,"A"===t.sortDirection?"D":"A"))}}};var WH=Object.defineProperty,VH=Object.defineProperties,UH=Object.getOwnPropertyDescriptors,GH=Object.getOwnPropertySymbols,YH=Object.prototype.hasOwnProperty,KH=Object.prototype.propertyIsEnumerable,XH=(e,t,r)=>t in e?WH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,JH=(e,t)=>{for(var r in t||(t={}))YH.call(t,r)&&XH(e,r,t[r]);if(GH)for(var r of GH(t))KH.call(t,r)&&XH(e,r,t[r]);return e},ZH=(e,t)=>VH(e,UH(t)),QH=class extends wO{apply({transform:e}){if(!this.options)return e;const{axis:t,value:r}=this.options;return ZH(JH({},e),{[t]:r})}};QH.configure=$T(QH);var e$=QH;e$.configure({axis:"x",value:0});var t$=e$.configure({axis:"y",value:0}),r$=class extends wO{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 ZH(JH({},e),{x:Math.ceil(e.x/n)*n,y:Math.ceil(e.y/o)*o})}};r$.configure=$T(r$);var n$=Object.create,o$=Object.defineProperty,i$=Object.defineProperties,a$=Object.getOwnPropertyDescriptor,s$=Object.getOwnPropertyDescriptors,l$=Object.getOwnPropertySymbols,u$=Object.prototype.hasOwnProperty,c$=Object.prototype.propertyIsEnumerable,d$=e=>{throw TypeError(e)},p$=(e,t,r)=>t in e?o$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f$=["class","method","getter","setter","accessor","field","value","get","set"],h$=e=>void 0!==e&&"function"!=typeof e?d$("Function expected"):e,m$=(e,t,r,n,o)=>({kind:f$[e],name:t,metadata:n,addInitializer:e=>r._?d$("Already initialized"):o.push(h$(e||null))}),g$=(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},b$=(e,t,r,n,o,i)=>{for(var a,s,l,u,c,d=7&t,p=e.length+1,f=f$[d+5],h=e[p-1]=[],m=e[p]||(e[p]=[]),g=(o=o.prototype,a$({get[r](){return y$(this,i)},set[r](e){return S$(this,i,e)}},r)),b=n.length-1;b>=0;b--)(u=m$(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?h$(s)&&(g[f]=s):"object"!=typeof s||null===s?d$("Object expected"):(h$(a=s.get)&&(g.get=a),h$(a=s.set)&&(g.set=a),h$(a=s.init)&&h.unshift(a));return g&&o$(o,r,g),o},v$=(e,t,r)=>t.has(e)||d$("Cannot "+r),y$=(e,t,r)=>(v$(e,t,"read from private field"),t.get(e)),x$=(e,t,r)=>t.has(e)?d$("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),S$=(e,t,r,n)=>(v$(e,t,"write to private field"),t.set(e,r),r);function w$(e){return e instanceof J$||e instanceof X$}var C$=Object.defineProperty,E$=Object.defineProperties,R$=Object.getOwnPropertyDescriptors,P$=Object.getOwnPropertySymbols,A$=Object.prototype.hasOwnProperty,I$=Object.prototype.propertyIsEnumerable,k$=(e,t,r)=>t in e?C$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,M$=(e,t)=>{for(var r in t||(t={}))A$.call(t,r)&&k$(e,r,t[r]);if(P$)for(var r of P$(t))I$.call(t,r)&&k$(e,r,t[r]);return e},D$=(e,t)=>E$(e,R$(t));function T$(e,t,r){if(t===r)return e;const n=e.slice();return n.splice(r,0,n.splice(t,1)[0]),n}function q$(e,t){return function(e,t,r){var n,o;const{source:i,target:a,canceled:s}=t.operation;if(!i||!a||s)return"preventDefault"in t&&t.preventDefault(),e;const l=(e,t)=>e===t||"object"==typeof e&&"id"in e&&e.id===t;if(Array.isArray(e)){const t=e.findIndex((e=>l(e,i.id))),n=e.findIndex((e=>l(e,a.id)));if(-1===t||-1===n)return e;if(!s&&"index"in i&&"number"==typeof i.index){const n=i.index;if(n!==t)return r(e,t,n)}return r(e,t,n)}const u=Object.entries(e);let c,d,p=-1,f=-1;for(const[e,t]of u)if(-1===p&&(p=t.findIndex((e=>l(e,i.id))),-1!==p&&(c=e)),-1===f&&(f=t.findIndex((e=>l(e,a.id))),-1!==f&&(d=e)),-1!==p&&-1!==f)break;if(!i.manager)return e;const{dragOperation:h}=i.manager,m=null!=(o=null==(n=h.shape)?void 0:n.current.center)?o:h.position.current;if(null==d&&a.id in e){const t=a.shape&&m.y>a.shape.center.y?e[a.id].length:0;d=a.id,f=t}if(null==c||null==d||c===d&&p===f)return"preventDefault"in t&&t.preventDefault(),e;if(c===d)return D$(M$({},e),{[c]:r(e[c],p,f)});const g=a.shape&&Math.round(m.y)>Math.round(a.shape.center.y)?1:0,b=e[c][p];return D$(M$({},e),{[c]:[...e[c].slice(0,p),...e[c].slice(p+1)],[d]:[...e[d].slice(0,f+g),b,...e[d].slice(f+g)]})}(e,t,T$)}var O$="__default__";function L$(e,t,r,n){const o=n<t?"afterend":"beforebegin";r.insertAdjacentElement(o,e)}function N$(e,t){return e.index-t.index}function j$(e){return Array.from(e).sort(N$)}var _$,z$,F$,H$,$$,B$,W$,V$,U$=[class extends WT{constructor(e){super(e);const t=jM((()=>{const{dragOperation:t}=e;if(iN(t.activatorEvent)&&w$(t.source)&&t.status.initialized){const t=e.registry.plugins.get(Oj);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(!w$(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=[];vM((()=>{for(const e of i.droppables){const{id:t}=e;if(!e.accepts(l)||t===(null==u?void 0:u.id)&&w$(e)||!e.element)continue;let r=e.shape;const n=new tN(e.element,{getBoundingClientRect:e=>WO(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,uN);vM((()=>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||!w$(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;YL(c);const d=new tN(c);if(!d)return;const p=nT.delta(d,nT.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 WT{constructor(e){super(e);const t=()=>{const t=new Map;for(const r of e.registry.droppables)if(r instanceof J$){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(j$(r)));return t},r=[e.monitor.addEventListener("dragover",((e,r)=>{if(this.disabled)return;const{dragOperation:n}=r,{source:o,target:i}=n;if(!w$(o)||!w$(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=j$(l),g=s?m:j$(u),b=null!=(c=o.sortable.group)?c:O$,v=null!=(d=i.sortable.group)?d:O$,y={[b]:m,[v]:g},x=q$(y,e);if(y===x)return;const S=x[v].indexOf(o.sortable),w=x[v].indexOf(i.sortable);r.collisionObserver.disable(),L$(f,S,h,w),vM((()=>{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;w$(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=j$(n),r=o.sortable.element,i=t[o.sortable.initialIndex],a=null==i?void 0:i.element;i&&a&&r&&(L$(r,i.index,a,o.index),vM((()=>{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()}}}],G$={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1},Y$=new class{constructor(){ED(this,qD,new WeakMap)}get(e,t){var r;return e?null==(r=CD(this,qD).get(e))?void 0:r.get(t):void 0}set(e,t,r){var n;if(e)return CD(this,qD).has(e)||CD(this,qD).set(e,new Map),null==(n=CD(this,qD).get(e))?void 0:n.set(t,r)}clear(e){var t;return e?null==(t=CD(this,qD).get(e))?void 0:t.clear():void 0}};z$=[kD],_$=[kD];var K$=class{constructor(e,t){x$(this,H$,g$(F$,8,this)),g$(F$,11,this),x$(this,$$),x$(this,B$),x$(this,W$,g$(F$,12,this)),g$(F$,15,this),x$(this,V$),this.register=()=>(vM((()=>{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=()=>{vM((()=>{var e,t;null==(e=this.manager)||e.registry.unregister(this.droppable),null==(t=this.manager)||t.registry.unregister(this.draggable)}))},this.destroy=()=>{vM((()=>{this.droppable.destroy(),this.draggable.destroy()}))};var r=e,{effects:n=()=>[],group:o,index:i,sensors:a,type:s,transition:l=G$,plugins:u=U$}=r,c=((e,t)=>{var r={};for(var n in e)u$.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&l$)for(var n of l$(e))t.indexOf(n)<0&&c$.call(e,n)&&(r[n]=e[n]);return r})(r,["effects","group","index","sensors","type","transition","plugins"]);this.droppable=new J$(c,t,this),this.draggable=new X$(((e,t)=>i$(e,s$(t)))(((e,t)=>{for(var r in t||(t={}))u$.call(t,r)&&p$(e,r,t[r]);if(l$)for(var r of l$(t))c$.call(t,r)&&p$(e,r,t[r]);return e})({},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)&&Y$.clear(this.manager),(null==n?void 0:n.dragging)&&Y$.set(this.manager,this.id,xM((()=>({initialIndex:this.index,initialGroup:this.group}))))},()=>{const{index:e,group:t,manager:r}=this,n=y$(this,B$),o=y$(this,$$);e===n&&t===o||(S$(this,B$,e),S$(this,$$,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),S$(this,V$,c.element),this.manager=t,this.index=i,S$(this,B$,i),this.group=o,S$(this,$$,o),this.type=s,this.transition=l}get initialIndex(){var e,t;return null!=(t=null==(e=Y$.get(this.manager,this.id))?void 0:e.initialIndex)?t:this.index}get initialGroup(){var e,t;return null!=(t=null==(e=Y$.get(this.manager,this.id))?void 0:e.initialGroup)?t:this.group}animate(){xM((()=>{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}=NL(n),l=XL(n,s,!1),u=XL(n,s);(i||a)&&KL({element:n,keyframes:{translate:[`${l.x+i}px ${l.y+a}px ${l.z}`,`${u.x}px ${u.y}px ${u.z}`]},options:t}).then((()=>{e.dragOperation.status.dragging||(this.droppable.shape=void 0)}))}))}))}get manager(){return this.draggable.manager}set manager(e){vM((()=>{this.draggable.manager=e,this.droppable.manager=e}))}set element(e){vM((()=>{const t=y$(this,V$),r=this.droppable.element,n=this.draggable.element;r&&r!==t||(this.droppable.element=e),n&&n!==t||(this.draggable.element=e),S$(this,V$,e)}))}get element(){var e,t;const r=y$(this,V$);if(r)return null!=(t=null!=(e=ZO.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){vM((()=>{this.droppable.disabled=e,this.draggable.disabled=e}))}set data(e){vM((()=>{this.droppable.data=e,this.draggable.data=e}))}set handle(e){this.draggable.handle=e}set id(e){vM((()=>{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:lN}set alignment(e){this.draggable.alignment=e}get alignment(){return this.draggable.alignment}set type(e){vM((()=>{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)}};F$=[,,,n$(null)],H$=new WeakMap,$$=new WeakMap,B$=new WeakMap,W$=new WeakMap,V$=new WeakMap,b$(F$,4,"index",z$,K$,H$),b$(F$,4,"group",_$,K$,W$),((e,t)=>{return p$(t,(r="metadata",(n=Symbol[r])?n:Symbol.for("Symbol."+r)),e[3]);var r,n})(F$,K$);var X$=class extends R_{constructor(e,t,r){super(e,t),this.sortable=r}get index(){return this.sortable.index}},J$=class extends P_{constructor(e,t,r){super(e,t),this.sortable=r}},Z$=Object.defineProperty,Q$=Object.defineProperties,eB=Object.getOwnPropertyDescriptors,tB=Object.getOwnPropertySymbols,rB=Object.prototype.hasOwnProperty,nB=Object.prototype.propertyIsEnumerable,oB=(e,t,r)=>t in e?Z$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,iB=(e,t)=>{for(var r in t||(t={}))rB.call(t,r)&&oB(e,r,t[r]);if(tB)for(var r of tB(t))nB.call(t,r)&&oB(e,r,t[r]);return e};function aB(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=iB(iB({},G$),e.transition),b=function(e){var t;const r=null!=(t=W_())?t:void 0,[n]=w((()=>e(r)));return n.manager!==r&&(n.manager=r),I_(n.register,[r,n]),n}((t=>new K$(((e,t)=>Q$(e,eB(t)))(iB({},e),{transition:g,register:!1,handle:A_(s),element:A_(a),target:A_(h),feedback:d}),t))),v=D_(b,sB);return O_(o,(()=>b.id=o)),I_((()=>{vM((()=>{b.group=u,b.index=l}))}),[b,u,l]),O_(m,(()=>b.type=m)),O_(t,(()=>b.accept=t),void 0,ID),O_(i,(()=>i&&(b.data=i))),O_(l,(()=>{var e;(null==(e=b.manager)?void 0:e.dragOperation.status.idle)&&(null==g?void 0:g.idle)&&b.refreshShape()}),T_),L_(s,(e=>b.handle=e)),L_(a,(e=>b.element=e)),L_(h,(e=>b.target=e)),O_(c,(()=>b.disabled=!0===c)),O_(f,(()=>b.sensors=f)),O_(r,(()=>b.collisionDetector=r)),O_(n,(()=>b.collisionPriority=n)),O_(d,(()=>b.feedback=null!=d?d:"default")),O_(g,(()=>b.transition=g),void 0,ID),O_(p,(()=>b.modifiers=p),void 0,ID),O_(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:T((e=>{b.handle=null!=e?e:void 0}),[b]),ref:T((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:T((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:T((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 sB(e,t,r){return!("isDragSource"!==e||r||!t)}const lB=({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/rT.distance(r.shape.center,s),type:fq.Collision,priority:pq.Normal}:null},uB=(e,t)=>{const{interactions:r,direction:n}=$I(_I,(e=>e.baseProps)),{flags:o}=$I(_I,(e=>e.env)),i=!r.active||!o.isEnabled("TLV-1531_DRAG_AND_DROP_COLUMNS");return aB({id:e.id,disabled:i,index:t,type:"item",accept:"item",group:"column",modifiers:[t$],data:e,feedback:"clone",collisionDetector:lB({invert:"rtl"===n})})},cB=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a,direction:s}=$I(_I,(e=>e.baseProps)),{columns:l,totalsPosition:u}=$I(_I,(e=>e.tableData)),c=$I(_I,(e=>e.columnWidths[t])),d=$I(_I,(e=>e.baseProps.selectionsAPI?.isModal())),p=$I(_I,(e=>e.setFocusedCellCoord)),f=$I(_I,(({focusedCellCoord:[e,r]})=>0===e&&r===t)),h=!!n.active&&!d,{open:m,setOpen:g,handleOpenMenu:b,setIsAdjustingWidth:v,toggleSortOrder:y}=BH({isInteractionEnabled:h,column:e}),{ref:x,handleRef:S,isDragging:w}=uB(e,t),C=wH(e.id),E=hz(),R=E?zz:aF,P=e.isActivelySorted?RA[e.sortDirection]:void 0,A=m?XC:void 0,I=m?"true":void 0,k=t===r-1,M=[0,e.pageColIdx],D={width:c,zIndex:l.length-t},T=f&&0===t&&!i.enabled&&h?0:-1;return tr.jsxs(kz,{"data-dragging":w,ref:x,headerStyle:{...a.header,...mz(a,u,!0),opacity:C},background:E&&m?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:n,style:D,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${JC}`,tabIndex:T,title:n.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case ZC.C:vF(r);break;case ZC.Enter:case ZC.Space:n?.(r);break;default:yF(e)}else kC(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&&Pz(r,t,n,o)})({evt:e,rootElement:o,cellCoord:M,setFocusedCellCoord:p,keyboard:i,isInteractionEnabled:h})},onClick:E?b:y,"aria-sort":P,"aria-controls":A,"aria-expanded":I,"aria-haspopup":"true",children:[tr.jsx(R,{ref:S,column:e,isInteractionEnabled:h,open:m,setOpen:g,isPagination:!0}),tr.jsx(HH,{column:e,isLastColumn:k,setIsAdjustingWidth:v})]},e.id)},dB=()=>{const{columns:e}=$I(_I,(e=>e.tableData)),{styleService:t,viewService:r,layout:n}=$I(_I,(e=>e.baseProps)),o=$I(_I,(e=>e.setHeadRowHeight)),i=$I(_I,(e=>e.columnWidths)),a=D(null),s=FH(r,n);return E((()=>{a.current&&o(a.current.getBoundingClientRect().height)}),[t.header.fontSize,i,o,s]),tr.jsx(Vh,{style:{visibility:s?"collapse":void 0},children:tr.jsx(Jh,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map(((t,r)=>tr.jsx(cB,{column:t,columnIndex:r,columnsLength:e.length},t.id)))})})};var pB=O(dB);const fB=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}=$I(_I,(e=>e.tableData)),{rootElement:f,keyboard:h,translator:m,theme:g,interactions:b,styleService:v,viewService:y,layout:x,rect:S,direction:w}=$I(_I,(e=>e.baseProps)),C=$I(_I,(e=>e.setYScrollbarWidth)),R=$I(_I,(e=>e.showRightBorder)),P=$I(_I,(e=>e.selectionDispatch)),A=$I(_I,(e=>e.baseProps.selectionsAPI?.isModal())),I=D(!1),k=D(null),M=D(null),{yScrollbarWidth:q}=CF(k),O=`${m.get("SNTable.Accessibility.RowsAndColumns",[String(d.length),String(p.length)])} ${m.get("SNTable.Accessibility.NavigationInstructions")}`,L=LP(x,y),N=L?y.scrollLeft??0:0,j=L?y.rowPartialHeight??0:0,_=T((()=>{I.current=f.getElementsByTagName("table")[0].contains(document.activeElement)}),[f]),z=T((e=>{r({...t,page:e}),o({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),u.toString()]],politeness:"assertive"})}),[t,r,u,o]),F=T((e=>{r({...t,page:0,rowsPerPage:e}),o({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[o,t,r]);return bF(k,w,y),((e,t)=>{const{keyboard:r}=$I(_I,(e=>e.baseProps));E((()=>{const n=e.current;if(!n)return;const o=e=>{Az(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])})(M,I),(()=>{const{rootElement:e,keyboard:t}=$I(_I,(e=>e.baseProps)),r=$I(_I,(e=>e.focusedCellCoord));BC((()=>{const n=yz(e,r);t.active?Cz(n):(n?.blur(),wz(e))}),[t.active,e])})(),gF(I,o,i),E((()=>{const e=k.current;e&&(e.scrollLeft=N,e.scrollTop=j)}),[t,l,N,j]),hF((()=>{C(q)}),[q]),hF((()=>{P({type:EA.UpdatePageRows,payload:{pageRows:d}})}),[d]),mF(),tr.jsxs(fF,{children:[tr.jsxs(Oz,{ref:M,dir:w,onKeyDown:e=>{SF({evt:e,totalRowCount:l,page:i,rowsPerPage:a,handleChangePage:z,updateShouldRefocus:_,keyboard:h,isSelectionMode:A})},"data-testid":"sn-table",children:[tr.jsx(AF,{}),tr.jsxs(RF,{ref:k,className:"sn-table-container",fullHeight:!!n||!b.active||!c,interactions:b,tabIndex:-1,role:"application","data-testid":"table-container",children:[tr.jsxs(PF,{stickyHeader:!0,"aria-label":O,borderRight:R?`1px solid ${v.grid.border}`:void 0,children:[tr.jsx(pB,{}),tr.jsx(zH,{...e,updateShouldRefocus:_,tableWrapperRef:M})]}),tr.jsx(fz,{})]}),tr.jsx(mM,{footerContainer:n,pageInfo:t,paginationNeeded:c,theme:g,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:h,translator:m,interactions:b,rect:S,layout:x,handleChangePage:z,handleChangeRowsPerPage:F,isSelectionMode:A,direction:w})]}),tr.jsx(cF,{isPagination:!0})]})};var hB=O(fB);function mB(){return mB=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},mB.apply(null,arguments)}function gB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bB(e,t){return bB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bB(e,t)}function vB(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,bB(e,t)}var yB=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function xB(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||yB(n)&&yB(o)))return!1;var n,o;return!0}function SB(e,t){var r;void 0===t&&(t=xB);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 wB(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 CB="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function EB(e){cancelAnimationFrame(e.id)}function RB(e,t){var r=CB();var n={id:requestAnimationFrame((function o(){CB()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var PB=-1;function AB(e){if(void 0===e&&(e=!1),-1===PB||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),PB=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return PB}var IB=null;function kB(e){if(void 0===e&&(e=!1),null===IB||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?IB="positive-descending":(t.scrollLeft=1,IB=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),IB}return IB}var MB=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function DB(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,gB(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:gB(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=SB((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=SB((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=SB((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(kB()){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&&EB(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=RB(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}vB(t,e),t.getDerivedStateFromProps=function(e,t){return TB(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=AB();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(kB()){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&&EB(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?MB:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),w=S[0],C=S[1],E=this._getVerticalRangeToRender(),P=E[0],A=E[1],I=[];if(n>0&&g)for(var k=P;k<=A;k++)for(var M=w;M<=C;M++)I.push(R(t,{columnIndex:M,data:d,isScrolling:v?x:void 0,key:f({columnIndex:M,data:d,rowIndex:k}),rowIndex:k,style:this._getItemStyle(k,M)}));var D=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return R(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:mB({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},R(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}(z),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var TB=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},qB=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},OB=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},LB=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]},NB=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?jB(e,t,r,i,0,n):_B(e,t,r,Math.max(0,i),n)},jB=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=LB(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},_B=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&LB(e,t,n,r).offset<o;)n+=a,a*=2;return jB(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=LB(e,t,r,i),u="column"===e?OB(t,i):qB(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}},FB=DB({getColumnOffset:function(e,t,r){return LB("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return NB("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=LB("column",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=LB("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:qB,getEstimatedTotalWidth:OB,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 LB("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return NB("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=LB("row",e,t,n),s=r+i,l=a.offset+a.size,u=t;u<o-1&&l<s;)u++,l+=LB("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}}),HB=function(e,t){return e};function $B(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,gB(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:gB(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=SB((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=SB((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=SB((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(kB()){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&&EB(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=RB(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}vB(t,e),t.getDerivedStateFromProps=function(e,t){return BB(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?AB():0:l.scrollHeight>l.clientHeight?AB():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(kB()){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&&EB(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?HB:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),C=w[0],E=w[1],P=[];if(u>0)for(var A=C;A<=E;A++)P.push(R(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 R(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:mB({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},R(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}(z),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var BB=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},WB=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]},VB=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=WB(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},UB=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&WB(e,r,t).offset<n;)r+=i,i*=2;return VB(e,t,Math.min(r,o-1),Math.floor(r/2),n)},GB=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},YB=$B({getItemOffset:function(e,t,r){return WB(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:GB,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=WB(e,t,o),p=GB(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?VB(e,t,o,0,r):UB(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=WB(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=WB(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 KB(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 XB=["style"],JB=["style"];function ZB(e,t){var r=e.style,n=wB(e,XB),o=t.style,i=wB(t,JB);return!KB(r,o)&&!KB(n,i)}const QB=({style:e})=>tr.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var eW=x.memo(QB,ZB);const tW=()=>{},rW=e=>{e.preventDefault()};const nW=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:u}=n,c=$I(_I,(e=>e.hoverIndex===t)),d=$I(_I,(e=>e.setHoverIndex)),{interactions:p,styleService:f,direction:h}=$I(_I,(e=>e.baseProps)),m=$I(_I,(e=>e.showRightBorder)),g=o[t]?.[e],{handleMouseDown:b,handleMouseOver:v,handleMouseUp:y,cellSelectionState:x}=function(e){const{interactions:t}=$I(_I,(e=>e.baseProps)),r=$I(_I,(e=>e.selectionDispatch)),n="object"==typeof e,o=$I(_I,(t=>n?RH(e,t.selectionState):CA.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=CH(rW,e,r,tW);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g),S=((e,t,r,n)=>{const o=D(null),i=r&&!r.isNumeric,a=T((r=>{const o=Uz(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return Gz(o,a),o})(t,e,g,s),w=i[e]?.isDim?f.dimension.values:f.measure.values,C=wH(i[e].id);if("object"==typeof g){const n=((e,t,r,n,o,i)=>{let a=IH(o,i,e);a=PH(a,i,e);const s=!e.isNull&&t.qAttrExprInfoIDs.length?RI(a,e.qAttrExps,t.qAttrExprInfoIDs):a;return n===CA.Selected?{...s,...i.selectedColors}:n===CA.Disabled?{...s,color:r?i.grid.hoverColors?.color:s.color,background:`${NA}, ${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 tr.jsx("div",{className:`sn-table-cell ${x} ${JC}`,style:{...r,...n,display:"flex",alignItems:"start",borderColor:f.grid.border,borderTop:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:YA(h,g.isLastColumn,m),borderLeftWidth:KA(h,g.isLastColumn,m),justifyContent:WA(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:tr.jsx(SH,{cellSelectionState:x,children:tr.jsx(vH,{forwardRef:f.contentStaticLineCount||1===l?void 0:S,cell:g,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:u})})})}return tr.jsx(eW,{style:{...r,...w,borderColor:f.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:C}})};var oW=O(nW,ZB);const iW=e=>{const t=D(e);return t.current=e,t},aW=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,sW=(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},lW=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!e[t]))},uW=(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=PP(h,e,a),C=!h&&e.qIsNull,E=C?qR(w):TR(e);f[r]={id:kR(),...e,align:qP(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)&&RP(e,h),representation:EP({cell:e,representationProperties:y,attrExprInfoIndex:v,env:s,conditionalColoring:x,miniChartOnMeasure:S,getText:()=>C?w:e.qText,direction:u,enabledFeatures:{[qE.Image]:!0,[qE.Indicator]:!0,[qE.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}))}))},cW=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:s,columns:l,gridState:u,setEstimatedCellHeight:c})=>{const d=$I(_I,(e=>e.env)),{direction:p}=$I(_I,(e=>e.baseProps)),f=D([]),h=T(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return uW(t,o,n,l,e,d,c,p),f.current=n,n}),[i,o,l,e,d,c,p]),[m,g]=w((()=>h(n??[])));BC((()=>{g(h(n??[]))}),[n,p]);const b=((e,t)=>{const r=D(new Set),n=D(new Set),o=D(new Set),i=iW(e),a=iW(t),s=C((()=>({enqueue:e=>{const t=aW(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(aW(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=T(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(lW(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}}),[f,b]),y=T(((e,t,r,n)=>{for(let i=t;i<t+n;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(sW(f.current,e,t,r,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:r};b.enqueue(t)}}}),[f,b,o]);return E((()=>{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}},dW=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},pW=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,fW=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=$I(_I,(e=>e.baseProps.styleService)),i=$I(_I,(e=>e.columnWidths)),{estimateLineCount:a}=zC(o.dimension.values),s=qI(o.dimension.values.fontSize),l=e||t||1===r;return T(((e,t,o)=>{if(l||e.representation.type===qE.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])},hW=({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])},mW=({rowCount:e,isSnapshot:t,viewService:r,gridRef:n,pageInfo:o})=>{const{styleService:i}=$I(_I,(e=>e.baseProps)),[a,s]=w({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}=$I(_I,(e=>e.baseProps)),o=$I(_I,(e=>e.columnWidths)),i=n.multiline?.wrapTextInCells,a=n.nullValueRepresentation?.text;BC((()=>{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]),BC((()=>{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})=>T(((o,i,a)=>{j((()=>{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(!pW(u.get(a),l))return e;const c={...e};return u.set(a,l),c.rowHeights.set(i,dW(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})=>T(((o,i,a)=>{e||t||1===r||n(o,i,a)}),[e,t,r,n]))({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:m}),b=fW({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:m}),v=T((e=>c?h??u:a.rowHeights.get(e)??u),[c,u,a.rowHeights,h]);return hW({isStaticNbrOfLines:c,minRowHeight:u,state:a,staticRowHeight:h,viewService:r}),{setMeasuredCellHeight:g,setEstimatedCellHeight:b,getRowHeight:v,lineClamp:f}},gW=(e,t)=>{L((()=>()=>{t(0)}),[e,t]);const r=T((e=>{const r=Uz(e);void 0!==r&&t(r)}),[t]);Gz(e,r)};let bW=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const vW=({layout:e,loadRows:t,loadColumns:r,rowCount:n,pageInfo:o,gridState:i,viewService:a})=>T((({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=bW.None,i=bW.None;return o=n>t?bW.Down:n<t?bW.Up:bW.None,i=r>e?bW.Right:r<e?bW.Left:bW.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===bW.Down){const e=x+25;t(b,v,y,u+e>n?n-u:e)}else if(m===bW.Up){const e=x+25,r=o.page*o.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(g===bW.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(g===bW.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]),yW={enabled:!1},xW=()=>{},SW={current:null};const wW=(e,t,r,n,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(r.height/o)),s=C((()=>n.reduce(((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[r,n]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:s}},CW=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},EW={overflow:"hidden",willChange:"auto"};var RW=O(q(((e,t)=>{const{rect:r,columns:n,pageInfo:o,headerAndTotalsHeight:i,setInnerBodyHeight:a}=e,{layout:s,model:l,theme:u,viewService:c,styleService:d,direction:p}=$I(_I,(e=>e.baseProps)),f=$I(_I,(e=>e.columnWidths)),h=$I(_I,(e=>e.initialDataPages)),m=D(null),g=D(null),b=D({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),v=D(0),y=!!SI(s)?.content?.hoverEffect,{rowCount:x,visibleRowCount:S,visibleColumnCount:w}=wW(s,o,r,f,d.contentMinRowHeight),{setMeasuredCellHeight:R,setEstimatedCellHeight:P,getRowHeight:A,lineClamp:I}=mW({rowCount:x,isSnapshot:!!s.snapshotData,viewService:c,gridRef:m,pageInfo:o}),{rowsInPage:k,loadRows:M,loadColumns:T}=cW({layout:s,model:l,theme:u,initialDataPages:h,pageInfo:o,rowCount:x,visibleRowCount:S,visibleColumnCount:w,columns:n,gridState:b,setEstimatedCellHeight:P}),q=vW({layout:s,loadRows:M,loadColumns:T,rowCount:x,pageInfo:o,gridState:b,viewService:c}),O=MF(),N=C((()=>({rowsInPage:k,columns:n,isHoverEnabled:y,lineClamp:I,setMeasuredCellHeight:R,resizeObserverTaskScheduler:O})),[k,n,y,I,R,O]),j=((e,t)=>e.height-t)(r,i);return L((()=>{1===v.current&&m.current?.scrollToItem({rowIndex:x-1,align:"start"})})),function(e){const{selectionsAPI:t}=$I(_I,(e=>e.baseProps)),r=$I(_I,(e=>e.selectionDispatch));E((()=>{r({type:EA.UpdatePageRows,payload:{pageRows:e}})}),[r,e]),DF({selectionsAPI:t,selectionDispatch:r,updateShouldRefocus:xW,keyboard:yW,tableWrapperRef:SW})}(k),_(t,(()=>({interpolatedScrollTo:(e,t)=>{const r=(g.current?.clientHeight??j)-j,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,j,x]),gW(g,a),tr.jsx(FB,{"data-key":"body",ref:m,innerRef:g,style:EW,columnCount:s.qHyperCube.qSize.qcx,columnWidth:e=>f[e],height:j,rowCount:x,rowHeight:A,estimatedRowHeight:c.estimatedRowHeight,width:r.width,itemData:N,onItemsRendered:q,itemKey:CW,className:"sn-table-body",direction:p,children:oW})})));const PW=({width:e,height:t,children:r})=>tr.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),AW=(e,t)=>{const r=D(null),n=$I(_I,(e=>e.columnWidths));L((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=T((r=>{const n=Uz(r);n&&t(n+9,e)}),[e,t]);return Gz(r,o),r},IW=ac("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}}))),kW=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i}=r,{interactions:a,styleService:s,direction:l}=$I(_I,(e=>e.baseProps)),u=$I(_I,(e=>e.baseProps.selectionsAPI?.isModal())),c=$I(_I,(e=>e.showRightBorder)),d=$I(_I,(e=>e.tableData.totalsPosition)),p=!!a.active&&!u,f=n[e],{open:h,setOpen:m,handleOpenMenu:g,setIsAdjustingWidth:b,toggleSortOrder:v}=BH({isInteractionEnabled:p,column:f}),y=hz(),x=AW(e,i),S=n.length-1===e,w=y?zz:aF,{ref:C,handleRef:E,isDragging:R}=uB(f,e),P=wH(f.id);return tr.jsxs(IW,{"data-dragging":R,ref:C,className:`sn-table-cell ${JC}`,title:a.passive?f.label:void 0,onClick:y?g:v,applicableStyle:{...s.header,...mz(s,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:YA(l,S,c),borderLeftWidth:KA(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:P},interactions:a,hoverBackground:s.headerMenuHoverBackground,background:y&&h?s.headerMenuActiveBackground:s.header.background,children:[tr.jsx(w,{ref:E,forwardRef:x,column:f,isInteractionEnabled:p,open:h,setOpen:m}),tr.jsx(HH,{column:f,isLastColumn:S,onColumnResize:o,setIsAdjustingWidth:b})]})},MW=e=>{const[t,r]=w(new Map);BC((()=>{r(new Map)}),[e.length]);const n=T(((e,t)=>{r((r=>pW(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:C((()=>dW(t)),[t]),setMeasuredCellHeight:n}},DW=(e,t)=>{_(e,(()=>({scrollTo:e=>t.current?.scrollTo(e)})),[t])},TW=(e,t,r,n,o)=>{BC((()=>{e.current?.resetAfterIndex(0,!1)}),[t,r,e,n,o])},qW={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},OW=q(((e,t)=>{const{rect:r,columns:n,pageInfo:o,columResizeHandler:i,setHeaderRowHeight:a}=e,s=x.useRef(null),l=D(null),{layout:u,theme:c,styleService:d,direction:p,viewService:f}=$I(_I,(e=>e.baseProps)),h=$I(_I,(e=>e.columnWidths)),{rowHeight:m,setMeasuredCellHeight:g}=MW(n),b=FH(f,u);return DW(t,s),TW(s,u,o,h,c),gW(l,a),tr.jsx(YB,{ref:s,outerRef:l,layout:"horizontal",style:{...qW,...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:kW})}));var LW=O(OW);const NW=q(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a,direction:s}=$I(_I,(e=>e.baseProps));return tr.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})})),jW=({children:e,rect:t})=>{const{direction:r}=$I(_I,(e=>e.baseProps));return tr.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})},_W=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,{layout:a,interactions:s,styleService:l,direction:u}=$I(_I,(e=>e.baseProps)),c=$I(_I,(e=>e.showRightBorder)),d=AW(e,i),p=n[e].totalInfo,{totalsTextAlign:f,isTotalNumeric:h}=n[e],m=a.qHyperCube.qSize.qcx-1===e,g=wH(n[e].id);return tr.jsx("div",{className:`sn-table-cell ${JC}`,title:s.passive?p:void 0,style:{...t,...l.totalRow,...mz(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:YA(u,m,c),borderLeftWidth:KA(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:tr.jsx(_z,{forwardRef:h?void 0:d,isNumeric:h,children:p})})},zW=q(((e,t)=>{const{rect:r,pageInfo:n,totals:o,columns:i,setTotalsRowHeight:a}=e,s=D(null),l=D(null),{layout:u,theme:c,styleService:d,direction:p}=$I(_I,(e=>e.baseProps)),f=$I(_I,(e=>e.columnWidths)),{rowHeight:h,setMeasuredCellHeight:m}=MW(i);return DW(t,s),TW(s,u,n,f,c),gW(l,a),tr.jsx(YB,{ref:s,outerRef:l,layout:"horizontal",style:qW,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:_W})}));var FW=O(zW);const HW=(e,t,r,n,o)=>T((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]),$W=e=>{const{pageInfo:t}=e,{totalsPosition:r,columns:n,paginationNeeded:o}=$I(_I,(e=>e.tableData)),{layout:i,theme:a,rect:s,viewService:l,direction:u}=$I(_I,(e=>e.baseProps)),c=$I(_I,(e=>e.columnWidths)),d=$I(_I,(e=>e.setYScrollbarWidth)),p=D(null),f=D(null),h=D(null),m=D(null),{xScrollbarWidth:g,yScrollbarWidth:b}=CF(p),v=C((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(s,o)),[s,o]),y=C((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(v,g,b)),[v,g,b]),{rowCount:x}=wW(i,t,y,c,0),{headerAndTotalsHeight:S,innerBodyHeight:E,setHeaderRowHeight:R,setTotalsRowHeight:P,setInnerBodyHeight:A}=(()=>{const[e,t]=w(0),[r,n]=w(0),[o,i]=w(0);return{headerAndTotalsHeight:e+r,innerBodyHeight:o,setHeaderRowHeight:t,setTotalsRowHeight:n,setInnerBodyHeight:i}})(),{width:I,height:k}=(({innerBodyHeight:e,headerAndTotalsHeight:t,rowCount:r,stickyContainerRect:n,columnWidths:o})=>{const{styleService:i}=$I(_I,(e=>e.baseProps)),a=e+t,s=r*i.contentMinRowHeight+t;let l=s;return s<n.height&&a>n.height&&(l=a),{width:o.reduce(((e,t)=>e+t),0),height:l}})({innerBodyHeight:E,headerAndTotalsHeight:S,rowCount:x,stickyContainerRect:y,columnWidths:c}),M=HW(f,h,m,l,u),q=T((()=>{p.current&&(p.current.scrollTop=0)}),[p]);mF(),L((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[n.length]),L((()=>{p.current&&(p.current.scrollTop=0)}),[t,x,a]),hF((()=>{d(b)}),[b]);const O=tr.jsx(FW,{rect:y,pageInfo:t,columns:n,ref:h,totals:r,setTotalsRowHeight:P},"totals");return tr.jsxs(fF,{children:[tr.jsx(NW,{ref:p,width:v.width,height:v.height,onScroll:M,children:tr.jsxs(PW,{width:I,height:k,children:[tr.jsxs(jW,{rect:y,children:[tr.jsx(LW,{rect:y,pageInfo:t,columns:n,ref:f,columResizeHandler:q,setHeaderRowHeight:R}),r.atTop?O:null,tr.jsx(RW,{ref:m,rect:y,pageInfo:t,columns:n,headerAndTotalsHeight:S,setInnerBodyHeight:A}),r.atBottom?O:null]}),tr.jsx(fz,{})]})}),tr.jsx(cF,{isPagination:!1})]})};var BW=O($W);const WW=()=>{const{theme:e,keyboard:t,translator:r,interactions:n,rect:o,layout:i}=$I(_I,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:s,totalColumnCount:l,totalPages:u}=$I(_I,(e=>e.tableData)),c=$I(_I,(e=>e.pageInfo)),d=$I(_I,(e=>e.setPage));return tr.jsxs(Oz,{"data-testid":"sn-table",children:[tr.jsx(BW,{pageInfo:c}),tr.jsx(mM,{paginationNeeded:a,handleChangePage:e=>{d(e)},pageInfo:c,totalRowCount:s,totalColumnCount:l,totalPages:u,keyboard:t,translator:r,theme:e,interactions:n,rect:o,layout:i})]})};var VW=O(WW);var UW={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 GW=(t,r)=>e((()=>(function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(UW).forEach((t=>{e.add(UW[t])}))}(r),((e,t)=>{let r;return({keys:n,politeness:o="polite"})=>{const i=n.map((e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)})).join(" "),a=e.querySelector(`.${PA.First}`),s=e.querySelector(`.${PA.Second}`);if(!a||!s)return void console.error("could not find aria-live elements, which means accessibility is not working properly");let l;r===PA.First?(l=s,r=PA.Second):(l=a,r=PA.First),l.innerHTML=l.innerHTML.endsWith(" ")?i:`${i} `,l.setAttribute("aria-live",o)}})(t,r))),[t,r.language()]),YW={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},KW=e=>{const{app:r,model:i,rootElement:a,layout:s,translator:l,reactRoot:u,isFontLoaded:c,viewService:d,env:p}=e,{direction:f,footerContainer:h}=t(),m=NP(s,d),g=GW(a,l),[b,v]=n(((e,t)=>LP(e,t)?{page:t.page||YW.page,rowsPerPage:t.rowsPerPage||YW.rowsPerPage,rowsPerPageOptions:YW.rowsPerPageOptions}:YW)(s,d)),[y,x]=NC((async()=>m?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>AP)return n({...r,rowsPerPage:IP(d,c),page:0}),null;const g=p>10,b=kP(t,o),v=OP(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=PP(o.isDim,u,t),d=!o.isDim&&u.qIsNull,p=d?qR(c):TR(u);n[l]={id:kR(),...u,align:qP(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)&&RP(u,o.isDim),representation:EP({cell:u,representationProperties:o.representation,attrExprInfoIndex:o.qAttrExprInfoIndex,env:i,conditionalColoring:o.conditionalColoring,miniChartOnMeasure:o.qMiniChart,getText:()=>d?c:u.qText,direction:s,enabledFeatures:{[qE.Image]:!0,[qE.Indicator]:!0,[qE.MiniChart]:!0}})}})),n}))??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(i,s,b,v,d,p,!0,f):null),[s,b,i,m,f]);o((()=>{m&&e.model&&e.changeSortOrder&&y&&c&&!x&&function(e,t){const{direction:r,...n}=e,o=BI(r);t.render(tr.jsx(li,{stylisPlugins:"rtl"===r?[wA]:void 0,children:tr.jsx(lc,{theme:o,children:tr.jsx(HI,{...e,children:tr.jsx(hB,{...n})})})}))}({...e,model:e.model,changeSortOrder:e.changeSortOrder,tableData:y,pageInfo:b,setPageInfo:v,direction:f,footerContainer:h,announce:g},u)}),[g,r,f,h,c,b,u,e,m,y,x])},XW=(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 JW=({model:e,layout:t,shouldRender:r,page:n})=>{const[o,i]=NC((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(nI,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}},ZW=t=>{const{layout:r,model:i,keyboard:a,interactions:s,reactRoot:l,isFontLoaded:u,viewService:c,direction:d}=t,p=!NP(r,c),[f,h]=n(!1);f&&h(!1);const m=e((()=>function(e,t,r,n,o){const i=OP(e,o,n),a=kP(e,r),s=e.qHyperCube.qSize.qcy,l=Math.min(nI,s),u=s>nI&&!!t.active;return{totalsPosition:a,columns:i,rows:[],totalRowCount:s,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(s/l),paginationNeeded:u}}(r,s,c,d,f)),[r,s,c,d,f]),{pageInfo:g,setPage:b}=((t,r)=>{const[o,i]=n(0),a=Math.min(nI,t.qHyperCube.qSize.qcy),s=e((()=>({page:o,rowsPerPage:a,rowsPerPageOptions:[]})),[a,o]);if(r){const e=Math.floor(t.qHyperCube.qSize.qcy/nI);e<o&&i(e)}return{pageInfo:s,setPage:i}})(r,p),{initialDataPages:v,isLoading:y}=JW({model:i,layout:r,page:g.page,shouldRender:p});o((()=>{p&&a.active&&a.blur?.(!1)}),[a,p]),o((()=>{p&&t.model&&t.changeSortOrder&&v&&!y&&u&&function(e,t){const{direction:r}=e,n=BI(r);t.render(tr.jsx(x.StrictMode,{children:tr.jsx(lc,{theme:n,children:tr.jsx(HI,{...e,children:tr.jsx(VW,{})})})}))}({...t,model:t.model,changeSortOrder:t.changeSortOrder,tableData:m,pageInfo:g,setPage:b,initialDataPages:v},l)}),[v,u,y,g,l,t,b,p,m])},QW={version:JSON.stringify("6.5.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[]};function eV(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 tV=(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]}},rV=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const nV=(e,t,r,n)=>{if(e<0)return 0;const o=r.qHyperCube.qSize.qcy,i=n.rowsPerPage||YW.rowsPerPage,a=n.viewState?.isMultiPage?0:3;return Math.min(o,i,e-t+1+a)},oV=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=kP(e,t);if(NP(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=eV(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:nV(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=tV(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=(rV(h,m,g)?d:d+1)+c;let v=p+c;const y=tV(p,o),x=y?.getBoundingClientRect();return y&&x&&(rV(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:nV(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},iV=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),aV=e=>e.getStyle("object","straightTableV2","backgroundColor");function sV(r){return{qae:{properties:{initial:QW},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:e=>PE({...e}),exportProperties:xE,exploration:AE},ext:SR(r),component(){const n=c(),i=(t=>{const r=e((()=>FC(t)),[t]);return o((()=>()=>{r.unmount()}),[r]),r})(n),y=d(),x=p(),S=f(),w=(e=>{const t=a();return{...t,select:!!t.active&&!!t.select&&!e,active:!!t.active&&!e,scroll:!!t.active}})(!!y.snapshotData),C=h(),E=m(),R=g(),P=t(),{freeResize:A}=P,I=b(),k=e((()=>y.snapshotData?.content&&!A?{...I,...y.snapshotData.content.size}:I),[I,A,y.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])})(y),D=v(),T=LC(y,n,iV,aV),q=P.direction,O=XW(y.qHyperCube,S),L=wR(y.qHyperCube,S),N=((e,t,r)=>{const[,n,o]=NC((async()=>{const t=ve(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,$C].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})(T,y,r),j=Dt(),_={app:x,layout:y,model:S,rect:k,theme:T,keyboard:R,translator:C,interactions:w,selectionsAPI:E,changeSortOrder:O,rootElement:n,embed:D,reactRoot:i,applyColumnWidths:L,isFontLoaded:N,downloadService:j,viewService:M,direction:q,env:r};s?.(((e,t)=>{const r=t.target,n=r?.closest(`.${JC}`);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()=>{sE(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}=oV(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:()=>oV(e,t,n)})),[e,t,n])})({layout:y,viewService:M,model:S,rootElement:n,contentRect:I}),ZW(_),KW(_)}}}export{sV as default};
|