@nebula.js/sn-table 3.10.0 → 3.10.1

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,10 +1,10 @@
1
1
  /*
2
- * @nebula.js/sn-table v3.10.0
2
+ * @nebula.js/sn-table v3.10.1
3
3
  * Copyright (c) 2024 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- import{useState as e,useEffect as t,useTheme as r,useMemo as n,onContextMenu as o,useOptions as i,usePromise as a,onTakeSnapshot as l,useImperativeHandle as s,useElement as u,useStaleLayout as c,useApp as d,useModel as p,useInteractionState as f,useTranslator as m,useSelections as h,useKeyboard as g,useRect as b,useEmbed as v}from"@nebula.js/stardust";import*as y from"react";import x,{useState as S,useMemo as E,useEffect as C,useContext as w,createElement as R,Children as A,isValidElement as I,cloneElement as D,useReducer as P,createContext as L,useRef as M,useCallback as O,forwardRef as k,memo as _,useLayoutEffect as T,PureComponent as q,useImperativeHandle as N}from"react";import*as F from"react-dom";import z from"react-dom";function j(){return j=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},j.apply(null,arguments)}function $(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function B(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 H={exports:{}};function V(){}function W(){}W.resetWarningCache=V;H.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:W,resetWarningCache:V};return r.PropTypes=r,r}();var G=$(H.exports);function U(e){if(e.type)return e;if("#"===e.charAt(0))return U(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map((function(e){return parseFloat(e)}))}}function Y(e,t){return e=U(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}(e)}function K(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function X(e,t){return X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},X(e,t)}function J(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,X(e,t)}const Z={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"},Q={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...Z,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},ee=12,te=14,re=16,ne=24,oe=3,ie=300,ae=400,le=600,se=700,ue={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Y(Q.GREYSCALE_0,.05),Y(Q.GREEN_PALE,.5),Y(Q.BLUE_PALE,.5),Y(Q.GREEN_PALE,.5),Y(Q.BLUE_PALE,.5),Y(Q.GREEN_PALE,.5),Y(Q.BLUE_PALE,.5);var ce;function de(){return de=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},de.apply(this,arguments)}Y(Q.GREEN_PALE,.5),Y(Q.BLUE_PALE,.5),Y(Q.GREEN_PALE,.5),Y(Q.BLUE_PALE,.5);var pe,fe=function(e){return y.createElement("svg",de({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),ce||(ce=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function me(){return me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},me.apply(this,arguments)}var he=function(e){return y.createElement("svg",me({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),pe||(pe=y.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function ge({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return x.createElement("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r},t)}var be=(e={})=>x.createElement(ge,{...e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},x.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),x.createElement("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"}))),ve=(e={})=>x.createElement(ge,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),x.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),ye=(e={})=>x.createElement(ge,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},x.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),xe=(e={})=>x.createElement(ge,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),x.createElement("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"}))),Se=({className:e})=>x.createElement(ge,{fontSize:"small",className:e},x.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},x.createElement("g",{transform:"translate(4.324187, 1.300372)"},x.createElement("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"}),x.createElement("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"}))))));var Ee={black:"#000",white:"#fff"};var Ce={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"};var we={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var Re={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"};var Ae={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var Ie={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"};var De={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"};var Pe={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 Le(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 Me="$$material";function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Oe.apply(this,arguments)}function ke(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function _e(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 Te=Object.freeze({__proto__:null,default:_e}),qe=function(){return qe=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},qe.apply(this,arguments)};function Ne(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 Fe=$((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 l=Object.prototype.hasOwnProperty.bind(t),s=0;s<i.length;s++){var u=i[s];if(!l(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})),ze="-ms-",je="-moz-",$e="-webkit-",Be="comm",He="rule",Ve="decl",We="@import",Ge="@keyframes",Ue="@layer",Ye=Math.abs,Ke=String.fromCharCode,Xe=Object.assign;function Je(e){return e.trim()}function Ze(e,t){return(e=t.exec(e))?e[0]:e}function Qe(e,t,r){return e.replace(t,r)}function et(e,t,r){return e.indexOf(t,r)}function tt(e,t){return 0|e.charCodeAt(t)}function rt(e,t,r){return e.slice(t,r)}function nt(e){return e.length}function ot(e){return e.length}function it(e,t){return t.push(e),e}function at(e,t){return e.filter((function(e){return!Ze(e,t)}))}var lt=1,st=1,ut=0,ct=0,dt=0,pt="";function ft(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:lt,column:st,length:a,return:"",siblings:l}}function mt(e,t){return Xe(ft("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ht(e){for(;e.root;)e=mt(e.root,{children:[e]});it(e,e.siblings)}function gt(){return dt=ct<ut?tt(pt,ct++):0,st++,10===dt&&(st=1,lt++),dt}function bt(){return tt(pt,ct)}function vt(){return ct}function yt(e,t){return rt(pt,e,t)}function xt(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 St(e){return Je(yt(ct-1,wt(91===e?e+2:40===e?e+1:e)))}function Et(e){for(;(dt=bt())&&dt<33;)gt();return xt(e)>2||xt(dt)>3?"":" "}function Ct(e,t){for(;--t&&gt()&&!(dt<48||dt>102||dt>57&&dt<65||dt>70&&dt<97););return yt(e,vt()+(t<6&&32==bt()&&32==gt()))}function wt(e){for(;gt();)switch(dt){case e:return ct;case 34:case 39:34!==e&&39!==e&&wt(dt);break;case 40:41===e&&wt(e);break;case 92:gt()}return ct}function Rt(e,t){for(;gt()&&e+dt!==57&&(e+dt!==84||47!==bt()););return"/*"+yt(t,ct-1)+"*"+Ke(47===e?e:gt())}function At(e){for(;!xt(bt());)gt();return yt(e,ct)}function It(e){return function(e){return pt="",e}(Dt("",null,null,null,[""],e=function(e){return lt=st=1,ut=nt(pt=e),ct=0,[]}(e),0,[0],e))}function Dt(e,t,r,n,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,E=n,C=y;g;)switch(m=v,v=gt()){case 40:if(108!=m&&58==tt(C,d-1)){-1!=et(C+=Qe(St(v),"&","&\f"),"&\f",Ye(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=St(v);break;case 9:case 10:case 13:case 32:C+=Et(m);break;case 92:C+=Ct(vt()-1,7);continue;case 47:switch(bt()){case 42:case 47:it(Lt(Rt(gt(),vt()),t,r,s),s);break;default:C+="/"}break;case 123*h:l[u++]=nt(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=Qe(C,/\f/g,"")),f>0&&nt(C)-d&&it(f>32?Mt(C+";",n,r,d-1,s):Mt(Qe(C," ","")+";",n,r,d-2,s),s);break;case 59:C+=";";default:if(it(E=Pt(C,t,r,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)Dt(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===tt(C,3)?100:p){case 100:case 108:case 109:case 115:Dt(e,E,E,n&&it(Pt(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,n?x:S);break;default:Dt(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+nt(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==(dt=ct>0?tt(pt,--ct):0,st--,10===dt&&(st=1,lt--),dt))continue;switch(C+=Ke(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(nt(C)-1)*b,b=1;break;case 64:45===bt()&&(C+=St(gt())),p=bt(),c=d=nt(y=C+=At(vt())),v++;break;case 45:45===m&&2==nt(C)&&(h=0)}}return i}function Pt(e,t,r,n,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=ot(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=rt(e,p+1,p=Ye(g=a[h])),x=e;v<m;++v)(x=Je(g>0?f[v]+" "+y:Qe(y,/&\f/g,f[v])))&&(s[b++]=x);return ft(e,t,r,0===o?He:l,s,u,c,d)}function Lt(e,t,r,n){return ft(e,t,r,Be,Ke(dt),rt(e,2,-2),0,n)}function Mt(e,t,r,n,o){return ft(e,t,r,Ve,rt(e,0,n),rt(e,n+1,-1),n,o)}function Ot(e,t,r){switch(function(e,t){return 45^tt(e,0)?(((t<<2^tt(e,0))<<2^tt(e,1))<<2^tt(e,2))<<2^tt(e,3):0}(e,t)){case 5103:return $e+"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 $e+e+e;case 4789:return je+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $e+e+je+e+ze+e+e;case 5936:switch(tt(e,t+11)){case 114:return $e+e+ze+Qe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $e+e+ze+Qe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $e+e+ze+Qe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return $e+e+ze+e+e;case 6165:return $e+e+ze+"flex-"+e+e;case 5187:return $e+e+Qe(e,/(\w+).+(:[^]+)/,$e+"box-$1$2"+ze+"flex-$1$2")+e;case 5443:return $e+e+ze+"flex-item-"+Qe(e,/flex-|-self/g,"")+(Ze(e,/flex-|baseline/)?"":ze+"grid-row-"+Qe(e,/flex-|-self/g,""))+e;case 4675:return $e+e+ze+"flex-line-pack"+Qe(e,/align-content|flex-|-self/g,"")+e;case 5548:return $e+e+ze+Qe(e,"shrink","negative")+e;case 5292:return $e+e+ze+Qe(e,"basis","preferred-size")+e;case 6060:return $e+"box-"+Qe(e,"-grow","")+$e+e+ze+Qe(e,"grow","positive")+e;case 4554:return $e+Qe(e,/([^-])(transform)/g,"$1"+$e+"$2")+e;case 6187:return Qe(Qe(Qe(e,/(zoom-|grab)/,$e+"$1"),/(image-set)/,$e+"$1"),e,"")+e;case 5495:case 3959:return Qe(e,/(image-set\([^]*)/,$e+"$1$`$1");case 4968:return Qe(Qe(e,/(.+:)(flex-)?(.*)/,$e+"box-pack:$3"+ze+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$e+e+e;case 4200:if(!Ze(e,/flex-|baseline/))return ze+"grid-column-align"+rt(e,t)+e;break;case 2592:case 3360:return ze+Qe(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,Ze(e.props,/grid-\w+-end/)}))?~et(e+(r=r[t].value),"span",0)?e:ze+Qe(e,"-start","")+e+ze+"grid-row-span:"+(~et(r,"span",0)?Ze(r,/\d+/):+Ze(r,/\d+/)-+Ze(e,/\d+/))+";":ze+Qe(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return Ze(e.props,/grid-\w+-start/)}))?e:ze+Qe(Qe(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Qe(e,/(.+)-inline(.+)/,$e+"$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(nt(e)-1-t>6)switch(tt(e,t+1)){case 109:if(45!==tt(e,t+4))break;case 102:return Qe(e,/(.+:)(.+)-([^]+)/,"$1"+$e+"$2-$3$1"+je+(108==tt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~et(e,"stretch",0)?Ot(Qe(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Qe(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,l){return ze+r+":"+n+l+(o?ze+r+"-span:"+(i?a:+a-+n)+l:"")+e}));case 4949:if(121===tt(e,t+6))return Qe(e,":",":"+$e)+e;break;case 6444:switch(tt(e,45===tt(e,14)?18:11)){case 120:return Qe(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+$e+(45===tt(e,14)?"inline-":"")+"box$3$1"+$e+"$2$3$1"+ze+"$2box$3")+e;case 100:return Qe(e,":",":"+ze)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Qe(e,"scroll-","scroll-snap-")+e}return e}function kt(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function _t(e,t,r,n){switch(e.type){case Ue:if(e.children.length)break;case We:case Ve:return e.return=e.return||e.value;case Be:return"";case Ge:return e.return=e.value+"{"+kt(e.children,n)+"}";case He:if(!nt(e.value=e.props.join(",")))return""}return nt(r=kt(e.children,n))?e.return=e.value+"{"+r+"}":""}function Tt(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Ve:return void(e.return=Ot(e.value,e.length,r));case Ge:return kt([mt(e,{value:Qe(e.value,"@","@"+$e)})],n);case He:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(Ze(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ht(mt(e,{props:[Qe(t,/:(read-\w+)/,":"+je+"$1")]})),ht(mt(e,{props:[t]})),Xe(e,{props:at(r,n)});break;case"::placeholder":ht(mt(e,{props:[Qe(t,/:(plac\w+)/,":"+$e+"input-$1")]})),ht(mt(e,{props:[Qe(t,/:(plac\w+)/,":"+je+"$1")]})),ht(mt(e,{props:[Qe(t,/:(plac\w+)/,ze+"input-$1")]})),ht(mt(e,{props:[t]})),Xe(e,{props:at(r,n)})}return""}))}}var qt={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},Nt="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ft="active",zt="data-styled-version",jt="6.1.13",$t="/*!sc*/\n",Bt="undefined"!=typeof window&&"HTMLElement"in window,Ht=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)),Vt={},Wt=Object.freeze([]),Gt=Object.freeze({});function Ut(e,t,r){return void 0===r&&(r=Gt),e.theme!==r.theme&&e.theme||t||r.theme}var Yt=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"]),Kt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Xt=/(^-|-$)/g;function Jt(e){return e.replace(Kt,"-").replace(Xt,"")}var Zt=/(a)(d)/gi,Qt=52,er=function(e){return String.fromCharCode(e+(e>25?39:97))};function tr(e){var t,r="";for(t=Math.abs(e);t>Qt;t=t/Qt|0)r=er(t%Qt)+r;return(er(t%Qt)+r).replace(Zt,"$1-$2")}var rr,nr=5381,or=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},ir=function(e){return or(nr,e)};function ar(e){return tr(ir(e)>>>0)}function lr(e){return"string"==typeof e&&!0}var sr="function"==typeof Symbol&&Symbol.for,ur=sr?Symbol.for("react.memo"):60115,cr=sr?Symbol.for("react.forward_ref"):60112,dr={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},pr={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},fr={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},mr=((rr={})[cr]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},rr[ur]=fr,rr);function hr(e){return("type"in(t=e)&&t.type.$$typeof)===ur?fr:"$$typeof"in e?mr[e.$$typeof]:dr;var t}var gr=Object.defineProperty,br=Object.getOwnPropertyNames,vr=Object.getOwnPropertySymbols,yr=Object.getOwnPropertyDescriptor,xr=Object.getPrototypeOf,Sr=Object.prototype;function Er(e,t,r){if("string"!=typeof t){if(Sr){var n=xr(t);n&&n!==Sr&&Er(e,n,r)}var o=br(t);vr&&(o=o.concat(vr(t)));for(var i=hr(e),a=hr(t),l=0;l<o.length;++l){var s=o[l];if(!(s in pr||r&&r[s]||a&&s in a||i&&s in i)){var u=yr(t,s);try{gr(e,s,u)}catch(e){}}}}return e}function Cr(e){return"function"==typeof e}function wr(e){return"object"==typeof e&&"styledComponentId"in e}function Rr(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Ar(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=t?t+e[n]:e[n];return r}function Ir(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Dr(e,t,r){if(void 0===r&&(r=!1),!r&&!Ir(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Dr(e[n],t[n]);else if(Ir(t))for(var n in t)e[n]=Dr(e[n],t[n]);return e}function Pr(e,t){Object.defineProperty(e,"toString",{value:t})}function Lr(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 Mr=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 Lr(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),l=(i=0,t.length);i<l;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($t);return t},e}(),Or=new Map,kr=new Map,_r=1,Tr=function(e){if(Or.has(e))return Or.get(e);for(;kr.has(_r);)_r++;var t=_r++;return Or.set(e,t),kr.set(t,e),t},qr=function(e,t){_r=t+1,Or.set(e,t),kr.set(t,e)},Nr="style[".concat(Nt,"][").concat(zt,'="').concat(jt,'"]'),Fr=new RegExp("^".concat(Nt,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),zr=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)},jr=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split($t),o=[],i=0,a=n.length;i<a;i++){var l=n[i].trim();if(l){var s=l.match(Fr);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(qr(c,u),zr(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},$r=function(e){for(var t=document.querySelectorAll(Nr),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Nt)!==Ft&&(jr(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Br=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Nt,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Nt,Ft),n.setAttribute(zt,jt);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Hr=function(){function e(e){this.element=Br(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 Lr(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}(),Vr=function(){function e(e){this.element=Br(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}(),Wr=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}(),Gr=Bt,Ur={isServer:!Bt,useCSSOMInjection:!Ht},Yr=function(){function e(e,t,r){void 0===e&&(e=Gt),void 0===t&&(t={});var n=this;this.options=qe(qe({},Ur),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Bt&&Gr&&(Gr=!1,$r(this)),Pr(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return kr.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 l="".concat(Nt,".g").concat(r,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),n+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat($t)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return Tr(e)},e.prototype.rehydrate=function(){!this.server&&Bt&&$r(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(qe(qe({},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 Wr(r):t?new Hr(r):new Vr(r)}(this.options),new Mr(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(Tr(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(Tr(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Tr(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Kr=/&/g,Xr=/^\s*\/\/.*$/gm;function Jr(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=Jr(e.children,t)),e}))}function Zr(e){var t,r,n,o=void 0===e?Gt:e,i=o.options,a=void 0===i?Gt:i,l=o.plugins,s=void 0===l?Wt:l,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===He&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Kr,r).replace(n,u))})),a.prefix&&c.push(Tt),c.push(_t);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var s=e.replace(Xr,""),u=It(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=Jr(u,a.namespace));var d,p=[];return kt(u,function(e){var t=ot(e);return function(r,n,o,i){for(var a="",l=0;l<t;l++)a+=e[l](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=s.length?s.reduce((function(e,t){return t.name||Lr(15),or(e,t.name)}),nr).toString():"",d}var Qr=new Yr,en=Zr(),tn=x.createContext({shouldForwardProp:void 0,styleSheet:Qr,stylis:en});tn.Consumer;var rn=x.createContext(void 0);function nn(){return w(tn)}function on(e){var t=S(e.stylisPlugins),r=t[0],n=t[1],o=nn().styleSheet,i=E((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=E((function(){return Zr({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})}),[e.enableVendorPrefixes,e.namespace,r]);C((function(){Fe(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]);var l=E((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}}),[e.shouldForwardProp,i,a]);return x.createElement(tn.Provider,{value:l},x.createElement(rn.Provider,{value:a},e.children))}var an=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=en);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,Pr(this,(function(){throw Lr(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=en),this.name+e.hash},e}(),ln=function(e){return e>="A"&&e<="Z"};function sn(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;ln(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var un=function(e){return null==e||!1===e||""===e},cn=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!un(i)&&(Array.isArray(i)&&i.isCss||Cr(i)?n.push("".concat(sn(o),":"),i,";"):Ir(i)?n.push.apply(n,Ne(Ne(["".concat(o," {")],cn(i),!1),["}"],!1)):n.push("".concat(sn(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in qt||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function dn(e,t,r,n){return un(e)?[]:wr(e)?[".".concat(e.styledComponentId)]:Cr(e)?!Cr(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:dn(e(t),t,r,n):e instanceof an?r?(e.inject(r,n),[e.getName(n)]):[e]:Ir(e)?cn(e):Array.isArray(e)?Array.prototype.concat.apply(Wt,e.map((function(e){return dn(e,t,r,n)}))):[e.toString()];var o}function pn(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Cr(r)&&!wr(r))return!1}return!0}var fn=ir(jt),mn=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&pn(e),this.componentId=t,this.baseHash=or(fn,t),this.baseStyle=r,Yr.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=Rr(n,this.staticRulesId);else{var o=Ar(dn(this.rules,e,t,r)),i=tr(or(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=Rr(n,i),this.staticRulesId=i}else{for(var l=or(this.baseHash,r.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=Ar(dn(c,e,t,r));l=or(l,d+u),s+=d}}if(s){var p=tr(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(s,".".concat(p),void 0,this.componentId)),n=Rr(n,p)}}return n},e}(),hn=x.createContext(void 0);hn.Consumer;var gn={};new Set;function bn(e,t,r){var n=wr(e),o=e,i=!lr(e),a=t.attrs,l=void 0===a?Wt:a,s=t.componentId,u=void 0===s?function(e,t){var r="string"!=typeof e?"sc":Jt(e);gn[r]=(gn[r]||0)+1;var n="".concat(r,"-").concat(ar(jt+r+gn[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return lr(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Jt(t.displayName),"-").concat(t.componentId):t.componentId||u,f=n&&o.attrs?o.attrs.concat(l).filter(Boolean):l,m=t.shouldForwardProp;if(n&&o.shouldForwardProp){var h=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return h(e,t)&&g(e,t)}}else m=h}var b=new mn(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,l=e.styledComponentId,s=e.target,u=x.useContext(hn),c=nn(),d=e.shouldForwardProp||c.shouldForwardProp,p=Ut(t,u,i)||Gt,f=function(e,t,r){for(var n,o=qe(qe({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=Cr(n=e[i])?n(o):n;for(var l in a)o[l]="className"===l?Rr(o[l],a[l]):"style"===l?qe(qe({},o[l]),a[l]):a[l]}return t.className&&(o.className=Rr(o.className,t.className)),o}(n,t,p),m=f.as||s,h={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?h.as=f.forwardedAs:d&&!d(g,m)||(h[g]=f[g]));var b=function(e,t){var r=nn();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=Rr(a,l);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),h[lr(m)&&!Yt.has(m)?"class":"className"]=v,h.ref=r,R(m,h)}(y,e,t)}v.displayName=d;var y=x.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=m,y.foldedComponentIds=n?Rr(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++)Dr(e,o[n],!0);return e}({},o.defaultProps,e):e}}),Pr(y,(function(){return".".concat(y.styledComponentId)})),i&&Er(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function vn(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 yn=function(e){return Object.assign(e,{isCss:!0})};function xn(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Cr(e)||Ir(e))return yn(dn(vn(Wt,Ne([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?dn(n):yn(dn(vn(n,t)))}function Sn(e,t,r){if(void 0===r&&(r=Gt),!t)throw Lr(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,xn.apply(void 0,Ne([n],o,!1)))};return n.attrs=function(n){return Sn(e,t,qe(qe({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return Sn(e,t,qe(qe({},r),n))},n}var En=function(e){return Sn(bn,e)},Cn=En;Yt.forEach((function(e){Cn[e]=En(e)}));var wn=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=pn(e),Yr.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(Ar(dn(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&&Yr.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Rn(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Ar(xn.apply(void 0,Ne([e],t,!1))),o=ar(n);return new an(o,n)}function An(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}An.propTypes={children:G.node,injectFirst:G.bool};const In=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=xn.apply(void 0,Ne([e],t,!1)),o="sc-global-".concat(ar(JSON.stringify(n))),i=new wn(n,o),a=function(e){var t=nn(),r=x.useContext(hn),n=x.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,Vt,r,o);else{var l=qe(qe({},t),{theme:Ut(t,n,a.defaultProps)});i.renderStyles(e,l,r,o)}}(n,e,t.styleSheet,r,t.stylis),null};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}));var Dn=In;
7
+ import{useState as e,useEffect as t,useTheme as r,useMemo as n,onContextMenu as o,useOptions as i,usePromise as a,onTakeSnapshot as l,useImperativeHandle as s,useElement as u,useStaleLayout as c,useApp as d,useModel as p,useInteractionState as f,useTranslator as m,useSelections as h,useKeyboard as g,useRect as b,useEmbed as v}from"@nebula.js/stardust";import*as y from"react";import x,{useState as S,useMemo as E,useEffect as w,useContext as C,createElement as R,Children as A,isValidElement as I,cloneElement as D,useReducer as P,createContext as L,useRef as M,useCallback as k,forwardRef as O,memo as _,useLayoutEffect as T,PureComponent as q,useImperativeHandle as N}from"react";import*as F from"react-dom";import j from"react-dom";function z(){return z=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},z.apply(null,arguments)}function $(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function B(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 H={exports:{}};function V(){}function W(){}W.resetWarningCache=V;H.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:W,resetWarningCache:V};return r.PropTypes=r,r}();var G=$(H.exports);function U(e){if(e.type)return e;if("#"===e.charAt(0))return U(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map((function(e){return e+e}))),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(r))throw new Error(function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}(3,e));var n=e.substring(t+1,e.length-1).split(",");return{type:r,values:n=n.map((function(e){return parseFloat(e)}))}}function Y(e,t){return e=U(e),t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,function(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}(e)}function K(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function X(e,t){return X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},X(e,t)}function J(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,X(e,t)}const Z={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"},Q={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN:"#00873D",GREEN_PALE:"#0AAF54",GREEN_DARK:"#0D6932",BLUE:"#3F8AB3",BLUE_PALE:"#469DCD",BLUE_DARK:"#2F607B",RED:"#DC373F",RED_PALE:"#F05551",RED_DARK:"#97322F",ORANGE:"#EF960F",ORANGE_PALE:"#FFC629",ORANGE_DARK:"#A4681C",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",...Z,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#177FE6",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},ee=12,te=14,re=16,ne=24,oe=3,ie=300,ae=400,le=600,se=700,ue={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Y(Q.GREYSCALE_0,.05),Y(Q.GREEN_PALE,.5),Y(Q.BLUE_PALE,.5),Y(Q.GREEN_PALE,.5),Y(Q.BLUE_PALE,.5),Y(Q.GREEN_PALE,.5),Y(Q.BLUE_PALE,.5);var ce;function de(){return de=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},de.apply(this,arguments)}Y(Q.GREEN_PALE,.5),Y(Q.BLUE_PALE,.5),Y(Q.GREEN_PALE,.5),Y(Q.BLUE_PALE,.5);var pe,fe=function(e){return y.createElement("svg",de({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),ce||(ce=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function me(){return me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},me.apply(this,arguments)}var he=function(e){return y.createElement("svg",me({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),pe||(pe=y.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function ge({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return x.createElement("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r},t)}var be=(e={})=>x.createElement(ge,{...e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},x.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),x.createElement("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"}))),ve=(e={})=>x.createElement(ge,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),x.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),ye=(e={})=>x.createElement(ge,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},x.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),xe=(e={})=>x.createElement(ge,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),x.createElement("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"}))),Se=({className:e})=>x.createElement(ge,{fontSize:"small",className:e},x.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},x.createElement("g",{transform:"translate(4.324187, 1.300372)"},x.createElement("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"}),x.createElement("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"}))))));var Ee={black:"#000",white:"#fff"};var we={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"};var Ce={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var Re={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"};var Ae={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var Ie={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"};var De={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"};var Pe={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 Le(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 Me="$$material";function ke(){return ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ke.apply(this,arguments)}function Oe(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function _e(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 Te=Object.freeze({__proto__:null,default:_e}),qe=function(){return qe=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},qe.apply(this,arguments)};function Ne(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 Fe=$((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 l=Object.prototype.hasOwnProperty.bind(t),s=0;s<i.length;s++){var u=i[s];if(!l(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})),je="-ms-",ze="-moz-",$e="-webkit-",Be="comm",He="rule",Ve="decl",We="@import",Ge="@keyframes",Ue="@layer",Ye=Math.abs,Ke=String.fromCharCode,Xe=Object.assign;function Je(e){return e.trim()}function Ze(e,t){return(e=t.exec(e))?e[0]:e}function Qe(e,t,r){return e.replace(t,r)}function et(e,t,r){return e.indexOf(t,r)}function tt(e,t){return 0|e.charCodeAt(t)}function rt(e,t,r){return e.slice(t,r)}function nt(e){return e.length}function ot(e){return e.length}function it(e,t){return t.push(e),e}function at(e,t){return e.filter((function(e){return!Ze(e,t)}))}var lt=1,st=1,ut=0,ct=0,dt=0,pt="";function ft(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:lt,column:st,length:a,return:"",siblings:l}}function mt(e,t){return Xe(ft("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ht(e){for(;e.root;)e=mt(e.root,{children:[e]});it(e,e.siblings)}function gt(){return dt=ct<ut?tt(pt,ct++):0,st++,10===dt&&(st=1,lt++),dt}function bt(){return tt(pt,ct)}function vt(){return ct}function yt(e,t){return rt(pt,e,t)}function xt(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 St(e){return Je(yt(ct-1,Ct(91===e?e+2:40===e?e+1:e)))}function Et(e){for(;(dt=bt())&&dt<33;)gt();return xt(e)>2||xt(dt)>3?"":" "}function wt(e,t){for(;--t&&gt()&&!(dt<48||dt>102||dt>57&&dt<65||dt>70&&dt<97););return yt(e,vt()+(t<6&&32==bt()&&32==gt()))}function Ct(e){for(;gt();)switch(dt){case e:return ct;case 34:case 39:34!==e&&39!==e&&Ct(dt);break;case 40:41===e&&Ct(e);break;case 92:gt()}return ct}function Rt(e,t){for(;gt()&&e+dt!==57&&(e+dt!==84||47!==bt()););return"/*"+yt(t,ct-1)+"*"+Ke(47===e?e:gt())}function At(e){for(;!xt(bt());)gt();return yt(e,ct)}function It(e){return function(e){return pt="",e}(Dt("",null,null,null,[""],e=function(e){return lt=st=1,ut=nt(pt=e),ct=0,[]}(e),0,[0],e))}function Dt(e,t,r,n,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,E=n,w=y;g;)switch(m=v,v=gt()){case 40:if(108!=m&&58==tt(w,d-1)){-1!=et(w+=Qe(St(v),"&","&\f"),"&\f",Ye(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:w+=St(v);break;case 9:case 10:case 13:case 32:w+=Et(m);break;case 92:w+=wt(vt()-1,7);continue;case 47:switch(bt()){case 42:case 47:it(Lt(Rt(gt(),vt()),t,r,s),s);break;default:w+="/"}break;case 123*h:l[u++]=nt(w)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(w=Qe(w,/\f/g,"")),f>0&&nt(w)-d&&it(f>32?Mt(w+";",n,r,d-1,s):Mt(Qe(w," ","")+";",n,r,d-2,s),s);break;case 59:w+=";";default:if(it(E=Pt(w,t,r,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)Dt(w,t,E,E,x,i,d,l,S);else switch(99===p&&110===tt(w,3)?100:p){case 100:case 108:case 109:case 115:Dt(e,E,E,n&&it(Pt(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,n?x:S);break;default:Dt(w,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=b=1,y=w="",d=a;break;case 58:d=1+nt(w),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==(dt=ct>0?tt(pt,--ct):0,st--,10===dt&&(st=1,lt--),dt))continue;switch(w+=Ke(v),v*h){case 38:b=c>0?1:(w+="\f",-1);break;case 44:l[u++]=(nt(w)-1)*b,b=1;break;case 64:45===bt()&&(w+=St(gt())),p=bt(),c=d=nt(y=w+=At(vt())),v++;break;case 45:45===m&&2==nt(w)&&(h=0)}}return i}function Pt(e,t,r,n,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=ot(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=rt(e,p+1,p=Ye(g=a[h])),x=e;v<m;++v)(x=Je(g>0?f[v]+" "+y:Qe(y,/&\f/g,f[v])))&&(s[b++]=x);return ft(e,t,r,0===o?He:l,s,u,c,d)}function Lt(e,t,r,n){return ft(e,t,r,Be,Ke(dt),rt(e,2,-2),0,n)}function Mt(e,t,r,n,o){return ft(e,t,r,Ve,rt(e,0,n),rt(e,n+1,-1),n,o)}function kt(e,t,r){switch(function(e,t){return 45^tt(e,0)?(((t<<2^tt(e,0))<<2^tt(e,1))<<2^tt(e,2))<<2^tt(e,3):0}(e,t)){case 5103:return $e+"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 $e+e+e;case 4789:return ze+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $e+e+ze+e+je+e+e;case 5936:switch(tt(e,t+11)){case 114:return $e+e+je+Qe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $e+e+je+Qe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $e+e+je+Qe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return $e+e+je+e+e;case 6165:return $e+e+je+"flex-"+e+e;case 5187:return $e+e+Qe(e,/(\w+).+(:[^]+)/,$e+"box-$1$2"+je+"flex-$1$2")+e;case 5443:return $e+e+je+"flex-item-"+Qe(e,/flex-|-self/g,"")+(Ze(e,/flex-|baseline/)?"":je+"grid-row-"+Qe(e,/flex-|-self/g,""))+e;case 4675:return $e+e+je+"flex-line-pack"+Qe(e,/align-content|flex-|-self/g,"")+e;case 5548:return $e+e+je+Qe(e,"shrink","negative")+e;case 5292:return $e+e+je+Qe(e,"basis","preferred-size")+e;case 6060:return $e+"box-"+Qe(e,"-grow","")+$e+e+je+Qe(e,"grow","positive")+e;case 4554:return $e+Qe(e,/([^-])(transform)/g,"$1"+$e+"$2")+e;case 6187:return Qe(Qe(Qe(e,/(zoom-|grab)/,$e+"$1"),/(image-set)/,$e+"$1"),e,"")+e;case 5495:case 3959:return Qe(e,/(image-set\([^]*)/,$e+"$1$`$1");case 4968:return Qe(Qe(e,/(.+:)(flex-)?(.*)/,$e+"box-pack:$3"+je+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$e+e+e;case 4200:if(!Ze(e,/flex-|baseline/))return je+"grid-column-align"+rt(e,t)+e;break;case 2592:case 3360:return je+Qe(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,Ze(e.props,/grid-\w+-end/)}))?~et(e+(r=r[t].value),"span",0)?e:je+Qe(e,"-start","")+e+je+"grid-row-span:"+(~et(r,"span",0)?Ze(r,/\d+/):+Ze(r,/\d+/)-+Ze(e,/\d+/))+";":je+Qe(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return Ze(e.props,/grid-\w+-start/)}))?e:je+Qe(Qe(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Qe(e,/(.+)-inline(.+)/,$e+"$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(nt(e)-1-t>6)switch(tt(e,t+1)){case 109:if(45!==tt(e,t+4))break;case 102:return Qe(e,/(.+:)(.+)-([^]+)/,"$1"+$e+"$2-$3$1"+ze+(108==tt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~et(e,"stretch",0)?kt(Qe(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Qe(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,l){return je+r+":"+n+l+(o?je+r+"-span:"+(i?a:+a-+n)+l:"")+e}));case 4949:if(121===tt(e,t+6))return Qe(e,":",":"+$e)+e;break;case 6444:switch(tt(e,45===tt(e,14)?18:11)){case 120:return Qe(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+$e+(45===tt(e,14)?"inline-":"")+"box$3$1"+$e+"$2$3$1"+je+"$2box$3")+e;case 100:return Qe(e,":",":"+je)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Qe(e,"scroll-","scroll-snap-")+e}return e}function Ot(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function _t(e,t,r,n){switch(e.type){case Ue:if(e.children.length)break;case We:case Ve:return e.return=e.return||e.value;case Be:return"";case Ge:return e.return=e.value+"{"+Ot(e.children,n)+"}";case He:if(!nt(e.value=e.props.join(",")))return""}return nt(r=Ot(e.children,n))?e.return=e.value+"{"+r+"}":""}function Tt(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Ve:return void(e.return=kt(e.value,e.length,r));case Ge:return Ot([mt(e,{value:Qe(e.value,"@","@"+$e)})],n);case He:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(Ze(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ht(mt(e,{props:[Qe(t,/:(read-\w+)/,":"+ze+"$1")]})),ht(mt(e,{props:[t]})),Xe(e,{props:at(r,n)});break;case"::placeholder":ht(mt(e,{props:[Qe(t,/:(plac\w+)/,":"+$e+"input-$1")]})),ht(mt(e,{props:[Qe(t,/:(plac\w+)/,":"+ze+"$1")]})),ht(mt(e,{props:[Qe(t,/:(plac\w+)/,je+"input-$1")]})),ht(mt(e,{props:[t]})),Xe(e,{props:at(r,n)})}return""}))}}var qt={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},Nt="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ft="active",jt="data-styled-version",zt="6.1.13",$t="/*!sc*/\n",Bt="undefined"!=typeof window&&"HTMLElement"in window,Ht=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)),Vt={},Wt=Object.freeze([]),Gt=Object.freeze({});function Ut(e,t,r){return void 0===r&&(r=Gt),e.theme!==r.theme&&e.theme||t||r.theme}var Yt=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"]),Kt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Xt=/(^-|-$)/g;function Jt(e){return e.replace(Kt,"-").replace(Xt,"")}var Zt=/(a)(d)/gi,Qt=52,er=function(e){return String.fromCharCode(e+(e>25?39:97))};function tr(e){var t,r="";for(t=Math.abs(e);t>Qt;t=t/Qt|0)r=er(t%Qt)+r;return(er(t%Qt)+r).replace(Zt,"$1-$2")}var rr,nr=5381,or=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},ir=function(e){return or(nr,e)};function ar(e){return tr(ir(e)>>>0)}function lr(e){return"string"==typeof e&&!0}var sr="function"==typeof Symbol&&Symbol.for,ur=sr?Symbol.for("react.memo"):60115,cr=sr?Symbol.for("react.forward_ref"):60112,dr={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},pr={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},fr={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},mr=((rr={})[cr]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},rr[ur]=fr,rr);function hr(e){return("type"in(t=e)&&t.type.$$typeof)===ur?fr:"$$typeof"in e?mr[e.$$typeof]:dr;var t}var gr=Object.defineProperty,br=Object.getOwnPropertyNames,vr=Object.getOwnPropertySymbols,yr=Object.getOwnPropertyDescriptor,xr=Object.getPrototypeOf,Sr=Object.prototype;function Er(e,t,r){if("string"!=typeof t){if(Sr){var n=xr(t);n&&n!==Sr&&Er(e,n,r)}var o=br(t);vr&&(o=o.concat(vr(t)));for(var i=hr(e),a=hr(t),l=0;l<o.length;++l){var s=o[l];if(!(s in pr||r&&r[s]||a&&s in a||i&&s in i)){var u=yr(t,s);try{gr(e,s,u)}catch(e){}}}}return e}function wr(e){return"function"==typeof e}function Cr(e){return"object"==typeof e&&"styledComponentId"in e}function Rr(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Ar(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=t?t+e[n]:e[n];return r}function Ir(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Dr(e,t,r){if(void 0===r&&(r=!1),!r&&!Ir(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Dr(e[n],t[n]);else if(Ir(t))for(var n in t)e[n]=Dr(e[n],t[n]);return e}function Pr(e,t){Object.defineProperty(e,"toString",{value:t})}function Lr(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 Mr=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 Lr(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),l=(i=0,t.length);i<l;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($t);return t},e}(),kr=new Map,Or=new Map,_r=1,Tr=function(e){if(kr.has(e))return kr.get(e);for(;Or.has(_r);)_r++;var t=_r++;return kr.set(e,t),Or.set(t,e),t},qr=function(e,t){_r=t+1,kr.set(e,t),Or.set(t,e)},Nr="style[".concat(Nt,"][").concat(jt,'="').concat(zt,'"]'),Fr=new RegExp("^".concat(Nt,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),jr=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)},zr=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split($t),o=[],i=0,a=n.length;i<a;i++){var l=n[i].trim();if(l){var s=l.match(Fr);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(qr(c,u),jr(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},$r=function(e){for(var t=document.querySelectorAll(Nr),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(Nt)!==Ft&&(zr(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var Br=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(Nt,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(Nt,Ft),n.setAttribute(jt,zt);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},Hr=function(){function e(e){this.element=Br(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 Lr(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}(),Vr=function(){function e(e){this.element=Br(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}(),Wr=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}(),Gr=Bt,Ur={isServer:!Bt,useCSSOMInjection:!Ht},Yr=function(){function e(e,t,r){void 0===e&&(e=Gt),void 0===t&&(t={});var n=this;this.options=qe(qe({},Ur),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Bt&&Gr&&(Gr=!1,$r(this)),Pr(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return Or.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 l="".concat(Nt,".g").concat(r,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),n+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat($t)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return Tr(e)},e.prototype.rehydrate=function(){!this.server&&Bt&&$r(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(qe(qe({},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 Wr(r):t?new Hr(r):new Vr(r)}(this.options),new Mr(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(Tr(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(Tr(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Tr(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Kr=/&/g,Xr=/^\s*\/\/.*$/gm;function Jr(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=Jr(e.children,t)),e}))}function Zr(e){var t,r,n,o=void 0===e?Gt:e,i=o.options,a=void 0===i?Gt:i,l=o.plugins,s=void 0===l?Wt:l,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===He&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Kr,r).replace(n,u))})),a.prefix&&c.push(Tt),c.push(_t);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var s=e.replace(Xr,""),u=It(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=Jr(u,a.namespace));var d,p=[];return Ot(u,function(e){var t=ot(e);return function(r,n,o,i){for(var a="",l=0;l<t;l++)a+=e[l](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=s.length?s.reduce((function(e,t){return t.name||Lr(15),or(e,t.name)}),nr).toString():"",d}var Qr=new Yr,en=Zr(),tn=x.createContext({shouldForwardProp:void 0,styleSheet:Qr,stylis:en});tn.Consumer;var rn=x.createContext(void 0);function nn(){return C(tn)}function on(e){var t=S(e.stylisPlugins),r=t[0],n=t[1],o=nn().styleSheet,i=E((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=E((function(){return Zr({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})}),[e.enableVendorPrefixes,e.namespace,r]);w((function(){Fe(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]);var l=E((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}}),[e.shouldForwardProp,i,a]);return x.createElement(tn.Provider,{value:l},x.createElement(rn.Provider,{value:a},e.children))}var an=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=en);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,Pr(this,(function(){throw Lr(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=en),this.name+e.hash},e}(),ln=function(e){return e>="A"&&e<="Z"};function sn(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;ln(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var un=function(e){return null==e||!1===e||""===e},cn=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!un(i)&&(Array.isArray(i)&&i.isCss||wr(i)?n.push("".concat(sn(o),":"),i,";"):Ir(i)?n.push.apply(n,Ne(Ne(["".concat(o," {")],cn(i),!1),["}"],!1)):n.push("".concat(sn(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in qt||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function dn(e,t,r,n){return un(e)?[]:Cr(e)?[".".concat(e.styledComponentId)]:wr(e)?!wr(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:dn(e(t),t,r,n):e instanceof an?r?(e.inject(r,n),[e.getName(n)]):[e]:Ir(e)?cn(e):Array.isArray(e)?Array.prototype.concat.apply(Wt,e.map((function(e){return dn(e,t,r,n)}))):[e.toString()];var o}function pn(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(wr(r)&&!Cr(r))return!1}return!0}var fn=ir(zt),mn=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&pn(e),this.componentId=t,this.baseHash=or(fn,t),this.baseStyle=r,Yr.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=Rr(n,this.staticRulesId);else{var o=Ar(dn(this.rules,e,t,r)),i=tr(or(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=Rr(n,i),this.staticRulesId=i}else{for(var l=or(this.baseHash,r.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=Ar(dn(c,e,t,r));l=or(l,d+u),s+=d}}if(s){var p=tr(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(s,".".concat(p),void 0,this.componentId)),n=Rr(n,p)}}return n},e}(),hn=x.createContext(void 0);hn.Consumer;var gn={};new Set;function bn(e,t,r){var n=Cr(e),o=e,i=!lr(e),a=t.attrs,l=void 0===a?Wt:a,s=t.componentId,u=void 0===s?function(e,t){var r="string"!=typeof e?"sc":Jt(e);gn[r]=(gn[r]||0)+1;var n="".concat(r,"-").concat(ar(zt+r+gn[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return lr(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Jt(t.displayName),"-").concat(t.componentId):t.componentId||u,f=n&&o.attrs?o.attrs.concat(l).filter(Boolean):l,m=t.shouldForwardProp;if(n&&o.shouldForwardProp){var h=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return h(e,t)&&g(e,t)}}else m=h}var b=new mn(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,l=e.styledComponentId,s=e.target,u=x.useContext(hn),c=nn(),d=e.shouldForwardProp||c.shouldForwardProp,p=Ut(t,u,i)||Gt,f=function(e,t,r){for(var n,o=qe(qe({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=wr(n=e[i])?n(o):n;for(var l in a)o[l]="className"===l?Rr(o[l],a[l]):"style"===l?qe(qe({},o[l]),a[l]):a[l]}return t.className&&(o.className=Rr(o.className,t.className)),o}(n,t,p),m=f.as||s,h={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?h.as=f.forwardedAs:d&&!d(g,m)||(h[g]=f[g]));var b=function(e,t){var r=nn();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=Rr(a,l);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),h[lr(m)&&!Yt.has(m)?"class":"className"]=v,h.ref=r,R(m,h)}(y,e,t)}v.displayName=d;var y=x.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=m,y.foldedComponentIds=n?Rr(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++)Dr(e,o[n],!0);return e}({},o.defaultProps,e):e}}),Pr(y,(function(){return".".concat(y.styledComponentId)})),i&&Er(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function vn(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 yn=function(e){return Object.assign(e,{isCss:!0})};function xn(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(wr(e)||Ir(e))return yn(dn(vn(Wt,Ne([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?dn(n):yn(dn(vn(n,t)))}function Sn(e,t,r){if(void 0===r&&(r=Gt),!t)throw Lr(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,xn.apply(void 0,Ne([n],o,!1)))};return n.attrs=function(n){return Sn(e,t,qe(qe({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return Sn(e,t,qe(qe({},r),n))},n}var En=function(e){return Sn(bn,e)},wn=En;Yt.forEach((function(e){wn[e]=En(e)}));var Cn=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=pn(e),Yr.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(Ar(dn(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&&Yr.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Rn(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Ar(xn.apply(void 0,Ne([e],t,!1))),o=ar(n);return new an(o,n)}function An(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}An.propTypes={children:G.node,injectFirst:G.bool};const In=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=xn.apply(void 0,Ne([e],t,!1)),o="sc-global-".concat(ar(JSON.stringify(n))),i=new Cn(n,o),a=function(e){var t=nn(),r=x.useContext(hn),n=x.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,Vt,r,o);else{var l=qe(qe({},t),{theme:Ut(t,n,a.defaultProps)});i.renderStyles(e,l,r,o)}}(n,e,t.styleSheet,r,t.stylis),null};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}));var Dn=In;
8
8
  /**
9
9
  * @mui/styled-engine-sc v6.0.0-alpha.24
10
10
  *
@@ -12,7 +12,7 @@ import{useState as e,useEffect as t,useTheme as r,useMemo as n,onContextMenu as
12
12
  * This source code is licensed under the MIT license found in the
13
13
  * LICENSE file in the root directory of this source tree.
14
14
  */
15
- function Pn(e,t){let r;return r=t?Cn(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Cn(e),r}In.propTypes={defaultTheme:G.object,styles:G.oneOfType([G.array,G.string,G.object,G.func])};const Ln=(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))};var Mn=Object.freeze({__proto__:null,GlobalStyles:Dn,StyledEngineProvider:An,ThemeContext:hn,css:xn,default:Pn,internal_processStyles:Ln,keyframes:Rn});function On(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 kn(e){if(!On(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=kn(e[r])})),t}function _n(e,t,r={clone:!0}){const n=r.clone?j({},e):e;return On(e)&&On(t)&&Object.keys(t).forEach((o=>{On(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&On(e[o])?n[o]=_n(e[o],t[o],r):r.clone?n[o]=On(t[o])?kn(t[o]):t[o]:n[o]=t[o]})),n}var Tn,qn=Object.freeze({__proto__:null,default:_n,isPlainObject:On}),Nn={exports:{}},Fn={},zn=Symbol.for("react.element"),jn=Symbol.for("react.portal"),$n=Symbol.for("react.fragment"),Bn=Symbol.for("react.strict_mode"),Hn=Symbol.for("react.profiler"),Vn=Symbol.for("react.provider"),Wn=Symbol.for("react.context"),Gn=Symbol.for("react.server_context"),Un=Symbol.for("react.forward_ref"),Yn=Symbol.for("react.suspense"),Kn=Symbol.for("react.suspense_list"),Xn=Symbol.for("react.memo"),Jn=Symbol.for("react.lazy"),Zn=Symbol.for("react.offscreen");function Qn(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case zn:switch(e=e.type){case $n:case Hn:case Bn:case Yn:case Kn:return e;default:switch(e=e&&e.$$typeof){case Gn:case Wn:case Un:case Jn:case Xn:case Vn:return e;default:return t}}case jn:return t}}}Tn=Symbol.for("react.module.reference"),Fn.ContextConsumer=Wn,Fn.ContextProvider=Vn,Fn.Element=zn,Fn.ForwardRef=Un,Fn.Fragment=$n,Fn.Lazy=Jn,Fn.Memo=Xn,Fn.Portal=jn,Fn.Profiler=Hn,Fn.StrictMode=Bn,Fn.Suspense=Yn,Fn.SuspenseList=Kn,Fn.isAsyncMode=function(){return!1},Fn.isConcurrentMode=function(){return!1},Fn.isContextConsumer=function(e){return Qn(e)===Wn},Fn.isContextProvider=function(e){return Qn(e)===Vn},Fn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===zn},Fn.isForwardRef=function(e){return Qn(e)===Un},Fn.isFragment=function(e){return Qn(e)===$n},Fn.isLazy=function(e){return Qn(e)===Jn},Fn.isMemo=function(e){return Qn(e)===Xn},Fn.isPortal=function(e){return Qn(e)===jn},Fn.isProfiler=function(e){return Qn(e)===Hn},Fn.isStrictMode=function(e){return Qn(e)===Bn},Fn.isSuspense=function(e){return Qn(e)===Yn},Fn.isSuspenseList=function(e){return Qn(e)===Kn},Fn.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===$n||e===Hn||e===Bn||e===Yn||e===Kn||e===Zn||"object"==typeof e&&null!==e&&(e.$$typeof===Jn||e.$$typeof===Xn||e.$$typeof===Vn||e.$$typeof===Wn||e.$$typeof===Un||e.$$typeof===Tn||void 0!==e.getModuleId)},Fn.typeOf=Qn,Nn.exports=Fn;var eo=Nn.exports;const to=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ro(e){const t=`${e}`.match(to);return t&&t[1]||""}function no(e,t=""){return e.displayName||e.name||ro(e)||t}function oo(e,t,r){const n=no(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var io=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return no(e,"Component");if("object"==typeof e)switch(e.$$typeof){case eo.ForwardRef:return oo(e,e.render,"ForwardRef");case eo.Memo:return oo(e,e.type,"memo");default:return}}},getFunctionName:ro});function ao(e){if("string"!=typeof e)throw new Error(_e(7));return e.charAt(0).toUpperCase()+e.slice(1)}var lo=Object.freeze({__proto__:null,default:ao});function so(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function uo(e){return e&&e.ownerDocument||document}function co(e){return uo(e).defaultView||window}function po(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var fo="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function mo(e){const t=y.useRef(e);return fo((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function ho(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{po(e,t)}))}),e)}const go={};const bo=[];let vo=class e{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new e}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}};function yo(){const e=function(e,t){const r=y.useRef(go);return r.current===go&&(r.current=e(t)),r}(vo.create).current;var t;return t=e.disposeEffect,y.useEffect(t,bo),e}let xo=!0,So=!1;const Eo=new vo,Co={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 wo(e){e.metaKey||e.altKey||e.ctrlKey||(xo=!0)}function Ro(){xo=!1}function Ao(){"hidden"===this.visibilityState&&So&&(xo=!0)}function Io(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return xo||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Co[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Do(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",wo,!0),t.addEventListener("mousedown",Ro,!0),t.addEventListener("pointerdown",Ro,!0),t.addEventListener("touchstart",Ro,!0),t.addEventListener("visibilitychange",Ao,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Io(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(So=!0,Eo.start(100,(()=>{So=!1})),t.current=!1,!0)},ref:e}}function Po(e,t){const r=j({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=j({},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]=j({},i),Object.keys(o).forEach((e=>{r[n][e]=Po(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function Lo(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}const Mo=e=>e;var Oo=(()=>{let e=Mo;return{configure(t){e=t},generate:t=>e(t),reset(){e=Mo}}})();const ko={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 _o(e,t,r="Mui"){const n=ko[t];return n?`${r}-${n}`:`${Oo.generate(e)}-${t}`}function To(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=_o(e,t,r)})),n}function qo(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var No=Object.freeze({__proto__:null,default:qo});function Fo(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=Fo(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function zo(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Fo(e))&&(n&&(n+=" "),n+=t);return n}const jo=["values","unit","step"],$o=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)=>j({},e,{[t.key]:t.val})),{})};var Bo={borderRadius:4};function Ho(e,t){return t?_n(e,t,{clone:!1}):e}const Vo={xs:0,sm:600,md:900,lg:1200,xl:1536},Wo={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Vo[e]}px)`};function Go(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Wo;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Wo;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Vo).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Uo(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 Yo(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Uo(e,r)||n,t&&(o=t(o,n,e)),o}function Ko(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=Uo(e.theme,n)||{};return Go(e,i,(e=>{let n=Yo(a,o,e);return e===n&&"string"==typeof e&&(n=Yo(a,o,`${t}${"default"===e?"":ao(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Xo={m:"margin",p:"padding"},Jo={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Zo={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Qo=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Zo[e])return[e];e=Zo[e]}const[t,r]=e.split(""),n=Xo[t],o=Jo[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),ei=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ti=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function ri(e,t,r,n){var o;const i=null!=(o=Uo(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 ni(e){return ri(e,"spacing",8)}function oi(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 ii(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=oi(t,r),e)),{})}(Qo(r),n);return Go(e,e[r],o)}function ai(e,t){const r=ni(e.theme);return Object.keys(e).map((n=>ii(e,t,n,r))).reduce(Ho,{})}function li(e){return ai(e,ei)}function si(e){return ai(e,ti)}function ui(...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]?Ho(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function ci(e){return"number"!=typeof e?e:`${e}px solid`}function di(e,t){return Ko({prop:e,themeKey:"borders",transform:t})}li.propTypes={},li.filterProps=ei,si.propTypes={},si.filterProps=ti;const pi=di("border",ci),fi=di("borderTop",ci),mi=di("borderRight",ci),hi=di("borderBottom",ci),gi=di("borderLeft",ci),bi=di("borderColor"),vi=di("borderTopColor"),yi=di("borderRightColor"),xi=di("borderBottomColor"),Si=di("borderLeftColor"),Ei=di("outline",ci),Ci=di("outlineColor"),wi=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=ri(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:oi(t,e)});return Go(e,e.borderRadius,r)}return null};wi.propTypes={},wi.filterProps=["borderRadius"],ui(pi,fi,mi,hi,gi,bi,vi,yi,xi,Si,wi,Ei,Ci);const Ri=e=>{if(void 0!==e.gap&&null!==e.gap){const t=ri(e.theme,"spacing",8),r=e=>({gap:oi(t,e)});return Go(e,e.gap,r)}return null};Ri.propTypes={},Ri.filterProps=["gap"];const Ai=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=ri(e.theme,"spacing",8),r=e=>({columnGap:oi(t,e)});return Go(e,e.columnGap,r)}return null};Ai.propTypes={},Ai.filterProps=["columnGap"];const Ii=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=ri(e.theme,"spacing",8),r=e=>({rowGap:oi(t,e)});return Go(e,e.rowGap,r)}return null};Ii.propTypes={},Ii.filterProps=["rowGap"];function Di(e,t){return"grey"===t?t:e}ui(Ri,Ai,Ii,Ko({prop:"gridColumn"}),Ko({prop:"gridRow"}),Ko({prop:"gridAutoFlow"}),Ko({prop:"gridAutoColumns"}),Ko({prop:"gridAutoRows"}),Ko({prop:"gridTemplateColumns"}),Ko({prop:"gridTemplateRows"}),Ko({prop:"gridTemplateAreas"}),Ko({prop:"gridArea"}));function Pi(e){return e<=1&&0!==e?100*e+"%":e}ui(Ko({prop:"color",themeKey:"palette",transform:Di}),Ko({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Di}),Ko({prop:"backgroundColor",themeKey:"palette",transform:Di}));const Li=Ko({prop:"width",transform:Pi}),Mi=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])||Vo[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:Pi(t)}};return Go(e,e.maxWidth,t)}return null};Mi.filterProps=["maxWidth"];const Oi=Ko({prop:"minWidth",transform:Pi}),ki=Ko({prop:"height",transform:Pi}),_i=Ko({prop:"maxHeight",transform:Pi}),Ti=Ko({prop:"minHeight",transform:Pi});Ko({prop:"size",cssProperty:"width",transform:Pi}),Ko({prop:"size",cssProperty:"height",transform:Pi});ui(Li,Mi,Oi,ki,_i,Ti,Ko({prop:"boxSizing"}));var qi={border:{themeKey:"borders",transform:ci},borderTop:{themeKey:"borders",transform:ci},borderRight:{themeKey:"borders",transform:ci},borderBottom:{themeKey:"borders",transform:ci},borderLeft:{themeKey:"borders",transform:ci},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ci},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:wi},color:{themeKey:"palette",transform:Di},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Di},backgroundColor:{themeKey:"palette",transform:Di},p:{style:si},pt:{style:si},pr:{style:si},pb:{style:si},pl:{style:si},px:{style:si},py:{style:si},padding:{style:si},paddingTop:{style:si},paddingRight:{style:si},paddingBottom:{style:si},paddingLeft:{style:si},paddingX:{style:si},paddingY:{style:si},paddingInline:{style:si},paddingInlineStart:{style:si},paddingInlineEnd:{style:si},paddingBlock:{style:si},paddingBlockStart:{style:si},paddingBlockEnd:{style:si},m:{style:li},mt:{style:li},mr:{style:li},mb:{style:li},ml:{style:li},mx:{style:li},my:{style:li},margin:{style:li},marginTop:{style:li},marginRight:{style:li},marginBottom:{style:li},marginLeft:{style:li},marginX:{style:li},marginY:{style:li},marginInline:{style:li},marginInlineStart:{style:li},marginInlineEnd:{style:li},marginBlock:{style:li},marginBlockStart:{style:li},marginBlockEnd:{style:li},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:Ri},rowGap:{style:Ii},columnGap:{style:Ai},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Pi},maxWidth:{style:Mi},minWidth:{transform:Pi},height:{transform:Pi},maxHeight:{transform:Pi},minHeight:{transform:Pi},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Ni=function(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Uo(r,l)||{};if(u)return u(o);return Go(o,t,(t=>{let r=Yo(c,s,t);return t===r&&"string"==typeof t&&(r=Yo(c,s,`${e}${"default"===t?"":ao(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=null!=(n=i.unstable_sxConfig)?n:qi;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;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[r])s=Ho(s,e(r,o,i,a));else{const e=Go({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)?s=Ho(s,e):s[r]=t({sx:o,theme:i})}else s=Ho(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();Ni.filterProps=["sx"];var Fi=Ni;function zi(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:{}}const ji=["breakpoints","palette","spacing","shape"];function $i(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=K(e,ji),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=K(e,jo),i=$o(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(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 j({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}(r),s=function(e=8){if(e.mui)return e;const t=ni({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=_n({breakpoints:l,direction:"ltr",components:{},palette:j({mode:"light"},n),spacing:s,shape:j({},Bo,i)},a);return u.applyStyles=zi,u=t.reduce(((e,t)=>_n(e,t)),u),u.unstable_sxConfig=j({},qi,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Fi({sx:e,theme:this})},u}function Bi(e=null){const t=y.useContext(hn);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Hi=$i();function Vi(e=Hi){return Bi(e)}var Wi={exports:{}},Gi={},Ui=x,Yi=Symbol.for("react.element"),Ki=Symbol.for("react.fragment"),Xi=Object.prototype.hasOwnProperty,Ji=Ui.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Zi={key:!0,ref:!0,__self:!0,__source:!0};function Qi(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)Xi.call(t,n)&&!Zi.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:Yi,type:e,key:i,ref:a,props:o,_owner:Ji.current}}Gi.Fragment=Ki,Gi.jsx=Qi,Gi.jsxs=Qi,Wi.exports=Gi;var ea=Wi.exports;function ta({styles:e,themeId:t,defaultTheme:r={}}){const n=Vi(r),o="function"==typeof e?e(t&&n[t]||n):e;return ea.jsx(Dn,{styles:o})}const ra=["sx"],na=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:qi;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function oa(e){const{sx:t}=e,r=K(e,ra),{systemProps:n,otherProps:o}=na(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return On(r)?j({},n,r):n}:j({},n,t),j({},o,{sx:i})}const ia=["className","component"];const aa=["ownerState"],la=["variants"],sa=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ua(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const ca=$i(),da=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function pa({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function fa(e){return e?(t,r)=>r[e]:null}function ma(e,t){let{ownerState:r}=t,n=K(t,aa);const o="function"==typeof e?e(j({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>ma(e,j({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=K(o,la);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(j({ownerState:r},n)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(j({ownerState:r},n)):e.style))})),t}return o}function ha({props:e,name:t,defaultTheme:r,themeId:n}){let o=Vi(r);n&&(o=o[n]||o);const i=function(e){const{theme:t,name:r,props:n}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?Po(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return i}function ga(e,t=0,r=1){return qo(e,t,r)}function ba(e){if(e.type)return e;if("#"===e.charAt(0))return ba(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(_e(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(_e(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function va(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 ya(e){let t="hsl"===(e=ba(e)).type||"hsla"===e.type?ba(function(e){e=ba(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 l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),va({type:l,values:s})}(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 xa(e,t){return e=ba(e),t=ga(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,va(e)}function Sa(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 Ea(e){if(!Sa(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Ea(e[r])})),t}function Ca(e,t,r={clone:!0}){const n=r.clone?j({},e):e;return Sa(e)&&Sa(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Sa(t[o])&&o in e&&Sa(e[o])?n[o]=Ca(e[o],t[o],r):r.clone?n[o]=Sa(t[o])?Ea(t[o]):t[o]:n[o]=t[o])})),n}function wa(e){if("string"!=typeof e)throw new Error(Le(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ra(e){return e&&e.ownerDocument||document}function Aa(e){return Ra(e).defaultView||window}var Ia="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;let Da=0;const Pa=y["useId".toString()];function La(e){if(void 0!==Pa){const t=Pa();return null!=e?e:t}return function(e){const[t,r]=y.useState(e),n=e||t;return y.useEffect((()=>{null==t&&(Da+=1,r(`mui-${Da}`))}),[t]),n}(e)}function Ma({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 Oa(e){const t=y.useRef(e);return Ia((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function ka(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}class _a{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new _a}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let Ta=!0,qa=!1;const Na=new _a,Fa={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 za(e){e.metaKey||e.altKey||e.ctrlKey||(Ta=!0)}function ja(){Ta=!1}function $a(){"hidden"===this.visibilityState&&qa&&(Ta=!0)}function Ba(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Ta||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Fa[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Ha(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",za,!0),t.addEventListener("mousedown",ja,!0),t.addEventListener("pointerdown",ja,!0),t.addEventListener("touchstart",ja,!0),t.addEventListener("visibilitychange",$a,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Ba(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(qa=!0,Na.start(100,(()=>{qa=!1})),t.current=!1,!0)},ref:e}}function Va(e,t){const r=j({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=j({},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]=j({},i),Object.keys(o).forEach((e=>{r[n][e]=Va(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const Wa=e=>e;var Ga=(()=>{let e=Wa;return{configure(t){e=t},generate:t=>e(t),reset(){e=Wa}}})();const Ua={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 Ya(e,t,r="Mui"){const n=Ua[t];return n?`${r}-${n}`:`${Ga.generate(e)}-${t}`}function Ka(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=Ya(e,t,r)})),n}const Xa=["mode","contrastThreshold","tonalOffset"],Ja={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:Ee.white,default:Ee.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}},Za={text:{primary:Ee.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:Ee.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 Qa(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=function(e,t){if(e=ba(e),t=ga(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 va(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=ba(e),t=ga(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 va(e)}(e.main,i)))}function el(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=ke(e,Xa),i=e.primary||function(e="light"){return"dark"===e?{main:Re[200],light:Re[50],dark:Re[400]}:{main:Re[700],light:Re[400],dark:Re[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:we[200],light:we[50],dark:we[400]}:{main:we[500],light:we[300],dark:we[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Ce[500],light:Ce[300],dark:Ce[700]}:{main:Ce[700],light:Ce[400],dark:Ce[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Ae[400],light:Ae[300],dark:Ae[700]}:{main:Ae[700],light:Ae[500],dark:Ae[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Ie[400],light:Ie[300],dark:Ie[700]}:{main:Ie[800],light:Ie[500],dark:Ie[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:De[400],light:De[300],dark:De[700]}:{main:"#ed6c02",light:De[500],dark:De[900]}}(t);function d(e){const t=function(e,t){const r=ya(e),n=ya(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,Za.text.primary)>=r?Za.text.primary:Ja.text.primary;return t}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Oe({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Le(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Le(12,t?` (${t})`:"",JSON.stringify(e.main)));return Qa(e,"light",o,n),Qa(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Za,light:Ja};return Ca(Oe({common:Oe({},Ee),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:Pe,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const tl=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const rl={textTransform:"uppercase"},nl='"Roboto", "Helvetica", "Arial", sans-serif';function ol(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=nl,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=ke(r,tl),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return Oe({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===nl?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,rl),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,rl),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ca(Oe({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function il(...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(",")}var al=["none",il(0,2,1,-1,0,1,1,0,0,1,3,0),il(0,3,1,-2,0,2,2,0,0,1,5,0),il(0,3,3,-2,0,3,4,0,0,1,8,0),il(0,2,4,-1,0,4,5,0,0,1,10,0),il(0,3,5,-1,0,5,8,0,0,1,14,0),il(0,3,5,-1,0,6,10,0,0,1,18,0),il(0,4,5,-2,0,7,10,1,0,2,16,1),il(0,5,5,-3,0,8,10,1,0,3,14,2),il(0,5,6,-3,0,9,12,1,0,3,16,2),il(0,6,6,-3,0,10,14,1,0,4,18,3),il(0,6,7,-4,0,11,15,1,0,4,20,3),il(0,7,8,-4,0,12,17,2,0,5,22,4),il(0,7,8,-4,0,13,19,2,0,5,24,4),il(0,7,9,-4,0,14,21,2,0,5,26,4),il(0,8,9,-5,0,15,22,2,0,6,28,5),il(0,8,10,-5,0,16,24,2,0,6,30,5),il(0,8,11,-5,0,17,26,2,0,6,32,5),il(0,9,11,-5,0,18,28,2,0,7,34,6),il(0,9,12,-6,0,19,29,2,0,7,36,6),il(0,10,13,-6,0,20,31,3,0,8,38,7),il(0,10,13,-6,0,21,33,3,0,8,40,7),il(0,10,14,-6,0,22,35,3,0,8,42,7),il(0,11,14,-7,0,23,36,3,0,9,44,8),il(0,11,15,-7,0,24,38,3,0,9,46,8)];const ll=["duration","easing","delay"],sl={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)"},ul={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function cl(e){return`${Math.round(e)}ms`}function dl(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function pl(e){const t=Oe({},sl,e.easing),r=Oe({},ul,e.duration);return Oe({getAutoHeightDuration:dl,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return ke(n,ll),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:cl(o)} ${i} ${"string"==typeof a?a:cl(a)}`)).join(",")}},e,{easing:t,duration:r})}var fl={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const ml=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function hl(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=ke(e,ml);if(e.vars)throw new Error(Le(18));const l=el(n),s=$i(e);let u=Ca(s,{mixins:(c=s.breakpoints,d=r,Oe({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:al.slice(),typography:ol(l,i),transitions:pl(o),zIndex:Oe({},fl),applyDarkStyles(e){if(this.vars){const t=this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)");return{[t]:e}}return"dark"===this.palette.mode?e:{}}});var c,d;return u=Ca(u,a),u=t.reduce(((e,t)=>Ca(e,t)),u),u.unstable_sxConfig=Oe({},qi,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Fi({sx:e,theme:this})},u}var gl=hl();function bl(){const e=Vi(gl);return e[Me]||e}function vl({props:e,name:t}){return ha({props:e,name:t,defaultTheme:gl,themeId:Me})}const yl=e=>ua(e)&&"classes"!==e,xl=ua,Sl=function(e={}){const{themeId:t,defaultTheme:r=ca,rootShouldForwardProp:n=ua,slotShouldForwardProp:o=ua}=e,i=e=>Fi(j({},e,{theme:pa(j({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{Ln(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=fa(da(s))}=a,p=K(a,sa),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=ua;"Root"===s||"root"===s?h=n:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=Pn(e,j({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||On(e)?n=>ma(e,j({},n,{theme:pa({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const s=o?o.map(b):[];l&&d&&s.push((e=>{const n=pa(j({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[l]||!n.components[l].styleOverrides)return null;const o=n.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=ma(r,j({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=pa(j({},e,{defaultTheme:r,themeId:t}));return ma({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},j({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:Me,defaultTheme:gl,rootShouldForwardProp:yl});var El=Sl;var Cl=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function wl(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=wl(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Rl(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=wl(e))&&(n&&(n+=" "),n+=t);return n}function Al(e){return Ya("MuiSvgIcon",e)}Ka("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Il=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Dl=El("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${wa(r.color)}`],t[`fontSize${wa(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,l,s,u,c,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),Pl=y.forwardRef((function(e,t){const r=vl({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=r,p=ke(r,Il),f=y.isValidElement(n)&&"svg"===n.type,m=Oe({},r,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),h={};u||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return Lo({root:["root","inherit"!==t&&`color${wa(t)}`,`fontSize${wa(r)}`]},Al,n)})(m);return ea.jsxs(Dl,Oe({as:a,className:Rl(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,f&&n.props,{ownerState:m,children:[f?n.props.children:n,c?ea.jsx("title",{children:c}):null]}))}));Pl.muiName="SvgIcon";var Ll=Pl;var Ml,Ol={},kl=Symbol.for("react.element"),_l=Symbol.for("react.portal"),Tl=Symbol.for("react.fragment"),ql=Symbol.for("react.strict_mode"),Nl=Symbol.for("react.profiler"),Fl=Symbol.for("react.provider"),zl=Symbol.for("react.context"),jl=Symbol.for("react.server_context"),$l=Symbol.for("react.forward_ref"),Bl=Symbol.for("react.suspense"),Hl=Symbol.for("react.suspense_list"),Vl=Symbol.for("react.memo"),Wl=Symbol.for("react.lazy"),Gl=Symbol.for("react.offscreen");
15
+ function Pn(e,t){let r;return r=t?wn(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):wn(e),r}In.propTypes={defaultTheme:G.object,styles:G.oneOfType([G.array,G.string,G.object,G.func])};const Ln=(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))};var Mn=Object.freeze({__proto__:null,GlobalStyles:Dn,StyledEngineProvider:An,ThemeContext:hn,css:xn,default:Pn,internal_processStyles:Ln,keyframes:Rn});function kn(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 On(e){if(!kn(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=On(e[r])})),t}function _n(e,t,r={clone:!0}){const n=r.clone?z({},e):e;return kn(e)&&kn(t)&&Object.keys(t).forEach((o=>{kn(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&kn(e[o])?n[o]=_n(e[o],t[o],r):r.clone?n[o]=kn(t[o])?On(t[o]):t[o]:n[o]=t[o]})),n}var Tn,qn=Object.freeze({__proto__:null,default:_n,isPlainObject:kn}),Nn={exports:{}},Fn={},jn=Symbol.for("react.element"),zn=Symbol.for("react.portal"),$n=Symbol.for("react.fragment"),Bn=Symbol.for("react.strict_mode"),Hn=Symbol.for("react.profiler"),Vn=Symbol.for("react.provider"),Wn=Symbol.for("react.context"),Gn=Symbol.for("react.server_context"),Un=Symbol.for("react.forward_ref"),Yn=Symbol.for("react.suspense"),Kn=Symbol.for("react.suspense_list"),Xn=Symbol.for("react.memo"),Jn=Symbol.for("react.lazy"),Zn=Symbol.for("react.offscreen");function Qn(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case jn:switch(e=e.type){case $n:case Hn:case Bn:case Yn:case Kn:return e;default:switch(e=e&&e.$$typeof){case Gn:case Wn:case Un:case Jn:case Xn:case Vn:return e;default:return t}}case zn:return t}}}Tn=Symbol.for("react.module.reference"),Fn.ContextConsumer=Wn,Fn.ContextProvider=Vn,Fn.Element=jn,Fn.ForwardRef=Un,Fn.Fragment=$n,Fn.Lazy=Jn,Fn.Memo=Xn,Fn.Portal=zn,Fn.Profiler=Hn,Fn.StrictMode=Bn,Fn.Suspense=Yn,Fn.SuspenseList=Kn,Fn.isAsyncMode=function(){return!1},Fn.isConcurrentMode=function(){return!1},Fn.isContextConsumer=function(e){return Qn(e)===Wn},Fn.isContextProvider=function(e){return Qn(e)===Vn},Fn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===jn},Fn.isForwardRef=function(e){return Qn(e)===Un},Fn.isFragment=function(e){return Qn(e)===$n},Fn.isLazy=function(e){return Qn(e)===Jn},Fn.isMemo=function(e){return Qn(e)===Xn},Fn.isPortal=function(e){return Qn(e)===zn},Fn.isProfiler=function(e){return Qn(e)===Hn},Fn.isStrictMode=function(e){return Qn(e)===Bn},Fn.isSuspense=function(e){return Qn(e)===Yn},Fn.isSuspenseList=function(e){return Qn(e)===Kn},Fn.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===$n||e===Hn||e===Bn||e===Yn||e===Kn||e===Zn||"object"==typeof e&&null!==e&&(e.$$typeof===Jn||e.$$typeof===Xn||e.$$typeof===Vn||e.$$typeof===Wn||e.$$typeof===Un||e.$$typeof===Tn||void 0!==e.getModuleId)},Fn.typeOf=Qn,Nn.exports=Fn;var eo=Nn.exports;const to=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ro(e){const t=`${e}`.match(to);return t&&t[1]||""}function no(e,t=""){return e.displayName||e.name||ro(e)||t}function oo(e,t,r){const n=no(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var io=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return no(e,"Component");if("object"==typeof e)switch(e.$$typeof){case eo.ForwardRef:return oo(e,e.render,"ForwardRef");case eo.Memo:return oo(e,e.type,"memo");default:return}}},getFunctionName:ro});function ao(e){if("string"!=typeof e)throw new Error(_e(7));return e.charAt(0).toUpperCase()+e.slice(1)}var lo=Object.freeze({__proto__:null,default:ao});function so(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function uo(e){return e&&e.ownerDocument||document}function co(e){return uo(e).defaultView||window}function po(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var fo="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function mo(e){const t=y.useRef(e);return fo((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function ho(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{po(e,t)}))}),e)}const go={};const bo=[];let vo=class e{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new e}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}};function yo(){const e=function(e,t){const r=y.useRef(go);return r.current===go&&(r.current=e(t)),r}(vo.create).current;var t;return t=e.disposeEffect,y.useEffect(t,bo),e}let xo=!0,So=!1;const Eo=new vo,wo={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 Co(e){e.metaKey||e.altKey||e.ctrlKey||(xo=!0)}function Ro(){xo=!1}function Ao(){"hidden"===this.visibilityState&&So&&(xo=!0)}function Io(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return xo||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!wo[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Do(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Co,!0),t.addEventListener("mousedown",Ro,!0),t.addEventListener("pointerdown",Ro,!0),t.addEventListener("touchstart",Ro,!0),t.addEventListener("visibilitychange",Ao,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Io(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(So=!0,Eo.start(100,(()=>{So=!1})),t.current=!1,!0)},ref:e}}function Po(e,t){const r=z({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=z({},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]=z({},i),Object.keys(o).forEach((e=>{r[n][e]=Po(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function Lo(e,t,r=void 0){const n={};return Object.keys(e).forEach((o=>{n[o]=e[o].reduce(((e,n)=>{if(n){const o=t(n);""!==o&&e.push(o),r&&r[n]&&e.push(r[n])}return e}),[]).join(" ")})),n}const Mo=e=>e;var ko=(()=>{let e=Mo;return{configure(t){e=t},generate:t=>e(t),reset(){e=Mo}}})();const Oo={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 _o(e,t,r="Mui"){const n=Oo[t];return n?`${r}-${n}`:`${ko.generate(e)}-${t}`}function To(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=_o(e,t,r)})),n}function qo(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var No=Object.freeze({__proto__:null,default:qo});function Fo(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=Fo(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function jo(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Fo(e))&&(n&&(n+=" "),n+=t);return n}const zo=["values","unit","step"],$o=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)=>z({},e,{[t.key]:t.val})),{})};var Bo={borderRadius:4};function Ho(e,t){return t?_n(e,t,{clone:!1}):e}const Vo={xs:0,sm:600,md:900,lg:1200,xl:1536},Wo={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Vo[e]}px)`};function Go(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Wo;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Wo;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Vo).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Uo(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 Yo(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Uo(e,r)||n,t&&(o=t(o,n,e)),o}function Ko(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=Uo(e.theme,n)||{};return Go(e,i,(e=>{let n=Yo(a,o,e);return e===n&&"string"==typeof e&&(n=Yo(a,o,`${t}${"default"===e?"":ao(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Xo={m:"margin",p:"padding"},Jo={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Zo={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Qo=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Zo[e])return[e];e=Zo[e]}const[t,r]=e.split(""),n=Xo[t],o=Jo[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),ei=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ti=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function ri(e,t,r,n){var o;const i=null!=(o=Uo(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 ni(e){return ri(e,"spacing",8)}function oi(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 ii(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=oi(t,r),e)),{})}(Qo(r),n);return Go(e,e[r],o)}function ai(e,t){const r=ni(e.theme);return Object.keys(e).map((n=>ii(e,t,n,r))).reduce(Ho,{})}function li(e){return ai(e,ei)}function si(e){return ai(e,ti)}function ui(...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]?Ho(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function ci(e){return"number"!=typeof e?e:`${e}px solid`}function di(e,t){return Ko({prop:e,themeKey:"borders",transform:t})}li.propTypes={},li.filterProps=ei,si.propTypes={},si.filterProps=ti;const pi=di("border",ci),fi=di("borderTop",ci),mi=di("borderRight",ci),hi=di("borderBottom",ci),gi=di("borderLeft",ci),bi=di("borderColor"),vi=di("borderTopColor"),yi=di("borderRightColor"),xi=di("borderBottomColor"),Si=di("borderLeftColor"),Ei=di("outline",ci),wi=di("outlineColor"),Ci=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=ri(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:oi(t,e)});return Go(e,e.borderRadius,r)}return null};Ci.propTypes={},Ci.filterProps=["borderRadius"],ui(pi,fi,mi,hi,gi,bi,vi,yi,xi,Si,Ci,Ei,wi);const Ri=e=>{if(void 0!==e.gap&&null!==e.gap){const t=ri(e.theme,"spacing",8),r=e=>({gap:oi(t,e)});return Go(e,e.gap,r)}return null};Ri.propTypes={},Ri.filterProps=["gap"];const Ai=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=ri(e.theme,"spacing",8),r=e=>({columnGap:oi(t,e)});return Go(e,e.columnGap,r)}return null};Ai.propTypes={},Ai.filterProps=["columnGap"];const Ii=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=ri(e.theme,"spacing",8),r=e=>({rowGap:oi(t,e)});return Go(e,e.rowGap,r)}return null};Ii.propTypes={},Ii.filterProps=["rowGap"];function Di(e,t){return"grey"===t?t:e}ui(Ri,Ai,Ii,Ko({prop:"gridColumn"}),Ko({prop:"gridRow"}),Ko({prop:"gridAutoFlow"}),Ko({prop:"gridAutoColumns"}),Ko({prop:"gridAutoRows"}),Ko({prop:"gridTemplateColumns"}),Ko({prop:"gridTemplateRows"}),Ko({prop:"gridTemplateAreas"}),Ko({prop:"gridArea"}));function Pi(e){return e<=1&&0!==e?100*e+"%":e}ui(Ko({prop:"color",themeKey:"palette",transform:Di}),Ko({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Di}),Ko({prop:"backgroundColor",themeKey:"palette",transform:Di}));const Li=Ko({prop:"width",transform:Pi}),Mi=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])||Vo[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:Pi(t)}};return Go(e,e.maxWidth,t)}return null};Mi.filterProps=["maxWidth"];const ki=Ko({prop:"minWidth",transform:Pi}),Oi=Ko({prop:"height",transform:Pi}),_i=Ko({prop:"maxHeight",transform:Pi}),Ti=Ko({prop:"minHeight",transform:Pi});Ko({prop:"size",cssProperty:"width",transform:Pi}),Ko({prop:"size",cssProperty:"height",transform:Pi});ui(Li,Mi,ki,Oi,_i,Ti,Ko({prop:"boxSizing"}));var qi={border:{themeKey:"borders",transform:ci},borderTop:{themeKey:"borders",transform:ci},borderRight:{themeKey:"borders",transform:ci},borderBottom:{themeKey:"borders",transform:ci},borderLeft:{themeKey:"borders",transform:ci},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ci},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ci},color:{themeKey:"palette",transform:Di},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Di},backgroundColor:{themeKey:"palette",transform:Di},p:{style:si},pt:{style:si},pr:{style:si},pb:{style:si},pl:{style:si},px:{style:si},py:{style:si},padding:{style:si},paddingTop:{style:si},paddingRight:{style:si},paddingBottom:{style:si},paddingLeft:{style:si},paddingX:{style:si},paddingY:{style:si},paddingInline:{style:si},paddingInlineStart:{style:si},paddingInlineEnd:{style:si},paddingBlock:{style:si},paddingBlockStart:{style:si},paddingBlockEnd:{style:si},m:{style:li},mt:{style:li},mr:{style:li},mb:{style:li},ml:{style:li},mx:{style:li},my:{style:li},margin:{style:li},marginTop:{style:li},marginRight:{style:li},marginBottom:{style:li},marginLeft:{style:li},marginX:{style:li},marginY:{style:li},marginInline:{style:li},marginInlineStart:{style:li},marginInlineEnd:{style:li},marginBlock:{style:li},marginBlockStart:{style:li},marginBlockEnd:{style:li},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:Ri},rowGap:{style:Ii},columnGap:{style:Ai},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Pi},maxWidth:{style:Mi},minWidth:{transform:Pi},height:{transform:Pi},maxHeight:{transform:Pi},minHeight:{transform:Pi},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Ni=function(){function e(e,t,r,n){const o={[e]:t,theme:r},i=n[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Uo(r,l)||{};if(u)return u(o);return Go(o,t,(t=>{let r=Yo(c,s,t);return t===r&&"string"==typeof t&&(r=Yo(c,s,`${e}${"default"===t?"":ao(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=null!=(n=i.unstable_sxConfig)?n:qi;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;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[r])s=Ho(s,e(r,o,i,a));else{const e=Go({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)?s=Ho(s,e):s[r]=t({sx:o,theme:i})}else s=Ho(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();Ni.filterProps=["sx"];var Fi=Ni;function ji(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:{}}const zi=["breakpoints","palette","spacing","shape"];function $i(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=K(e,zi),l=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=K(e,zo),i=$o(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(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 z({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}(r),s=function(e=8){if(e.mui)return e;const t=ni({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=_n({breakpoints:l,direction:"ltr",components:{},palette:z({mode:"light"},n),spacing:s,shape:z({},Bo,i)},a);return u.applyStyles=ji,u=t.reduce(((e,t)=>_n(e,t)),u),u.unstable_sxConfig=z({},qi,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Fi({sx:e,theme:this})},u}function Bi(e=null){const t=y.useContext(hn);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Hi=$i();function Vi(e=Hi){return Bi(e)}var Wi={exports:{}},Gi={},Ui=x,Yi=Symbol.for("react.element"),Ki=Symbol.for("react.fragment"),Xi=Object.prototype.hasOwnProperty,Ji=Ui.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Zi={key:!0,ref:!0,__self:!0,__source:!0};function Qi(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)Xi.call(t,n)&&!Zi.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:Yi,type:e,key:i,ref:a,props:o,_owner:Ji.current}}Gi.Fragment=Ki,Gi.jsx=Qi,Gi.jsxs=Qi,Wi.exports=Gi;var ea=Wi.exports;function ta({styles:e,themeId:t,defaultTheme:r={}}){const n=Vi(r),o="function"==typeof e?e(t&&n[t]||n):e;return ea.jsx(Dn,{styles:o})}const ra=["sx"],na=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:qi;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function oa(e){const{sx:t}=e,r=K(e,ra),{systemProps:n,otherProps:o}=na(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return kn(r)?z({},n,r):n}:z({},n,t),z({},o,{sx:i})}const ia=["className","component"];const aa=["ownerState"],la=["variants"],sa=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ua(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const ca=$i(),da=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function pa({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function fa(e){return e?(t,r)=>r[e]:null}function ma(e,t){let{ownerState:r}=t,n=K(t,aa);const o="function"==typeof e?e(z({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>ma(e,z({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=K(o,la);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(z({ownerState:r},n)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(z({ownerState:r},n)):e.style))})),t}return o}function ha({props:e,name:t,defaultTheme:r,themeId:n}){let o=Vi(r);n&&(o=o[n]||o);const i=function(e){const{theme:t,name:r,props:n}=e;return t&&t.components&&t.components[r]&&t.components[r].defaultProps?Po(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return i}function ga(e,t=0,r=1){return qo(e,t,r)}function ba(e){if(e.type)return e;if("#"===e.charAt(0))return ba(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(_e(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(_e(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function va(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 ya(e){let t="hsl"===(e=ba(e)).type||"hsla"===e.type?ba(function(e){e=ba(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 l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),va({type:l,values:s})}(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 xa(e,t){return e=ba(e),t=ga(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,va(e)}function Sa(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 Ea(e){if(!Sa(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Ea(e[r])})),t}function wa(e,t,r={clone:!0}){const n=r.clone?z({},e):e;return Sa(e)&&Sa(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Sa(t[o])&&o in e&&Sa(e[o])?n[o]=wa(e[o],t[o],r):r.clone?n[o]=Sa(t[o])?Ea(t[o]):t[o]:n[o]=t[o])})),n}function Ca(e){if("string"!=typeof e)throw new Error(Le(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ra(e){return e&&e.ownerDocument||document}function Aa(e){return Ra(e).defaultView||window}var Ia="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;let Da=0;const Pa=y["useId".toString()];function La(e){if(void 0!==Pa){const t=Pa();return null!=e?e:t}return function(e){const[t,r]=y.useState(e),n=e||t;return y.useEffect((()=>{null==t&&(Da+=1,r(`mui-${Da}`))}),[t]),n}(e)}function Ma({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 ka(e){const t=y.useRef(e);return Ia((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function Oa(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{!function(e,t){"function"==typeof e?e(t):e&&(e.current=t)}(e,t)}))}),e)}class _a{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new _a}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let Ta=!0,qa=!1;const Na=new _a,Fa={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 ja(e){e.metaKey||e.altKey||e.ctrlKey||(Ta=!0)}function za(){Ta=!1}function $a(){"hidden"===this.visibilityState&&qa&&(Ta=!0)}function Ba(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Ta||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Fa[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Ha(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",ja,!0),t.addEventListener("mousedown",za,!0),t.addEventListener("pointerdown",za,!0),t.addEventListener("touchstart",za,!0),t.addEventListener("visibilitychange",$a,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Ba(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(qa=!0,Na.start(100,(()=>{qa=!1})),t.current=!1,!0)},ref:e}}function Va(e,t){const r=z({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=z({},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]=z({},i),Object.keys(o).forEach((e=>{r[n][e]=Va(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const Wa=e=>e;var Ga=(()=>{let e=Wa;return{configure(t){e=t},generate:t=>e(t),reset(){e=Wa}}})();const Ua={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 Ya(e,t,r="Mui"){const n=Ua[t];return n?`${r}-${n}`:`${Ga.generate(e)}-${t}`}function Ka(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=Ya(e,t,r)})),n}const Xa=["mode","contrastThreshold","tonalOffset"],Ja={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:Ee.white,default:Ee.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}},Za={text:{primary:Ee.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:Ee.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 Qa(e,t,r,n){const o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=function(e,t){if(e=ba(e),t=ga(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 va(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=ba(e),t=ga(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 va(e)}(e.main,i)))}function el(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Oe(e,Xa),i=e.primary||function(e="light"){return"dark"===e?{main:Re[200],light:Re[50],dark:Re[400]}:{main:Re[700],light:Re[400],dark:Re[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Ce[200],light:Ce[50],dark:Ce[400]}:{main:Ce[500],light:Ce[300],dark:Ce[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:we[500],light:we[300],dark:we[700]}:{main:we[700],light:we[400],dark:we[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Ae[400],light:Ae[300],dark:Ae[700]}:{main:Ae[700],light:Ae[500],dark:Ae[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Ie[400],light:Ie[300],dark:Ie[700]}:{main:Ie[800],light:Ie[500],dark:Ie[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:De[400],light:De[300],dark:De[700]}:{main:"#ed6c02",light:De[500],dark:De[900]}}(t);function d(e){const t=function(e,t){const r=ya(e),n=ya(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,Za.text.primary)>=r?Za.text.primary:Ja.text.primary;return t}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=ke({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Le(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Le(12,t?` (${t})`:"",JSON.stringify(e.main)));return Qa(e,"light",o,n),Qa(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Za,light:Ja};return wa(ke({common:ke({},Ee),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:Pe,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const tl=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const rl={textTransform:"uppercase"},nl='"Roboto", "Helvetica", "Arial", sans-serif';function ol(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=nl,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Oe(r,tl),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return ke({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===nl?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,rl),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,rl),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return wa(ke({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function il(...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(",")}var al=["none",il(0,2,1,-1,0,1,1,0,0,1,3,0),il(0,3,1,-2,0,2,2,0,0,1,5,0),il(0,3,3,-2,0,3,4,0,0,1,8,0),il(0,2,4,-1,0,4,5,0,0,1,10,0),il(0,3,5,-1,0,5,8,0,0,1,14,0),il(0,3,5,-1,0,6,10,0,0,1,18,0),il(0,4,5,-2,0,7,10,1,0,2,16,1),il(0,5,5,-3,0,8,10,1,0,3,14,2),il(0,5,6,-3,0,9,12,1,0,3,16,2),il(0,6,6,-3,0,10,14,1,0,4,18,3),il(0,6,7,-4,0,11,15,1,0,4,20,3),il(0,7,8,-4,0,12,17,2,0,5,22,4),il(0,7,8,-4,0,13,19,2,0,5,24,4),il(0,7,9,-4,0,14,21,2,0,5,26,4),il(0,8,9,-5,0,15,22,2,0,6,28,5),il(0,8,10,-5,0,16,24,2,0,6,30,5),il(0,8,11,-5,0,17,26,2,0,6,32,5),il(0,9,11,-5,0,18,28,2,0,7,34,6),il(0,9,12,-6,0,19,29,2,0,7,36,6),il(0,10,13,-6,0,20,31,3,0,8,38,7),il(0,10,13,-6,0,21,33,3,0,8,40,7),il(0,10,14,-6,0,22,35,3,0,8,42,7),il(0,11,14,-7,0,23,36,3,0,9,44,8),il(0,11,15,-7,0,24,38,3,0,9,46,8)];const ll=["duration","easing","delay"],sl={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)"},ul={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function cl(e){return`${Math.round(e)}ms`}function dl(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function pl(e){const t=ke({},sl,e.easing),r=ke({},ul,e.duration);return ke({getAutoHeightDuration:dl,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Oe(n,ll),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:cl(o)} ${i} ${"string"==typeof a?a:cl(a)}`)).join(",")}},e,{easing:t,duration:r})}var fl={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const ml=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function hl(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Oe(e,ml);if(e.vars)throw new Error(Le(18));const l=el(n),s=$i(e);let u=wa(s,{mixins:(c=s.breakpoints,d=r,ke({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:al.slice(),typography:ol(l,i),transitions:pl(o),zIndex:ke({},fl),applyDarkStyles(e){if(this.vars){const t=this.getColorSchemeSelector("dark").replace(/(\[[^\]]+\])/,":where($1)");return{[t]:e}}return"dark"===this.palette.mode?e:{}}});var c,d;return u=wa(u,a),u=t.reduce(((e,t)=>wa(e,t)),u),u.unstable_sxConfig=ke({},qi,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Fi({sx:e,theme:this})},u}var gl=hl();function bl(){const e=Vi(gl);return e[Me]||e}function vl({props:e,name:t}){return ha({props:e,name:t,defaultTheme:gl,themeId:Me})}const yl=e=>ua(e)&&"classes"!==e,xl=ua,Sl=function(e={}){const{themeId:t,defaultTheme:r=ca,rootShouldForwardProp:n=ua,slotShouldForwardProp:o=ua}=e,i=e=>Fi(z({},e,{theme:pa(z({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{Ln(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=fa(da(s))}=a,p=K(a,sa),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=ua;"Root"===s||"root"===s?h=n:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=Pn(e,z({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||kn(e)?n=>ma(e,z({},n,{theme:pa({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const s=o?o.map(b):[];l&&d&&s.push((e=>{const n=pa(z({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[l]||!n.components[l].styleOverrides)return null;const o=n.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=ma(r,z({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=pa(z({},e,{defaultTheme:r,themeId:t}));return ma({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},z({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}}({themeId:Me,defaultTheme:gl,rootShouldForwardProp:yl});var El=Sl;var wl=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Cl(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=Cl(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Rl(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Cl(e))&&(n&&(n+=" "),n+=t);return n}function Al(e){return Ya("MuiSvgIcon",e)}Ka("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Il=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Dl=El("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Ca(r.color)}`],t[`fontSize${Ca(r.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var r,n,o,i,a,l,s,u,c,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(m=(e.vars||e).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[t.color]}})),Pl=y.forwardRef((function(e,t){const r=vl({props:e,name:"MuiSvgIcon"}),{children:n,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24"}=r,p=Oe(r,Il),f=y.isValidElement(n)&&"svg"===n.type,m=ke({},r,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:f}),h={};u||(h.viewBox=d);const g=(e=>{const{color:t,fontSize:r,classes:n}=e;return Lo({root:["root","inherit"!==t&&`color${Ca(t)}`,`fontSize${Ca(r)}`]},Al,n)})(m);return ea.jsxs(Dl,ke({as:a,className:Rl(g.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t},h,p,f&&n.props,{ownerState:m,children:[f?n.props.children:n,c?ea.jsx("title",{children:c}):null]}))}));Pl.muiName="SvgIcon";var Ll=Pl;var Ml,kl={},Ol=Symbol.for("react.element"),_l=Symbol.for("react.portal"),Tl=Symbol.for("react.fragment"),ql=Symbol.for("react.strict_mode"),Nl=Symbol.for("react.profiler"),Fl=Symbol.for("react.provider"),jl=Symbol.for("react.context"),zl=Symbol.for("react.server_context"),$l=Symbol.for("react.forward_ref"),Bl=Symbol.for("react.suspense"),Hl=Symbol.for("react.suspense_list"),Vl=Symbol.for("react.memo"),Wl=Symbol.for("react.lazy"),Gl=Symbol.for("react.offscreen");
16
16
  /**
17
17
  * @license React
18
18
  * react-is.production.min.js
@@ -21,7 +21,7 @@ function Pn(e,t){let r;return r=t?Cn(e).withConfig({displayName:t.label,shouldFo
21
21
  *
22
22
  * This source code is licensed under the MIT license found in the
23
23
  * LICENSE file in the root directory of this source tree.
24
- */function Ul(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case kl:switch(e=e.type){case Tl:case Nl:case ql:case Bl:case Hl:return e;default:switch(e=e&&e.$$typeof){case jl:case zl:case $l:case Wl:case Vl:case Fl:return e;default:return t}}case _l:return t}}}Ml=Symbol.for("react.module.reference"),Ol.ContextConsumer=zl,Ol.ContextProvider=Fl,Ol.Element=kl,Ol.ForwardRef=$l,Ol.Fragment=Tl,Ol.Lazy=Wl,Ol.Memo=Vl,Ol.Portal=_l,Ol.Profiler=Nl,Ol.StrictMode=ql,Ol.Suspense=Bl,Ol.SuspenseList=Hl,Ol.isAsyncMode=function(){return!1},Ol.isConcurrentMode=function(){return!1},Ol.isContextConsumer=function(e){return Ul(e)===zl},Ol.isContextProvider=function(e){return Ul(e)===Fl},Ol.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===kl},Ol.isForwardRef=function(e){return Ul(e)===$l},Ol.isFragment=function(e){return Ul(e)===Tl},Ol.isLazy=function(e){return Ul(e)===Wl},Ol.isMemo=function(e){return Ul(e)===Vl},Ol.isPortal=function(e){return Ul(e)===_l},Ol.isProfiler=function(e){return Ul(e)===Nl},Ol.isStrictMode=function(e){return Ul(e)===ql},Ol.isSuspense=function(e){return Ul(e)===Bl},Ol.isSuspenseList=function(e){return Ul(e)===Hl},Ol.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Tl||e===Nl||e===ql||e===Bl||e===Hl||e===Gl||"object"==typeof e&&null!==e&&(e.$$typeof===Wl||e.$$typeof===Vl||e.$$typeof===Fl||e.$$typeof===zl||e.$$typeof===$l||e.$$typeof===Ml||void 0!==e.getModuleId)},Ol.typeOf=Ul;var Yl=!1,Kl=x.createContext(null),Xl="unmounted",Jl="exited",Zl="entering",Ql="entered",es="exiting",ts=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=Jl,n.appearStatus=Zl):o=Ql:o=t.unmountOnExit||t.mountOnEnter?Xl:Jl,n.state={status:o},n.nextCallback=null,n}J(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Xl?{status:Jl}: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!==Zl&&r!==Ql&&(t=Zl):r!==Zl&&r!==Ql||(t=es)}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===Zl){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:z.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Jl&&this.setState({status:Xl})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[z.findDOMNode(this),n],i=o[0],a=o[1],l=this.getTimeouts(),s=n?l.appear:l.enter;!e&&!r||Yl?this.safeSetState({status:Ql},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Zl},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Ql},(function(){t.props.onEntered(i,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:z.findDOMNode(this);t&&!Yl?(this.props.onExit(n),this.safeSetState({status:es},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Jl},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Jl},(function(){e.props.onExited(n)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:z.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(r&&!n){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===Xl)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=K(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(Kl.Provider,{value:null},"function"==typeof r?r(e,n):x.cloneElement(x.Children.only(r),n))},t}(x.Component);function rs(){}ts.contextType=Kl,ts.propTypes={},ts.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:rs,onEntering:rs,onEntered:rs,onExit:rs,onExiting:rs,onExited:rs},ts.UNMOUNTED=Xl,ts.EXITED=Jl,ts.ENTERING=Zl,ts.ENTERED=Ql,ts.EXITING=es;var ns=ts;function os(e,t){var r=Object.create(null);return e&&A.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&I(e)?t(e):e}(e)})),r}function is(e,t,r){return null!=r[t]?r[t]:e.props[t]}function as(e,t,r){var n=os(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 l={};for(var s in t){if(o[s])for(n=0;n<o[s].length;n++){var u=o[s][n];l[o[s][n]]=r(u)}l[s]=r(s)}for(n=0;n<i.length;n++)l[i[n]]=r(i[n]);return l}(t,n);return Object.keys(o).forEach((function(i){var a=o[i];if(I(a)){var l=i in t,s=i in n,u=t[i],c=I(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&I(u)&&(o[i]=D(a,{onExited:r.bind(null,a),in:u.props.in,exit:is(a,"exit",e),enter:is(a,"enter",e)})):o[i]=D(a,{in:!1}):o[i]=D(a,{onExited:r.bind(null,a),in:!0,exit:is(a,"exit",e),enter:is(a,"enter",e)})}})),o}var ls=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},ss=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}J(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,os(r.children,(function(e){return D(e,{onExited:n.bind(null,e),in:!0,appear:is(e,"appear",r),enter:is(e,"enter",r),exit:is(e,"exit",r)})}))):as(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=os(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=j({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=K(e,["component","childFactory"]),o=this.state.contextValue,i=ls(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?x.createElement(Kl.Provider,{value:o},i):x.createElement(Kl.Provider,{value:o},x.createElement(t,n,i))},t}(x.Component);ss.propTypes={},ss.defaultProps={component:"div",childFactory:function(e){return e}};var us=ss;const cs=e=>e.scrollTop;function ds(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 ps(e){return Ya("MuiPaper",e)}Ka("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 fs=["className","component","elevation","square","variant"],ms=El("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 Oe({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&&Oe({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${xa("#fff",Cl(t.elevation))}, ${xa("#fff",Cl(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}));var hs=y.forwardRef((function(e,t){const r=vl({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=ke(r,fs),u=Oe({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return Lo({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},ps,o)})(u);return ea.jsx(ms,Oe({as:o,ownerState:u,className:Rl(c.root,n),ref:t},s))}));function gs(e){return"string"==typeof e}function bs(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 vs(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 ys=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function xs(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=K(e,ys),l=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=zo(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=j({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=j({},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=bs(j({},o,n)),l=vs(n),s=vs(o),u=t(a),c=zo(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=j({},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=j({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(j({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||gs(e)?t:j({},t,{ownerState:j({},t.ownerState,r)})}(r,j({},s,{ref:ho(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var Ss=Ka("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Es=["center","classes","className"];let Cs,ws,Rs,As,Is=e=>e;const Ds=Rn(Cs||(Cs=Is`
24
+ */function Ul(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ol:switch(e=e.type){case Tl:case Nl:case ql:case Bl:case Hl:return e;default:switch(e=e&&e.$$typeof){case zl:case jl:case $l:case Wl:case Vl:case Fl:return e;default:return t}}case _l:return t}}}Ml=Symbol.for("react.module.reference"),kl.ContextConsumer=jl,kl.ContextProvider=Fl,kl.Element=Ol,kl.ForwardRef=$l,kl.Fragment=Tl,kl.Lazy=Wl,kl.Memo=Vl,kl.Portal=_l,kl.Profiler=Nl,kl.StrictMode=ql,kl.Suspense=Bl,kl.SuspenseList=Hl,kl.isAsyncMode=function(){return!1},kl.isConcurrentMode=function(){return!1},kl.isContextConsumer=function(e){return Ul(e)===jl},kl.isContextProvider=function(e){return Ul(e)===Fl},kl.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ol},kl.isForwardRef=function(e){return Ul(e)===$l},kl.isFragment=function(e){return Ul(e)===Tl},kl.isLazy=function(e){return Ul(e)===Wl},kl.isMemo=function(e){return Ul(e)===Vl},kl.isPortal=function(e){return Ul(e)===_l},kl.isProfiler=function(e){return Ul(e)===Nl},kl.isStrictMode=function(e){return Ul(e)===ql},kl.isSuspense=function(e){return Ul(e)===Bl},kl.isSuspenseList=function(e){return Ul(e)===Hl},kl.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Tl||e===Nl||e===ql||e===Bl||e===Hl||e===Gl||"object"==typeof e&&null!==e&&(e.$$typeof===Wl||e.$$typeof===Vl||e.$$typeof===Fl||e.$$typeof===jl||e.$$typeof===$l||e.$$typeof===Ml||void 0!==e.getModuleId)},kl.typeOf=Ul;var Yl=!1,Kl=x.createContext(null),Xl="unmounted",Jl="exited",Zl="entering",Ql="entered",es="exiting",ts=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=Jl,n.appearStatus=Zl):o=Ql:o=t.unmountOnExit||t.mountOnEnter?Xl:Jl,n.state={status:o},n.nextCallback=null,n}J(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Xl?{status:Jl}: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!==Zl&&r!==Ql&&(t=Zl):r!==Zl&&r!==Ql||(t=es)}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===Zl){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:j.findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Jl&&this.setState({status:Xl})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[j.findDOMNode(this),n],i=o[0],a=o[1],l=this.getTimeouts(),s=n?l.appear:l.enter;!e&&!r||Yl?this.safeSetState({status:Ql},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Zl},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Ql},(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:j.findDOMNode(this);t&&!Yl?(this.props.onExit(n),this.safeSetState({status:es},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Jl},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Jl},(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:j.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===Xl)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=K(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(Kl.Provider,{value:null},"function"==typeof r?r(e,n):x.cloneElement(x.Children.only(r),n))},t}(x.Component);function rs(){}ts.contextType=Kl,ts.propTypes={},ts.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:rs,onEntering:rs,onEntered:rs,onExit:rs,onExiting:rs,onExited:rs},ts.UNMOUNTED=Xl,ts.EXITED=Jl,ts.ENTERING=Zl,ts.ENTERED=Ql,ts.EXITING=es;var ns=ts;function os(e,t){var r=Object.create(null);return e&&A.map(e,(function(e){return e})).forEach((function(e){r[e.key]=function(e){return t&&I(e)?t(e):e}(e)})),r}function is(e,t,r){return null!=r[t]?r[t]:e.props[t]}function as(e,t,r){var n=os(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 l={};for(var s in t){if(o[s])for(n=0;n<o[s].length;n++){var u=o[s][n];l[o[s][n]]=r(u)}l[s]=r(s)}for(n=0;n<i.length;n++)l[i[n]]=r(i[n]);return l}(t,n);return Object.keys(o).forEach((function(i){var a=o[i];if(I(a)){var l=i in t,s=i in n,u=t[i],c=I(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&I(u)&&(o[i]=D(a,{onExited:r.bind(null,a),in:u.props.in,exit:is(a,"exit",e),enter:is(a,"enter",e)})):o[i]=D(a,{in:!1}):o[i]=D(a,{onExited:r.bind(null,a),in:!0,exit:is(a,"exit",e),enter:is(a,"enter",e)})}})),o}var ls=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},ss=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}J(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,os(r.children,(function(e){return D(e,{onExited:n.bind(null,e),in:!0,appear:is(e,"appear",r),enter:is(e,"enter",r),exit:is(e,"exit",r)})}))):as(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=os(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=z({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=K(e,["component","childFactory"]),o=this.state.contextValue,i=ls(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?x.createElement(Kl.Provider,{value:o},i):x.createElement(Kl.Provider,{value:o},x.createElement(t,n,i))},t}(x.Component);ss.propTypes={},ss.defaultProps={component:"div",childFactory:function(e){return e}};var us=ss;const cs=e=>e.scrollTop;function ds(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 ps(e){return Ya("MuiPaper",e)}Ka("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 fs=["className","component","elevation","square","variant"],ms=El("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 ke({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&&ke({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${xa("#fff",wl(t.elevation))}, ${xa("#fff",wl(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}));var hs=y.forwardRef((function(e,t){const r=vl({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=Oe(r,fs),u=ke({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return Lo({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},ps,o)})(u);return ea.jsx(ms,ke({as:o,ownerState:u,className:Rl(c.root,n),ref:t},s))}));function gs(e){return"string"==typeof e}function bs(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 vs(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 ys=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function xs(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=K(e,ys),l=i?{}:function(e,t,r){return"function"==typeof e?e(t,r):e}(n,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=e;if(!t){const e=jo(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=z({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=z({},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=bs(z({},o,n)),l=vs(n),s=vs(o),u=t(a),c=jo(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=z({},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=z({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(z({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||gs(e)?t:z({},t,{ownerState:z({},t.ownerState,r)})}(r,z({},s,{ref:ho(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var Ss=Ka("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Es=["center","classes","className"];let ws,Cs,Rs,As,Is=e=>e;const Ds=Rn(ws||(ws=Is`
25
25
  0% {
26
26
  transform: scale(0);
27
27
  opacity: 0.1;
@@ -31,7 +31,7 @@ function Pn(e,t){let r;return r=t?Cn(e).withConfig({displayName:t.label,shouldFo
31
31
  transform: scale(1);
32
32
  opacity: 0.3;
33
33
  }
34
- `)),Ps=Rn(ws||(ws=Is`
34
+ `)),Ps=Rn(Cs||(Cs=Is`
35
35
  0% {
36
36
  opacity: 1;
37
37
  }
@@ -51,7 +51,7 @@ function Pn(e,t){let r;return r=t?Cn(e).withConfig({displayName:t.label,shouldFo
51
51
  100% {
52
52
  transform: scale(1);
53
53
  }
54
- `)),Ms=El("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Os=El((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=y.useState(!1),p=Rl(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Rl(r.child,c&&r.childLeaving,n&&r.childPulsate);return l||c||d(!0),y.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),ea.jsx("span",{className:p,style:f,children:ea.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(As||(As=Is`
54
+ `)),Ms=El("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ks=El((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=y.useState(!1),p=Rl(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Rl(r.child,c&&r.childLeaving,n&&r.childPulsate);return l||c||d(!0),y.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),ea.jsx("span",{className:p,style:f,children:ea.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(As||(As=Is`
55
55
  opacity: 0;
56
56
  position: absolute;
57
57
 
@@ -94,11 +94,11 @@ function Pn(e,t){let r;return r=t?Cn(e).withConfig({displayName:t.label,shouldFo
94
94
  animation-iteration-count: infinite;
95
95
  animation-delay: 200ms;
96
96
  }
97
- `),Ss.rippleVisible,Ds,550,(({theme:e})=>e.transitions.easing.easeInOut),Ss.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Ss.child,Ss.childLeaving,Ps,550,(({theme:e})=>e.transitions.easing.easeInOut),Ss.childPulsate,Ls,(({theme:e})=>e.transitions.easing.easeInOut));var ks=y.forwardRef((function(e,t){const r=vl({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=ke(r,Es),[l,s]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=y.useRef(!1),p=y.useRef(0),f=y.useRef(null),m=y.useRef(null);y.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=y.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;s((e=>[...e,ea.jsx(Os,{classes:{ripple:Rl(o.ripple,Ss.ripple),rippleVisible:Rl(o.rippleVisible,Ss.rippleVisible),ripplePulsate:Rl(o.ripplePulsate,Ss.ripplePulsate),child:Rl(o.child,Ss.child),childLeaving:Rl(o.childLeaving,Ss.childLeaving),childPulsate:Rl(o.childPulsate,Ss.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 l=a?null:m.current,s=l?l.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(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,h]),b=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{v(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),ea.jsx(Ms,Oe({className:Rl(Ss.root,o.root,i),ref:m},a,{children:ea.jsx(us,{component:null,exit:!0,children:l})}))}));function _s(e){return Ya("MuiButtonBase",e)}var Ts=Ka("MuiButtonBase",["root","disabled","focusVisible"]);const qs=["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"],Ns=El("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"},[`&.${Ts.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Fs=y.forwardRef((function(e,t){const r=vl({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:A,onTouchStart:I,tabIndex:D=0,TouchRippleProps:P,touchRippleRef:L,type:M}=r,O=ke(r,qs),k=y.useRef(null),_=y.useRef(null),T=ka(_,L),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=Ha(),[j,$]=y.useState(!1);s&&j&&$(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{$(!0),k.current.focus()}})),[]);const[B,H]=y.useState(!1);y.useEffect((()=>{H(!0)}),[]);const V=B&&!u&&!s;function W(e,t,r=c){return Oa((n=>{t&&t(n);return!r&&_.current&&_.current[e](n),!0}))}y.useEffect((()=>{j&&d&&!u&&B&&_.current.pulsate()}),[u,d,j,B]);const G=W("start",E),U=W("stop",h),Y=W("stop",g),K=W("stop",w),X=W("stop",(e=>{j&&e.preventDefault(),C&&C(e)})),J=W("start",I),Z=W("stop",R),Q=W("stop",A),ee=W("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=Oa((e=>{k.current||(k.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=k.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=y.useRef(!1),oe=Oa((e=>{d&&!ne.current&&j&&_.current&&" "===e.key&&(ne.current=!0,_.current.stop(e,(()=>{_.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=Oa((e=>{d&&" "===e.key&&_.current&&j&&!e.defaultPrevented&&(ne.current=!1,_.current.stop(e,(()=>{_.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(O.href||O.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===M?"button":M,le.disabled=s):(O.href||O.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=ka(t,z,k),ue=Oe({},r,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:D,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Lo({root:["root",t&&"disabled",r&&"focusVisible"]},_s,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return ea.jsxs(Ns,Oe({as:ae,className:Rl(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:G,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:D,type:M},le,O,{children:[i,V?ea.jsx(ks,Oe({ref:T,center:o},P)):null]}))}));var zs=Fs;function js(e){return Ya("MuiTypography",e)}Ka("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const $s=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Bs=El("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${wa(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Oe({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}))),Hs={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Vs={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Ws=y.forwardRef((function(e,t){const r=vl({props:e,name:"MuiTypography"}),n=(e=>Vs[e]||e)(r.color),o=oa(Oe({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Hs}=o,f=ke(o,$s),m=Oe({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||Hs[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Lo({root:["root",i,"inherit"!==e.align&&`align${wa(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},js,a)})(m);return ea.jsx(Bs,Oe({as:h,ref:t,ownerState:m,className:Rl(g.root,a)},f))}));var Gs=Ws;const Us=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ys(e){const t=[],r=[];return Array.from(e.querySelectorAll(Us)).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 Ks(){return!0}function Xs(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=Ys,isEnabled:a=Ks,open:l}=e,s=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),m=y.useRef(null),h=ho(t.ref,m),g=y.useRef(null);y.useEffect((()=>{l&&m.current&&(f.current=!r)}),[r,l]),y.useEffect((()=>{if(!l||!m.current)return;const e=uo(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),y.useEffect((()=>{if(!l||!m.current)return;const e=uo(m.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},r=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(m.current)),r.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.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,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return ea.jsxs(y.Fragment,{children:[ea.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),ea.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const Js=y.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=y.useState(null),l=ho(y.isValidElement(r)?r.ref:null,t);if(fo((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),fo((()=>{if(i&&!o)return po(t,i),()=>{po(t,null)}}),[t,i,o]),o){if(y.isValidElement(r)){const e={ref:l};return y.cloneElement(r,e)}return ea.jsx(y.Fragment,{children:r})}return ea.jsx(y.Fragment,{children:i?F.createPortal(r,i):i})}));function Zs(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Qs(e){return parseInt(co(e).getComputedStyle(e).paddingRight,10)||0}function eu(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&&Zs(e,o)}))}function tu(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function ru(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=uo(e);return t.body===e?co(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(uo(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Qs(n)+e}px`;const t=uo(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Qs(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=uo(n).body;else{const t=n.parentElement,r=co(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 nu=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&&Zs(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);eu(t,e.mount,e.modalRef,n,!0);const o=tu(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=tu(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=ru(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=tu(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&&Zs(e.modalRef,t),eu(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&&Zs(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function ou(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=nu,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),m=y.useRef(null),h=ho(m,d),[g,b]=y.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},C=mo((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||uo(f.current).body;o.add(S(),e),m.current&&E()})),w=y.useCallback((()=>o.isTopModal(S())),[o]),R=mo((e=>{f.current=e,e&&(c&&w()?E():m.current&&Zs(m.current,x))})),A=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{A()}),[A]),y.useEffect((()=>{c?C():v&&i||A()}),[c,A,v,i,C]);const I=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},D=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=bs(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=j({},r,t);return j({role:"presentation"},n,{onKeyDown:I(n),ref:h})},getBackdropProps:(e={})=>j({"aria-hidden":!0},e,{onClick:D(e),open:c}),getTransitionProps:()=>({onEnter:so((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:so((()=>{b(!0),l&&l(),i&&A()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}const iu=["onChange","maxRows","minRows","style","value"];function au(e){return parseInt(e,10)||0}const lu={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function su(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const uu=y.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,l=K(e,iu),{current:s}=y.useRef(null!=a),u=y.useRef(null),c=ho(t,u),d=y.useRef(null),p=y.useRef(0),[f,m]=y.useState({outerHeightStyle:0}),h=y.useCallback((()=>{const t=u.current,r=co(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0};const i=d.current;i.style.width=r.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=r.boxSizing,l=au(r.paddingBottom)+au(r.paddingTop),s=au(r.borderBottomWidth)+au(r.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),n&&(f=Math.min(Number(n)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[n,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:r,overflow:n}=t;return p.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(p.current+=1,{overflow:n,outerHeightStyle:r}):e},b=y.useCallback((()=>{const e=h();su(e)||m((t=>g(t,e)))}),[h]);fo((()=>{const e=()=>{p.current=0,(()=>{const e=h();su(e)||F.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}(e),r=u.current,n=co(r);let o;return n.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(r)),()=>{t.clear(),cancelAnimationFrame(undefined),n.removeEventListener("resize",t),o&&o.disconnect()}}),[h]),fo((()=>{b()})),y.useEffect((()=>{p.current=0}),[a]);return ea.jsxs(y.Fragment,{children:[ea.jsx("textarea",j({value:a,onChange:e=>{p.current=0,s||b(),r&&r(e)},ref:c,rows:o,style:j({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),ea.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:j({},lu,i,{paddingTop:0,paddingBottom:0})})]})}));function cu({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)),{})}var du=y.createContext(void 0);function pu(){return y.useContext(du)}function fu(e){return ea.jsx(ta,Oe({},e,{defaultTheme:gl,themeId:Me}))}function mu(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function hu(e,t=!1){return e&&(mu(e.value)&&""!==e.value||t&&mu(e.defaultValue)&&""!==e.defaultValue)}function gu(e){return Ya("MuiInputBase",e)}var bu=Ka("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const vu=["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"],yu=(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${wa(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},xu=(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]},Su=El("div",{name:"MuiInputBase",slot:"Root",overridesResolver:yu})((({theme:e,ownerState:t})=>Oe({},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",[`&.${bu.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Oe({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Eu=El("input",{name:"MuiInputBase",slot:"Input",overridesResolver:xu})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=Oe({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 Oe({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] + .${bu.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},[`&.${bu.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"})})),Cu=ea.jsx(fu,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),wu=y.forwardRef((function(e,t){var r;const n=vl({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:x,minRows:S,multiline:E=!1,name:C,onBlur:w,onChange:R,onClick:A,onFocus:I,onKeyDown:D,onKeyUp:P,placeholder:L,readOnly:M,renderSuffix:O,rows:k,slotProps:_={},slots:T={},startAdornment:q,type:N="text",value:F}=n,z=ke(n,vu),j=null!=b.value?b.value:F,{current:$}=y.useRef(null!=j),B=y.useRef(),H=y.useCallback((e=>{}),[]),V=ka(B,v,b.ref,H),[W,G]=y.useState(!1),U=pu(),Y=cu({props:n,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:W,y.useEffect((()=>{!U&&d&&W&&(G(!1),w&&w())}),[U,d,W,w]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=y.useCallback((e=>{hu(e)?K&&K():X&&X()}),[K,X]);Ia((()=>{$&&J({value:j})}),[j,J,$]);y.useEffect((()=>{J(B.current)}),[]);let Z=g,Q=b;E&&"input"===Z&&(Q=Oe(k?{type:void 0,minRows:k,maxRows:k}:{type:void 0,maxRows:x,minRows:S},Q),Z=uu);y.useEffect((()=>{U&&U.setAdornedStart(Boolean(q))}),[U,q]);const ee=Oe({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:U,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:E,size:Y.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return Lo({root:["root",`color${wa(r)}`,n&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${wa(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},gu,t)})(ee),re=T.root||s.Root||Su,ne=_.root||u.root||{},oe=T.input||s.Input||Eu;return Q=Oe({},Q,null!=(r=_.input)?r:u.input),ea.jsxs(y.Fragment,{children:[!p&&Cu,ea.jsxs(re,Oe({},ne,!gs(re)&&{ownerState:Oe({},ee,ne.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),A&&A(e)}},z,{className:Rl(te.root,ne.className,l,M&&"MuiInputBase-readOnly"),children:[q,ea.jsx(du.Provider,{value:null,children:ea.jsx(oe,Oe({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:h,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:C,placeholder:L,readOnly:M,required:Y.required,rows:k,value:j,onKeyDown:D,onKeyUp:P,type:N},Q,!gs(oe)&&{as:Z,ownerState:Oe({},ee,Q.ownerState)},{ref:V,className:Rl(te.input,Q.className,M&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),U&&U.onBlur?U.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||B.current;if(null==t)throw new Error(Le(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(I&&I(e),b.onFocus&&b.onFocus(e),U&&U.onFocus?U.onFocus(e):G(!0))}}))}),f,O?O(Oe({},Y,{startAdornment:q})):null]}))]})}));var Ru=wu;function Au(e){return Ya("MuiInput",e)}var Iu=Oe({},bu,Ka("MuiInput",["root","underline","input"]));function Du(e){return Ya("MuiOutlinedInput",e)}var Pu=Oe({},bu,Ka("MuiOutlinedInput",["root","notchedOutline","input"]));function Lu(e){return Ya("MuiFilledInput",e)}var Mu=Oe({},bu,Ka("MuiFilledInput",["root","underline","input"])),Ou=function(e,t){function r(r,n){return ea.jsx(Ll,Oe({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=Ll.muiName,y.memo(y.forwardRef(r))}(ea.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const ku=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],_u={entering:{opacity:1},entered:{opacity:1}},Tu=y.forwardRef((function(e,t){const r=bl(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=n,TransitionComponent:b=ns}=e,v=ke(e,ku),x=y.useRef(null),S=ka(x,a.ref,t),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},C=E(d),w=E(((e,t)=>{cs(e);const n=ds({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),R=E(c),A=E(m),I=E((e=>{const t=ds({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),D=E(f);return ea.jsx(b,Oe({appear:i,in:s,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:I,onExited:D,onExiting:A,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,Oe({style:Oe({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},_u[e],h,a.props.style),ref:S},t))}))}));var qu=Tu;function Nu(e){return Ya("MuiBackdrop",e)}Ka("MuiBackdrop",["root","invisible"]);const Fu=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],zu=El("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>Oe({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"}))),ju=y.forwardRef((function(e,t){var r,n,o;const i=vl({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=qu,transitionDuration:g}=i,b=ke(i,Fu),v=Oe({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Lo({root:["root",r&&"invisible"]},Nu,t)})(v),x=null!=(r=f.root)?r:c.root;return ea.jsx(h,Oe({in:p,timeout:g},b,{children:ea.jsx(zu,Oe({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:s,className:Rl(y.root,l,null==x?void 0:x.className),ownerState:Oe({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var $u=ju;var Bu=Ka("MuiBox",["root"]);const Hu=hl(),Vu=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Pn("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Fi);return y.forwardRef((function(e,a){const l=Vi(r),s=oa(e),{className:u,component:c="div"}=s,d=K(s,ia);return ea.jsx(i,j({as:c,ref:a,className:zo(u,o?o(n):n),theme:t&&l[t]||l},d))}))}({themeId:Me,defaultTheme:Hu,defaultClassName:Bu.root,generateClassName:Ga.generate});var Wu=Vu;function Gu(e){return Ya("MuiButton",e)}var Uu=Ka("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var Yu=y.createContext({});var Ku=y.createContext(void 0);const Xu=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ju=e=>Oe({},"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}}),Zu=El(zs,{shouldForwardProp:e=>yl(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${wa(r.color)}`],t[`size${wa(r.size)}`],t[`${r.variant}Size${wa(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 Oe({},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":Oe({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:xa(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})`:xa(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})`:xa(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":Oe({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Uu.focusVisible}`]:Oe({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Uu.disabled}`]:Oe({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 ${xa(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"},[`&.${Uu.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Uu.disabled}`]:{boxShadow:"none"}})),Qu=El("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${wa(r.size)}`]]}})((({ownerState:e})=>Oe({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Ju(e)))),ec=El("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${wa(r.size)}`]]}})((({ownerState:e})=>Oe({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Ju(e)))),tc=y.forwardRef((function(e,t){const r=y.useContext(Yu),n=y.useContext(Ku),o=vl({props:Va(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:b,variant:v="text"}=o,x=ke(o,Xu),S=Oe({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:b,variant:v}),E=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return Oe({},a,Lo({root:["root",i,`${i}${wa(t)}`,`size${wa(o)}`,`${i}Size${wa(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${wa(o)}`],endIcon:["endIcon",`iconSize${wa(o)}`]},Gu,a))})(S),C=g&&ea.jsx(Qu,{className:E.startIcon,ownerState:S,children:g}),w=p&&ea.jsx(ec,{className:E.endIcon,ownerState:S,children:p}),R=n||"";return ea.jsxs(Zu,Oe({ownerState:S,className:Rl(r.className,E.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:Rl(E.focusVisible,f),ref:t,type:b},x,{classes:E,children:[C,i,w]}))}));var rc=tc;function nc(e){return Ya("MuiModal",e)}Ka("MuiModal",["root","hidden","backdrop"]);const oc=["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"],ic=El("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})=>Oe({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),ac=El($u,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),lc=y.forwardRef((function(e,t){var r,n,o,i,a,l;const s=vl({name:"MuiModal",props:e}),{BackdropComponent:u=ac,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:I,open:D,slotProps:P,slots:L}=s,M=ke(s,oc),O=Oe({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:A}),{getRootProps:k,getBackdropProps:_,getTransitionProps:T,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=ou(Oe({},O,{rootRef:t})),j=Oe({},O,{exited:F}),$=(e=>{const{open:t,exited:r,classes:n}=e;return Lo({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},nc,n)})(j),B={};if(void 0===f.props.tabIndex&&(B.tabIndex="-1"),z){const{onEnter:e,onExited:t}=T();B.onEnter=e,B.onExited=t}const H=null!=(r=null!=(n=null==L?void 0:L.root)?n:g.Root)?r:ic,V=null!=(o=null!=(i=null==L?void 0:L.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==P?void 0:P.root)?a:b.root,G=null!=(l=null==P?void 0:P.backdrop)?l:b.backdrop,U=xs({elementType:H,externalSlotProps:W,externalForwardedProps:M,getSlotProps:k,additionalProps:{ref:t,as:h},ownerState:j,className:Rl(d,null==W?void 0:W.className,null==$?void 0:$.root,!j.open&&j.exited&&(null==$?void 0:$.hidden))}),Y=xs({elementType:V,externalSlotProps:G,additionalProps:c,getSlotProps:e=>_(Oe({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Rl(null==G?void 0:G.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:j});return A||D||z&&!F?ea.jsx(Js,{ref:q,container:m,disablePortal:E,children:ea.jsxs(H,Oe({},U,{children:[!R&&u?ea.jsx(V,Oe({},Y)):null,ea.jsx(Xs,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:D,children:y.cloneElement(f,B)})]}))}):null}));var sc=lc;function uc(e){return Ya("MuiDivider",e)}var cc=Ka("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const dc=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],pc=El("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})=>Oe({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)`:xa(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})=>Oe({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Oe({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Oe({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Oe({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),fc=El("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Oe({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)`}))),mc=y.forwardRef((function(e,t){const r=vl({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=ke(r,dc),m=Oe({},r,{absolute:n,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return Lo({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},uc,n)})(m);return ea.jsx(pc,Oe({as:a,className:Rl(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?ea.jsx(fc,{className:h.wrapper,ownerState:m,children:o}):null}))}));mc.muiSkipListHighlight=!0;var hc=mc;const gc=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],bc=El(Su,{shouldForwardProp:e=>yl(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...yu(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)",l=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Oe({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}},[`&.${Mu.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Mu.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!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"},[`&.${Mu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Mu.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(.${Mu.disabled}, .${Mu.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Mu.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Oe({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}))})),vc=El(Eu,{name:"MuiFilledInput",slot:"Input",overridesResolver:xu})((({theme:e,ownerState:t})=>Oe({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}))),yc=y.forwardRef((function(e,t){var r,n,o,i;const a=vl({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=ke(a,gc),g=Oe({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:r}=e;return Oe({},t,Lo({root:["root",!r&&"underline"],input:["input"]},Lu,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?Ca(v,null!=p?p:s):v,x=null!=(r=null!=(n=f.root)?n:l.Root)?r:bc,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:vc;return ea.jsx(Ru,Oe({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));yc.muiName="Input";var xc=yc;const Sc=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ec(e){return`scale(${e}, ${e**2})`}const Cc={entering:{opacity:1,transform:Ec(1)},entered:{opacity:1,transform:"none"}},wc="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Rc=y.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=ns}=e,g=ke(e,Sc),b=y.useRef(),v=y.useRef(),x=bl(),S=y.useRef(null),E=ka(S,o.ref,t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},w=C(u),R=C(((e,t)=>{cs(e);const{duration:r,delay:n,easing:o}=ds({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(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:wc?a:.666*a,delay:n,easing:o})].join(","),l&&l(e,t)})),A=C(s),I=C(p),D=C((e=>{const{duration:t,delay:r,easing:n}=ds({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(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:wc?o:.666*o,delay:wc?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Ec(.75),c&&c(e)})),P=C(d);return y.useEffect((()=>()=>{clearTimeout(b.current)}),[]),ea.jsx(h,Oe({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:A,onEntering:w,onExit:D,onExited:P,onExiting:I,addEndListener:e=>{"auto"===m&&(b.current=setTimeout(e,v.current||0)),r&&r(S.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>y.cloneElement(o,Oe({style:Oe({opacity:0,transform:Ec(.75),visibility:"exited"!==e||a?void 0:"hidden"},Cc[e],f,o.props.style),ref:E},t))}))}));Rc.muiSupportAuto=!0;var Ac=Rc;const Ic=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Dc=El(Su,{shouldForwardProp:e=>yl(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...yu(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})`),Oe({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"},[`&.${Iu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Iu.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(.${Iu.disabled}, .${Iu.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Iu.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Pc=El(Eu,{name:"MuiInput",slot:"Input",overridesResolver:xu})({}),Lc=y.forwardRef((function(e,t){var r,n,o,i;const a=vl({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=ke(a,Ic),b=(e=>{const{classes:t,disableUnderline:r}=e;return Oe({},t,Lo({root:["root",!r&&"underline"],input:["input"]},Au,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?Ca(null!=f?f:u,v):v,x=null!=(r=null!=(n=m.root)?n:s.Root)?r:Dc,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:Pc;return ea.jsx(Ru,Oe({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));Lc.muiName="Input";var Mc=Lc;function Oc(e){return Ya("MuiLink",e)}var kc=Ka("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const _c={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var Tc=({theme:e,ownerState:t})=>{const r=(e=>_c[e]||e)(t.color),n=Uo(e,`palette.${r}`,!1)||t.color,o=Uo(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:xa(n,.4)};const qc=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Nc=El(Gs,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${wa(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>Oe({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Oe({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Tc({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"},[`&.${kc.focusVisible}`]:{outline:"auto"}}))),Fc=y.forwardRef((function(e,t){const r=vl({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=r,p=ke(r,qc),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=Ha(),[b,v]=y.useState(!1),x=ka(t,g),S=Oe({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return Lo({root:["root",`underline${wa(o)}`,"button"===r&&"button",n&&"focusVisible"]},Oc,t)})(S);return ea.jsx(Nc,Oe({color:o,className:Rl(E.root,n),classes:s,component:i,onBlur:e=>{m(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{h(e),!0===f.current&&v(!0),l&&l(e)},ref:x,ownerState:S,variant:c,sx:[...Object.keys(_c).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var zc=Fc;var jc=y.createContext({});function $c(e){return Ya("MuiList",e)}Ka("MuiList",["root","padding","dense","subheader"]);const Bc=["children","className","component","dense","disablePadding","subheader"],Hc=El("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})=>Oe({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var Vc=y.forwardRef((function(e,t){const r=vl({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=r,u=ke(r,Bc),c=y.useMemo((()=>({dense:a})),[a]),d=Oe({},r,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Lo({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},$c,t)})(d);return ea.jsx(jc.Provider,{value:c,children:ea.jsxs(Hc,Oe({as:i,className:Rl(p.root,o),ref:t,ownerState:d},u,{children:[s,n]}))})}));function Wc(e){return Ya("MuiListItemIcon",e)}var Gc=Ka("MuiListItemIcon",["root","alignItemsFlexStart"]);const Uc=["className"],Yc=El("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})=>Oe({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var Kc=y.forwardRef((function(e,t){const r=vl({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=ke(r,Uc),i=Oe({},r,{alignItems:y.useContext(jc).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Lo({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Wc,r)})(i);return ea.jsx(Yc,Oe({className:Rl(a.root,n),ownerState:i,ref:t},o))}));var Xc=Ka("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const Jc=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Zc(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Qc(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function ed(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 td(e,t,r,n,o,i){let a=!1,l=o(e,t,!!t&&r);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!n&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&ed(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}var rd=y.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=ke(e,Jc),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ia((()=>{n&&p.current.focus()}),[n]),y.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(Ra(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const m=ka(p,t);let h=-1;y.Children.forEach(i,((e,t)=>{y.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=y.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),y.cloneElement(e,t)}return e}));return ea.jsx(Vc,Oe({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=Ra(t).activeElement;if("ArrowDown"===r)e.preventDefault(),td(t,n,s,l,Zc);else if("ArrowUp"===r)e.preventDefault(),td(t,n,s,l,Qc);else if("Home"===r)e.preventDefault(),td(t,null,s,l,Zc);else if("End"===r)e.preventDefault(),td(t,null,s,l,Qc);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 s=n&&!o.repeating&&ed(n,o);o.previousKeyMatched&&(s||td(t,n,!1,l,Zc,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function nd(e){return Ya("MuiPopover",e)}Ka("MuiPopover",["root","paper"]);const od=["onEntering"],id=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],ad=["slotProps"];function ld(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function sd(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function ud(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function cd(e){return"function"==typeof e?e():e}const dd=El(sc,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pd=El(hs,{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});var fd=y.forwardRef((function(e,t){var r,n,o;const i=vl({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:b={},slots:v,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=Ac,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,A=ke(i.TransitionProps,od),I=ke(i,id),D=null!=(r=null==x?void 0:x.paper)?r:b,P=y.useRef(),L=ka(P,D.ref),M=Oe({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:D,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:A}),O=(e=>{const{classes:t}=e;return Lo({root:["root"],paper:["paper"]},nd,t)})(M),k=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=cd(l),t=(e&&1===e.nodeType?e:Ra(P.current).body).getBoundingClientRect();return{top:t.top+ld(t,s.vertical),left:t.left+sd(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),_=y.useCallback((e=>({vertical:ld(e,S.vertical),horizontal:sd(e,S.horizontal)})),[S.horizontal,S.vertical]),T=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=_(t);if("none"===c)return{top:null,left:null,transformOrigin:ud(r)};const n=k();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,u=Aa(cd(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,r.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,r.horizontal+=e}else if(s>p){const e=s-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:ud(r)}}),[l,c,k,_,h]),[q,N]=y.useState(g),F=y.useCallback((()=>{const e=P.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);y.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);y.useEffect((()=>{g&&F()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),y.useEffect((()=>{if(!g)return;const e=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}((()=>{F()})),t=Aa(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let z=C;"auto"!==C||E.muiSupportAuto||(z=void 0);const j=f||(l?Ra(cd(l)).body:void 0),$=null!=(n=null==v?void 0:v.root)?n:dd,B=null!=(o=null==v?void 0:v.paper)?o:pd,H=xs({elementType:B,externalSlotProps:Oe({},D,{style:q?D.style:Oe({},D.style,{opacity:0})}),additionalProps:{elevation:m,ref:L},ownerState:M,className:Rl(O.paper,null==D?void 0:D.className)}),V=xs({elementType:$,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:I,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:M,className:Rl(O.root,p)}),{slotProps:W}=V,G=ke(V,ad);return ea.jsx($,Oe({},G,!gs($)&&{slotProps:W,disableScrollLock:R},{children:ea.jsx(E,Oe({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:z},A,{children:ea.jsx(B,Oe({},H,{children:d}))}))}))}));function md(e){return Ya("MuiMenu",e)}Ka("MuiMenu",["root","paper","list"]);const hd=["onEntering"],gd=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],bd={vertical:"top",horizontal:"right"},vd={vertical:"top",horizontal:"left"},yd=El(fd,{shouldForwardProp:e=>yl(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xd=El(pd,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Sd=El(rd,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var Ed=y.forwardRef((function(e,t){var r,n;const o=vl({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,x=ke(o.TransitionProps,hd),S=ke(o,gd),E=bl(),C="rtl"===E.direction,w=Oe({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:x,variant:g}),R=(e=>{const{classes:t}=e;return Lo({root:["root"],paper:["paper"],list:["list"]},md,t)})(w),A=i&&!s&&d,I=y.useRef(null);let D=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===D)&&(D=t))}));const P=null!=(r=b.paper)?r:xd,L=null!=(n=v.paper)?n:p,M=xs({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[R.root,l]}),O=xs({elementType:P,externalSlotProps:L,ownerState:w,className:R.paper});return ea.jsx(yd,Oe({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?bd:vd,slots:{paper:P,root:b.root},slotProps:{root:M,paper:O},open:d,ref:t,transitionDuration:m,TransitionProps:Oe({onEntering:(e,t)=>{I.current&&I.current.adjustStyleForScrollbar(e,E),h&&h(e,t)}},x),ownerState:w},S,{classes:f,children:ea.jsx(Sd,Oe({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:I,autoFocus:i&&(-1===D||s),autoFocusItem:A,variant:g},u,{className:Rl(R.list,u.className),children:a}))}))}));function Cd(e){return Ya("MuiMenuItem",e)}var wd=Ka("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const Rd=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Ad=El(zs,{shouldForwardProp:e=>yl(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})=>Oe({},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"}},[`&.${wd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xa(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${wd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xa(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${wd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:xa(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})`:xa(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${wd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${wd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${cc.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${cc.inset}`]:{marginLeft:52},[`& .${Xc.root}`]:{marginTop:0,marginBottom:0},[`& .${Xc.inset}`]:{paddingLeft:36},[`& .${Gc.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Oe({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Gc.root} svg`]:{fontSize:"1.25rem"}}))));var Id=y.forwardRef((function(e,t){const r=vl({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=r,p=ke(r,Rd),f=y.useContext(jc),m=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=y.useRef(null);Ia((()=>{n&&h.current&&h.current.focus()}),[n]);const g=Oe({},r,{dense:m.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return Oe({},a,Lo({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Cd,a))})(r),v=ka(h,t);let x;return r.disabled||(x=void 0!==c?c:-1),ea.jsx(jc.Provider,{value:m,children:ea.jsx(Ad,Oe({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:Rl(b.focusVisible,s),className:Rl(b.root,d)},p,{ownerState:g,classes:b}))})}));function Dd(e){return Ya("MuiNativeSelect",e)}var Pd=Ka("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Ld=["className","disabled","error","IconComponent","inputRef","variant"],Md=({ownerState:e,theme:t})=>Oe({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Oe({},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"},[`&.${Pd.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}}),Od=El("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:yl,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Pd.multiple}`]:t.multiple}]}})(Md),kd=({ownerState:e,theme:t})=>Oe({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Pd.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),_d=El("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${wa(r.variant)}`],r.open&&t.iconOpen]}})(kd),Td=y.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=ke(e,Ld),u=Oe({},e,{disabled:n,variant:l,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Lo({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${wa(r)}`,i&&"iconOpen",n&&"disabled"]},Dd,t)})(u);return ea.jsxs(y.Fragment,{children:[ea.jsx(Od,Oe({ownerState:u,className:Rl(c.select,r),disabled:n,ref:a||t},s)),e.multiple?null:ea.jsx(_d,{as:i,ownerState:u,className:c.icon})]})}));var qd,Nd=Td;const Fd=["children","classes","className","label","notched"],zd=El("fieldset",{shouldForwardProp:yl})({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%"}),jd=El("legend",{shouldForwardProp:yl})((({ownerState:e,theme:t})=>Oe({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&&Oe({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 $d=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Bd=El(Su,{shouldForwardProp:e=>yl(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:yu})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Oe({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Pu.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Pu.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Pu.focused} .${Pu.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Pu.error} .${Pu.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Pu.disabled} .${Pu.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Oe({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Hd=El((function(e){const{className:t,label:r,notched:n}=e,o=ke(e,Fd),i=null!=r&&""!==r,a=Oe({},e,{notched:n,withLabel:i});return ea.jsx(zd,Oe({"aria-hidden":!0,className:t,ownerState:a},o,{children:ea.jsx(jd,{ownerState:a,children:i?ea.jsx("span",{children:r}):qd||(qd=ea.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}})),Vd=El(Eu,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:xu})((({theme:e,ownerState:t})=>Oe({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}))),Wd=y.forwardRef((function(e,t){var r,n,o,i,a;const l=vl({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=l,g=ke(l,$d),b=(e=>{const{classes:t}=e;return Oe({},t,Lo({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Du,t))})(l),v=pu(),x=cu({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=Oe({},l,{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:h}),E=null!=(r=null!=(n=m.root)?n:s.Root)?r:Bd,C=null!=(o=null!=(i=m.input)?i:s.Input)?o:Vd;return ea.jsx(Ru,Oe({slots:{root:E,input:C},renderSuffix:e=>ea.jsx(Hd,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=ea.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:h},g,{classes:Oe({},b,{notchedOutline:null})}))}));Wd.muiName="Input";var Gd=Wd;function Ud(e){return Ya("MuiSelect",e)}var Yd,Kd=Ka("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Xd=["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"],Jd=El("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Kd.select}`]:t.select},{[`&.${Kd.select}`]:t[r.variant]},{[`&.${Kd.error}`]:t.error},{[`&.${Kd.multiple}`]:t.multiple}]}})(Md,{[`&.${Kd.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Zd=El("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${wa(r.variant)}`],r.open&&t.iconOpen]}})(kd),Qd=El("input",{shouldForwardProp:e=>xl(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 ep(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function tp(e){return null==e||"string"==typeof e&&!e.trim()}const rp=y.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:b={},multiple:v,name:x,onBlur:S,onChange:E,onClose:C,onFocus:w,onOpen:R,open:A,readOnly:I,renderValue:D,SelectDisplayProps:P={},tabIndex:L,value:M,variant:O="standard"}=e,k=ke(e,Xd),[_,T]=Ma({controlled:M,default:c,name:"Select"}),[q,N]=Ma({controlled:A,default:u,name:"Select"}),F=y.useRef(null),z=y.useRef(null),[j,$]=y.useState(null),{current:B}=y.useRef(null!=A),[H,V]=y.useState(),W=ka(t,h),G=y.useCallback((e=>{z.current=e,e&&$(e)}),[]),U=null==j?void 0:j.parentNode;y.useImperativeHandle(W,(()=>({focus:()=>{z.current.focus()},node:F.current,value:_})),[_]),y.useEffect((()=>{u&&q&&j&&!B&&(V(a?null:U.clientWidth),z.current.focus())}),[j,a]),y.useEffect((()=>{i&&z.current.focus()}),[i]),y.useEffect((()=>{if(!g)return;const e=Ra(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const Y=(e,t)=>{e?R&&R(t):C&&C(t),B||(V(a?null:U.clientWidth),N(e))},K=y.Children.toArray(l),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(v){r=Array.isArray(_)?_.slice():[];const t=_.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),_!==r&&(T(r),E)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:x}}),E(o,e)}v||Y(!1,t)}},J=null!==j&&q;let Z,Q;delete k["aria-invalid"];const ee=[];let te=!1;(hu({value:_})||p)&&(D?Z=D(_):te=!0);const re=K.map((e=>{if(!y.isValidElement(e))return null;let t;if(v){if(!Array.isArray(_))throw new Error(Le(2));t=_.some((t=>ep(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=ep(_,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=H;!a&&B&&j&&(oe=U.clientWidth),ne=void 0!==L?L:d?null:0;const ie=P.id||(x?`mui-component-select-${x}`:void 0),ae=Oe({},e,{variant:O,value:_,open:J,error:f}),le=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Lo({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${wa(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},Ud,t)})(ae),se=Oe({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=La();return ea.jsxs(y.Fragment,{children:[ea.jsx(Jd,Oe({ref:G,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!I){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||I?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:_,name:x}}),S(e))},onFocus:w},P,{ownerState:ae,className:Rl(P.className,le.select,s),id:ie,children:tp(Z)?Yd||(Yd=ea.jsx("span",{className:"notranslate",children:"​"})):Z})),ea.jsx(Qd,Oe({"aria-invalid":f,value:Array.isArray(_)?_.join(","):_,name:x,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(T(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},k)),ea.jsx(Zd,{as:m,className:le.icon,ownerState:ae}),ea.jsx(Ed,Oe({id:`menu-${x||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Oe({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:Oe({},b.slotProps,{paper:Oe({},se,{style:Oe({minWidth:oe},null!=se?se.style:null)})}),children:re}))]})}));var np=rp;const op=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],ip=["root"],ap={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>yl(e)&&"variant"!==e,slot:"Root"},lp=El(Mc,ap)(""),sp=El(Gd,ap)(""),up=El(xc,ap)(""),cp=y.forwardRef((function(e,t){const r=vl({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=Ou,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:b=!1,onClose:v,onOpen:x,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=r,R=ke(r,op),A=b?Nd:np,I=cu({props:r,muiFormControl:pu(),states:["variant","error"]}),D=I.variant||w,P=Oe({},r,{variant:D,classes:i}),L=(e=>{const{classes:t}=e;return t})(P),M=ke(L,ip),O=d||{standard:ea.jsx(lp,{ownerState:P}),outlined:ea.jsx(sp,{label:f,ownerState:P}),filled:ea.jsx(up,{ownerState:P})}[D],k=ka(t,O.ref);return ea.jsx(y.Fragment,{children:y.cloneElement(O,Oe({inputComponent:A,inputProps:Oe({children:o,error:I.error,IconComponent:u,variant:D,type:void 0,multiple:g},b?{id:c}:{autoWidth:n,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:v,onOpen:x,open:S,renderValue:E,SelectDisplayProps:Oe({id:c},C)},p,{classes:p?Ca(M,p.classes):M},d?d.props.inputProps:{})},g&&b&&"outlined"===D?{notched:!0}:{},{ref:k,className:Rl(O.props.className,a,L.root)},!d&&{variant:D},R))})}));cp.muiName="Select";var dp=cp,pp=(e={})=>x.createElement(ge,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{stroke:Q.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const fp={MuiAccordion:{styleOverrides:{root:{backgroundColor:Q.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Q.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:x.createElement(fe,{"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 ${Q.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Q.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Q.MISC_FOCUS_BORDER}`,borderRadius:oe,backgroundColor:Q.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 ${Q.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Q.WHITE,color:Q.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:oe},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Q.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Q.GREYSCALE_0_15,backgroundColor:Q.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Q.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Q.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Q.GREEN_PALE},"&:active":{backgroundColor:Q.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Q.GREEN_PALE,boxShadow:`0 0 0 3px ${xa(Q.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Q.BLUE_PALE},"&:active":{backgroundColor:Q.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Q.BLUE_PALE,boxShadow:`0 0 0 3px ${xa(Q.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:oe,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Q.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Q.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Q.GREYSCALE_0_15,backgroundColor:Q.GREYSCALE_100_60,"&:active":{backgroundColor:Q.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Q.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Q.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Q.PURPLE,"&.Mui-focusVisible":{borderColor:Q.PURPLE,boxShadow:`0 0 0 3px ${xa(Q.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Q.GREEN,"&.Mui-focusVisible":{borderColor:Q.GREEN,boxShadow:`0 0 0 3px ${xa(Q.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Q.BLUE,"&.Mui-focusVisible":{borderColor:Q.BLUE,boxShadow:`0 0 0 3px ${xa(Q.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Q.ORANGE,"&.Mui-focusVisible":{borderColor:Q.ORANGE,boxShadow:`0 0 0 3px ${xa(Q.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Q.RED,"&.Mui-focusVisible":{borderColor:Q.RED,boxShadow:`0 0 0 3px ${xa(Q.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Q.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Q.PURPLE_PALE},"&:active":{backgroundColor:Q.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Q.PURPLE_PALE,boxShadow:`0 0 0 3px ${xa(Q.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Q.GREEN_PALE},"&:active":{backgroundColor:Q.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Q.GREEN_PALE,boxShadow:`0 0 0 3px ${xa(Q.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Q.BLUE_PALE},"&:active":{backgroundColor:Q.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Q.BLUE_PALE,boxShadow:`0 0 0 3px ${xa(Q.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Q.ORANGE_PALE},"&:active":{backgroundColor:Q.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Q.ORANGE_PALE,boxShadow:`0 0 0 3px ${xa(Q.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Q.RED_PALE},"&:active":{backgroundColor:Q.RED_DARK},"&.Mui-focusVisible":{borderColor:Q.RED_PALE,boxShadow:`0 0 0 3px ${xa(Q.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:Q.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Q.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:oe,boxShadow:`inset 0 0 0 2px ${Q.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:x.createElement(he,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:ee,borderRadius:oe,color:Q.TEXT_PRIMARY,backgroundColor:Q.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Q.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Q.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:Q.GREYSCALE_0_05,color:Q.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Q.GREEN,borderColor:Q.GREEN},"&.MuiChip-outlinedInfo":{color:Q.BLUE,borderColor:Q.BLUE},"&.MuiChip-outlinedWarning":{color:Q.ORANGE,borderColor:Q.ORANGE},"&.MuiChip-outlinedError":{color:Q.RED,borderColor:Q.RED}},outlined:{border:`solid 1px ${Q.GREYSCALE_0_15}`,backgroundColor:Q.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:oe,boxShadow:"none",backgroundColor:Q.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Q.GREEN,borderColor:Q.GREEN},outlinedSecondary:{color:Q.BLUE,borderColor:Q.BLUE},label:{fontFamily:ue.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:x.createElement(he,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:x.createElement(fe,{"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:oe},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:oe,fontSize:te,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Q.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Q.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Q.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Q.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Q.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:oe,border:`solid 1px ${Q.GREYSCALE_0_15}`,color:Q.GREYSCALE_0_60,marginRight:0,width:ne,height:ne},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Q.GREYSCALE_0_15}`},clearIndicator:{borderRadius:oe,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Q.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:te}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:ee,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Q.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Q.GREYSCALE_25,fontSize:ee,fontFamily:ue.FONT_FAMILY,fontWeight:le,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Q.TEXT_PRIMARY},"&.Mui-error":{color:Q.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Q.TEXT_SECONDARY,content:"'(optional)'",fontWeight:ae,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Q.TEXT_SECONDARY,content:"'(required)'",fontWeight:ae,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:te,lineHeight:"16px",backgroundColor:Q.WHITE,borderRadius:oe,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Q.GREYSCALE_0_05}`,borderColor:Q.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Q.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Q.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Q.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Q.RED}`,boxShadow:`0px 0px 0px 1px ${Q.RED}, inset 0 2px 0 0 ${Q.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Q.GREYSCALE_0_10}`,borderColor:Q.GREYSCALE_0_10,backgroundColor:Q.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Q.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Q.GREYSCALE_0_15,borderRadius:oe,boxShadow:`inset 0 2px 0 0 ${Q.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>x.createElement(fe,{...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:Q.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Q.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Q.GREYSCALE_0_03},"&:active":{backgroundColor:Q.GREYSCALE_0_10},"&:focus":{backgroundColor:Q.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Q.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Q.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Q.GREYSCALE_0_30,"&:hover":{backgroundColor:Q.GREYSCALE_0_0,borderColor:Q.GREYSCALE_0_15},"& ~svg":{color:Q.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Q.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:oe}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Q.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Q.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Q.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:te,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:ee,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:ee,fontWeight:le,color:Q.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:le}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Q.GREYSCALE_0_15}, 0px 0px 0px 1px ${Q.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:x.createElement(ye,null),checkedIcon:x.createElement(xe,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Q.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Q.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Q.GREEN_PALE,boxShadow:`0 0 0 3px ${xa(Q.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Q.BLUE_PALE,boxShadow:`0 0 0 3px ${xa(Q.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Q.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Q.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:x.createElement(pp,null),checkedIcon:x.createElement(be,null),indeterminateIcon:x.createElement(ve,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:oe,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Q.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Q.GREYSCALE_0_55,color:Q.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:Q.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Q.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Q.GREYSCALE_0_55,"&:hover":{color:Q.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:Q.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Q.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:te,color:Q.TEXT_PRIMARY,lineHeight:"16px",fontWeight:le},secondary:{fontSize:ee,color:Q.GREYSCALE_45,fontWeight:ae,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:te,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Q.GREYSCALE_0_03},"&:active":{backgroundColor:Q.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:te,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Q.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:ee,borderBottom:`solid 1px ${Q.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:te,color:Q.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Q.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Q.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Q.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Q.RED}}},"&.Mui-focusVisible":{backgroundColor:Q.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:Q.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:Q.GREEN,height:"24px","&.Mui-disabled":{color:Q.GREYSCALE_0_15}},rail:{backgroundColor:Q.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Q.GREYSCALE_0_05}`,borderRadius:oe,boxShadow:`inset 0px 0px 0px 1px ${Q.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Q.GREYSCALE_0_05}`,borderRadius:oe},thumb:{height:"16px",width:"16px",borderRadius:oe,backgroundColor:Q.WHITE,boxShadow:`0px 1px 2px 0px ${Q.GREYSCALE_0_15}, 0px 0px 0px 1px ${Q.GREYSCALE_0_05}`,"&:hover":{borderRadius:oe,boxShadow:`0 2px 4px 0 ${Q.GREYSCALE_0_30}, 0 0 0 1px ${Q.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Q.GREYSCALE_0_15}, 0 0 0 1px ${Q.GREYSCALE_0_06}, 0 0 0 2px ${Q.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Q.GREYSCALE_0_15}, 0 0 0 1px ${Q.GREYSCALE_0_06}, 0 0 0 2px ${Q.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Q.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Q.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Q.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Q.GREYSCALE_0_15},markLabel:{color:Q.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Q.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Q.WHITE,color:Q.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:Q.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:Q.GREEN_PALE,boxShadow:`0 0 0 3px ${xa(Q.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Q.BLUE_PALE,boxShadow:`0 0 0 3px ${xa(Q.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Q.GREYSCALE_0_15,borderRadius:oe},thumb:{height:"16px",width:"16px",borderRadius:oe,backgroundColor:Q.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:te,fontWeight:le,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Q.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Q.MISC_FOCUS_BORDER}`,backgroundColor:Q.GREYSCALE_0_03,borderRadius:oe},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Q.GREYSCALE_25,"&.Mui-selected":{color:Q.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:te,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${Q.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${Q.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Q.GREYSCALE_85}`,borderRight:`1px solid ${Q.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:le,backgroundColor:Q.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:Q.GREYSCALE_98,borderBottom:`1px solid ${Q.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Q.GREYSCALE_85}`,borderTop:`1px solid ${Q.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Q.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Q.GREYSCALE_0_05,"&:hover":{backgroundColor:Q.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Q.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>x.createElement(Se,{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 ${Q.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:te,borderRadius:oe,padding:"7px 16px",border:`1px solid ${Q.GREYSCALE_0_15}`,backgroundColor:Q.GREYSCALE_100_60,color:Q.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Q.GREYSCALE_0_10,border:`1px solid ${Q.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Q.GREYSCALE_0_03,border:`1px solid ${Q.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Q.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Q.MISC_FOCUS_BORDER}`,border:`1px solid ${Q.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Q.GREYSCALE_25,backgroundColor:Q.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Q.GREYSCALE_0_10,border:`1px solid ${Q.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:ee,height:24,width:24,padding:7},sizeLarge:{fontSize:re,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:te,borderRadius:oe}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:Q.GREYSCALE_20},tooltip:{backgroundColor:Q.GREYSCALE_20,fontSize:ee,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const mp={mode:"light",primary:{light:Q.GREEN_PALE,main:Q.GREEN,dark:Q.GREEN_DARK,contrastText:Q.WHITE},secondary:{light:Q.BLUE_PALE,main:Q.BLUE,dark:Q.BLUE_DARK,contrastText:Q.WHITE},error:{light:Q.RED_PALE,main:Q.RED,dark:Q.RED_DARK,contrastText:Q.WHITE},warning:{light:Q.ORANGE_PALE,main:Q.ORANGE,dark:Q.ORANGE_DARK,contrastText:Q.WHITE},success:{light:Q.GREEN_PALE,main:Q.GREEN,dark:Q.GREEN_DARK,contrastText:Q.WHITE},info:{light:Q.BLUE_PALE,main:Q.BLUE,dark:Q.BLUE_DARK,contrastText:Q.WHITE},text:{primary:Q.TEXT_PRIMARY,secondary:Q.TEXT_SECONDARY,disabled:Q.GREYSCALE_0_30},action:{hover:Q.GREYSCALE_0_03,hoverOpacity:.05,selected:Q.GREYSCALE_0_05,focus:Q.MISC_FOCUS_BORDER},amethyst:{main:Q.PURPLE,light:Q.PURPLE_PALE,dark:Q.PURPLE_DARK,contrastText:Q.WHITE},background:{paper:Q.WHITE,default:Q.GREYSCALE_95},divider:Q.GREYSCALE_0_15},hp=e=>({components:fp,palette:mp,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:te,fontWeightLight:ie,fontWeightRegular:ae,fontWeightMedium:le,fontWeightBold:se,htmlFontSize:te,fontFamily:ue.FONT_FAMILY,button:{fontWeight:le,fontSize:te,textTransform:"none"},body1:{fontSize:re,lineHeight:"24px"},body2:{fontSize:te,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:ne,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:re,fontWeight:le,lineHeight:"16px"},h6:{fontSize:te,fontWeight:le,lineHeight:"16px"},caption:{color:Q.TEXT_SECONDARY},subtitle1:{fontSize:te,color:Q.TEXT_SECONDARY},subtitle2:{fontSize:ee,color:Q.TEXT_SECONDARY}},shape:{borderRadius:oe}}),gp={...Z,MISC_FOCUS_BORDER:Q.MISC_FOCUS_BORDER},bp=hp().palette,vp={TEXT:bp.text.primary,DISABLED:bp.text.disabled,HOVER:bp.action.hover,WHITE:gp.GREYSCALE_100,BORDER_LIGHT:gp.GREYSCALE_90,BORDER_MEDIUM:gp.GREYSCALE_85,BORDER_HEAVY:gp.GREYSCALE_50,DARK_MODE_TEXT:gp.GREYSCALE_95,DARK_MODE_BORDER:gp.GREYSCALE_95,DARK_MODE_DISABLED:gp.GREYSCALE_70,DARK_MODE_BACKGROUND:gp.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:gp.GREYSCALE_95,SELECTED:bp.primary.main};function yp(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function xp(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Sp(){}var Ep=.7,Cp=1/Ep,wp="\\s*([+-]?\\d+)\\s*",Rp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ap="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ip=/^#([0-9a-f]{3,8})$/,Dp=new RegExp(`^rgb\\(${wp},${wp},${wp}\\)$`),Pp=new RegExp(`^rgb\\(${Ap},${Ap},${Ap}\\)$`),Lp=new RegExp(`^rgba\\(${wp},${wp},${wp},${Rp}\\)$`),Mp=new RegExp(`^rgba\\(${Ap},${Ap},${Ap},${Rp}\\)$`),Op=new RegExp(`^hsl\\(${Rp},${Ap},${Ap}\\)$`),kp=new RegExp(`^hsla\\(${Rp},${Ap},${Ap},${Rp}\\)$`),_p={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 Tp(){return this.rgb().formatHex()}function qp(){return this.rgb().formatRgb()}function Np(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Ip.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Fp(t):3===r?new Bp(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?zp(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?zp(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=Dp.exec(e))?new Bp(t[1],t[2],t[3],1):(t=Pp.exec(e))?new Bp(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Lp.exec(e))?zp(t[1],t[2],t[3],t[4]):(t=Mp.exec(e))?zp(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Op.exec(e))?Yp(t[1],t[2]/100,t[3]/100,1):(t=kp.exec(e))?Yp(t[1],t[2]/100,t[3]/100,t[4]):_p.hasOwnProperty(e)?Fp(_p[e]):"transparent"===e?new Bp(NaN,NaN,NaN,0):null}function Fp(e){return new Bp(e>>16&255,e>>8&255,255&e,1)}function zp(e,t,r,n){return n<=0&&(e=t=r=NaN),new Bp(e,t,r,n)}function jp(e){return e instanceof Sp||(e=Np(e)),e?new Bp((e=e.rgb()).r,e.g,e.b,e.opacity):new Bp}function $p(e,t,r,n){return 1===arguments.length?jp(e):new Bp(e,t,r,null==n?1:n)}function Bp(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Hp(){return`#${Up(this.r)}${Up(this.g)}${Up(this.b)}`}function Vp(){const e=Wp(this.opacity);return`${1===e?"rgb(":"rgba("}${Gp(this.r)}, ${Gp(this.g)}, ${Gp(this.b)}${1===e?")":`, ${e})`}`}function Wp(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Gp(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Up(e){return((e=Gp(e))<16?"0":"")+e.toString(16)}function Yp(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Xp(e,t,r,n)}function Kp(e){if(e instanceof Xp)return new Xp(e.h,e.s,e.l,e.opacity);if(e instanceof Sp||(e=Np(e)),!e)return new Xp;if(e instanceof Xp)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,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Xp(a,l,s,e.opacity)}function Xp(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Jp(e){return(e=(e||0)%360)<0?e+360:e}function Zp(e){return Math.max(0,Math.min(1,e||0))}function Qp(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}yp(Sp,Np,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Tp,formatHex:Tp,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Kp(this).formatHsl()},formatRgb:qp,toString:qp}),yp(Bp,$p,xp(Sp,{brighter(e){return e=null==e?Cp:Math.pow(Cp,e),new Bp(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Ep:Math.pow(Ep,e),new Bp(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Bp(Gp(this.r),Gp(this.g),Gp(this.b),Wp(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:Hp,formatHex:Hp,formatHex8:function(){return`#${Up(this.r)}${Up(this.g)}${Up(this.b)}${Up(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Vp,toString:Vp})),yp(Xp,(function(e,t,r,n){return 1===arguments.length?Kp(e):new Xp(e,t,r,null==n?1:n)}),xp(Sp,{brighter(e){return e=null==e?Cp:Math.pow(Cp,e),new Xp(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Ep:Math.pow(Ep,e),new Xp(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 Bp(Qp(e>=240?e-240:e+120,o,n),Qp(e,o,n),Qp(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Xp(Jp(this.h),Zp(this.s),Zp(this.l),Wp(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=Wp(this.opacity);return`${1===e?"hsl(":"hsla("}${Jp(this.h)}, ${100*Zp(this.s)}%, ${100*Zp(this.l)}%${1===e?")":`, ${e})`}`}}));const ef=Math.PI/180,tf=180/Math.PI,rf=.96422,nf=1,of=.82521,af=4/29,lf=6/29,sf=3*lf*lf,uf=lf*lf*lf;function cf(e){if(e instanceof df)return new df(e.l,e.a,e.b,e.opacity);if(e instanceof bf)return vf(e);e instanceof Bp||(e=jp(e));var t,r,n=hf(e.r),o=hf(e.g),i=hf(e.b),a=pf((.2225045*n+.7168786*o+.0606169*i)/nf);return n===o&&o===i?t=r=a:(t=pf((.4360747*n+.3850649*o+.1430804*i)/rf),r=pf((.0139322*n+.0971045*o+.7141733*i)/of)),new df(116*a-16,500*(t-a),200*(a-r),e.opacity)}function df(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function pf(e){return e>uf?Math.pow(e,1/3):e/sf+af}function ff(e){return e>lf?e*e*e:sf*(e-af)}function mf(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function hf(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function gf(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof bf)return new bf(e.h,e.c,e.l,e.opacity);if(e instanceof df||(e=cf(e)),0===e.a&&0===e.b)return new bf(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*tf;return new bf(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new bf(e,t,r,null==n?1:n)}function bf(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function vf(e){if(isNaN(e.h))return new df(e.l,0,0,e.opacity);var t=e.h*ef;return new df(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}yp(df,(function(e,t,r,n){return 1===arguments.length?cf(e):new df(e,t,r,null==n?1:n)}),xp(Sp,{brighter(e){return new df(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new df(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 Bp(mf(3.1338561*(t=rf*ff(t))-1.6168667*(e=nf*ff(e))-.4906146*(r=of*ff(r))),mf(-.9787684*t+1.9161415*e+.033454*r),mf(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),yp(bf,gf,xp(Sp,{brighter(e){return new bf(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new bf(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return vf(this).rgb()}}));const yf=(e,t)=>{const r=gf(e),n=r.l<70;return 0===r.opacity?(r.opacity=t.opacity,r.toString()):n?r.brighter(t.brighter).toString():r.darker(t.darker).toString()},xf={background:vp.SELECTED,color:vp.WHITE},Sf=({theme:e,flags:t})=>{if(!t.isEnabled("PS_22149_THEME_SELECTION_COLORS"))return xf;return{background:e.getStyle("","","dataColors.selected")||xf.background,color:vp.WHITE}},Ef=e=>{if(e){const t=$p(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},Cf=e=>!!e&&0===$p(e).opacity,wf=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,Rf=e=>{const t=wf.exec(e);if(t){const[,e,r,n,o]=t;return $p(+r,+n,+o,+e/255)}return $p(e)},Af=e=>{const t=Rf(e);return Number.isNaN(t.r)?null:t.toString()},If=e=>{if(void 0===e)return;const t=Rf(e);return t.opacity=1,t.toString()},Df=(e,t,r)=>{var n,o,i,a;const l=null!==(n=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==n?n:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,r)},Pf=e=>{e.stopPropagation(),e.preventDefault()},Lf="#grid",Mf=(e,t,r)=>e&&!Cf(e)?e:Cf(t)?r&&!Cf(r)?r:vp.WHITE:t,Of=(e,t)=>{const r=null==t?void 0:t.closest(e);return r&&window.getComputedStyle(r).backgroundColor},kf=(e,t,r,n,o)=>{const i=Of(".qv-object .qv-inner-object",r),a=Of(".qv-panel-sheet",r),l=Of(Lf,r),s=null!=l?l:a,u=(e=>{var t,r,n,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(r=l.bgColor)||void 0===r?void 0:r.colorExpression,u=null==l||null===(n=l.bgColor)||void 0===n||null===(n=n.color)||void 0===n?void 0:n.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return Af(s);if("none"===u)return"transparent";if(void 0===u)return;const c=Rf(u);return c.opacity=null!==(i=null==l||null===(a=l.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:c.opacity,c.toString()})(e),c=null==n?void 0:n(t),d=null==o?void 0:o(t),p=c||i||d,f=Cf(p),m=Ef(f?s:p);return{color:p,headerColor:Mf(u,p,s),isDark:m}},_f=(o,i,a,l)=>{const s=r(),u=((r,n={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[o,i]=e([]);return t((()=>{let e;return r&&(e=new MutationObserver((e=>{i(e)})),e.observe(r,n)),()=>{var t;null===(t=e)||void 0===t||t.disconnect()}}),[r,n]),o})(null==i?void 0:i.closest(Lf),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return n((()=>({...s,background:kf(o,s,i,a,l)})),[s.name(),i,a,l,o,u])};var Tf=Object.prototype.hasOwnProperty,qf=Object.prototype.toString,Nf=Object.defineProperty,Ff=Object.getOwnPropertyDescriptor,zf=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===qf.call(e)},jf=function(e){if(!e||"[object Object]"!==qf.call(e))return!1;var t,r=Tf.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&Tf.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||Tf.call(e,t)},$f=function(e,t){Nf&&"__proto__"===t.name?Nf(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Bf=function(e,t){if("__proto__"===t){if(!Tf.call(e,t))return;if(Ff)return Ff(e,t).value}return e[t]};function Hf(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Vf(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Wf(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,r,n,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(r in t)n=Bf(l,r),l!==(o=Bf(t,r))&&(c&&o&&(jf(o)||(i=zf(o)))?(i?(i=!1,a=n&&zf(n)?n:[]):a=n&&jf(n)?n:{},$f(l,{name:r,newValue:e(c,a,o)})):void 0!==o&&$f(l,{name:r,newValue:o}));return l}));var Gf=1/.7,Uf="\\s*([+-]?\\d+)\\s*",Yf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Kf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Xf=/^#([0-9a-f]{3,8})$/,Jf=new RegExp(`^rgb\\(${Uf},${Uf},${Uf}\\)$`),Zf=new RegExp(`^rgb\\(${Kf},${Kf},${Kf}\\)$`),Qf=new RegExp(`^rgba\\(${Uf},${Uf},${Uf},${Yf}\\)$`),em=new RegExp(`^rgba\\(${Kf},${Kf},${Kf},${Yf}\\)$`),tm=new RegExp(`^hsl\\(${Yf},${Kf},${Kf}\\)$`),rm=new RegExp(`^hsla\\(${Yf},${Kf},${Kf},${Yf}\\)$`),nm={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 om(){return this.rgb().formatHex()}function im(){return this.rgb().formatRgb()}function am(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Xf.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?lm(t):3===r?new dm(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?sm(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?sm(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=Jf.exec(e))?new dm(t[1],t[2],t[3],1):(t=Zf.exec(e))?new dm(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Qf.exec(e))?sm(t[1],t[2],t[3],t[4]):(t=em.exec(e))?sm(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=tm.exec(e))?bm(t[1],t[2]/100,t[3]/100,1):(t=rm.exec(e))?bm(t[1],t[2]/100,t[3]/100,t[4]):nm.hasOwnProperty(e)?lm(nm[e]):"transparent"===e?new dm(NaN,NaN,NaN,0):null}function lm(e){return new dm(e>>16&255,e>>8&255,255&e,1)}function sm(e,t,r,n){return n<=0&&(e=t=r=NaN),new dm(e,t,r,n)}function um(e){return e instanceof Wf||(e=am(e)),e?new dm((e=e.rgb()).r,e.g,e.b,e.opacity):new dm}function cm(e,t,r,n){return 1===arguments.length?um(e):new dm(e,t,r,null==n?1:n)}function dm(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function pm(){return`#${gm(this.r)}${gm(this.g)}${gm(this.b)}`}function fm(){const e=mm(this.opacity);return`${1===e?"rgb(":"rgba("}${hm(this.r)}, ${hm(this.g)}, ${hm(this.b)}${1===e?")":`, ${e})`}`}function mm(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function hm(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function gm(e){return((e=hm(e))<16?"0":"")+e.toString(16)}function bm(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ym(e,t,r,n)}function vm(e){if(e instanceof ym)return new ym(e.h,e.s,e.l,e.opacity);if(e instanceof Wf||(e=am(e)),!e)return new ym;if(e instanceof ym)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,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new ym(a,l,s,e.opacity)}function ym(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function xm(e){return(e=(e||0)%360)<0?e+360:e}function Sm(e){return Math.max(0,Math.min(1,e||0))}function Em(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Hf(Wf,am,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:om,formatHex:om,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return vm(this).formatHsl()},formatRgb:im,toString:im}),Hf(dm,cm,Vf(Wf,{brighter(e){return e=null==e?Gf:Math.pow(Gf,e),new dm(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new dm(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new dm(hm(this.r),hm(this.g),hm(this.b),mm(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:pm,formatHex:pm,formatHex8:function(){return`#${gm(this.r)}${gm(this.g)}${gm(this.b)}${gm(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:fm,toString:fm})),Hf(ym,(function(e,t,r,n){return 1===arguments.length?vm(e):new ym(e,t,r,null==n?1:n)}),Vf(Wf,{brighter(e){return e=null==e?Gf:Math.pow(Gf,e),new ym(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ym(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 dm(Em(e>=240?e-240:e+120,o,n),Em(e,o,n),Em(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new ym(xm(this.h),Sm(this.s),Sm(this.l),mm(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=mm(this.opacity);return`${1===e?"hsl(":"hsla("}${xm(this.h)}, ${100*Sm(this.s)}%, ${100*Sm(this.l)}%${1===e?")":`, ${e})`}`}}));const Cm=Math.PI/180,wm=180/Math.PI,Rm=4/29,Am=6/29,Im=3*Am*Am;function Dm(e){if(e instanceof Pm)return new Pm(e.l,e.a,e.b,e.opacity);if(e instanceof _m)return Tm(e);e instanceof dm||(e=um(e));var t,r,n=km(e.r),o=km(e.g),i=km(e.b),a=Lm((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=Lm((.4360747*n+.3850649*o+.1430804*i)/.96422),r=Lm((.0139322*n+.0971045*o+.7141733*i)/.82521)),new Pm(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Pm(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Lm(e){return e>.008856451679035631?Math.pow(e,1/3):e/Im+Rm}function Mm(e){return e>Am?e*e*e:Im*(e-Rm)}function Om(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function km(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function _m(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Tm(e){if(isNaN(e.h))return new Pm(e.l,0,0,e.opacity);var t=e.h*Cm;return new Pm(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Hf(Pm,(function(e,t,r,n){return 1===arguments.length?Dm(e):new Pm(e,t,r,null==n?1:n)}),Vf(Wf,{brighter(e){return new Pm(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Pm(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 dm(Om(3.1338561*(t=.96422*Mm(t))-1.6168667*(e=1*Mm(e))-.4906146*(r=.82521*Mm(r))),Om(-.9787684*t+1.9161415*e+.033454*r),Om(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Hf(_m,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof _m)return new _m(e.h,e.c,e.l,e.opacity);if(e instanceof Pm||(e=Dm(e)),0===e.a&&0===e.b)return new _m(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*wm;return new _m(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new _m(e,t,r,null==n?1:n)}),Vf(Wf,{brighter(e){return new _m(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new _m(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Tm(this).rgb()}}));var qm,Nm=e=>()=>e;function Fm(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Nm(isNaN(e)?t:e)}function zm(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 jm(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 $m(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Hm)):void 0===t&&(t=Bm);for(var r,n,o,i,a,l=new Gm(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new Gm(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(Wm)}function Bm(e){return e.children}function Hm(e){return Array.isArray(e)?e[1]:null}function Vm(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Wm(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Gm(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){var r=function(e){return 1==(e=+e)?Fm: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):Nm(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=cm(e)).r,(t=cm(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Fm(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),Gm.prototype=$m.prototype={constructor:Gm,count:function(){return this.eachAfter(jm)},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],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,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 $m(this).eachBefore(Vm)},[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)}},qm=function(e){
97
+ `),Ss.rippleVisible,Ds,550,(({theme:e})=>e.transitions.easing.easeInOut),Ss.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Ss.child,Ss.childLeaving,Ps,550,(({theme:e})=>e.transitions.easing.easeInOut),Ss.childPulsate,Ls,(({theme:e})=>e.transitions.easing.easeInOut));var Os=y.forwardRef((function(e,t){const r=vl({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Oe(r,Es),[l,s]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=y.useRef(!1),p=y.useRef(0),f=y.useRef(null),m=y.useRef(null);y.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=y.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;s((e=>[...e,ea.jsx(ks,{classes:{ripple:Rl(o.ripple,Ss.ripple),rippleVisible:Rl(o.rippleVisible,Ss.rippleVisible),ripplePulsate:Rl(o.ripplePulsate,Ss.ripplePulsate),child:Rl(o.child,Ss.child),childLeaving:Rl(o.childLeaving,Ss.childLeaving),childPulsate:Rl(o.childPulsate,Ss.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 l=a?null:m.current,s=l?l.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(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,h]),b=y.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=y.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{v(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return y.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),ea.jsx(Ms,ke({className:Rl(Ss.root,o.root,i),ref:m},a,{children:ea.jsx(us,{component:null,exit:!0,children:l})}))}));function _s(e){return Ya("MuiButtonBase",e)}var Ts=Ka("MuiButtonBase",["root","disabled","focusVisible"]);const qs=["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"],Ns=El("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"},[`&.${Ts.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Fs=y.forwardRef((function(e,t){const r=vl({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:w,onMouseUp:C,onTouchEnd:R,onTouchMove:A,onTouchStart:I,tabIndex:D=0,TouchRippleProps:P,touchRippleRef:L,type:M}=r,k=Oe(r,qs),O=y.useRef(null),_=y.useRef(null),T=Oa(_,L),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=Ha(),[z,$]=y.useState(!1);s&&z&&$(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{$(!0),O.current.focus()}})),[]);const[B,H]=y.useState(!1);y.useEffect((()=>{H(!0)}),[]);const V=B&&!u&&!s;function W(e,t,r=c){return ka((n=>{t&&t(n);return!r&&_.current&&_.current[e](n),!0}))}y.useEffect((()=>{z&&d&&!u&&B&&_.current.pulsate()}),[u,d,z,B]);const G=W("start",E),U=W("stop",h),Y=W("stop",g),K=W("stop",C),X=W("stop",(e=>{z&&e.preventDefault(),w&&w(e)})),J=W("start",I),Z=W("stop",R),Q=W("stop",A),ee=W("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=ka((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),re=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=y.useRef(!1),oe=ka((e=>{d&&!ne.current&&z&&_.current&&" "===e.key&&(ne.current=!0,_.current.stop(e,(()=>{_.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=ka((e=>{d&&" "===e.key&&_.current&&z&&!e.defaultPrevented&&(ne.current=!1,_.current.stop(e,(()=>{_.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(k.href||k.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===M?"button":M,le.disabled=s):(k.href||k.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Oa(t,j,O),ue=ke({},r,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:D,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Lo({root:["root",t&&"disabled",r&&"focusVisible"]},_s,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return ea.jsxs(Ns,ke({as:ae,className:Rl(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:G,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:D,type:M},le,k,{children:[i,V?ea.jsx(Os,ke({ref:T,center:o},P)):null]}))}));var js=Fs;function zs(e){return Ya("MuiTypography",e)}Ka("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const $s=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Bs=El("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${Ca(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>ke({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}))),Hs={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Vs={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Ws=y.forwardRef((function(e,t){const r=vl({props:e,name:"MuiTypography"}),n=(e=>Vs[e]||e)(r.color),o=oa(ke({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=Hs}=o,f=Oe(o,$s),m=ke({},o,{align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||Hs[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Lo({root:["root",i,"inherit"!==e.align&&`align${Ca(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},zs,a)})(m);return ea.jsx(Bs,ke({as:h,ref:t,ownerState:m,className:Rl(g.root,a)},f))}));var Gs=Ws;const Us=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ys(e){const t=[],r=[];return Array.from(e.querySelectorAll(Us)).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 Ks(){return!0}function Xs(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=Ys,isEnabled:a=Ks,open:l}=e,s=y.useRef(!1),u=y.useRef(null),c=y.useRef(null),d=y.useRef(null),p=y.useRef(null),f=y.useRef(!1),m=y.useRef(null),h=ho(t.ref,m),g=y.useRef(null);y.useEffect((()=>{l&&m.current&&(f.current=!r)}),[r,l]),y.useEffect((()=>{if(!l||!m.current)return;const e=uo(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),y.useEffect((()=>{if(!l||!m.current)return;const e=uo(m.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},r=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(r=i(m.current)),r.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.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,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return ea.jsxs(y.Fragment,{children:[ea.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),y.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),ea.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const Js=y.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=y.useState(null),l=ho(y.isValidElement(r)?r.ref:null,t);if(fo((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),fo((()=>{if(i&&!o)return po(t,i),()=>{po(t,null)}}),[t,i,o]),o){if(y.isValidElement(r)){const e={ref:l};return y.cloneElement(r,e)}return ea.jsx(y.Fragment,{children:r})}return ea.jsx(y.Fragment,{children:i?F.createPortal(r,i):i})}));function Zs(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Qs(e){return parseInt(co(e).getComputedStyle(e).paddingRight,10)||0}function eu(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&&Zs(e,o)}))}function tu(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function ru(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=uo(e);return t.body===e?co(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(uo(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Qs(n)+e}px`;const t=uo(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Qs(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=uo(n).body;else{const t=n.parentElement,r=co(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 nu=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&&Zs(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);eu(t,e.mount,e.modalRef,n,!0);const o=tu(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=tu(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=ru(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=tu(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&&Zs(e.modalRef,t),eu(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&&Zs(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function ou(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=nu,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=y.useRef({}),f=y.useRef(null),m=y.useRef(null),h=ho(m,d),[g,b]=y.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:n}),m.current&&(m.current.scrollTop=0)},w=mo((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||uo(f.current).body;o.add(S(),e),m.current&&E()})),C=y.useCallback((()=>o.isTopModal(S())),[o]),R=mo((e=>{f.current=e,e&&(c&&C()?E():m.current&&Zs(m.current,x))})),A=y.useCallback((()=>{o.remove(S(),x)}),[x,o]);y.useEffect((()=>()=>{A()}),[A]),y.useEffect((()=>{c?w():v&&i||A()}),[c,A,v,i,w]);const I=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},D=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=bs(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=z({},r,t);return z({role:"presentation"},n,{onKeyDown:I(n),ref:h})},getBackdropProps:(e={})=>z({"aria-hidden":!0},e,{onClick:D(e),open:c}),getTransitionProps:()=>({onEnter:so((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:so((()=>{b(!0),l&&l(),i&&A()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:R,isTopModal:C,exited:g,hasTransition:v}}const iu=["onChange","maxRows","minRows","style","value"];function au(e){return parseInt(e,10)||0}const lu={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function su(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const uu=y.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,l=K(e,iu),{current:s}=y.useRef(null!=a),u=y.useRef(null),c=ho(t,u),d=y.useRef(null),p=y.useRef(0),[f,m]=y.useState({outerHeightStyle:0}),h=y.useCallback((()=>{const t=u.current,r=co(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0};const i=d.current;i.style.width=r.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=r.boxSizing,l=au(r.paddingBottom)+au(r.paddingTop),s=au(r.borderBottomWidth)+au(r.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),n&&(f=Math.min(Number(n)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[n,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:r,overflow:n}=t;return p.current<20&&(r>0&&Math.abs((e.outerHeightStyle||0)-r)>1||e.overflow!==n)?(p.current+=1,{overflow:n,outerHeightStyle:r}):e},b=y.useCallback((()=>{const e=h();su(e)||m((t=>g(t,e)))}),[h]);fo((()=>{const e=()=>{p.current=0,(()=>{const e=h();su(e)||F.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}(e),r=u.current,n=co(r);let o;return n.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(r)),()=>{t.clear(),cancelAnimationFrame(undefined),n.removeEventListener("resize",t),o&&o.disconnect()}}),[h]),fo((()=>{b()})),y.useEffect((()=>{p.current=0}),[a]);return ea.jsxs(y.Fragment,{children:[ea.jsx("textarea",z({value:a,onChange:e=>{p.current=0,s||b(),r&&r(e)},ref:c,rows:o,style:z({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),ea.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:z({},lu,i,{paddingTop:0,paddingBottom:0})})]})}));function cu({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)),{})}var du=y.createContext(void 0);function pu(){return y.useContext(du)}function fu(e){return ea.jsx(ta,ke({},e,{defaultTheme:gl,themeId:Me}))}function mu(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function hu(e,t=!1){return e&&(mu(e.value)&&""!==e.value||t&&mu(e.defaultValue)&&""!==e.defaultValue)}function gu(e){return Ya("MuiInputBase",e)}var bu=Ka("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const vu=["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"],yu=(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${Ca(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},xu=(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]},Su=El("div",{name:"MuiInputBase",slot:"Root",overridesResolver:yu})((({theme:e,ownerState:t})=>ke({},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",[`&.${bu.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&ke({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Eu=El("input",{name:"MuiInputBase",slot:"Input",overridesResolver:xu})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=ke({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 ke({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] + .${bu.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},[`&.${bu.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"})})),wu=ea.jsx(fu,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Cu=y.forwardRef((function(e,t){var r;const n=vl({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:x,minRows:S,multiline:E=!1,name:w,onBlur:C,onChange:R,onClick:A,onFocus:I,onKeyDown:D,onKeyUp:P,placeholder:L,readOnly:M,renderSuffix:k,rows:O,slotProps:_={},slots:T={},startAdornment:q,type:N="text",value:F}=n,j=Oe(n,vu),z=null!=b.value?b.value:F,{current:$}=y.useRef(null!=z),B=y.useRef(),H=y.useCallback((e=>{}),[]),V=Oa(B,v,b.ref,H),[W,G]=y.useState(!1),U=pu(),Y=cu({props:n,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:W,y.useEffect((()=>{!U&&d&&W&&(G(!1),C&&C())}),[U,d,W,C]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=y.useCallback((e=>{hu(e)?K&&K():X&&X()}),[K,X]);Ia((()=>{$&&J({value:z})}),[z,J,$]);y.useEffect((()=>{J(B.current)}),[]);let Z=g,Q=b;E&&"input"===Z&&(Q=ke(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:x,minRows:S},Q),Z=uu);y.useEffect((()=>{U&&U.setAdornedStart(Boolean(q))}),[U,q]);const ee=ke({},n,{color:Y.color||"primary",disabled:Y.disabled,endAdornment:f,error:Y.error,focused:Y.focused,formControl:U,fullWidth:m,hiddenLabel:Y.hiddenLabel,multiline:E,size:Y.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return Lo({root:["root",`color${Ca(r)}`,n&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${Ca(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},gu,t)})(ee),re=T.root||s.Root||Su,ne=_.root||u.root||{},oe=T.input||s.Input||Eu;return Q=ke({},Q,null!=(r=_.input)?r:u.input),ea.jsxs(y.Fragment,{children:[!p&&wu,ea.jsxs(re,ke({},ne,!gs(re)&&{ownerState:ke({},ee,ne.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),A&&A(e)}},j,{className:Rl(te.root,ne.className,l,M&&"MuiInputBase-readOnly"),children:[q,ea.jsx(du.Provider,{value:null,children:ea.jsx(oe,ke({ownerState:ee,"aria-invalid":Y.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:Y.disabled,id:h,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:w,placeholder:L,readOnly:M,required:Y.required,rows:O,value:z,onKeyDown:D,onKeyUp:P,type:N},Q,!gs(oe)&&{as:Z,ownerState:ke({},ee,Q.ownerState)},{ref:V,className:Rl(te.input,Q.className,M&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),b.onBlur&&b.onBlur(e),U&&U.onBlur?U.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||B.current;if(null==t)throw new Error(Le(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(I&&I(e),b.onFocus&&b.onFocus(e),U&&U.onFocus?U.onFocus(e):G(!0))}}))}),f,k?k(ke({},Y,{startAdornment:q})):null]}))]})}));var Ru=Cu;function Au(e){return Ya("MuiInput",e)}var Iu=ke({},bu,Ka("MuiInput",["root","underline","input"]));function Du(e){return Ya("MuiOutlinedInput",e)}var Pu=ke({},bu,Ka("MuiOutlinedInput",["root","notchedOutline","input"]));function Lu(e){return Ya("MuiFilledInput",e)}var Mu=ke({},bu,Ka("MuiFilledInput",["root","underline","input"])),ku=function(e,t){function r(r,n){return ea.jsx(Ll,ke({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=Ll.muiName,y.memo(y.forwardRef(r))}(ea.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Ou=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],_u={entering:{opacity:1},entered:{opacity:1}},Tu=y.forwardRef((function(e,t){const r=bl(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=n,TransitionComponent:b=ns}=e,v=Oe(e,Ou),x=y.useRef(null),S=Oa(x,a.ref,t),E=e=>t=>{if(e){const r=x.current;void 0===t?e(r):e(r,t)}},w=E(d),C=E(((e,t)=>{cs(e);const n=ds({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),u&&u(e,t)})),R=E(c),A=E(m),I=E((e=>{const t=ds({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)})),D=E(f);return ea.jsx(b,ke({appear:i,in:s,nodeRef:x,onEnter:C,onEntered:R,onEntering:w,onExit:I,onExited:D,onExiting:A,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,ke({style:ke({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},_u[e],h,a.props.style),ref:S},t))}))}));var qu=Tu;function Nu(e){return Ya("MuiBackdrop",e)}Ka("MuiBackdrop",["root","invisible"]);const Fu=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ju=El("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>ke({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"}))),zu=y.forwardRef((function(e,t){var r,n,o;const i=vl({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=qu,transitionDuration:g}=i,b=Oe(i,Fu),v=ke({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Lo({root:["root",r&&"invisible"]},Nu,t)})(v),x=null!=(r=f.root)?r:c.root;return ea.jsx(h,ke({in:p,timeout:g},b,{children:ea.jsx(ju,ke({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:s,className:Rl(y.root,l,null==x?void 0:x.className),ownerState:ke({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var $u=zu;var Bu=Ka("MuiBox",["root"]);const Hu=hl(),Vu=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Pn("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Fi);return y.forwardRef((function(e,a){const l=Vi(r),s=oa(e),{className:u,component:c="div"}=s,d=K(s,ia);return ea.jsx(i,z({as:c,ref:a,className:jo(u,o?o(n):n),theme:t&&l[t]||l},d))}))}({themeId:Me,defaultTheme:Hu,defaultClassName:Bu.root,generateClassName:Ga.generate});var Wu=Vu;function Gu(e){return Ya("MuiButton",e)}var Uu=Ka("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var Yu=y.createContext({});var Ku=y.createContext(void 0);const Xu=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ju=e=>ke({},"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}}),Zu=El(js,{shouldForwardProp:e=>yl(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Ca(r.color)}`],t[`size${Ca(r.size)}`],t[`${r.variant}Size${Ca(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 ke({},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":ke({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:xa(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})`:xa(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})`:xa(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":ke({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Uu.focusVisible}`]:ke({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Uu.disabled}`]:ke({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 ${xa(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"},[`&.${Uu.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Uu.disabled}`]:{boxShadow:"none"}})),Qu=El("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Ca(r.size)}`]]}})((({ownerState:e})=>ke({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Ju(e)))),ec=El("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Ca(r.size)}`]]}})((({ownerState:e})=>ke({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Ju(e)))),tc=y.forwardRef((function(e,t){const r=y.useContext(Yu),n=y.useContext(Ku),o=vl({props:Va(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:b,variant:v="text"}=o,x=Oe(o,Xu),S=ke({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:b,variant:v}),E=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return ke({},a,Lo({root:["root",i,`${i}${Ca(t)}`,`size${Ca(o)}`,`${i}Size${Ca(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Ca(o)}`],endIcon:["endIcon",`iconSize${Ca(o)}`]},Gu,a))})(S),w=g&&ea.jsx(Qu,{className:E.startIcon,ownerState:S,children:g}),C=p&&ea.jsx(ec,{className:E.endIcon,ownerState:S,children:p}),R=n||"";return ea.jsxs(Zu,ke({ownerState:S,className:Rl(r.className,E.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:Rl(E.focusVisible,f),ref:t,type:b},x,{classes:E,children:[w,i,C]}))}));var rc=tc;function nc(e){return Ya("MuiModal",e)}Ka("MuiModal",["root","hidden","backdrop"]);const oc=["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"],ic=El("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})=>ke({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),ac=El($u,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),lc=y.forwardRef((function(e,t){var r,n,o,i,a,l;const s=vl({name:"MuiModal",props:e}),{BackdropComponent:u=ac,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:w=!1,disableScrollLock:C=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:I,open:D,slotProps:P,slots:L}=s,M=Oe(s,oc),k=ke({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:R,keepMounted:A}),{getRootProps:O,getBackdropProps:_,getTransitionProps:T,portalRef:q,isTopModal:N,exited:F,hasTransition:j}=ou(ke({},k,{rootRef:t})),z=ke({},k,{exited:F}),$=(e=>{const{open:t,exited:r,classes:n}=e;return Lo({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},nc,n)})(z),B={};if(void 0===f.props.tabIndex&&(B.tabIndex="-1"),j){const{onEnter:e,onExited:t}=T();B.onEnter=e,B.onExited=t}const H=null!=(r=null!=(n=null==L?void 0:L.root)?n:g.Root)?r:ic,V=null!=(o=null!=(i=null==L?void 0:L.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==P?void 0:P.root)?a:b.root,G=null!=(l=null==P?void 0:P.backdrop)?l:b.backdrop,U=xs({elementType:H,externalSlotProps:W,externalForwardedProps:M,getSlotProps:O,additionalProps:{ref:t,as:h},ownerState:z,className:Rl(d,null==W?void 0:W.className,null==$?void 0:$.root,!z.open&&z.exited&&(null==$?void 0:$.hidden))}),Y=xs({elementType:V,externalSlotProps:G,additionalProps:c,getSlotProps:e=>_(ke({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Rl(null==G?void 0:G.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:z});return A||D||j&&!F?ea.jsx(Js,{ref:q,container:m,disablePortal:E,children:ea.jsxs(H,ke({},U,{children:[!R&&u?ea.jsx(V,ke({},Y)):null,ea.jsx(Xs,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:w,isEnabled:N,open:D,children:y.cloneElement(f,B)})]}))}):null}));var sc=lc;function uc(e){return Ya("MuiDivider",e)}var cc=Ka("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const dc=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],pc=El("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})=>ke({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)`:xa(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})=>ke({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>ke({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>ke({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>ke({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),fc=El("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>ke({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)`}))),mc=y.forwardRef((function(e,t){const r=vl({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=Oe(r,dc),m=ke({},r,{absolute:n,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return Lo({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},uc,n)})(m);return ea.jsx(pc,ke({as:a,className:Rl(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?ea.jsx(fc,{className:h.wrapper,ownerState:m,children:o}):null}))}));mc.muiSkipListHighlight=!0;var hc=mc;const gc=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],bc=El(Su,{shouldForwardProp:e=>yl(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...yu(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)",l=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return ke({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}},[`&.${Mu.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Mu.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!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"},[`&.${Mu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Mu.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(.${Mu.disabled}, .${Mu.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Mu.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&ke({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}))})),vc=El(Eu,{name:"MuiFilledInput",slot:"Input",overridesResolver:xu})((({theme:e,ownerState:t})=>ke({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}))),yc=y.forwardRef((function(e,t){var r,n,o,i;const a=vl({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=Oe(a,gc),g=ke({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:r}=e;return ke({},t,Lo({root:["root",!r&&"underline"],input:["input"]},Lu,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?wa(v,null!=p?p:s):v,x=null!=(r=null!=(n=f.root)?n:l.Root)?r:bc,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:vc;return ea.jsx(Ru,ke({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));yc.muiName="Input";var xc=yc;const Sc=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ec(e){return`scale(${e}, ${e**2})`}const wc={entering:{opacity:1,transform:Ec(1)},entered:{opacity:1,transform:"none"}},Cc="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Rc=y.forwardRef((function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=ns}=e,g=Oe(e,Sc),b=y.useRef(),v=y.useRef(),x=bl(),S=y.useRef(null),E=Oa(S,o.ref,t),w=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},C=w(u),R=w(((e,t)=>{cs(e);const{duration:r,delay:n,easing:o}=ds({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(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:Cc?a:.666*a,delay:n,easing:o})].join(","),l&&l(e,t)})),A=w(s),I=w(p),D=w((e=>{const{duration:t,delay:r,easing:n}=ds({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(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:Cc?o:.666*o,delay:Cc?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Ec(.75),c&&c(e)})),P=w(d);return y.useEffect((()=>()=>{clearTimeout(b.current)}),[]),ea.jsx(h,ke({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:A,onEntering:C,onExit:D,onExited:P,onExiting:I,addEndListener:e=>{"auto"===m&&(b.current=setTimeout(e,v.current||0)),r&&r(S.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>y.cloneElement(o,ke({style:ke({opacity:0,transform:Ec(.75),visibility:"exited"!==e||a?void 0:"hidden"},wc[e],f,o.props.style),ref:E},t))}))}));Rc.muiSupportAuto=!0;var Ac=Rc;const Ic=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Dc=El(Su,{shouldForwardProp:e=>yl(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...yu(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})`),ke({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"},[`&.${Iu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Iu.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(.${Iu.disabled}, .${Iu.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Iu.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Pc=El(Eu,{name:"MuiInput",slot:"Input",overridesResolver:xu})({}),Lc=y.forwardRef((function(e,t){var r,n,o,i;const a=vl({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=Oe(a,Ic),b=(e=>{const{classes:t,disableUnderline:r}=e;return ke({},t,Lo({root:["root",!r&&"underline"],input:["input"]},Au,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?wa(null!=f?f:u,v):v,x=null!=(r=null!=(n=m.root)?n:s.Root)?r:Dc,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:Pc;return ea.jsx(Ru,ke({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));Lc.muiName="Input";var Mc=Lc;function kc(e){return Ya("MuiLink",e)}var Oc=Ka("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const _c={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var Tc=({theme:e,ownerState:t})=>{const r=(e=>_c[e]||e)(t.color),n=Uo(e,`palette.${r}`,!1)||t.color,o=Uo(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:xa(n,.4)};const qc=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Nc=El(Gs,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Ca(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>ke({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&ke({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Tc({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"},[`&.${Oc.focusVisible}`]:{outline:"auto"}}))),Fc=y.forwardRef((function(e,t){const r=vl({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=r,p=Oe(r,qc),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=Ha(),[b,v]=y.useState(!1),x=Oa(t,g),S=ke({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return Lo({root:["root",`underline${Ca(o)}`,"button"===r&&"button",n&&"focusVisible"]},kc,t)})(S);return ea.jsx(Nc,ke({color:o,className:Rl(E.root,n),classes:s,component:i,onBlur:e=>{m(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{h(e),!0===f.current&&v(!0),l&&l(e)},ref:x,ownerState:S,variant:c,sx:[...Object.keys(_c).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var jc=Fc;var zc=y.createContext({});function $c(e){return Ya("MuiList",e)}Ka("MuiList",["root","padding","dense","subheader"]);const Bc=["children","className","component","dense","disablePadding","subheader"],Hc=El("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})=>ke({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var Vc=y.forwardRef((function(e,t){const r=vl({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=r,u=Oe(r,Bc),c=y.useMemo((()=>({dense:a})),[a]),d=ke({},r,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Lo({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},$c,t)})(d);return ea.jsx(zc.Provider,{value:c,children:ea.jsxs(Hc,ke({as:i,className:Rl(p.root,o),ref:t,ownerState:d},u,{children:[s,n]}))})}));function Wc(e){return Ya("MuiListItemIcon",e)}var Gc=Ka("MuiListItemIcon",["root","alignItemsFlexStart"]);const Uc=["className"],Yc=El("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})=>ke({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var Kc=y.forwardRef((function(e,t){const r=vl({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Oe(r,Uc),i=ke({},r,{alignItems:y.useContext(zc).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Lo({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Wc,r)})(i);return ea.jsx(Yc,ke({className:Rl(a.root,n),ownerState:i,ref:t},o))}));var Xc=Ka("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const Jc=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Zc(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Qc(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function ed(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 td(e,t,r,n,o,i){let a=!1,l=o(e,t,!!t&&r);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!n&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&ed(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}var rd=y.forwardRef((function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Oe(e,Jc),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ia((()=>{n&&p.current.focus()}),[n]),y.useImperativeHandle(r,(()=>({adjustStyleForScrollbar:(e,t)=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(Ra(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const m=Oa(p,t);let h=-1;y.Children.forEach(i,((e,t)=>{y.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=y.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),y.cloneElement(e,t)}return e}));return ea.jsx(Vc,ke({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=Ra(t).activeElement;if("ArrowDown"===r)e.preventDefault(),td(t,n,s,l,Zc);else if("ArrowUp"===r)e.preventDefault(),td(t,n,s,l,Qc);else if("Home"===r)e.preventDefault(),td(t,null,s,l,Zc);else if("End"===r)e.preventDefault(),td(t,null,s,l,Qc);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 s=n&&!o.repeating&&ed(n,o);o.previousKeyMatched&&(s||td(t,n,!1,l,Zc,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function nd(e){return Ya("MuiPopover",e)}Ka("MuiPopover",["root","paper"]);const od=["onEntering"],id=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],ad=["slotProps"];function ld(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function sd(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function ud(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function cd(e){return"function"==typeof e?e():e}const dd=El(sc,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),pd=El(hs,{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});var fd=y.forwardRef((function(e,t){var r,n,o;const i=vl({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:b={},slots:v,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=Ac,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:R=!1}=i,A=Oe(i.TransitionProps,od),I=Oe(i,id),D=null!=(r=null==x?void 0:x.paper)?r:b,P=y.useRef(),L=Oa(P,D.ref),M=ke({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:D,transformOrigin:S,TransitionComponent:E,transitionDuration:w,TransitionProps:A}),k=(e=>{const{classes:t}=e;return Lo({root:["root"],paper:["paper"]},nd,t)})(M),O=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=cd(l),t=(e&&1===e.nodeType?e:Ra(P.current).body).getBoundingClientRect();return{top:t.top+ld(t,s.vertical),left:t.left+sd(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),_=y.useCallback((e=>({vertical:ld(e,S.vertical),horizontal:sd(e,S.horizontal)})),[S.horizontal,S.vertical]),T=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=_(t);if("none"===c)return{top:null,left:null,transformOrigin:ud(r)};const n=O();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,s=i+t.width,u=Aa(cd(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,r.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,r.horizontal+=e}else if(s>p){const e=s-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:ud(r)}}),[l,c,O,_,h]),[q,N]=y.useState(g),F=y.useCallback((()=>{const e=P.current;if(!e)return;const t=T(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[T]);y.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);y.useEffect((()=>{g&&F()})),y.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),y.useEffect((()=>{if(!g)return;const e=function(e,t=166){let r;function n(...n){clearTimeout(r),r=setTimeout((()=>{e.apply(this,n)}),t)}return n.clear=()=>{clearTimeout(r)},n}((()=>{F()})),t=Aa(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let j=w;"auto"!==w||E.muiSupportAuto||(j=void 0);const z=f||(l?Ra(cd(l)).body:void 0),$=null!=(n=null==v?void 0:v.root)?n:dd,B=null!=(o=null==v?void 0:v.paper)?o:pd,H=xs({elementType:B,externalSlotProps:ke({},D,{style:q?D.style:ke({},D.style,{opacity:0})}),additionalProps:{elevation:m,ref:L},ownerState:M,className:Rl(k.paper,null==D?void 0:D.className)}),V=xs({elementType:$,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:I,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:M,className:Rl(k.root,p)}),{slotProps:W}=V,G=Oe(V,ad);return ea.jsx($,ke({},G,!gs($)&&{slotProps:W,disableScrollLock:R},{children:ea.jsx(E,ke({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),F()},onExited:()=>{N(!1)},timeout:j},A,{children:ea.jsx(B,ke({},H,{children:d}))}))}))}));function md(e){return Ya("MuiMenu",e)}Ka("MuiMenu",["root","paper","list"]);const hd=["onEntering"],gd=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],bd={vertical:"top",horizontal:"right"},vd={vertical:"top",horizontal:"left"},yd=El(fd,{shouldForwardProp:e=>yl(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xd=El(pd,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Sd=El(rd,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var Ed=y.forwardRef((function(e,t){var r,n;const o=vl({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,x=Oe(o.TransitionProps,hd),S=Oe(o,gd),E=bl(),w="rtl"===E.direction,C=ke({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:x,variant:g}),R=(e=>{const{classes:t}=e;return Lo({root:["root"],paper:["paper"],list:["list"]},md,t)})(C),A=i&&!s&&d,I=y.useRef(null);let D=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===D)&&(D=t))}));const P=null!=(r=b.paper)?r:xd,L=null!=(n=v.paper)?n:p,M=xs({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[R.root,l]}),k=xs({elementType:P,externalSlotProps:L,ownerState:C,className:R.paper});return ea.jsx(yd,ke({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?bd:vd,slots:{paper:P,root:b.root},slotProps:{root:M,paper:k},open:d,ref:t,transitionDuration:m,TransitionProps:ke({onEntering:(e,t)=>{I.current&&I.current.adjustStyleForScrollbar(e,E),h&&h(e,t)}},x),ownerState:C},S,{classes:f,children:ea.jsx(Sd,ke({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:I,autoFocus:i&&(-1===D||s),autoFocusItem:A,variant:g},u,{className:Rl(R.list,u.className),children:a}))}))}));function wd(e){return Ya("MuiMenuItem",e)}var Cd=Ka("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const Rd=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Ad=El(js,{shouldForwardProp:e=>yl(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})=>ke({},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"}},[`&.${Cd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:xa(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Cd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:xa(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Cd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:xa(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})`:xa(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Cd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Cd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${cc.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${cc.inset}`]:{marginLeft:52},[`& .${Xc.root}`]:{marginTop:0,marginBottom:0},[`& .${Xc.inset}`]:{paddingLeft:36},[`& .${Gc.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&ke({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Gc.root} svg`]:{fontSize:"1.25rem"}}))));var Id=y.forwardRef((function(e,t){const r=vl({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=r,p=Oe(r,Rd),f=y.useContext(zc),m=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=y.useRef(null);Ia((()=>{n&&h.current&&h.current.focus()}),[n]);const g=ke({},r,{dense:m.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return ke({},a,Lo({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},wd,a))})(r),v=Oa(h,t);let x;return r.disabled||(x=void 0!==c?c:-1),ea.jsx(zc.Provider,{value:m,children:ea.jsx(Ad,ke({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:Rl(b.focusVisible,s),className:Rl(b.root,d)},p,{ownerState:g,classes:b}))})}));function Dd(e){return Ya("MuiNativeSelect",e)}var Pd=Ka("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Ld=["className","disabled","error","IconComponent","inputRef","variant"],Md=({ownerState:e,theme:t})=>ke({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":ke({},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"},[`&.${Pd.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}}),kd=El("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:yl,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Pd.multiple}`]:t.multiple}]}})(Md),Od=({ownerState:e,theme:t})=>ke({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Pd.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),_d=El("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Ca(r.variant)}`],r.open&&t.iconOpen]}})(Od),Td=y.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=Oe(e,Ld),u=ke({},e,{disabled:n,variant:l,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Lo({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Ca(r)}`,i&&"iconOpen",n&&"disabled"]},Dd,t)})(u);return ea.jsxs(y.Fragment,{children:[ea.jsx(kd,ke({ownerState:u,className:Rl(c.select,r),disabled:n,ref:a||t},s)),e.multiple?null:ea.jsx(_d,{as:i,ownerState:u,className:c.icon})]})}));var qd,Nd=Td;const Fd=["children","classes","className","label","notched"],jd=El("fieldset",{shouldForwardProp:yl})({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%"}),zd=El("legend",{shouldForwardProp:yl})((({ownerState:e,theme:t})=>ke({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&&ke({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 $d=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Bd=El(Su,{shouldForwardProp:e=>yl(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:yu})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return ke({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Pu.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Pu.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Pu.focused} .${Pu.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Pu.error} .${Pu.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Pu.disabled} .${Pu.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&ke({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Hd=El((function(e){const{className:t,label:r,notched:n}=e,o=Oe(e,Fd),i=null!=r&&""!==r,a=ke({},e,{notched:n,withLabel:i});return ea.jsx(jd,ke({"aria-hidden":!0,className:t,ownerState:a},o,{children:ea.jsx(zd,{ownerState:a,children:i?ea.jsx("span",{children:r}):qd||(qd=ea.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}})),Vd=El(Eu,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:xu})((({theme:e,ownerState:t})=>ke({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}))),Wd=y.forwardRef((function(e,t){var r,n,o,i,a;const l=vl({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=l,g=Oe(l,$d),b=(e=>{const{classes:t}=e;return ke({},t,Lo({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Du,t))})(l),v=pu(),x=cu({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=ke({},l,{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:h}),E=null!=(r=null!=(n=m.root)?n:s.Root)?r:Bd,w=null!=(o=null!=(i=m.input)?i:s.Input)?o:Vd;return ea.jsx(Ru,ke({slots:{root:E,input:w},renderSuffix:e=>ea.jsx(Hd,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=ea.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:h},g,{classes:ke({},b,{notchedOutline:null})}))}));Wd.muiName="Input";var Gd=Wd;function Ud(e){return Ya("MuiSelect",e)}var Yd,Kd=Ka("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Xd=["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"],Jd=El("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Kd.select}`]:t.select},{[`&.${Kd.select}`]:t[r.variant]},{[`&.${Kd.error}`]:t.error},{[`&.${Kd.multiple}`]:t.multiple}]}})(Md,{[`&.${Kd.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Zd=El("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Ca(r.variant)}`],r.open&&t.iconOpen]}})(Od),Qd=El("input",{shouldForwardProp:e=>xl(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 ep(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function tp(e){return null==e||"string"==typeof e&&!e.trim()}const rp=y.forwardRef((function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:b={},multiple:v,name:x,onBlur:S,onChange:E,onClose:w,onFocus:C,onOpen:R,open:A,readOnly:I,renderValue:D,SelectDisplayProps:P={},tabIndex:L,value:M,variant:k="standard"}=e,O=Oe(e,Xd),[_,T]=Ma({controlled:M,default:c,name:"Select"}),[q,N]=Ma({controlled:A,default:u,name:"Select"}),F=y.useRef(null),j=y.useRef(null),[z,$]=y.useState(null),{current:B}=y.useRef(null!=A),[H,V]=y.useState(),W=Oa(t,h),G=y.useCallback((e=>{j.current=e,e&&$(e)}),[]),U=null==z?void 0:z.parentNode;y.useImperativeHandle(W,(()=>({focus:()=>{j.current.focus()},node:F.current,value:_})),[_]),y.useEffect((()=>{u&&q&&z&&!B&&(V(a?null:U.clientWidth),j.current.focus())}),[z,a]),y.useEffect((()=>{i&&j.current.focus()}),[i]),y.useEffect((()=>{if(!g)return;const e=Ra(j.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&j.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const Y=(e,t)=>{e?R&&R(t):w&&w(t),B||(V(a?null:U.clientWidth),N(e))},K=y.Children.toArray(l),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(v){r=Array.isArray(_)?_.slice():[];const t=_.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),_!==r&&(T(r),E)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:x}}),E(o,e)}v||Y(!1,t)}},J=null!==z&&q;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(hu({value:_})||p)&&(D?Z=D(_):te=!0);const re=K.map((e=>{if(!y.isValidElement(e))return null;let t;if(v){if(!Array.isArray(_))throw new Error(Le(2));t=_.some((t=>ep(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=ep(_,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=H;!a&&B&&z&&(oe=U.clientWidth),ne=void 0!==L?L:d?null:0;const ie=P.id||(x?`mui-component-select-${x}`:void 0),ae=ke({},e,{variant:k,value:_,open:J,error:f}),le=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Lo({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Ca(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},Ud,t)})(ae),se=ke({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=La();return ea.jsxs(y.Fragment,{children:[ea.jsx(Jd,ke({ref:G,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!I){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||I?null:e=>{0===e.button&&(e.preventDefault(),j.current.focus(),Y(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:_,name:x}}),S(e))},onFocus:C},P,{ownerState:ae,className:Rl(P.className,le.select,s),id:ie,children:tp(Z)?Yd||(Yd=ea.jsx("span",{className:"notranslate",children:"​"})):Z})),ea.jsx(Qd,ke({"aria-invalid":f,value:Array.isArray(_)?_.join(","):_,name:x,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(T(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},O)),ea.jsx(Zd,{as:m,className:le.icon,ownerState:ae}),ea.jsx(Ed,ke({id:`menu-${x||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:ke({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:ke({},b.slotProps,{paper:ke({},se,{style:ke({minWidth:oe},null!=se?se.style:null)})}),children:re}))]})}));var np=rp;const op=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],ip=["root"],ap={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>yl(e)&&"variant"!==e,slot:"Root"},lp=El(Mc,ap)(""),sp=El(Gd,ap)(""),up=El(xc,ap)(""),cp=y.forwardRef((function(e,t){const r=vl({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=ku,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:b=!1,onClose:v,onOpen:x,open:S,renderValue:E,SelectDisplayProps:w,variant:C="outlined"}=r,R=Oe(r,op),A=b?Nd:np,I=cu({props:r,muiFormControl:pu(),states:["variant","error"]}),D=I.variant||C,P=ke({},r,{variant:D,classes:i}),L=(e=>{const{classes:t}=e;return t})(P),M=Oe(L,ip),k=d||{standard:ea.jsx(lp,{ownerState:P}),outlined:ea.jsx(sp,{label:f,ownerState:P}),filled:ea.jsx(up,{ownerState:P})}[D],O=Oa(t,k.ref);return ea.jsx(y.Fragment,{children:y.cloneElement(k,ke({inputComponent:A,inputProps:ke({children:o,error:I.error,IconComponent:u,variant:D,type:void 0,multiple:g},b?{id:c}:{autoWidth:n,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:v,onOpen:x,open:S,renderValue:E,SelectDisplayProps:ke({id:c},w)},p,{classes:p?wa(M,p.classes):M},d?d.props.inputProps:{})},g&&b&&"outlined"===D?{notched:!0}:{},{ref:O,className:Rl(k.props.className,a,L.root)},!d&&{variant:D},R))})}));cp.muiName="Select";var dp=cp,pp=(e={})=>x.createElement(ge,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{stroke:Q.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const fp={MuiAccordion:{styleOverrides:{root:{backgroundColor:Q.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Q.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:x.createElement(fe,{"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 ${Q.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Q.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Q.MISC_FOCUS_BORDER}`,borderRadius:oe,backgroundColor:Q.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 ${Q.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Q.WHITE,color:Q.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:oe},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Q.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Q.GREYSCALE_0_15,backgroundColor:Q.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Q.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Q.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Q.GREEN_PALE},"&:active":{backgroundColor:Q.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Q.GREEN_PALE,boxShadow:`0 0 0 3px ${xa(Q.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Q.BLUE_PALE},"&:active":{backgroundColor:Q.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Q.BLUE_PALE,boxShadow:`0 0 0 3px ${xa(Q.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:oe,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Q.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Q.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Q.GREYSCALE_0_15,backgroundColor:Q.GREYSCALE_100_60,"&:active":{backgroundColor:Q.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Q.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Q.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Q.PURPLE,"&.Mui-focusVisible":{borderColor:Q.PURPLE,boxShadow:`0 0 0 3px ${xa(Q.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Q.GREEN,"&.Mui-focusVisible":{borderColor:Q.GREEN,boxShadow:`0 0 0 3px ${xa(Q.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Q.BLUE,"&.Mui-focusVisible":{borderColor:Q.BLUE,boxShadow:`0 0 0 3px ${xa(Q.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Q.ORANGE,"&.Mui-focusVisible":{borderColor:Q.ORANGE,boxShadow:`0 0 0 3px ${xa(Q.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Q.RED,"&.Mui-focusVisible":{borderColor:Q.RED,boxShadow:`0 0 0 3px ${xa(Q.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Q.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Q.PURPLE_PALE},"&:active":{backgroundColor:Q.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Q.PURPLE_PALE,boxShadow:`0 0 0 3px ${xa(Q.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Q.GREEN_PALE},"&:active":{backgroundColor:Q.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Q.GREEN_PALE,boxShadow:`0 0 0 3px ${xa(Q.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Q.BLUE_PALE},"&:active":{backgroundColor:Q.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Q.BLUE_PALE,boxShadow:`0 0 0 3px ${xa(Q.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Q.ORANGE_PALE},"&:active":{backgroundColor:Q.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Q.ORANGE_PALE,boxShadow:`0 0 0 3px ${xa(Q.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Q.RED_PALE},"&:active":{backgroundColor:Q.RED_DARK},"&.Mui-focusVisible":{borderColor:Q.RED_PALE,boxShadow:`0 0 0 3px ${xa(Q.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:Q.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Q.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:oe,boxShadow:`inset 0 0 0 2px ${Q.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:x.createElement(he,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:ee,borderRadius:oe,color:Q.TEXT_PRIMARY,backgroundColor:Q.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Q.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Q.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:Q.GREYSCALE_0_05,color:Q.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Q.GREEN,borderColor:Q.GREEN},"&.MuiChip-outlinedInfo":{color:Q.BLUE,borderColor:Q.BLUE},"&.MuiChip-outlinedWarning":{color:Q.ORANGE,borderColor:Q.ORANGE},"&.MuiChip-outlinedError":{color:Q.RED,borderColor:Q.RED}},outlined:{border:`solid 1px ${Q.GREYSCALE_0_15}`,backgroundColor:Q.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:oe,boxShadow:"none",backgroundColor:Q.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Q.GREEN,borderColor:Q.GREEN},outlinedSecondary:{color:Q.BLUE,borderColor:Q.BLUE},label:{fontFamily:ue.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:x.createElement(he,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:x.createElement(fe,{"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:oe},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:oe,fontSize:te,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Q.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Q.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Q.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Q.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Q.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:oe,border:`solid 1px ${Q.GREYSCALE_0_15}`,color:Q.GREYSCALE_0_60,marginRight:0,width:ne,height:ne},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Q.GREYSCALE_0_15}`},clearIndicator:{borderRadius:oe,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Q.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:te}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:ee,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Q.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Q.GREYSCALE_25,fontSize:ee,fontFamily:ue.FONT_FAMILY,fontWeight:le,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Q.TEXT_PRIMARY},"&.Mui-error":{color:Q.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Q.TEXT_SECONDARY,content:"'(optional)'",fontWeight:ae,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Q.TEXT_SECONDARY,content:"'(required)'",fontWeight:ae,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:te,lineHeight:"16px",backgroundColor:Q.WHITE,borderRadius:oe,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Q.GREYSCALE_0_05}`,borderColor:Q.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Q.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Q.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Q.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Q.RED}`,boxShadow:`0px 0px 0px 1px ${Q.RED}, inset 0 2px 0 0 ${Q.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Q.GREYSCALE_0_10}`,borderColor:Q.GREYSCALE_0_10,backgroundColor:Q.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Q.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Q.GREYSCALE_0_15,borderRadius:oe,boxShadow:`inset 0 2px 0 0 ${Q.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>x.createElement(fe,{...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:Q.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Q.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Q.GREYSCALE_0_03},"&:active":{backgroundColor:Q.GREYSCALE_0_10},"&:focus":{backgroundColor:Q.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Q.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Q.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Q.GREYSCALE_0_30,"&:hover":{backgroundColor:Q.GREYSCALE_0_0,borderColor:Q.GREYSCALE_0_15},"& ~svg":{color:Q.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Q.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:oe}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Q.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Q.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Q.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:te,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:ee,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:ee,fontWeight:le,color:Q.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:le}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Q.GREYSCALE_0_15}, 0px 0px 0px 1px ${Q.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:x.createElement(ye,null),checkedIcon:x.createElement(xe,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Q.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Q.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Q.GREEN_PALE,boxShadow:`0 0 0 3px ${xa(Q.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Q.BLUE_PALE,boxShadow:`0 0 0 3px ${xa(Q.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Q.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Q.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:x.createElement(pp,null),checkedIcon:x.createElement(be,null),indeterminateIcon:x.createElement(ve,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:oe,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Q.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Q.GREYSCALE_0_55,color:Q.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:Q.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Q.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Q.GREYSCALE_0_55,"&:hover":{color:Q.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:Q.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Q.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:te,color:Q.TEXT_PRIMARY,lineHeight:"16px",fontWeight:le},secondary:{fontSize:ee,color:Q.GREYSCALE_45,fontWeight:ae,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:te,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Q.GREYSCALE_0_03},"&:active":{backgroundColor:Q.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:te,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Q.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:ee,borderBottom:`solid 1px ${Q.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:te,color:Q.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Q.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Q.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Q.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Q.RED}}},"&.Mui-focusVisible":{backgroundColor:Q.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:Q.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:Q.GREEN,height:"24px","&.Mui-disabled":{color:Q.GREYSCALE_0_15}},rail:{backgroundColor:Q.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Q.GREYSCALE_0_05}`,borderRadius:oe,boxShadow:`inset 0px 0px 0px 1px ${Q.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Q.GREYSCALE_0_05}`,borderRadius:oe},thumb:{height:"16px",width:"16px",borderRadius:oe,backgroundColor:Q.WHITE,boxShadow:`0px 1px 2px 0px ${Q.GREYSCALE_0_15}, 0px 0px 0px 1px ${Q.GREYSCALE_0_05}`,"&:hover":{borderRadius:oe,boxShadow:`0 2px 4px 0 ${Q.GREYSCALE_0_30}, 0 0 0 1px ${Q.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Q.GREYSCALE_0_15}, 0 0 0 1px ${Q.GREYSCALE_0_06}, 0 0 0 2px ${Q.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Q.GREYSCALE_0_15}, 0 0 0 1px ${Q.GREYSCALE_0_06}, 0 0 0 2px ${Q.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Q.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Q.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Q.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Q.GREYSCALE_0_15},markLabel:{color:Q.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Q.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Q.WHITE,color:Q.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:Q.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:Q.GREEN_PALE,boxShadow:`0 0 0 3px ${xa(Q.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Q.BLUE_PALE,boxShadow:`0 0 0 3px ${xa(Q.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Q.GREYSCALE_0_15,borderRadius:oe},thumb:{height:"16px",width:"16px",borderRadius:oe,backgroundColor:Q.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:te,fontWeight:le,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Q.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Q.MISC_FOCUS_BORDER}`,backgroundColor:Q.GREYSCALE_0_03,borderRadius:oe},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Q.GREYSCALE_25,"&.Mui-selected":{color:Q.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:te,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${Q.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${Q.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Q.GREYSCALE_85}`,borderRight:`1px solid ${Q.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:le,backgroundColor:Q.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:Q.GREYSCALE_98,borderBottom:`1px solid ${Q.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Q.GREYSCALE_85}`,borderTop:`1px solid ${Q.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Q.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Q.GREYSCALE_0_05,"&:hover":{backgroundColor:Q.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Q.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>x.createElement(Se,{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 ${Q.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:te,borderRadius:oe,padding:"7px 16px",border:`1px solid ${Q.GREYSCALE_0_15}`,backgroundColor:Q.GREYSCALE_100_60,color:Q.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Q.GREYSCALE_0_10,border:`1px solid ${Q.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Q.GREYSCALE_0_03,border:`1px solid ${Q.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Q.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Q.MISC_FOCUS_BORDER}`,border:`1px solid ${Q.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Q.GREYSCALE_25,backgroundColor:Q.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Q.GREYSCALE_0_10,border:`1px solid ${Q.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:ee,height:24,width:24,padding:7},sizeLarge:{fontSize:re,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:te,borderRadius:oe}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:Q.GREYSCALE_20},tooltip:{backgroundColor:Q.GREYSCALE_20,fontSize:ee,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const mp={mode:"light",primary:{light:Q.GREEN_PALE,main:Q.GREEN,dark:Q.GREEN_DARK,contrastText:Q.WHITE},secondary:{light:Q.BLUE_PALE,main:Q.BLUE,dark:Q.BLUE_DARK,contrastText:Q.WHITE},error:{light:Q.RED_PALE,main:Q.RED,dark:Q.RED_DARK,contrastText:Q.WHITE},warning:{light:Q.ORANGE_PALE,main:Q.ORANGE,dark:Q.ORANGE_DARK,contrastText:Q.WHITE},success:{light:Q.GREEN_PALE,main:Q.GREEN,dark:Q.GREEN_DARK,contrastText:Q.WHITE},info:{light:Q.BLUE_PALE,main:Q.BLUE,dark:Q.BLUE_DARK,contrastText:Q.WHITE},text:{primary:Q.TEXT_PRIMARY,secondary:Q.TEXT_SECONDARY,disabled:Q.GREYSCALE_0_30},action:{hover:Q.GREYSCALE_0_03,hoverOpacity:.05,selected:Q.GREYSCALE_0_05,focus:Q.MISC_FOCUS_BORDER},amethyst:{main:Q.PURPLE,light:Q.PURPLE_PALE,dark:Q.PURPLE_DARK,contrastText:Q.WHITE},background:{paper:Q.WHITE,default:Q.GREYSCALE_95},divider:Q.GREYSCALE_0_15},hp=e=>({components:fp,palette:mp,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:te,fontWeightLight:ie,fontWeightRegular:ae,fontWeightMedium:le,fontWeightBold:se,htmlFontSize:te,fontFamily:ue.FONT_FAMILY,button:{fontWeight:le,fontSize:te,textTransform:"none"},body1:{fontSize:re,lineHeight:"24px"},body2:{fontSize:te,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:ne,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:re,fontWeight:le,lineHeight:"16px"},h6:{fontSize:te,fontWeight:le,lineHeight:"16px"},caption:{color:Q.TEXT_SECONDARY},subtitle1:{fontSize:te,color:Q.TEXT_SECONDARY},subtitle2:{fontSize:ee,color:Q.TEXT_SECONDARY}},shape:{borderRadius:oe}}),gp={...Z,MISC_FOCUS_BORDER:Q.MISC_FOCUS_BORDER},bp=hp().palette,vp={TEXT:bp.text.primary,DISABLED:bp.text.disabled,HOVER:bp.action.hover,WHITE:gp.GREYSCALE_100,BORDER_LIGHT:gp.GREYSCALE_90,BORDER_MEDIUM:gp.GREYSCALE_85,BORDER_HEAVY:gp.GREYSCALE_50,DARK_MODE_TEXT:gp.GREYSCALE_95,DARK_MODE_BORDER:gp.GREYSCALE_95,DARK_MODE_DISABLED:gp.GREYSCALE_70,DARK_MODE_BACKGROUND:gp.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:gp.GREYSCALE_95,SELECTED:bp.primary.main};function yp(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function xp(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Sp(){}var Ep=.7,wp=1/Ep,Cp="\\s*([+-]?\\d+)\\s*",Rp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ap="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ip=/^#([0-9a-f]{3,8})$/,Dp=new RegExp(`^rgb\\(${Cp},${Cp},${Cp}\\)$`),Pp=new RegExp(`^rgb\\(${Ap},${Ap},${Ap}\\)$`),Lp=new RegExp(`^rgba\\(${Cp},${Cp},${Cp},${Rp}\\)$`),Mp=new RegExp(`^rgba\\(${Ap},${Ap},${Ap},${Rp}\\)$`),kp=new RegExp(`^hsl\\(${Rp},${Ap},${Ap}\\)$`),Op=new RegExp(`^hsla\\(${Rp},${Ap},${Ap},${Rp}\\)$`),_p={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 Tp(){return this.rgb().formatHex()}function qp(){return this.rgb().formatRgb()}function Np(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Ip.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Fp(t):3===r?new Bp(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?jp(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?jp(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=Dp.exec(e))?new Bp(t[1],t[2],t[3],1):(t=Pp.exec(e))?new Bp(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Lp.exec(e))?jp(t[1],t[2],t[3],t[4]):(t=Mp.exec(e))?jp(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=kp.exec(e))?Yp(t[1],t[2]/100,t[3]/100,1):(t=Op.exec(e))?Yp(t[1],t[2]/100,t[3]/100,t[4]):_p.hasOwnProperty(e)?Fp(_p[e]):"transparent"===e?new Bp(NaN,NaN,NaN,0):null}function Fp(e){return new Bp(e>>16&255,e>>8&255,255&e,1)}function jp(e,t,r,n){return n<=0&&(e=t=r=NaN),new Bp(e,t,r,n)}function zp(e){return e instanceof Sp||(e=Np(e)),e?new Bp((e=e.rgb()).r,e.g,e.b,e.opacity):new Bp}function $p(e,t,r,n){return 1===arguments.length?zp(e):new Bp(e,t,r,null==n?1:n)}function Bp(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Hp(){return`#${Up(this.r)}${Up(this.g)}${Up(this.b)}`}function Vp(){const e=Wp(this.opacity);return`${1===e?"rgb(":"rgba("}${Gp(this.r)}, ${Gp(this.g)}, ${Gp(this.b)}${1===e?")":`, ${e})`}`}function Wp(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Gp(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Up(e){return((e=Gp(e))<16?"0":"")+e.toString(16)}function Yp(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Xp(e,t,r,n)}function Kp(e){if(e instanceof Xp)return new Xp(e.h,e.s,e.l,e.opacity);if(e instanceof Sp||(e=Np(e)),!e)return new Xp;if(e instanceof Xp)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,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new Xp(a,l,s,e.opacity)}function Xp(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Jp(e){return(e=(e||0)%360)<0?e+360:e}function Zp(e){return Math.max(0,Math.min(1,e||0))}function Qp(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}yp(Sp,Np,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Tp,formatHex:Tp,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Kp(this).formatHsl()},formatRgb:qp,toString:qp}),yp(Bp,$p,xp(Sp,{brighter(e){return e=null==e?wp:Math.pow(wp,e),new Bp(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Ep:Math.pow(Ep,e),new Bp(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Bp(Gp(this.r),Gp(this.g),Gp(this.b),Wp(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:Hp,formatHex:Hp,formatHex8:function(){return`#${Up(this.r)}${Up(this.g)}${Up(this.b)}${Up(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Vp,toString:Vp})),yp(Xp,(function(e,t,r,n){return 1===arguments.length?Kp(e):new Xp(e,t,r,null==n?1:n)}),xp(Sp,{brighter(e){return e=null==e?wp:Math.pow(wp,e),new Xp(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Ep:Math.pow(Ep,e),new Xp(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 Bp(Qp(e>=240?e-240:e+120,o,n),Qp(e,o,n),Qp(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Xp(Jp(this.h),Zp(this.s),Zp(this.l),Wp(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=Wp(this.opacity);return`${1===e?"hsl(":"hsla("}${Jp(this.h)}, ${100*Zp(this.s)}%, ${100*Zp(this.l)}%${1===e?")":`, ${e})`}`}}));const ef=Math.PI/180,tf=180/Math.PI,rf=.96422,nf=1,of=.82521,af=4/29,lf=6/29,sf=3*lf*lf,uf=lf*lf*lf;function cf(e){if(e instanceof df)return new df(e.l,e.a,e.b,e.opacity);if(e instanceof bf)return vf(e);e instanceof Bp||(e=zp(e));var t,r,n=hf(e.r),o=hf(e.g),i=hf(e.b),a=pf((.2225045*n+.7168786*o+.0606169*i)/nf);return n===o&&o===i?t=r=a:(t=pf((.4360747*n+.3850649*o+.1430804*i)/rf),r=pf((.0139322*n+.0971045*o+.7141733*i)/of)),new df(116*a-16,500*(t-a),200*(a-r),e.opacity)}function df(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function pf(e){return e>uf?Math.pow(e,1/3):e/sf+af}function ff(e){return e>lf?e*e*e:sf*(e-af)}function mf(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function hf(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function gf(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof bf)return new bf(e.h,e.c,e.l,e.opacity);if(e instanceof df||(e=cf(e)),0===e.a&&0===e.b)return new bf(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*tf;return new bf(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new bf(e,t,r,null==n?1:n)}function bf(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function vf(e){if(isNaN(e.h))return new df(e.l,0,0,e.opacity);var t=e.h*ef;return new df(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}yp(df,(function(e,t,r,n){return 1===arguments.length?cf(e):new df(e,t,r,null==n?1:n)}),xp(Sp,{brighter(e){return new df(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new df(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 Bp(mf(3.1338561*(t=rf*ff(t))-1.6168667*(e=nf*ff(e))-.4906146*(r=of*ff(r))),mf(-.9787684*t+1.9161415*e+.033454*r),mf(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),yp(bf,gf,xp(Sp,{brighter(e){return new bf(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new bf(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return vf(this).rgb()}}));const yf=(e,t)=>{const r=gf(e),n=r.l<70;return 0===r.opacity?(r.opacity=t.opacity,r.toString()):n?r.brighter(t.brighter).toString():r.darker(t.darker).toString()};function xf(e){return"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function Sf(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length&&xf(t[0]))return(t[0].r<<16)+(t[0].g<<8)+t[0].b;var n=0,o=0,i=0;if(1===t.length&&"string"==typeof t[0]){var a,l=t[0];(a=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(l))?(n=parseInt(a[1],10),o=parseInt(a[2],10),i=parseInt(a[3],10)):(a=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(l))?(n=parseInt(a[1],16),o=parseInt(a[2],16),i=parseInt(a[3],16)):(a=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(l))&&(n=parseInt(a[1]+a[1],16),o=parseInt(a[2]+a[2],16),i=parseInt(a[3]+a[3],16))}return(n<<16)+(o<<8)+i}function Ef(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Cf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wf(Object(r),!0).forEach((function(t){Ef(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Rf={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:255,g:255,b:255,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}},Af="qcm-color";function If(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o,i,a,l,s,u,c,d,p,f={type:Af,r:0,g:0,b:0,a:1,l:void 0,invalid:!1,spaces:{}},m=0,h=0,g=0,b=1;if((null===(e=r[0])||void 0===e?void 0:e.type)===Af){var v=r[0];m=v.r,h=v.g,g=v.b,b=v.a,f.invalid=r[0].invalid,f.spaces=Cf({},r[0].spaces)}else if(r.length<3)if("string"==typeof r[0]){var y,x=r[0];if(y=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10);else if(y=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10),b=parseFloat(y[4]);else if(y=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))b=parseInt(y[1],10)/255,m=parseInt(y[2],10),h=parseInt(y[3],10),g=parseInt(y[4],10);else if(y=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(x))m=parseInt(y[1],16),h=parseInt(y[2],16),g=parseInt(y[3],16),b=1;else if(y=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(x))m=parseInt(y[1]+y[1],16),h=parseInt(y[2]+y[2],16),g=parseInt(y[3]+y[3],16),b=1;else if(y=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var S=[];switch(c=Math.floor(c)){case 0:S=[u,d,0];break;case 1:S=[d,u,0];break;case 2:S=[0,u,d];break;case 3:S=[0,d,u];break;case 4:S=[d,0,u];break;case 5:S=[u,0,d];break;default:S=[0,0,0]}p=l-.5*u,m=S[0]+p,h=S[1]+p,g=S[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(y=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),l=parseFloat(y[5]),b=parseFloat(y[7]),i=(i/=100)<0?0:i>1?1:i,c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*i:(2-2*l)*i)*(1-Math.abs(c%2-1));var E=[];switch(c=Math.floor(c)){case 0:E=[u,d,0];break;case 1:E=[d,u,0];break;case 2:E=[0,u,d];break;case 3:E=[0,d,u];break;case 4:E=[d,0,u];break;case 5:E=[u,0,d];break;default:E=[0,0,0]}p=l-.5*u,m=E[0]+p,h=E[1]+p,g=E[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g)}else if(y=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),s=parseFloat(y[5]),c=(o=(o%=360)<0?0:o>360?360:o)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)*(i=(i/=100)<0?0:i>1?1:i))*(1-Math.abs(c%2-1));var w=[];switch(c=Math.floor(c)){case 0:w=[u,d,0];break;case 1:w=[d,u,0];break;case 2:w=[0,u,d];break;case 3:w=[0,d,u];break;case 4:w=[d,0,u];break;case 5:w=[u,0,d];break;default:w=[0,0,0]}p=s-u,m=w[0]+p,h=w[1]+p,g=w[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(Rf[x.toLowerCase()]){a=x.toLowerCase();var C=Rf[a];m=C.r,h=C.g,g=C.b,b="number"==typeof Rf[a].a?Rf[a].a:1}else f.invalid=!0}else"number"==typeof r[0]&&r[0]>=0&&"argb"===r[1]?(b=(4278190080&r[0])>>>24,b/=255,m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):"number"==typeof r[0]&&r[0]>=0?(m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):f.invalid=!0;else r.length>=3?(m=r[0],h=r[1],g=r[2],b=arguments.length>=4?r[3]:1):f.invalid=!0;return Number.isNaN(+m+h+g+b)&&(f.invalid=!0),f.r=Math.floor(m),f.g=Math.floor(h),f.b=Math.floor(g),f.a=b,f.l=l,f}function Df(e){var t,r,n;if(xf(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat([t,r,n].join(""));var o="string"==typeof e?Sf(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat(t).concat(r).concat(n)}function Pf(e){var t,r,n=0,o="string"==typeof e?If(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=s;if(s===u)t=0,n=0;else{switch(t=0==(r=s-u)?0:r/c,s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return{h:360*n%360,s:100*t,v:100*c}}function Lf(e){if(xf(e))return"rgb(".concat([e.r,e.g,e.b].join(","),")");var t="string"==typeof e?Sf(e):e,r=(65280&t)>>8,n=255&t;return"rgb(".concat((16711680&t)>>16,",").concat(r,",").concat(n,")")}function Mf(e,t){if(xf(e))return"rgba(".concat([e.r,e.g,e.b,void 0!==t?t:e.a].join(","),")");var r="string"==typeof e?Sf(e):e,n=(65280&r)>>8,o=255&r;return"rgba(".concat((16711680&r)>>16,",").concat(n,",").concat(o,",").concat(void 0!==t?t:e.a,")")}var kf=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function Of(e){return.2126*kf(e.r)+.7152*kf(e.g)+.0722*kf(e.g)}function _f(){var e=If.apply(void 0,arguments),t={type:e.type,r:e.r,g:e.g,b:e.b,a:e.a,invalid:e.invalid,spaces:e.spaces},r=function(){return t.spaces.hsla||(t.spaces.hsla=function(e){var t,r,n=0,o="string"==typeof e?If(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=o.a,u=Math.max(i,a,l),c=Math.min(i,a,l),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-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsla(".concat(360*n,",").concat(100*t,",").concat(100*d,",").concat(s,")")}(t)),t.spaces.hsla},n=function(e){var t=r(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),o=parseFloat(n[1]),i=parseFloat(n[3]),a=parseFloat(n[7]),l=parseFloat(n[5]);return l+=e,l=Math.max(0,Math.min(l,100)),"hsla(".concat(o,",").concat(i,",").concat(l,",").concat(a,")")};return{get type(){return t.type},isInvalid:function(){return t.invalid},get r(){return t.r},get g(){return t.g},get b(){return t.b},get a(){return t.a},getR:function(){return t.r},getG:function(){return t.g},getB:function(){return t.b},getAlpha:function(){return t.a},setAlpha:function(e){t.a=e,t.spaces={}},isEqualTo:function(e){var r=e.type===t.type?e:If(e);return r.r===t.r&&r.g===t.g&&r.b===t.b&&r.a===t.a},isDark:function(){return function(){var e=If.apply(void 0,arguments);return e.invalid||Of(e)<.5}(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=Lf(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=Mf(t)),t.spaces.rgba},getHex:function(){return t.spaces.hex||(t.spaces.hex=Df(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=function(e){var t,r,n=0,o="string"==typeof e?If(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),u=Math.min(i,a,l),c=(s+u)/2;if(s===u)t=0,n=0;else{switch(r=s-u,t=c>.5?r/(2-s-u):r/(s+u),s){case i:n=(a-l)/r+(a<l?6:0);break;case a:n=(l-i)/r+2;break;case l:n=(i-a)/r+4}n/=6}return"hsl(".concat(360*n,",").concat(100*t,",").concat(100*c,")")}(t)),t.spaces.hsl},getHSLA:r,getShiftedHSLA:n,getHSV:function(){return t.spaces.hsv||(t.spaces.hsv=function(e){var t=Pf(e),r=t.h,n=t.s,o=t.v;return"hsv(".concat(r,",").concat(n,",").concat(o,")")}(t)),t.spaces.hsv},getHSVObject:function(){return t.spaces.hsvObject||(t.spaces.hsvObject=Pf(t)),t.spaces.hsvObject},blend:function(e,r){var n=Math.floor(t.r+(e.r-t.r)*r),o=Math.floor(t.g+(e.g-t.g)*r),i=Math.floor(t.b+(e.b-t.b)*r),a=Math.floor(t.a+(e.getAlpha()-t.a)*r);return"rgba(".concat([n,o,i,a].join(","),")")},getShiftedColor:function(e){var r=void 0===e||Number.isNaN(+e)?1:e,o=.299*t.r+.587*t.g+.114*t.b,i=t.g<126?1:1+t.g/512;return _f(n(20*(o*i<220?.8+1/(o+1)*4:-(.8+o/255*1))*r))}}}function Tf(e,t){if(e&&t){var r=Of(e),n=Of(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}}var qf=["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"],Nf=["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 Ff(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Nf:qf}var jf=Object.prototype.hasOwnProperty,zf=Object.prototype.toString,$f=Object.defineProperty,Bf=Object.getOwnPropertyDescriptor,Hf=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===zf.call(e)},Vf=function(e){if(!e||"[object Object]"!==zf.call(e))return!1;var t,r=jf.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&jf.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||jf.call(e,t)},Wf=function(e,t){$f&&"__proto__"===t.name?$f(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Gf=function(e,t){if("__proto__"===t){if(!jf.call(e,t))return;if(Bf)return Bf(e,t).value}return e[t]};function Uf(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Yf(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Kf(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,r,n,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(r in t)n=Gf(l,r),l!==(o=Gf(t,r))&&(c&&o&&(Vf(o)||(i=Hf(o)))?(i?(i=!1,a=n&&Hf(n)?n:[]):a=n&&Vf(n)?n:{},Wf(l,{name:r,newValue:e(c,a,o)})):void 0!==o&&Wf(l,{name:r,newValue:o}));return l}));var Xf=1/.7,Jf="\\s*([+-]?\\d+)\\s*",Zf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Qf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",em=/^#([0-9a-f]{3,8})$/,tm=new RegExp(`^rgb\\(${Jf},${Jf},${Jf}\\)$`),rm=new RegExp(`^rgb\\(${Qf},${Qf},${Qf}\\)$`),nm=new RegExp(`^rgba\\(${Jf},${Jf},${Jf},${Zf}\\)$`),om=new RegExp(`^rgba\\(${Qf},${Qf},${Qf},${Zf}\\)$`),im=new RegExp(`^hsl\\(${Zf},${Qf},${Qf}\\)$`),am=new RegExp(`^hsla\\(${Zf},${Qf},${Qf},${Zf}\\)$`),lm={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 sm(){return this.rgb().formatHex()}function um(){return this.rgb().formatRgb()}function cm(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=em.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?dm(t):3===r?new hm(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?pm(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?pm(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=tm.exec(e))?new hm(t[1],t[2],t[3],1):(t=rm.exec(e))?new hm(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=nm.exec(e))?pm(t[1],t[2],t[3],t[4]):(t=om.exec(e))?pm(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=im.exec(e))?Sm(t[1],t[2]/100,t[3]/100,1):(t=am.exec(e))?Sm(t[1],t[2]/100,t[3]/100,t[4]):lm.hasOwnProperty(e)?dm(lm[e]):"transparent"===e?new hm(NaN,NaN,NaN,0):null}function dm(e){return new hm(e>>16&255,e>>8&255,255&e,1)}function pm(e,t,r,n){return n<=0&&(e=t=r=NaN),new hm(e,t,r,n)}function fm(e){return e instanceof Kf||(e=cm(e)),e?new hm((e=e.rgb()).r,e.g,e.b,e.opacity):new hm}function mm(e,t,r,n){return 1===arguments.length?fm(e):new hm(e,t,r,null==n?1:n)}function hm(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function gm(){return`#${xm(this.r)}${xm(this.g)}${xm(this.b)}`}function bm(){const e=vm(this.opacity);return`${1===e?"rgb(":"rgba("}${ym(this.r)}, ${ym(this.g)}, ${ym(this.b)}${1===e?")":`, ${e})`}`}function vm(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ym(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function xm(e){return((e=ym(e))<16?"0":"")+e.toString(16)}function Sm(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new wm(e,t,r,n)}function Em(e){if(e instanceof wm)return new wm(e.h,e.s,e.l,e.opacity);if(e instanceof Kf||(e=cm(e)),!e)return new wm;if(e instanceof wm)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,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new wm(a,l,s,e.opacity)}function wm(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Cm(e){return(e=(e||0)%360)<0?e+360:e}function Rm(e){return Math.max(0,Math.min(1,e||0))}function Am(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Uf(Kf,cm,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:sm,formatHex:sm,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Em(this).formatHsl()},formatRgb:um,toString:um}),Uf(hm,mm,Yf(Kf,{brighter(e){return e=null==e?Xf:Math.pow(Xf,e),new hm(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new hm(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new hm(ym(this.r),ym(this.g),ym(this.b),vm(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:gm,formatHex:gm,formatHex8:function(){return`#${xm(this.r)}${xm(this.g)}${xm(this.b)}${xm(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:bm,toString:bm})),Uf(wm,(function(e,t,r,n){return 1===arguments.length?Em(e):new wm(e,t,r,null==n?1:n)}),Yf(Kf,{brighter(e){return e=null==e?Xf:Math.pow(Xf,e),new wm(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new wm(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 hm(Am(e>=240?e-240:e+120,o,n),Am(e,o,n),Am(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new wm(Cm(this.h),Rm(this.s),Rm(this.l),vm(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=vm(this.opacity);return`${1===e?"hsl(":"hsla("}${Cm(this.h)}, ${100*Rm(this.s)}%, ${100*Rm(this.l)}%${1===e?")":`, ${e})`}`}}));const Im=Math.PI/180,Dm=180/Math.PI,Pm=4/29,Lm=6/29,Mm=3*Lm*Lm;function km(e){if(e instanceof Om)return new Om(e.l,e.a,e.b,e.opacity);if(e instanceof Fm)return jm(e);e instanceof hm||(e=fm(e));var t,r,n=Nm(e.r),o=Nm(e.g),i=Nm(e.b),a=_m((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=_m((.4360747*n+.3850649*o+.1430804*i)/.96422),r=_m((.0139322*n+.0971045*o+.7141733*i)/.82521)),new Om(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Om(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function _m(e){return e>.008856451679035631?Math.pow(e,1/3):e/Mm+Pm}function Tm(e){return e>Lm?e*e*e:Mm*(e-Pm)}function qm(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Nm(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Fm(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function jm(e){if(isNaN(e.h))return new Om(e.l,0,0,e.opacity);var t=e.h*Im;return new Om(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Uf(Om,(function(e,t,r,n){return 1===arguments.length?km(e):new Om(e,t,r,null==n?1:n)}),Yf(Kf,{brighter(e){return new Om(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Om(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 hm(qm(3.1338561*(t=.96422*Tm(t))-1.6168667*(e=1*Tm(e))-.4906146*(r=.82521*Tm(r))),qm(-.9787684*t+1.9161415*e+.033454*r),qm(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Uf(Fm,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Fm)return new Fm(e.h,e.c,e.l,e.opacity);if(e instanceof Om||(e=km(e)),0===e.a&&0===e.b)return new Fm(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Dm;return new Fm(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Fm(e,t,r,null==n?1:n)}),Yf(Kf,{brighter(e){return new Fm(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Fm(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return jm(this).rgb()}}));var zm=e=>()=>e;function $m(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):zm(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?$m: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):zm(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=mm(e)).r,(t=mm(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=$m(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 Bm,Hm="center",Vm="bottom";function Wm(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 Gm(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 Um(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Km)):void 0===t&&(t=Ym);for(var r,n,o,i,a,l=new Zm(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new Zm(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(Jm)}function Ym(e){return e.children}function Km(e){return Array.isArray(e)?e[1]:null}function Xm(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Jm(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Zm(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:Hm,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:Hm,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:Hm,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:Hm},{key:"DataRangeIncludingZero",alignment:Vm},{key:"LimitedData",alignment:Vm},{key:"NegativeOrZeroValues",alignment:Vm}].reduce((function(e,t){return e[t.key]=t,e}),{}),Zm.prototype=Um.prototype={constructor:Zm,count:function(){return this.eachAfter(Gm)},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],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,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 Um(this).eachBefore(Xm)},[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)}},Bm=function(e){
98
98
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
99
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+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],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},qm({exports:{}});var Um=["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"],Ym=["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 Km(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Ym:Um}const Xm=3;function Jm(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),l=e.slice(0,i-1),s=r(a),u=r(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?n=i+1:o=i}return null}function Zm({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=Xm}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=E((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=zm(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=zm((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=Jm(o,t,l)}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:s}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var Qm,eh=z;function th(e,t){const[r,n]=S(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}Qm=eh.createRoot,eh.hydrateRoot;var rh={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_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_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 nh=({translator:e})=>(E((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(rh).forEach((t=>{e.add(rh[t])}))}}(e)),[e]),e),oh="12px",ih="nebula-table-utils-head-menu-button",ah="nebula-table-utils-head-menu-wrapper",lh="nebula-table-utils-head-menu",sh="nebula-table-utils-head-menu-list-id",uh="sn-copy-cell";let ch=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}({});const dh="nebula-table-utils-column-adjuster";let ph=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}({}),fh=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const mh={hover:{darker:.15,brighter:.3,opacity:.03},active:{darker:.3,brighter:.5,opacity:.05}},hh=document.createElement("textarea");function gh(e){hh.value=e,document.body.appendChild(hh),hh.select(),hh.setSelectionRange(0,hh.value.length),document.execCommand("copy"),document.body.removeChild(hh)}hh.style.position="absolute",hh.style.left="-9999px",hh.setAttribute("readonly","");const bh=e=>{var t;const r=e.title;r&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(r).catch((()=>gh(r))):gh(r))};var vh=Object.prototype.hasOwnProperty,yh=Object.prototype.toString,xh=Object.defineProperty,Sh=Object.getOwnPropertyDescriptor,Eh=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===yh.call(e)},Ch=function(e){if(!e||"[object Object]"!==yh.call(e))return!1;var t,r=vh.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&vh.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||vh.call(e,t)},wh=function(e,t){xh&&"__proto__"===t.name?xh(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Rh=function(e,t){if("__proto__"===t){if(!vh.call(e,t))return;if(Sh)return Sh(e,t).value}return e[t]};function Ah(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Ih(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Dh(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,r,n,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(r in t)n=Rh(l,r),l!==(o=Rh(t,r))&&(c&&o&&(Ch(o)||(i=Eh(o)))?(i?(i=!1,a=n&&Eh(n)?n:[]):a=n&&Ch(n)?n:{},wh(l,{name:r,newValue:e(c,a,o)})):void 0!==o&&wh(l,{name:r,newValue:o}));return l}));var Ph=1/.7,Lh="\\s*([+-]?\\d+)\\s*",Mh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Oh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",kh=/^#([0-9a-f]{3,8})$/,_h=new RegExp(`^rgb\\(${Lh},${Lh},${Lh}\\)$`),Th=new RegExp(`^rgb\\(${Oh},${Oh},${Oh}\\)$`),qh=new RegExp(`^rgba\\(${Lh},${Lh},${Lh},${Mh}\\)$`),Nh=new RegExp(`^rgba\\(${Oh},${Oh},${Oh},${Mh}\\)$`),Fh=new RegExp(`^hsl\\(${Mh},${Oh},${Oh}\\)$`),zh=new RegExp(`^hsla\\(${Mh},${Oh},${Oh},${Mh}\\)$`),jh={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 $h(){return this.rgb().formatHex()}function Bh(){return this.rgb().formatRgb()}function Hh(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=kh.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Vh(t):3===r?new Yh(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Wh(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Wh(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=_h.exec(e))?new Yh(t[1],t[2],t[3],1):(t=Th.exec(e))?new Yh(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=qh.exec(e))?Wh(t[1],t[2],t[3],t[4]):(t=Nh.exec(e))?Wh(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Fh.exec(e))?eg(t[1],t[2]/100,t[3]/100,1):(t=zh.exec(e))?eg(t[1],t[2]/100,t[3]/100,t[4]):jh.hasOwnProperty(e)?Vh(jh[e]):"transparent"===e?new Yh(NaN,NaN,NaN,0):null}function Vh(e){return new Yh(e>>16&255,e>>8&255,255&e,1)}function Wh(e,t,r,n){return n<=0&&(e=t=r=NaN),new Yh(e,t,r,n)}function Gh(e){return e instanceof Dh||(e=Hh(e)),e?new Yh((e=e.rgb()).r,e.g,e.b,e.opacity):new Yh}function Uh(e,t,r,n){return 1===arguments.length?Gh(e):new Yh(e,t,r,null==n?1:n)}function Yh(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Kh(){return`#${Qh(this.r)}${Qh(this.g)}${Qh(this.b)}`}function Xh(){const e=Jh(this.opacity);return`${1===e?"rgb(":"rgba("}${Zh(this.r)}, ${Zh(this.g)}, ${Zh(this.b)}${1===e?")":`, ${e})`}`}function Jh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Zh(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Qh(e){return((e=Zh(e))<16?"0":"")+e.toString(16)}function eg(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new rg(e,t,r,n)}function tg(e){if(e instanceof rg)return new rg(e.h,e.s,e.l,e.opacity);if(e instanceof Dh||(e=Hh(e)),!e)return new rg;if(e instanceof rg)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,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new rg(a,l,s,e.opacity)}function rg(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function ng(e){return(e=(e||0)%360)<0?e+360:e}function og(e){return Math.max(0,Math.min(1,e||0))}function ig(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Ah(Dh,Hh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:$h,formatHex:$h,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return tg(this).formatHsl()},formatRgb:Bh,toString:Bh}),Ah(Yh,Uh,Ih(Dh,{brighter(e){return e=null==e?Ph:Math.pow(Ph,e),new Yh(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Yh(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Yh(Zh(this.r),Zh(this.g),Zh(this.b),Jh(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:Kh,formatHex:Kh,formatHex8:function(){return`#${Qh(this.r)}${Qh(this.g)}${Qh(this.b)}${Qh(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Xh,toString:Xh})),Ah(rg,(function(e,t,r,n){return 1===arguments.length?tg(e):new rg(e,t,r,null==n?1:n)}),Ih(Dh,{brighter(e){return e=null==e?Ph:Math.pow(Ph,e),new rg(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new rg(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 Yh(ig(e>=240?e-240:e+120,o,n),ig(e,o,n),ig(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new rg(ng(this.h),og(this.s),og(this.l),Jh(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=Jh(this.opacity);return`${1===e?"hsl(":"hsla("}${ng(this.h)}, ${100*og(this.s)}%, ${100*og(this.l)}%${1===e?")":`, ${e})`}`}}));const ag=Math.PI/180,lg=180/Math.PI,sg=4/29,ug=6/29,cg=3*ug*ug;function dg(e){if(e instanceof pg)return new pg(e.l,e.a,e.b,e.opacity);if(e instanceof bg)return vg(e);e instanceof Yh||(e=Gh(e));var t,r,n=gg(e.r),o=gg(e.g),i=gg(e.b),a=fg((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=fg((.4360747*n+.3850649*o+.1430804*i)/.96422),r=fg((.0139322*n+.0971045*o+.7141733*i)/.82521)),new pg(116*a-16,500*(t-a),200*(a-r),e.opacity)}function pg(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function fg(e){return e>.008856451679035631?Math.pow(e,1/3):e/cg+sg}function mg(e){return e>ug?e*e*e:cg*(e-sg)}function hg(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function gg(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function bg(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function vg(e){if(isNaN(e.h))return new pg(e.l,0,0,e.opacity);var t=e.h*ag;return new pg(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ah(pg,(function(e,t,r,n){return 1===arguments.length?dg(e):new pg(e,t,r,null==n?1:n)}),Ih(Dh,{brighter(e){return new pg(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new pg(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 Yh(hg(3.1338561*(t=.96422*mg(t))-1.6168667*(e=1*mg(e))-.4906146*(r=.82521*mg(r))),hg(-.9787684*t+1.9161415*e+.033454*r),hg(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Ah(bg,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof bg)return new bg(e.h,e.c,e.l,e.opacity);if(e instanceof pg||(e=dg(e)),0===e.a&&0===e.b)return new bg(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*lg;return new bg(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new bg(e,t,r,null==n?1:n)}),Ih(Dh,{brighter(e){return new bg(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new bg(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return vg(this).rgb()}}));var yg=e=>()=>e;function xg(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):yg(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?xg: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):yg(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Uh(e)).r,(t=Uh(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=xg(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 Sg="center",Eg="bottom";[{key:"NoDataExist",alignment:Sg,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:Sg,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:Sg,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:Sg},{key:"DataRangeIncludingZero",alignment:Eg},{key:"LimitedData",alignment:Eg},{key:"NegativeOrZeroValues",alignment:Eg}].reduce((function(e,t){return e[t.key]=t,e}),{});var Cg,wg=["__proto__","constructor"];function Rg(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!wg.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var l=n[a];void 0===i[l]&&(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}}}function Ag(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 Ig(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Pg)):void 0===t&&(t=Dg);for(var r,n,o,i,a,l=new Og(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new Og(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(Mg)}function Dg(e){return e.children}function Pg(e){return Array.isArray(e)?e[1]:null}function Lg(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Mg(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Og(e){this.data=e,this.depth=this.height=0,this.parent=null}Og.prototype=Ig.prototype={constructor:Og,count:function(){return this.eachAfter(Ag)},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],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,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 Ig(this).eachBefore(Lg)},[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)}},Cg=function(e){
99
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+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],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},Bm({exports:{}});const Qm={background:vp.SELECTED,color:vp.WHITE},eh=({theme:e,flags:t})=>{if(!t.isEnabled("PS_22149_THEME_SELECTION_COLORS"))return Qm;const r=e.getStyle("","","dataColors.selected")||Qm.background,n=function(e,t){var r=_f("#FFFFFF"),n=_f(e),o=_f(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;var i=Tf(r,n),a=Tf(o,n),l=i>a||i>4.5;return!l&&a>3?t:l?"#FFFFFF":"#000000"}(r,vp.TEXT);return{background:r,color:n}},th=e=>{if(e){const t=$p(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},rh=e=>!!e&&0===$p(e).opacity,nh=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,oh=e=>{const t=nh.exec(e);if(t){const[,e,r,n,o]=t;return $p(+r,+n,+o,+e/255)}return $p(e)},ih=e=>{const t=oh(e);return Number.isNaN(t.r)?null:t.toString()},ah=e=>{if(void 0===e)return;const t=oh(e);return t.opacity=1,t.toString()},lh=(e,t,r)=>{var n,o,i,a;const l=null!==(n=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==n?n:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,r)},sh=e=>{e.stopPropagation(),e.preventDefault()},uh="#grid",ch=(e,t,r)=>e&&!rh(e)?e:rh(t)?r&&!rh(r)?r:vp.WHITE:t,dh=(e,t)=>{const r=null==t?void 0:t.closest(e);return r&&window.getComputedStyle(r).backgroundColor},ph=(e,t,r,n,o)=>{const i=dh(".qv-object .qv-inner-object",r),a=dh(".qv-panel-sheet",r),l=dh(uh,r),s=null!=l?l:a,u=(e=>{var t,r,n,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(r=l.bgColor)||void 0===r?void 0:r.colorExpression,u=null==l||null===(n=l.bgColor)||void 0===n||null===(n=n.color)||void 0===n?void 0:n.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return ih(s);if("none"===u)return"transparent";if(void 0===u)return;const c=oh(u);return c.opacity=null!==(i=null==l||null===(a=l.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:c.opacity,c.toString()})(e),c=null==n?void 0:n(t),d=null==o?void 0:o(t),p=c||i||d,f=rh(p),m=th(f?s:p);return{color:p,headerColor:ch(u,p,s),isDark:m}},fh=(o,i,a,l)=>{const s=r(),u=((r,n={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[o,i]=e([]);return t((()=>{let e;return r&&(e=new MutationObserver((e=>{i(e)})),e.observe(r,n)),()=>{var t;null===(t=e)||void 0===t||t.disconnect()}}),[r,n]),o})(null==i?void 0:i.closest(uh),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return n((()=>({...s,background:ph(o,s,i,a,l)})),[s.name(),i,a,l,o,u])},mh=3;function hh(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),l=e.slice(0,i-1),s=r(a),u=r(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?n=i+1:o=i}return null}function gh({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=mh}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=E((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const a=Wm(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=Wm((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=hh(o,t,l)}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:s}}),[r,n,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var bh,vh=j;function yh(e,t){const[r,n]=S(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}bh=vh.createRoot,vh.hydrateRoot;var xh={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_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_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 Sh=({translator:e})=>(E((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(xh).forEach((t=>{e.add(xh[t])}))}}(e)),[e]),e),Eh="12px",wh="nebula-table-utils-head-menu-button",Ch="nebula-table-utils-head-menu-wrapper",Rh="nebula-table-utils-head-menu",Ah="nebula-table-utils-head-menu-list-id",Ih="sn-copy-cell";let Dh=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}({});const Ph="nebula-table-utils-column-adjuster";let Lh=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}({}),Mh=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const kh={hover:{darker:.15,brighter:.3,opacity:.03},active:{darker:.3,brighter:.5,opacity:.05}},Oh=document.createElement("textarea");function _h(e){Oh.value=e,document.body.appendChild(Oh),Oh.select(),Oh.setSelectionRange(0,Oh.value.length),document.execCommand("copy"),document.body.removeChild(Oh)}Oh.style.position="absolute",Oh.style.left="-9999px",Oh.setAttribute("readonly","");const Th=e=>{var t;const r=e.title;r&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(r).catch((()=>_h(r))):_h(r))};var qh=Object.prototype.hasOwnProperty,Nh=Object.prototype.toString,Fh=Object.defineProperty,jh=Object.getOwnPropertyDescriptor,zh=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Nh.call(e)},$h=function(e){if(!e||"[object Object]"!==Nh.call(e))return!1;var t,r=qh.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&qh.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return void 0===t||qh.call(e,t)},Bh=function(e,t){Fh&&"__proto__"===t.name?Fh(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Hh=function(e,t){if("__proto__"===t){if(!qh.call(e,t))return;if(jh)return jh(e,t).value}return e[t]};function Vh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Wh(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Gh(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,r,n,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(r in t)n=Hh(l,r),l!==(o=Hh(t,r))&&(c&&o&&($h(o)||(i=zh(o)))?(i?(i=!1,a=n&&zh(n)?n:[]):a=n&&$h(n)?n:{},Bh(l,{name:r,newValue:e(c,a,o)})):void 0!==o&&Bh(l,{name:r,newValue:o}));return l}));var Uh=1/.7,Yh="\\s*([+-]?\\d+)\\s*",Kh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Xh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Jh=/^#([0-9a-f]{3,8})$/,Zh=new RegExp(`^rgb\\(${Yh},${Yh},${Yh}\\)$`),Qh=new RegExp(`^rgb\\(${Xh},${Xh},${Xh}\\)$`),eg=new RegExp(`^rgba\\(${Yh},${Yh},${Yh},${Kh}\\)$`),tg=new RegExp(`^rgba\\(${Xh},${Xh},${Xh},${Kh}\\)$`),rg=new RegExp(`^hsl\\(${Kh},${Xh},${Xh}\\)$`),ng=new RegExp(`^hsla\\(${Kh},${Xh},${Xh},${Kh}\\)$`),og={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 ig(){return this.rgb().formatHex()}function ag(){return this.rgb().formatRgb()}function lg(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Jh.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?sg(t):3===r?new pg(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?ug(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?ug(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=Zh.exec(e))?new pg(t[1],t[2],t[3],1):(t=Qh.exec(e))?new pg(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=eg.exec(e))?ug(t[1],t[2],t[3],t[4]):(t=tg.exec(e))?ug(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=rg.exec(e))?vg(t[1],t[2]/100,t[3]/100,1):(t=ng.exec(e))?vg(t[1],t[2]/100,t[3]/100,t[4]):og.hasOwnProperty(e)?sg(og[e]):"transparent"===e?new pg(NaN,NaN,NaN,0):null}function sg(e){return new pg(e>>16&255,e>>8&255,255&e,1)}function ug(e,t,r,n){return n<=0&&(e=t=r=NaN),new pg(e,t,r,n)}function cg(e){return e instanceof Gh||(e=lg(e)),e?new pg((e=e.rgb()).r,e.g,e.b,e.opacity):new pg}function dg(e,t,r,n){return 1===arguments.length?cg(e):new pg(e,t,r,null==n?1:n)}function pg(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function fg(){return`#${bg(this.r)}${bg(this.g)}${bg(this.b)}`}function mg(){const e=hg(this.opacity);return`${1===e?"rgb(":"rgba("}${gg(this.r)}, ${gg(this.g)}, ${gg(this.b)}${1===e?")":`, ${e})`}`}function hg(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function gg(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function bg(e){return((e=gg(e))<16?"0":"")+e.toString(16)}function vg(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new xg(e,t,r,n)}function yg(e){if(e instanceof xg)return new xg(e.h,e.s,e.l,e.opacity);if(e instanceof Gh||(e=lg(e)),!e)return new xg;if(e instanceof xg)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,l=i-o,s=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new xg(a,l,s,e.opacity)}function xg(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Sg(e){return(e=(e||0)%360)<0?e+360:e}function Eg(e){return Math.max(0,Math.min(1,e||0))}function wg(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Vh(Gh,lg,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ig,formatHex:ig,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return yg(this).formatHsl()},formatRgb:ag,toString:ag}),Vh(pg,dg,Wh(Gh,{brighter(e){return e=null==e?Uh:Math.pow(Uh,e),new pg(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new pg(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new pg(gg(this.r),gg(this.g),gg(this.b),hg(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:fg,formatHex:fg,formatHex8:function(){return`#${bg(this.r)}${bg(this.g)}${bg(this.b)}${bg(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:mg,toString:mg})),Vh(xg,(function(e,t,r,n){return 1===arguments.length?yg(e):new xg(e,t,r,null==n?1:n)}),Wh(Gh,{brighter(e){return e=null==e?Uh:Math.pow(Uh,e),new xg(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new xg(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 pg(wg(e>=240?e-240:e+120,o,n),wg(e,o,n),wg(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new xg(Sg(this.h),Eg(this.s),Eg(this.l),hg(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=hg(this.opacity);return`${1===e?"hsl(":"hsla("}${Sg(this.h)}, ${100*Eg(this.s)}%, ${100*Eg(this.l)}%${1===e?")":`, ${e})`}`}}));const Cg=Math.PI/180,Rg=180/Math.PI,Ag=4/29,Ig=6/29,Dg=3*Ig*Ig;function Pg(e){if(e instanceof Lg)return new Lg(e.l,e.a,e.b,e.opacity);if(e instanceof Tg)return qg(e);e instanceof pg||(e=cg(e));var t,r,n=_g(e.r),o=_g(e.g),i=_g(e.b),a=Mg((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=Mg((.4360747*n+.3850649*o+.1430804*i)/.96422),r=Mg((.0139322*n+.0971045*o+.7141733*i)/.82521)),new Lg(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Lg(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Mg(e){return e>.008856451679035631?Math.pow(e,1/3):e/Dg+Ag}function kg(e){return e>Ig?e*e*e:Dg*(e-Ag)}function Og(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function _g(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Tg(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function qg(e){if(isNaN(e.h))return new Lg(e.l,0,0,e.opacity);var t=e.h*Cg;return new Lg(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Vh(Lg,(function(e,t,r,n){return 1===arguments.length?Pg(e):new Lg(e,t,r,null==n?1:n)}),Wh(Gh,{brighter(e){return new Lg(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Lg(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 pg(Og(3.1338561*(t=.96422*kg(t))-1.6168667*(e=1*kg(e))-.4906146*(r=.82521*kg(r))),Og(-.9787684*t+1.9161415*e+.033454*r),Og(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Vh(Tg,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Tg)return new Tg(e.h,e.c,e.l,e.opacity);if(e instanceof Lg||(e=Pg(e)),0===e.a&&0===e.b)return new Tg(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Rg;return new Tg(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Tg(e,t,r,null==n?1:n)}),Wh(Gh,{brighter(e){return new Tg(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Tg(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return qg(this).rgb()}}));var Ng=e=>()=>e;function Fg(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Ng(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?Fg: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):Ng(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=dg(e)).r,(t=dg(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Fg(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 jg="center",zg="bottom";[{key:"NoDataExist",alignment:jg,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:jg,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:jg,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:jg},{key:"DataRangeIncludingZero",alignment:zg},{key:"LimitedData",alignment:zg},{key:"NegativeOrZeroValues",alignment:zg}].reduce((function(e,t){return e[t.key]=t,e}),{});var $g,Bg=["__proto__","constructor"];function Hg(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!Bg.some((function(e){return n.includes(e)}))){for(var i=e,a=0;a<n.length-1;++a){var l=n[a];void 0===i[l]&&(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}void 0!==r?i[o]=r:delete i[o]}}}function Vg(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 Wg(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Ug)):void 0===t&&(t=Gg);for(var r,n,o,i,a,l=new Xg(e),s=[l];r=s.pop();)if((o=t(r.data))&&(a=(o=Array.from(o)).length))for(r.children=o,i=a-1;i>=0;--i)s.push(n=o[i]=new Xg(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(Kg)}function Gg(e){return e.children}function Ug(e){return Array.isArray(e)?e[1]:null}function Yg(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Kg(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Xg(e){this.data=e,this.depth=this.height=0,this.parent=null}Xg.prototype=Wg.prototype={constructor:Xg,count:function(){return this.eachAfter(Vg)},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],l=[],s=-1;i=a.pop();)if(l.push(i),r=i.children)for(n=0,o=r.length;n<o;++n)a.push(r[n]);for(;i=l.pop();)e.call(t,i,++s,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 Wg(this).eachBefore(Yg)},[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)}},$g=function(e){
100
100
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
101
- e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+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],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},Cg({exports:{}});var kg={exports:{}};self,kg.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Me});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var l=a[i];return a[i]=r,{updated:r,previous:l}}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 l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}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],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var l=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return h(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=m(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(l);if(-1!==r){var n=t.indexOf(s);if(-1!==n)return t.substring(r+l.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 l=S({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),r=e.indexOf(s);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),A={},I=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function P(e){return void 0===e}function L(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function M(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=P(e[r||t])?i:e[t],e=e[r||t]}})),e}function O(e,t){var r=!0;if(D(e)&&D(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(I(e)&&I(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}A.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(r,"/").concat(o);O(i,a)||L(t,o)||(P(a)?n.push({op:"add",path:l,value:i}):D(i)&&D(a)?n=n.concat(A.generate(a,i,l)):I(i)&&I(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&P(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(O(t,o))return n;if(!P(t[0])&&P(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(n.push({op:"remove",path:"".concat(r,"/").concat(l)}),o.splice(l,1)):n=n.concat(A.generate(o[l],t[i],"".concat(r,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(n.push({op:"move",path:"".concat(r,"/").concat(s),from:"".concat(r,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return n}(a,i,l)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){P(t[o])&&!L(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},A.apply=function(e,t){t.forEach((function(t){var r,n,o=M(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,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(D(a)&&D(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!L(r,e)&&delete r[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=M(e,t.from);I(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const k=A,_=function(e,r,n){if(!e)return Promise.resolve();var o=k.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var T="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===T)return r[n]}function N(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===T)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(r,s),p=E.getAboveComp(r,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=q(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=q(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(T))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var j="movingAverage";function $(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===j)return r[n]}function B(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===j)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var H={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return r;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),m=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(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(j))return!1;var i=$(t,e);return i&&!i.disabled}};return r}};var W="timeSeriesDecomposition";function G(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===W)return r[n]}function U(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===W)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=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(W))return!1;var i=G(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(r,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var l=ae(t),s=le(t,r,n),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,s,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Ie={initBase:function(e,t){(t||Ie.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,we,i(e,Ee)))},restoreBase:function(e){Ie.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,Ee,i(e,we)),i(e,Re)&&i(e,Ae)&&r(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const De=Ie;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 Le={accumulation:z,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Me={modifiers:Le,apply:ke,applyModifiers:_e,cleanUpMeasure:Te,destroy:function(e){e&&Oe[e.id]&&Oe[e.id].masterItemSubscriber&&(Oe[e.id].masterItemSubscriber&&Oe[e.id].masterItemSubscriber.unsubscribe(),delete Oe[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:De.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Le[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Le[e]&&Le[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=je(e);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var Oe={};function ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Oe[r.id]=Oe[r.id]||{isFirstTime:!0};var u=Oe[r.id].isFirstTime;if(Oe[r.id].isFirstTime=!1,n&&"object"===Pe(n))return _e({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Oe[r.id].lastReloadTime;if(Oe[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ge({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ue({modifiers:je(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Be(n);var o=Qe(n);return Ye({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return m&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ge({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===Pe(e)&&!e.disabled){if(r++,"object"!==Pe(Le[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=Le[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ve(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),_e({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Pe(e.base)}))}(p)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return ze(n).forEach((function(e){return Te(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(s)}function _e(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=s?t()(!0,{},o):o),Be(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(r||(r=ze(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return Te(e)})),Promise.resolve();var s=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ue({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;De.isValid(r)||De.initBase(r,!0);var s=r.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Pe(e)&&!e.disabled){if(l++,"object"!==Pe(Le[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Le[e.type].initModifier(e,r);var s=r.qLibraryId||c&&c.qLibraryId;s?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Le[n.type].generateExpression({expression:l,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,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:s,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Le[n.type].updateModifier&&Le[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),l=""===a?a:Le[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),He(r)):Te(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:n,newProperties:o,model:r}):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&&!Le[e.type]}))}(e)?De.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:je(e),properties:r,layout:n})}))}function Ne(e){var t=je(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Le[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||Le[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){ze(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&$e(r)!==e.qDef.qDef?delete e.qDef.base:!De.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function He(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Pe(t)&&(t.disabled||!Le[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ve(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function Ge(e){var t=e.measure,r=e.properties,n=e.layout;return!We(t)&&Ue({modifiers:je(t),properties:r,layout:n})}function Ue(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Pe(e)||e.disabled||!Le[e.type])&&(void 0===o[e.type]&&(o[e.type]=Le[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={},l=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):_(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Pe(e)&&!e.disabled&&Le[e.type]&&Le[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=je(t);if(Ue({modifiers:n,properties:e})){var i=We(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Oe[t.id].masterItemSubscriber=Oe[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},r=i(e,"qInfo.qType");return r&&l[r]&&l[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=s(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:s(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];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]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return ke({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Oe[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>Be});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var l=n[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}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 l(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 l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(645),f=r.n(p);const m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var l,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,s(n.qMeasures));var a,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(n=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=a}var S=r(229),E=r.n(S);function C(e,t){var r=E()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function w(e,t){return E()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var A=Math.pow(2,53)-1;function 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}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const P=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},L=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},M=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},O=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},k=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},_=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=r.data[0];for(t=0;t<l.dimensions.length;++t){var s=C(l.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=C(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},T=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=r.data[0];for(t=0;t<l.measures.length;++t){var s=w(l.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=w(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},q=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},l=R(a.max,o.dimensions.length,A),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,A),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},N=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},r,o)).components&&(o.components=[]),o},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},j=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>r&&r>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return I(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 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.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},B=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return D(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 D(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?D(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},H=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function V(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){i.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const W={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,r||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,C=y.minMeasures,w=s.defaultDimension,R=void 0===w?O():w,A=s.defaultMeasure,I=void 0===A?k():A;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C})&&j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),_({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),T({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:I}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),L("qMaxStackedCells",b,v),L("qNoOfLeftDims",b,v),M("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),M("qMode",b,v,"S"),M("qReductionMode",b,v,"N"),M("qSortbyYValue",b,v),M("qIndentMode",b,v),M("qShowTotalsAbove",b,v),P(g,t,n),h.qProperty=g;var D=i.getValue(c||{},"support.modifiers");return H({measures:v.qMeasures,modifierTypes:D}),p&&V(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&V(h.qProperty,"dynamicScript"),h}};var G={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!G[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],l=t.length;if(U(a,t,n,o),Y(t,l))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,l=e.label;te(n,o);var s=n[n.length-1];if(s){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:l,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},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,l={};switch(e){case"dimension":r.qLibraryId?(l.type="dimension",l.name=r.qLibraryId,l.id=r.qLibraryId):(l.type="field",t?(l.name=r.label||r.qDef,l.id=r.qDef):(l.name=r.qDef.qFieldDefs[0],l.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?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(l.expression=i)):(l.type="expression",t?(l.name=r.label||r.qExpression,l.id=r.qExpression):(l.name=r.qDef.qDef,l.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 l}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=r?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(re(e,l||""),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:r||l,key:r||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)}n||(i.auto=!1,i.mode=a)}function le(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]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===l}(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 se=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"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?le(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==l&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:l,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,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||n[0])),!!l}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=W.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=W.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:b,properties:d})&&me(d):he(d),b&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?V(r,"unsupportedAutoMinMax")||E()(r.measureAxis,t.measureAxis):V(r,"supportedAutoMinMax")||E()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=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 s=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);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,r.properties.measureAxes[t[0].axis])):E()(l,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},Ee={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"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,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function we(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=Ce(r,n,s);i.setValue(t,u,l),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,l=i.getValue(o,"qDef.cId");if(l){var s=Ce(r,n,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Ae="qHyperCubeDef.qMeasures",Ie="conditionalColoring",De="measures",Pe="qDef.conditionalColoring";const Le={quarantine:function(e){we({properties:e,arrayPath:Ae,quarantineName:Ie,arrayName:De,itemPath:Pe})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Pe,arrayName:De,quarantineName:Ie})}};var Me="qHyperCubeDef.qMeasures",Oe="measures",ke="qHyperCubeDef.qDimensions",_e="dimensions",Te="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",ze="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){we({properties:e,arrayPath:Me,quarantineName:je,arrayName:Oe,itemPath:ze}),we({properties:e,arrayPath:ke,quarantineName:je,arrayName:_e,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Me,quarantineName:je,arrayName:Oe,itemPath:ze}),Re({properties:e,arrayPath:ke,quarantineName:je,arrayName:_e,itemPath:ze})},quarantineAlternative:function(e){we({properties:e,arrayPath:Te,quarantineName:je,arrayName:qe,itemPath:ze}),we({properties:e,arrayPath:Ne,quarantineName:je,arrayName:Fe,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Te,quarantineName:je,arrayName:qe,itemPath:ze}),Re({properties:e,arrayPath:Ne,quarantineName:je,arrayName:Fe,itemPath:ze})}},Be={hypercube:W,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:Le,conditionalShow:$e}})(),n.default})();var _g=$(kg.exports);const Tg="qHyperCubeDef.qDimensions",qg="dimensions",Ng="qDef.representation",Fg="tableRepresentation",zg=(e,t,r)=>{const n=e.length+t.length,o=((null==r?void 0:r.length)===n?r:Array.from(Array(n).keys())).map((r=>((e,t,r)=>{var n;const o=t.length,i=e<o?t[e]:r[e-o],{columnWidth:a}=i.qDef;return"pixels"===(null==a?void 0:a.type)?null!==(n=a.pixels)&&void 0!==n?n:ph.PixelsDefault:-1})(r,e,t)));return o},jg=({propertyTree:e,hyperCubePath:t})=>{const r=_g.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:n,qDimensions:o,qMeasures:i}}=r.properties,a=zg(o,i,n);return Rg(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),_g.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),_g.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),_g.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{_g.quarantineArrayProp({properties:e,arrayPath:Tg,itemPath:Ng,arrayName:qg,quarantineName:Fg})})(r.properties),r};const $g=(e,t,r,n)=>{let o=t;n&&(o=t-n);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(r)&&r.length>0){const e=r[t];i.qDef.columnWidth="number"==typeof e&&e>0?{type:fh.Pixels,pixels:e}:{type:fh.FitToContent}}return i},Bg=({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o,viewDataMode:i})=>{const a=_g.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});_g.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{_g.unquarantineArrayProp({properties:e,arrayPath:Tg,itemPath:Ng,arrayName:qg,quarantineName:Fg})})(a.qProperty);const{qHyperCubeDef:{qDimensions:l,qMeasures:s,qColumnOrder:u,columnWidths:c}}=a.qProperty,{dimensions:d,measures:p}=((e,t,r,n)=>{const o=e.length,i=o+t.length,a=(null==r?void 0:r.length)===i?r:Array.from(Array(i).keys());return{dimensions:a.filter((e=>e<o)).map((t=>$g(e,t,n))),measures:a.filter((e=>e>=o)).map((e=>$g(t,e,n,o)))}})(l,s,u,c);return Array.isArray(c)&&c.length>0&&(Rg(a,"qProperty.qHyperCubeDef.qDimensions",d),Rg(a,"qProperty.qHyperCubeDef.qMeasures",p)),i&&(Rg(a,"qProperty.totals.show",!1),Rg(a,"qProperty.usePagination",!0)),_g.conditionalShow.unquarantine(a.qProperty),a};var Hg={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};function Vg(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function Wg(e,t){let r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}function Gg(e){return e>0?0:1}function Ug(e){return e.translator.get("Visualizations.Descriptions.Column")}function Yg(e){return{measures:{min:Gg,max:1e3,description:()=>Ug(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;Vg(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties;Wg(o,(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n)}},dimensions:{min:Gg,max:1e3,description:()=>Ug(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return Vg(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(null!=e&&e.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;Wg(o,n)}}}}var Kg,Xg={};Kg=Xg,(()=>{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)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(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:()=>Me});var e=r(229),t=r.n(e);const o=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 l=a[i];return a[i]=r,{updated:r,previous:l}}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 l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}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],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var l=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return h(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=m(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(l);if(-1!==r){var n=t.indexOf(s);if(-1!==n)return t.substring(r+l.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 l=S({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),r=e.indexOf(s);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}var R=t().bind(null,!0),A={},I=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===w(e)}function P(e){return void 0===e}function L(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function M(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=P(e[r||t])?i:e[t],e=e[r||t]}})),e}function O(e,t){var r=!0;if(D(e)&&D(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(I(e)&&I(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}A.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(r,"/").concat(o);O(i,a)||L(t,o)||(P(a)?n.push({op:"add",path:l,value:i}):D(i)&&D(a)?n=n.concat(A.generate(a,i,l)):I(i)&&I(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&P(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(O(t,o))return n;if(!P(t[0])&&P(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(n.push({op:"remove",path:"".concat(r,"/").concat(l)}),o.splice(l,1)):n=n.concat(A.generate(o[l],t[i],"".concat(r,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(n.push({op:"move",path:"".concat(r,"/").concat(s),from:"".concat(r,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return n}(a,i,l)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){P(t[o])&&!L(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},A.apply=function(e,t){t.forEach((function(t){var r,n,o=M(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,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(D(a)&&D(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!L(r,e)&&delete r[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=M(e,t.from);I(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const k=A,_=function(e,r,n){if(!e)return Promise.resolve();var o=k.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var T="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===T)return r[n]}function N(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===T)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(r,s),p=E.getAboveComp(r,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=q(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=q(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(T))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var j="movingAverage";function $(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===j)return r[n]}function B(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===j)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var H={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return r;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),m=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(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(j))return!1;var i=$(t,e);return i&&!i.disabled}};return r}};var W="timeSeriesDecomposition";function G(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===W)return r[n]}function U(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===W)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=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(W))return!1;var i=G(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(r,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var l=ae(t),s=le(t,r,n),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,s,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",Ce="qDef.base.qLabel",we="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Ie={initBase:function(e,t){(t||Ie.isValid(e))&&(o(e,ve,i(e,be)),o(e,xe,i(e,ye)),o(e,Ce,i(e,Se)),o(e,we,i(e,Ee)))},restoreBase:function(e){Ie.isValid(e)&&(o(e,be,i(e,ve)),o(e,ye,i(e,xe)),o(e,Se,i(e,Ce)),o(e,Ee,i(e,we)),i(e,Re)&&i(e,Ae)&&o(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const De=Ie;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 Le={accumulation:z,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Me={modifiers:Le,apply:ke,applyModifiers:_e,cleanUpMeasure:Te,destroy:function(e){e&&Oe[e.id]&&Oe[e.id].masterItemSubscriber&&(Oe[e.id].masterItemSubscriber&&Oe[e.id].masterItemSubscriber.unsubscribe(),delete Oe[e.id])},hasActiveModifiers:qe,getActiveModifier:Ne,initBase:De.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Le[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Le[e]&&Le[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=je(e);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var Oe={};function ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;Oe[r.id]=Oe[r.id]||{isFirstTime:!0};var u=Oe[r.id].isFirstTime;if(Oe[r.id].isFirstTime=!1,n&&"object"===Pe(n))return _e({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=Oe[r.id].lastReloadTime;if(Oe[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.model,o=e.lastReloadTime;return i(n,"app.layout.qLastReloadTime")!==o&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ge({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ue({modifiers:je(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Be(n);var o=Qe(n);return Ye({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return m&&function(e){var t=e.properties;ze(t).forEach((function(e){return function(e){var t=e.measure;if(Ge({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===Pe(e)&&!e.disabled){if(r++,"object"!==Pe(Le[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=Le[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ve(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),_e({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Pe(e.base)}))}(p)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return ze(n).forEach((function(e){return Te(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(s)}function _e(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=s?t()(!0,{},o):o),Be(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(r||(r=ze(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return Te(e)})),Promise.resolve();var s=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ue({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;De.isValid(r)||De.initBase(r,!0);var s=r.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Pe(e)&&!e.disabled){if(l++,"object"!==Pe(Le[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Le[e.type].initModifier(e,r);var s=r.qLibraryId||c&&c.qLibraryId;s?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Le[n.type].generateExpression({expression:l,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,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:s,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Le[n.type].updateModifier&&Le[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),l=""===a?a:Le[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),He(r)):Te(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:n,newProperties:o,model:r}):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&&!Le[e.type]}))}(e)?De.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:je(e),properties:r,layout:n})}))}function Ne(e){var t=je(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Le[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||Le[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){ze(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&$e(r)!==e.qDef.qDef?delete e.qDef.base:!De.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function He(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Pe(t)&&(t.disabled||!Le[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ve(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function Ge(e){var t=e.measure,r=e.properties,n=e.layout;return!We(t)&&Ue({modifiers:je(t),properties:r,layout:n})}function Ue(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Pe(e)||e.disabled||!Le[e.type])&&(void 0===o[e.type]&&(o[e.type]=Le[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={},l=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):_(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Pe(e)&&!e.disabled&&Le[e.type]&&Le[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=je(t);if(Ue({modifiers:n,properties:e})){var i=We(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Oe[t.id].masterItemSubscriber=Oe[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},r=i(e,"qInfo.qType");return r&&l[r]&&l[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=s(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:s(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];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]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose()})),n={}}}}({model:t,callback:function(e){return ke({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),Oe[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),Kg.default=n.default,Object.defineProperty(Kg,"__esModule",{value:!0})})();var Jg=$(Xg);let Zg=function(e){return e.Text="text",e.Link="link",e.Image="image",e.Indicator="indicator",e}({}),Qg=function(e){return e.Attribute="attribute",e.Dimension="dimension",e.Measure="measure",e}({});const eb=e=>{switch(null==e?void 0:e.type){case"url":return Zg.Link;case"image":return Zg.Image;case"indicator":return Zg.Indicator;default:return Zg.Text}},tb=(e,t)=>!e.properties.qHyperCubeDef.qIndentMode||!t,rb=(e,t,r)=>{if(e||t)return{uses:"dimensionRepresentationItems.representationType",show:(e,t,n)=>tb(n,r),options(){const r=[{value:"text",translation:"Object.Table.Representation.Text"}];return t&&r.push({value:"url",translation:"Object.Table.Representation.Link"}),e&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),r}}},nb=(e,t)=>{if(e)return{representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:(e,r,n)=>eb(e.qDef.representation)===Zg.Link&&tb(n,t)},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:(e,r,n)=>{var o;return eb(e.qDef.representation)===Zg.Link&&(null===(o=e.qDef.representation)||void 0===o?void 0:o.urlPosition)===Qg.Dimension&&tb(n,t)}},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:(e,r,n)=>{var o;return eb(e.qDef.representation)===Zg.Link&&(null===(o=e.qDef.representation)||void 0===o?void 0:o.urlPosition)===Qg.Attribute&&tb(n,t)}}}},ob=(e,t)=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:(e,r,n)=>eb(e.qDef.representation)===Zg.Image&&tb(n,t),items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}}},ib=e=>{var t,r;const{anything:n,flags:o}=e,i=o.isEnabled("CLIENT_IM_5975_INDENT_MODE"),a=o.isEnabled("CLIENT_IM_5715_LINKS"),l=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=n&&null!==(t=n.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"tableImages"));return{representationType:rb(l,a,i),...nb(a,i),...ob(l,i)}},ab=e=>{var t,r;const{flags:n,anything:o}=e,i=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=o&&null!==(t=o.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"tableImages")),a=n.isEnabled("CLIENT_IM_5975_INDENT_MODE"),l=n.isEnabled("CLIENT_IM_6696_INDICATORS"),s=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"image",translation:"Object.Table.Representation.Image"}],u=[{value:"indicator",translation:"Object.Table.Representation.Indicator"}];return{representationType:{uses:"measureRepresentationItems.representationType",show:(e,t,r)=>tb(r,a),options:i&&l?[...s,...u]:i?s:l?u:void 0},representationImage:i?{uses:"measureRepresentationItems.representationImage",show:(e,t,r)=>eb(e.qDef.representation)===Zg.Image&&tb(r,a),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:l?{uses:"measureRepresentationItems.representationIndicator"}:void 0}},lb={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},sb=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"},...e.flags.isEnabled("CLIENT_IM_6573_TEXT_STYLE")?[{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}]}}),ub={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}},cb=e=>{var t,r,n,o;return{type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!Jg.hasActiveModifiers({measures:[e],properties:t.properties})||Jg.ifEnableTotalsFunction(e)?[{value:"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"totals")?"None":"Expr"}}}},show:!(null!=e&&null!==(n=e.anything)&&void 0!==n&&null!==(n=n.sense)&&void 0!==n&&null!==(o=n.isUnsupportedFeature)&&void 0!==o&&o.call(n,"totals"))}},db={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:fh.Auto,translation:"Common.Auto"},{value:fh.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:fh.Pixels,translation:"Object.Table.Column.Pixels"},{value:fh.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:fh.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:200,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===fh.Pixels},change(e){e.qDef.columnWidth.pixels=void 0===e.qDef.columnWidth.pixels?e.qDef.columnWidth.pixels:Math.max(1,Math.min(ph.PixelsMax,e.qDef.columnWidth.pixels))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:20,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===fh.Percentage},change(e){e.qDef.columnWidth.percentage=void 0===e.qDef.columnWidth.percentage?e.qDef.columnWidth.percentage:Math.max(1,Math.min(ph.PercentageMax,e.qDef.columnWidth.percentage))}}},pb=e=>({...lb,...sb(e),...ub,...db}),fb={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"}},mb=(e,t)=>({libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>{var r;return t?!!(e.qLibraryId||null!==(r=e.qDef.base)&&void 0!==r&&r.qLibraryId):!!e.qLibraryId}},inlineMeasure:{component:"inline-measure",show:e=>{var r;return t?!(e.qLibraryId||null!==(r=e.qDef.base)&&void 0!==r&&r.qLibraryId):!e.qLibraryId}},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:cb(e)}),hb=(e,t)=>({type:"items",translation:"Common.Data",component:"data-assets-panel",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:fb},presentation:{type:"items",translation:"properties.presentation",items:{...pb(e),...ib(e)}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:mb(e,t)},presentation:{type:"items",translation:"properties.presentation",items:{...pb(e),...ab(e)}}}}}}),gb={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}},bb=e=>{var t,r;return{type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!(null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"totals"))}},vb=(e,t,r)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:!1,defaultValue(e,t,n){const o=n.theme.current(),i=r(o);return{color:"transparent"===i?"none":i}}}),yb=(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},xb=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:"Source Sans Pro, sans-serif",l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>yb(e,!0)))],c=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...Km(n).filter((e=>!s.includes(e))).map((e=>yb(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),Sb=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],Eb=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{var n;const o=t.fontSize,i=null!==(n=t.fontSizes)&&void 0!==n?n:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>yb(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...Sb.filter((e=>!a.includes(e))).map((e=>yb(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),Cb=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i})=>({component:"panel-section",translation:null!=i?i:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:xb({ref:`${e}.fontFamily`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontFamily"))&&void 0!==r?r:t.fontFamily},translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:Eb({ref:`${e}.fontSize`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontSize"))&&void 0!==r?r:t.fontSize},translator:r}),fontColor:vb(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=o(t,e,"color"))&&void 0!==r?r:t.color}))}},background:vb(`${e}.background`,"properties.background",(t=>{var r;return null!==(r=o(t,e,"backgroundColor"))&&void 0!==r?r:"transparent"}))}}}}),wb=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:vb(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=n(t,e,"color"))&&void 0!==r?r:t.color}))}},background:vb(`${e}.background`,"properties.background",(t=>{var o,i;return null!==(o=null!==(i=n(t,e,"backgroundColor"))&&void 0!==i?i:r)&&void 0!==o?o:"transparent"}))}}}}),Rb=e=>{var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},Ab={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:Rb,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:Rb,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},Ib=(e,t,r)=>{var n,o,i,a,l;switch(t){case"header":return null===(n=e.object)||void 0===n||null===(n=n.straightTableV2)||void 0===n||null===(n=n.dimension)||void 0===n||null===(n=n.label)||void 0===n||null===(n=n.name)||void 0===n?void 0:n[r];case"dimensionValues":return null===(o=e.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[r];case"measureValues":return null===(i=e.object)||void 0===i||null===(i=i.straightTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.value)||void 0===i?void 0:i[r];case"totalRow":return null===(a=e.object)||void 0===a||null===(a=a.straightTableV2)||void 0===a||null===(a=a.total)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[r];case"nullValues":return null===(l=e.object)||void 0===l||null===(l=l.straightTableV2)||void 0===l||null===(l=l.null)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[r];default:return}},Db={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,translation:"ThemeStyleEditor.style.rowHeight",change(e){var t,r,n;null!==(null==e||null===(t=e.content)||void 0===t?void 0:t.rowHeight)&&void 0!==(null==e||null===(r=e.content)||void 0===r?void 0:r.rowHeight)&&""!==(null==e||null===(n=e.content)||void 0===n?void 0:n.rowHeight)?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):e.content.rowHeight=void 0}},Pb=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),...Db},border:vb("grid.border","properties.border",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.straightTableV2)||void 0===r||null===(r=r.grid)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:vp.BORDER_MEDIUM})),divider:vb("grid.divider","properties.pivot.divider",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.straightTableV2)||void 0===r||null===(r=r.grid)||void 0===r||null===(r=r.divider)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:vp.BORDER_HEAVY}))}}}}),Lb=({flags:e,translator:t})=>({headerSection:Cb({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:Ib}),dimensionValueSection:Cb({section:"dimensionValues",translator:t,flags:e,getThemeValue:Ib}),measureValueSection:Cb({section:"measureValues",translator:t,flags:e,getThemeValue:Ib}),totalRowSection:Cb({section:"totalValues",translation:"properties.totals",translator:t,flags:e,getThemeValue:Ib}),nullValues:wb({section:"nullValues",fallbackBackground:vp.NULL_VALUE_BACKGROUND,getThemeValue:Ib}),grid:Pb(e),hoverEffectSection:Ab}),Mb=e=>({headerSection:{translation:"properties.Header",component:"panel-section",items:{headerFontItem:{component:"items",ref:"components",key:"theme",items:{headerFontWrapper:{component:"inline-wrapper",items:{headerFontSize:{component:"integer",ref:"header.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,r){var n,o;const i=r.theme.current();return parseInt(null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:i.fontSize,10)},change(e){e.header.fontSize=e.header.fontSize?Math.max(5,Math.min(300,Math.floor(e.header.fontSize))):e.header.fontSize}},headerFontColor:{show:!0,ref:"header.fontColor",type:"object",component:"color-picker",defaultValue(e,t,r){var n,o;const i=r.theme.current();return{color:null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.color)&&void 0!==n?n:i.color}},dualOutput:!0}}}}}}},contentSection:{component:"panel-section",translation:"properties.Content",items:{contentFontItem:{component:"items",ref:"components",key:"theme",items:{contentFontWrapper:{component:"inline-wrapper",items:{contentFontSize:{component:"integer",ref:"content.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,r){var n,o;const i=r.theme.current();return parseInt(null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:i.fontSize,10)},change(e){e.content.fontSize=e.content.fontSize?Math.max(5,Math.min(300,Math.floor(e.content.fontSize))):e.content.fontSize}},contentFontColor:{ref:"content.fontColor",type:"object",component:"color-picker",defaultValue(e,t,r){var n,o;const i=r.theme.current();return{color:null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.color)&&void 0!==n?n:i.color}},dualOutput:!0}}}}}}},rowHeightSection:{show:()=>e.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),component:"panel-section",translation:"ThemeStyleEditor.style.rowHeight",items:{rowHeightItem:{component:"items",ref:"components",key:"theme",items:{rowHeight:Db}}}},hoverEffectSection:Ab}),Ob=e=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:e.flags.isEnabled("CLIENT_IM_6546_TABLE_BG_COLOR"),defaultValue:[],items:e.flags.isEnabled("CLIENT_IM_6221_TABLE_STYLING")?Lb(e):Mb(e)}]}),kb=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[Ob(e),bb(e),{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1}]},...gb}}),_b={uses:"sorting"},Tb={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},qb=(e,t)=>({type:"items",component:"accordion",items:{data:hb(e,t),sorting:_b,addOns:Tb,settings:kb(e)}});function Nb(e){const t=e.flags.isEnabled("CLIENT_IM-6276_PIVOT_MODIFIER");return{definition:qb(e,t),exploration:Hg,data:Yg(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:t?["accumulation","movingAverage","difference","normalization"]:void 0},importProperties(e,t,r,n){const o={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()};return Bg({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o})},exportProperties:(e,t)=>jg({propertyTree:e,hyperCubePath:t})}}const Fb=(e,t)=>n((()=>((e,t)=>(r,{isDim:n,colIdx:o})=>{const i=n?o:o-e.qDimensionInfo.length,a=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,l=e[n?"qDimensionInfo":"qMeasureInfo"][i].columnWidth,s=l?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...l,...r})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(r)};null==t||t.applyPatches([s],!0)})(e,t)),[e,t]),zb=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{});let jb;const $b=new Uint8Array(16);function Bb(){if(!jb&&(jb="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!jb))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return jb($b)}const Hb=[];for(let e=0;e<256;++e)Hb.push((e+256).toString(16).slice(1));var Vb={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Wb(e,t,r){if(Vb.randomUUID&&!t&&!e)return Vb.randomUUID();const n=(e=e||{}).random||(e.rng||Bb)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return function(e,t=0){return Hb[e[t+0]]+Hb[e[t+1]]+Hb[e[t+2]]+Hb[e[t+3]]+"-"+Hb[e[t+4]]+Hb[e[t+5]]+"-"+Hb[e[t+6]]+Hb[e[t+7]]+"-"+Hb[e[t+8]]+Hb[e[t+9]]+"-"+Hb[e[t+10]]+Hb[e[t+11]]+Hb[e[t+12]]+Hb[e[t+13]]+Hb[e[t+14]]+Hb[e[t+15]]}(n)}const Gb=()=>{var e,t,r;return null!==(e=null===(t=crypto)||void 0===t||null===(r=t.randomUUID)||void 0===r?void 0:r.call(t))&&void 0!==e?e:Wb()},Ub=({qLibraryId:e,cId:t})=>{var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:Gb()};function Yb(e){return Yb="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},Yb(e)}function Kb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xb(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,(o=n.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),n)}var o,i}function Jb(e,t,r){return t&&Xb(e.prototype,t),r&&Xb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zb(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ev(e,t)}function Qb(e){return Qb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qb(e)}function ev(e,t){return ev=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ev(e,t)}function tv(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function rv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Qb(e);if(t){var o=Qb(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return tv(this,r)}}function nv(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,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ov(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ov(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ov(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}var iv={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var r,n=e.indexOf("="),o="",i=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),i=!0),t.push(function(e,t,r){return{key:av(e),value:av(t),useEqualSign:r}}(r,o,i))}})),t}};function av(e){try{return decodeURIComponent(e)}catch(t){return e}}function lv(e){if(!(this instanceof lv))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return iv.fromSearchString(t.search)}}})}function sv(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}lv.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},lv.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=sv((t=e[n]).key),t.value?r+="=".concat(sv(t.value)):r+=t.useEqualSign?"=":"";return r};var uv,cv=function(){function e(t){Kb(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return Jb(e,[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}]),e}(),dv=function(){function e(){Kb(this,e)}return Jb(e,[{key:"decode",value:function(e){for(var t,r="",n=new cv(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),pv=function(e){return e>=0&&e<=1114111},fv=function(e){return e.match(/[\s]/)},mv=function(){Zb(t,dv);var e=rv(t);function t(){return Kb(this,t),e.apply(this,arguments)}return Jb(t,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,r=0;r<5&&(null!=(n=e.next())&&!fv(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return pv(a)?String.fromCharCode(a):"�"}}]),t}(),hv=function(){function e(t,r){Kb(this,e),this._key=t,this._value=r}return Jb(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}}]),e}(),gv=function(){function e(){Kb(this,e)}return Jb(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,r,n){var o,i;if(t.length===r)return i=this._value,this.setValue(n),i;var a=t.charAt(r);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return hv.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return hv.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||hv.newInstanceIfNeeded(e,t,this._value)}}]),e}(),bv=function(){function e(){Kb(this,e),this.clear()}return Jb(e,[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new gv);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),vv=function(){var e,t,r,n=[],o=[],i=new bv;for(e in n["&quot"]="34",n["&amp"]="38",n["&lt"]="60",n["&gt"]="62",n["&nbsp"]="160",n["&iexcl"]="161",n["&cent"]="162",n["&pound"]="163",n["&curren"]="164",n["&yen"]="165",n["&brvbar"]="166",n["&sect"]="167",n["&uml"]="168",n["&copy"]="169",n["&ordf"]="170",n["&laquo"]="171",n["&not"]="172",n["&shy"]="173",n["&reg"]="174",n["&macr"]="175",n["&deg"]="176",n["&plusmn"]="177",n["&sup2"]="178",n["&sup3"]="179",n["&acute"]="180",n["&micro"]="181",n["&para"]="182",n["&middot"]="183",n["&cedil"]="184",n["&sup1"]="185",n["&ordm"]="186",n["&raquo"]="187",n["&frac14"]="188",n["&frac12"]="189",n["&frac34"]="190",n["&iquest"]="191",n["&Agrave"]="192",n["&Aacute"]="193",n["&Acirc"]="194",n["&Atilde"]="195",n["&Auml"]="196",n["&Aring"]="197",n["&AElig"]="198",n["&Ccedil"]="199",n["&Egrave"]="200",n["&Eacute"]="201",n["&Ecirc"]="202",n["&Euml"]="203",n["&Igrave"]="204",n["&Iacute"]="205",n["&Icirc"]="206",n["&Iuml"]="207",n["&ETH"]="208",n["&Ntilde"]="209",n["&Ograve"]="210",n["&Oacute"]="211",n["&Ocirc"]="212",n["&Otilde"]="213",n["&Ouml"]="214",n["&times"]="215",n["&Oslash"]="216",n["&Ugrave"]="217",n["&Uacute"]="218",n["&Ucirc"]="219",n["&Uuml"]="220",n["&Yacute"]="221",n["&THORN"]="222",n["&szlig"]="223",n["&agrave"]="224",n["&aacute"]="225",n["&acirc"]="226",n["&atilde"]="227",n["&auml"]="228",n["&aring"]="229",n["&aelig"]="230",n["&ccedil"]="231",n["&egrave"]="232",n["&eacute"]="233",n["&ecirc"]="234",n["&euml"]="235",n["&igrave"]="236",n["&iacute"]="237",n["&icirc"]="238",n["&iuml"]="239",n["&eth"]="240",n["&ntilde"]="241",n["&ograve"]="242",n["&oacute"]="243",n["&ocirc"]="244",n["&otilde"]="245",n["&ouml"]="246",n["&divide"]="247",n["&oslash"]="248",n["&ugrave"]="249",n["&uacute"]="250",n["&ucirc"]="251",n["&uuml"]="252",n["&yacute"]="253",n["&thorn"]="254",n["&yuml"]="255",n["&OElig"]="338",n["&oelig"]="339",n["&Scaron"]="352",n["&scaron"]="353",n["&Yuml"]="376",n["&fnof"]="402",n["&circ"]="710",n["&tilde"]="732",n["&Alpha"]="913",n["&Beta"]="914",n["&Gamma"]="915",n["&Delta"]="916",n["&Epsilon"]="917",n["&Zeta"]="918",n["&Eta"]="919",n["&Theta"]="920",n["&Iota"]="921",n["&Kappa"]="922",n["&Lambda"]="923",n["&Mu"]="924",n["&Nu"]="925",n["&Xi"]="926",n["&Omicron"]="927",n["&Pi"]="928",n["&Rho"]="929",n["&Sigma"]="931",n["&Tau"]="932",n["&Upsilon"]="933",n["&Phi"]="934",n["&Chi"]="935",n["&Psi"]="936",n["&Omega"]="937",n["&alpha"]="945",n["&beta"]="946",n["&gamma"]="947",n["&delta"]="948",n["&epsilon"]="949",n["&zeta"]="950",n["&eta"]="951",n["&theta"]="952",n["&iota"]="953",n["&kappa"]="954",n["&lambda"]="955",n["&mu"]="956",n["&nu"]="957",n["&xi"]="958",n["&omicron"]="959",n["&pi"]="960",n["&rho"]="961",n["&sigmaf"]="962",n["&sigma"]="963",n["&tau"]="964",n["&upsilon"]="965",n["&phi"]="966",n["&chi"]="967",n["&psi"]="968",n["&omega"]="969",n["&thetasym"]="977",n["&upsih"]="978",n["&piv"]="982",n["&ensp"]="8194",n["&emsp"]="8195",n["&thinsp"]="8201",n["&zwnj"]="8204",n["&zwj"]="8205",n["&lrm"]="8206",n["&rlm"]="8207",n["&ndash"]="8211",n["&mdash"]="8212",n["&lsquo"]="8216",n["&rsquo"]="8217",n["&sbquo"]="8218",n["&ldquo"]="8220",n["&rdquo"]="8221",n["&bdquo"]="8222",n["&dagger"]="8224",n["&Dagger"]="8225",n["&bull"]="8226",n["&hellip"]="8230",n["&permil"]="8240",n["&prime"]="8242",n["&Prime"]="8243",n["&lsaquo"]="8249",n["&rsaquo"]="8250",n["&oline"]="8254",n["&frasl"]="8260",n["&euro"]="8364",n["&image"]="8365",n["&weierp"]="8472",n["&real"]="8476",n["&trade"]="8482",n["&alefsym"]="8501",n["&larr"]="8592",n["&uarr"]="8593",n["&rarr"]="8594",n["&darr"]="8595",n["&harr"]="8596",n["&crarr"]="8629",n["&lArr"]="8656",n["&uArr"]="8657",n["&rArr"]="8658",n["&dArr"]="8659",n["&hArr"]="8660",n["&forall"]="8704",n["&part"]="8706",n["&exist"]="8707",n["&empty"]="8709",n["&nabla"]="8711",n["&isin"]="8712",n["&notin"]="8713",n["&ni"]="8715",n["&prod"]="8719",n["&sum"]="8721",n["&minus"]="8722",n["&lowast"]="8727",n["&radic"]="8730",n["&prop"]="8733",n["&infin"]="8734",n["&ang"]="8736",n["&and"]="8743",n["&or"]="8744",n["&cap"]="8745",n["&cup"]="8746",n["&int"]="8747",n["&there4"]="8756",n["&sim"]="8764",n["&cong"]="8773",n["&asymp"]="8776",n["&ne"]="8800",n["&equiv"]="8801",n["&le"]="8804",n["&ge"]="8805",n["&sub"]="8834",n["&sup"]="8835",n["&nsub"]="8836",n["&sube"]="8838",n["&supe"]="8839",n["&oplus"]="8853",n["&otimes"]="8855",n["&perp"]="8869",n["&sdot"]="8901",n["&lceil"]="8968",n["&rceil"]="8969",n["&lfloor"]="8970",n["&rfloor"]="8971",n["&lang"]="9001",n["&rang"]="9002",n["&loz"]="9674",n["&spades"]="9824",n["&clubs"]="9827",n["&hearts"]="9829",n["&diams"]="9830",n)"function"!=typeof n[e]&&n.hasOwnProperty(e)&&(o[n[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(r=o[t].toLowerCase().substr(1),i.put(r,String.fromCharCode(t)));return i}(),yv=function(){Zb(t,dv);var e=rv(t);function t(){return Kb(this,t),e.apply(this,arguments)}return Jb(t,[{key:"decodeCharacter",value:function(e){var t;e.mark();var r=e.next();if(null==r||"&"!==r)return e.reset(),null;var n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(null!=(t=this._getNumericEntity(e)))return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,r,n,o="";for(t=Math.min(e.remainder().length,vv.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=vv.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,16);return!Number.isNaN(+n)&&pv(n)?String.fromCharCode(n):null}},{key:"_parseNumber",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,10);return!Number.isNaN(+n)&&pv(n)?String.fromCharCode(n):null}}]),t}(),xv=function(){Zb(t,dv);var e=rv(t);function t(){return Kb(this,t),e.apply(this,arguments)}return Jb(t,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",r=0;r<2;r++)null!=(n=e.nextHex())&&(t+=n);return 2===t.length&&(o=parseInt(t,16),pv(o))?String.fromCharCode(o):(e.reset(),null)}}]),t}(),Sv=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(uv=document.createElement("div"));var Ev=Array.prototype.indexOf,Cv=[",",".","_"," "],wv={default:[",",".","-","_"," "]},Rv={width:["%"],height:["%"]},Av={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},Iv={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":Av.image,"background-color":Av.color,"border-color":Av.color,"border-image":Av.image,color:Av.color,icon:Av.image,"list-style-image":Av.image,"outline-color":Av.color},Dv={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function Pv(e,t,r){var n;if(t){if(Ev)return Ev.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 Lv(e){if(null==e)return"";var t,r=document.createTextNode(e);return uv.appendChild(r),t=uv.innerHTML,uv.removeChild(r),t}function Mv(e,t,r){var n,o,i,a,l,s,u,c,d;if(e=kv(e).toLowerCase(),t=kv(t),Pv(e,Dv.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<Dv.attr_val;i++)if(t.toLowerCase().match(Dv.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=Rv[e])||(n=wv.default),o="",!r){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=l}o+='="'}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&Pv(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function Ov(e,t,r){var n,o,i,a,l,s,u,c,d,p;if(e=kv(e).toLowerCase(),t=kv(t),Pv(e,Dv.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<Dv.css_val.length;n++)if(t.toLowerCase().indexOf(Dv.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=Iv[e])||(o=Av.default),i="",!r){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=l}i+=": "}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&Pv(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function kv(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var l=[new yv,new xv,new mv];!a;){n=r;for(var s=0;s<l.length;s++)(i=l[s].decode(r))!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}for(var _v=[],Tv=0;Tv<255;Tv++)_v[Tv]=Tv>=48&&Tv<=57||Tv>=65&&Tv<=90||Tv>=97&&Tv<=122?null:Tv.toString(16);var qv=function(e){return Lv(e.unsafe)},Nv=function(e){var t,r=[],n=[],o={},i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=Ov(t,r[t],!0),i+=Ov(t,r[t],!0),o[t]=n[t]);return e.map?o:i},Fv=function(e){var t=[],r=[],n={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(r[i]=Mv(i,t[i],!0),o+=Mv(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function zv(e,t){throw new Error(t)}var jv={canonicalize:kv,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===Yb(arguments[0])?function(){for(var e,t,r,n=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(n===(r=e[t]))continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?qv(e):"css"===e.context?(null!=e.map&&"object"!==Yb(e.map)&&zv(this,"Invalid parameter type"),Nv(e)):"attr"===e.context?(null!=e.map&&"object"!==Yb(e.map)&&zv(this,"Invalid parameter type"),Fv(e)):void zv(this,"Invalid parameter type")},encodeForAttr:Mv,encodeForAttr2:function(e){return Mv("nonsens",e,!0)},encodeForCSS:Ov,encodeForHref:function(e){kv(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new lv(e),r=lv.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+lv.encodeSearchParams(n)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var r,n,o,i,a,l;for(t||(t=Cv),l="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),Pv(o,t)>=0||null==_v[i]?l+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),l+="\\x".concat(a).concat(n.toUpperCase())):(a="0000".substr(n.length),l+="\\u".concat(a).concat(n.toUpperCase())));return l},encodeForHTML:Lv,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=kv(t).toLowerCase():zv(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':""},isSafeDataURL:function(e,t){var r=null!=t?t:{},n=r.maxByteSizeSvg,o=void 0===n?5e5:n,i=r.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,r=nv(null!==(t=Sv.exec(e.trim()))&&void 0!==t?t:[],4),n=r[1];return{encoding:r[2],data:r[3],mimeType:null==n?void 0:n.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,r){var n={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(r)],n).size}catch(e){return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a}};const $v=(e,t)=>{var r;const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps;return null==n||null===(r=n.qValues)||void 0===r?void 0:r[e]},Bv=e=>{switch(e){case"topLeft":default:return{horizontal:"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"flex-end",vertical:"center"};case"topRight":return{horizontal:"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"flex-end",vertical:"flex-end"}}},Hv=({text:e,url:t,imageSize:r,imagePosition:n})=>n&&t&&!t.toLowerCase().includes("javascript:")&&jv.isSafeDataURL(t)?{type:Zg.Image,url:t,text:e,imageSize:r,resolvedImagePosition:Bv(n)}:{type:Zg.Text,url:void 0,text:e},Vv=(e,t,r)=>{var n;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(n=o.qValues)||void 0===n?void 0:n[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==r?void 0:r.urlPosition)===Qg.Attribute||null==r?void 0:r.urlLabel},Wv=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:Zg.Link,url:jv.encodeForHref(t),text:e}}catch(t){return{type:Zg.Text,url:void 0,text:e}}},Gv=(e,t,r,n)=>{var o,i;const a=eb(t);return a!==Zg.Image||!n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(o=n.anything.sense)&&void 0!==o&&null!==(i=o.isUnsupportedFeature)&&void 0!==i&&i.call(o,"tableImages")?a===Zg.Link&&n.flags.isEnabled("CLIENT_IM_5715_LINKS")?((e,t,r)=>{const{urlPosition:n}=null!=t?t:{};if(n===Qg.Attribute){var o;const n=Vv(null!==(o=r.url)&&void 0!==o?o:-1,e,t),i=e.qText||n||"";return Wv({text:i,url:n})}if(n===Qg.Dimension){var i;const n=Vv(null!==(i=r.urlLabel)&&void 0!==i?i:-1,e,t)||e.qText;return Wv({text:n,url:e.qText})}return{type:Zg.Text,url:void 0,text:e.qText}})(e,t,r):a===Zg.Indicator&&n.flags.isEnabled("CLIENT_IM_6696_INDICATORS")?((e,t)=>{const{indicator:r,indicatorConditionalColoring:n}=null!=t?t:{};return{type:Zg.Indicator,url:void 0,text:e.qText,indicator:{applySegmentColors:null==r?void 0:r.applySegmentColors,position:null==r?void 0:r.position,showTextValues:null==r?void 0:r.showTextValues},indicatorConditionalColoring:n}})(e,t):{type:Zg.Text,url:void 0,text:e.qText}:((e,t,r)=>{const{imageSize:n,imagePosition:o,imageSetting:i,imageLabel:a}=null!=t?t:{};if("url"===i){var l,s;const t=e.qText,i=null===(l=$v(null!==(s=r.imageUrl)&&void 0!==s?s:-1,e))||void 0===l?void 0:l.qText;return Hv({text:t,url:i,imageSize:n,imagePosition:o})}if("label"===i){var u,c,d;const t=e.qText;if(-1===r.imageLabel)return Hv({text:a||t||"",url:t,imageSize:n,imagePosition:o});const i=null!==(u=null===(c=$v(null!==(d=r.imageLabel)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return Hv({text:i,url:t,imageSize:n,imagePosition:o})}return{type:Zg.Text,url:void 0,text:e.qText}})(e,t,r)},Uv=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,Yv=e=>!Number.isNaN(+e),Kv=e=>!(!e.qNum&&0!==e.qNum||!Yv(e.qNum)),Xv=1e4;function Jv(e,t){return[...t].reverse().find((t=>t*e<=Xv))||Math.floor(Xv/e)}function Zv(e,t){var r,n;if(null!==(r=t.viewState)&&void 0!==r&&r.skipTotals)return{atTop:!1,atBottom:!1};const[o,i,a,l,s]=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,null===(n=e.totals)||void 0===n?void 0:n.show,e.totals.position];if(a&&(o&&i||!l&&!o)){if(l||"top"===s)return{atTop:!0,atBottom:!1};if(!l&&"bottom"===s)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function Qv(e,t,r,n){var o,i,a;return t?0===r&&null!==(a=e.totals.label)&&void 0!==a?a:"":null!==(o=null===(i=e.qHyperCube.qGrandTotalRow[n])||void 0===i?void 0:i.qText)&&void 0!==o?o:""}function ey(e,t){const r=e.qHyperCube.qGrandTotalRow[t];return Yv(null==r?void 0:r.qNum)}function ty(e,t,r){return e&&!e.auto?{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:r?"left":"right",bodyTextAlign:"auto"}}const ry=(e,t)=>"auto"!==t?t:Kv(e)?"right":"left";const ny=e=>{const{qHyperCube:{qColumnOrder:t,qDimensionInfo:r,qMeasureInfo:n}}=e,o=r.length+n.length,i=(null==t?void 0:t.length)===o?t:Array.from(Array(o).keys()),{visibleColumnsOrder:a,visibleColumnIndexes:l}=((e,t,r)=>{const n=t.length,o=[];let i=0,a=0;return{visibleColumnsOrder:e.filter((e=>{const l=e<n,{qError:s}=l?t[e]:r[e-n],u=7005===(null==s?void 0:s.qErrorCode);return u?l?i++:a++:o[e]=l?e-i:e-n-a,!u})),visibleColumnIndexes:o}})(i,r,n);return a.map(((t,r)=>function(e,t,r,n){const{qDimensionInfo:o,qMeasureInfo:i,qEffectiveInterColumnSortOrder:a}=e.qHyperCube,l=o.length,s=t<l,u=s?o[t]:i[t-l],c=t===a[0];let d,p=0,f="",m=!1,h=-1;const{representation:g,conditionalColoring:b}=u;if(s){const e=u;p=e.qGroupPos,f=e.qGroupFieldDefs[p],m=e.qLocked,h=n,({qDimensionType:d}=e)}const{qFallbackTitle:v,textAlign:y,qAttrExprInfo:x,qSortIndicator:S,qReverseSort:E,qApprMaxGlyphCount:C,columnWidth:w,qLibraryId:R}=u;return{isDim:s,isLocked:m,fieldId:f,colIdx:t,qLibraryId:R,pageColIdx:r,qApprMaxGlyphCount:C,qReverseSort:E,columnWidth:w,selectionColIdx:h,isActivelySorted:c,id:Ub(u),label:v,qAttrExprInfoIDs:x.map((e=>e.id)),qAttrExprInfoIndex:zb(u),sortDirection:S&&"N"!==S?S:"A",totalInfo:Qv(e,s,r,n),...!s&&{isTotalNumeric:ey(e,n)},...ty(y,d,s),representation:g,conditionalColoring:s?void 0:b}}(e,t,r,l[t])))};const oy=(e,t)=>{var r;return!!(e.snapshotData||null!==(r=t.viewState)&&void 0!==r&&r.visibleHeight)},iy=(e,t)=>{var r;return void 0!==(null===(r=t.viewState)||void 0===r?void 0:r.usePagination)?t.viewState.usePagination:!1!==e.usePagination||oy(e,t)};var ay="$$material";const ly=["values","unit","step"],sy=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)=>j({},e,{[t.key]:t.val})),{})};function uy(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=K(e,ly),i=sy(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(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 j({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}var cy={borderRadius:4};function dy(e,t){return t?_n(e,t,{clone:!1}):e}const py={xs:0,sm:600,md:900,lg:1200,xl:1536},fy={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${py[e]}px)`};function my(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||fy;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||fy;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||py).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function hy(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 gy(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:hy(e,r)||n,t&&(o=t(o,n,e)),o}function by(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=hy(e.theme,n)||{};return my(e,i,(e=>{let n=gy(a,o,e);return e===n&&"string"==typeof e&&(n=gy(a,o,`${t}${"default"===e?"":ao(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const vy={m:"margin",p:"padding"},yy={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},xy={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Sy=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!xy[e])return[e];e=xy[e]}const[t,r]=e.split(""),n=vy[t],o=yy[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Ey=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Cy=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function wy(e,t,r,n){var o;const i=null!=(o=hy(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 Ry(e){return wy(e,"spacing",8)}function Ay(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 Iy(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Ay(t,r),e)),{})}(Sy(r),n);return my(e,e[r],o)}function Dy(e,t){const r=Ry(e.theme);return Object.keys(e).map((n=>Iy(e,t,n,r))).reduce(dy,{})}function Py(e){return Dy(e,Ey)}function Ly(e){return Dy(e,Cy)}function My(...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]?dy(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Oy(e){return"number"!=typeof e?e:`${e}px solid`}function ky(e,t){return by({prop:e,themeKey:"borders",transform:t})}Py.propTypes={},Py.filterProps=Ey,Ly.propTypes={},Ly.filterProps=Cy;const _y=ky("border",Oy),Ty=ky("borderTop",Oy),qy=ky("borderRight",Oy),Ny=ky("borderBottom",Oy),Fy=ky("borderLeft",Oy),zy=ky("borderColor"),jy=ky("borderTopColor"),$y=ky("borderRightColor"),By=ky("borderBottomColor"),Hy=ky("borderLeftColor"),Vy=ky("outline",Oy),Wy=ky("outlineColor"),Gy=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=wy(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Ay(t,e)});return my(e,e.borderRadius,r)}return null};Gy.propTypes={},Gy.filterProps=["borderRadius"],My(_y,Ty,qy,Ny,Fy,zy,jy,$y,By,Hy,Gy,Vy,Wy);const Uy=e=>{if(void 0!==e.gap&&null!==e.gap){const t=wy(e.theme,"spacing",8),r=e=>({gap:Ay(t,e)});return my(e,e.gap,r)}return null};Uy.propTypes={},Uy.filterProps=["gap"];const Yy=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=wy(e.theme,"spacing",8),r=e=>({columnGap:Ay(t,e)});return my(e,e.columnGap,r)}return null};Yy.propTypes={},Yy.filterProps=["columnGap"];const Ky=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=wy(e.theme,"spacing",8),r=e=>({rowGap:Ay(t,e)});return my(e,e.rowGap,r)}return null};Ky.propTypes={},Ky.filterProps=["rowGap"];function Xy(e,t){return"grey"===t?t:e}My(Uy,Yy,Ky,by({prop:"gridColumn"}),by({prop:"gridRow"}),by({prop:"gridAutoFlow"}),by({prop:"gridAutoColumns"}),by({prop:"gridAutoRows"}),by({prop:"gridTemplateColumns"}),by({prop:"gridTemplateRows"}),by({prop:"gridTemplateAreas"}),by({prop:"gridArea"}));function Jy(e){return e<=1&&0!==e?100*e+"%":e}My(by({prop:"color",themeKey:"palette",transform:Xy}),by({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Xy}),by({prop:"backgroundColor",themeKey:"palette",transform:Xy}));const Zy=by({prop:"width",transform:Jy}),Qy=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])||py[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:Jy(t)}};return my(e,e.maxWidth,t)}return null};Qy.filterProps=["maxWidth"];const ex=by({prop:"minWidth",transform:Jy}),tx=by({prop:"height",transform:Jy}),rx=by({prop:"maxHeight",transform:Jy}),nx=by({prop:"minHeight",transform:Jy});by({prop:"size",cssProperty:"width",transform:Jy}),by({prop:"size",cssProperty:"height",transform:Jy});My(Zy,Qy,ex,tx,rx,nx,by({prop:"boxSizing"}));var ox={border:{themeKey:"borders",transform:Oy},borderTop:{themeKey:"borders",transform:Oy},borderRight:{themeKey:"borders",transform:Oy},borderBottom:{themeKey:"borders",transform:Oy},borderLeft:{themeKey:"borders",transform:Oy},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Oy},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Gy},color:{themeKey:"palette",transform:Xy},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Xy},backgroundColor:{themeKey:"palette",transform:Xy},p:{style:Ly},pt:{style:Ly},pr:{style:Ly},pb:{style:Ly},pl:{style:Ly},px:{style:Ly},py:{style:Ly},padding:{style:Ly},paddingTop:{style:Ly},paddingRight:{style:Ly},paddingBottom:{style:Ly},paddingLeft:{style:Ly},paddingX:{style:Ly},paddingY:{style:Ly},paddingInline:{style:Ly},paddingInlineStart:{style:Ly},paddingInlineEnd:{style:Ly},paddingBlock:{style:Ly},paddingBlockStart:{style:Ly},paddingBlockEnd:{style:Ly},m:{style:Py},mt:{style:Py},mr:{style:Py},mb:{style:Py},ml:{style:Py},mx:{style:Py},my:{style:Py},margin:{style:Py},marginTop:{style:Py},marginRight:{style:Py},marginBottom:{style:Py},marginLeft:{style:Py},marginX:{style:Py},marginY:{style:Py},marginInline:{style:Py},marginInlineStart:{style:Py},marginInlineEnd:{style:Py},marginBlock:{style:Py},marginBlockStart:{style:Py},marginBlockEnd:{style:Py},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:Uy},rowGap:{style:Ky},columnGap:{style:Yy},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Jy},maxWidth:{style:Qy},minWidth:{transform:Jy},height:{transform:Jy},maxHeight:{transform:Jy},minHeight:{transform:Jy},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function ix(){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:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=hy(r,l)||{};if(u)return u(o);return my(o,t,(t=>{let r=gy(c,s,t);return t===r&&"string"==typeof t&&(r=gy(c,s,`${e}${"default"===t?"":ao(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=null!=(n=i.unstable_sxConfig)?n:ox;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;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[r])s=dy(s,e(r,o,i,a));else{const e=my({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)?s=dy(s,e):s[r]=t({sx:o,theme:i})}else s=dy(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const ax=ix();ax.filterProps=["sx"];var lx=ax;function sx(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:{}}const ux=["breakpoints","palette","spacing","shape"];function cx(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=K(e,ux),l=uy(r),s=function(e=8){if(e.mui)return e;const t=Ry({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=_n({breakpoints:l,direction:"ltr",components:{},palette:j({mode:"light"},n),spacing:s,shape:j({},cy,i)},a);return u.applyStyles=sx,u=t.reduce(((e,t)=>_n(e,t)),u),u.unstable_sxConfig=j({},ox,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return lx({sx:e,theme:this})},u}var dx=Object.freeze({__proto__:null,default:cx,private_createBreakpoints:uy,unstable_applyStyles:sx});function px(e=null){const t=y.useContext(hn);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const fx=cx();const mx=["sx"],hx=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:ox;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function gx(e){const{sx:t}=e,r=K(e,mx),{systemProps:n,otherProps:o}=hx(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return On(r)?j({},n,r):n}:j({},n,t),j({},o,{sx:i})}var bx=Object.freeze({__proto__:null,default:lx,extendSxProp:gx,unstable_createStyleFunctionSx:ix,unstable_defaultSxConfig:ox});const vx=["className","component"];function yx(e){if(e.type)return e;if("#"===e.charAt(0))return yx(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(_e(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(_e(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function xx(e,t){return e=yx(e),t=function(e,t=0,r=1){return qo(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)}var Sx=y.createContext(null);function Ex(){return y.useContext(Sx)}var Cx="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function wx(e){const{children:t,theme:r}=e,n=Ex(),o=y.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return j({},e,t)}(n,r);return null!=e&&(e[Cx]=null!==n),e}),[r,n]);return ea.jsx(Sx.Provider,{value:o,children:t})}const Rx=["value"],Ax=y.createContext();function Ix(e){let{value:t}=e,r=K(e,Rx);return ea.jsx(Ax.Provider,j({value:null==t||t},r))}const Dx=y.createContext(void 0);function Px({value:e,children:t}){return ea.jsx(Dx.Provider,{value:e,children:t})}function Lx({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?Po(o.defaultProps,n):o.styleOverrides||o.variants?n:Po(o,n)}({props:e,name:t,theme:{components:y.useContext(Dx)}})}const Mx={};function Ox(e,t,r,n=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?j({},t,{[e]:i}):i;return n?()=>a:a}return j({},t,e?{[e]:r}:r)}),[e,t,r,n])}function kx(e){const{children:t,theme:r,themeId:n}=e,o=px(Mx),i=Ex()||Mx,a=Ox(n,o,r),l=Ox(n,i,r,!0),s="rtl"===a.direction;return ea.jsx(wx,{theme:l,children:ea.jsx(hn.Provider,{value:a,children:ea.jsx(Ix,{value:s,children:ea.jsx(Px,{value:null==a?void 0:a.components,children:t})})})})}var _x,Tx={},qx={exports:{}};(_x=qx).exports=function(e){return e&&e.__esModule?e:{default:e}},_x.exports.__esModule=!0,_x.exports.default=_x.exports;var Nx=qx.exports,Fx=B(Te),zx=B(No),jx=Nx;Object.defineProperty(Tx,"__esModule",{value:!0});var $x=Tx.alpha=eS;Tx.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=Kx(e),a=Kx(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Jx({type:"rgb",values:l})},Tx.colorChannel=void 0;var Bx=Tx.darken=tS;Tx.decomposeColor=Kx,Tx.emphasize=nS;var Hx=Tx.getContrastRatio=function(e,t){const r=Qx(e),n=Qx(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};Tx.getLuminance=Qx,Tx.hexToRgb=Yx,Tx.hslToRgb=Zx;var Vx=Tx.lighten=rS;Tx.private_safeAlpha=function(e,t,r){try{return eS(e,t)}catch(t){return e}},Tx.private_safeColorChannel=void 0,Tx.private_safeDarken=function(e,t,r){try{return tS(e,t)}catch(t){return e}},Tx.private_safeEmphasize=function(e,t,r){try{return nS(e,t)}catch(t){return e}},Tx.private_safeLighten=function(e,t,r){try{return rS(e,t)}catch(t){return e}},Tx.recomposeColor=Jx,Tx.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Kx(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 Wx=jx(Fx),Gx=jx(zx);function Ux(e,t=0,r=1){return(0,Gx.default)(e,t,r)}function Yx(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 Kx(e){if(e.type)return e;if("#"===e.charAt(0))return Kx(Yx(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,Wx.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,Wx.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const Xx=e=>{const t=Kx(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};Tx.colorChannel=Xx;function Jx(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 Zx(e){e=Kx(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 l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Jx({type:l,values:s})}function Qx(e){let t="hsl"===(e=Kx(e)).type||"hsla"===e.type?Kx(Zx(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 eS(e,t){return e=Kx(e),t=Ux(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Jx(e)}function tS(e,t){if(e=Kx(e),t=Ux(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 Jx(e)}function rS(e,t){if(e=Kx(e),t=Ux(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 Jx(e)}function nS(e,t=.15){return Qx(e)>.5?tS(e,t):rS(e,t)}Tx.private_safeColorChannel=(e,t)=>{try{return Xx(e)}catch(t){return e}};var oS={black:"#000",white:"#fff"};var iS={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"};var aS={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var lS={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"};var sS={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"};var uS={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"};var cS={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var dS={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"};const pS=["mode","contrastThreshold","tonalOffset"],fS={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:oS.white,default:oS.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}},mS={text:{primary:oS.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:oS.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 hS(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=Vx(e.main,o):"dark"===t&&(e.dark=Bx(e.main,i)))}function gS(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=K(e,pS),i=e.primary||function(e="light"){return"dark"===e?{main:uS[200],light:uS[50],dark:uS[400]}:{main:uS[700],light:uS[400],dark:uS[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:aS[200],light:aS[50],dark:aS[400]}:{main:aS[500],light:aS[300],dark:aS[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:lS[500],light:lS[300],dark:lS[700]}:{main:lS[700],light:lS[400],dark:lS[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:cS[400],light:cS[300],dark:cS[700]}:{main:cS[700],light:cS[500],dark:cS[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:dS[400],light:dS[300],dark:dS[700]}:{main:dS[800],light:dS[500],dark:dS[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:sS[400],light:sS[300],dark:sS[700]}:{main:"#ed6c02",light:sS[500],dark:sS[900]}}(t);function d(e){return Hx(e,mS.text.primary)>=r?mS.text.primary:fS.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=j({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(_e(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(_e(12,t?` (${t})`:"",JSON.stringify(e.main)));return hS(e,"light",o,n),hS(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:mS,light:fS};return _n(j({common:j({},oS),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:iS,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const bS=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const vS={textTransform:"uppercase"},yS='"Roboto", "Helvetica", "Arial", sans-serif';function xS(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=yS,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=K(r,bS),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return j({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===yS?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,vS),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,vS),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return _n(j({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function SS(...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(",")}var ES=["none",SS(0,2,1,-1,0,1,1,0,0,1,3,0),SS(0,3,1,-2,0,2,2,0,0,1,5,0),SS(0,3,3,-2,0,3,4,0,0,1,8,0),SS(0,2,4,-1,0,4,5,0,0,1,10,0),SS(0,3,5,-1,0,5,8,0,0,1,14,0),SS(0,3,5,-1,0,6,10,0,0,1,18,0),SS(0,4,5,-2,0,7,10,1,0,2,16,1),SS(0,5,5,-3,0,8,10,1,0,3,14,2),SS(0,5,6,-3,0,9,12,1,0,3,16,2),SS(0,6,6,-3,0,10,14,1,0,4,18,3),SS(0,6,7,-4,0,11,15,1,0,4,20,3),SS(0,7,8,-4,0,12,17,2,0,5,22,4),SS(0,7,8,-4,0,13,19,2,0,5,24,4),SS(0,7,9,-4,0,14,21,2,0,5,26,4),SS(0,8,9,-5,0,15,22,2,0,6,28,5),SS(0,8,10,-5,0,16,24,2,0,6,30,5),SS(0,8,11,-5,0,17,26,2,0,6,32,5),SS(0,9,11,-5,0,18,28,2,0,7,34,6),SS(0,9,12,-6,0,19,29,2,0,7,36,6),SS(0,10,13,-6,0,20,31,3,0,8,38,7),SS(0,10,13,-6,0,21,33,3,0,8,40,7),SS(0,10,14,-6,0,22,35,3,0,8,42,7),SS(0,11,14,-7,0,23,36,3,0,9,44,8),SS(0,11,15,-7,0,24,38,3,0,9,46,8)];const CS=["duration","easing","delay"],wS={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)"},RS={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function AS(e){return`${Math.round(e)}ms`}function IS(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function DS(e){const t=j({},wS,e.easing),r=j({},RS,e.duration);return j({getAutoHeightDuration:IS,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return K(n,CS),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:AS(o)} ${i} ${"string"==typeof a?a:AS(a)}`)).join(",")}},e,{easing:t,duration:r})}var PS={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const LS=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function MS(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=K(e,LS);if(e.vars)throw new Error(_e(18));const l=gS(n),s=cx(e);let u=_n(s,{mixins:(c=s.breakpoints,d=r,j({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:ES.slice(),typography:xS(l,i),transitions:DS(o),zIndex:j({},PS)});var c,d;return u=_n(u,a),u=t.reduce(((e,t)=>_n(e,t)),u),u.unstable_sxConfig=j({},ox,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return lx({sx:e,theme:this})},u}var OS,kS=MS(),_S={},TS={exports:{}};var qS,NS={exports:{}};var FS=B(Mn),zS=B(qn),jS=B(lo),$S=B(io),BS=B(dx),HS=B(bx),VS=Nx;Object.defineProperty(_S,"__esModule",{value:!0});var WS=_S.default=function(e={}){const{themeId:t,defaultTheme:r=nE,rootShouldForwardProp:n=rE,slotShouldForwardProp:o=rE}=e,i=e=>(0,JS.default)((0,GS.default)({},e,{theme:iE((0,GS.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,YS.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=aE(oE(s))}=a,p=(0,US.default)(a,eE),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=rE;"Root"===s||"root"===s?h=n:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,YS.default)(e,(0,GS.default)({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,KS.isPlainObject)(e)?n=>lE(e,(0,GS.default)({},n,{theme:iE({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const s=o?o.map(b):[];l&&d&&s.push((e=>{const n=iE((0,GS.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[l]||!n.components[l].styleOverrides)return null;const o=n.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=lE(r,(0,GS.default)({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=iE((0,GS.default)({},e,{defaultTheme:r,themeId:t}));return lE({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},(0,GS.default)({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};_S.shouldForwardProp=rE,_S.systemDefaultTheme=void 0;var GS=VS((OS||(OS=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}(TS)),TS.exports)),US=VS((qS||(qS=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(NS)),NS.exports)),YS=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=tE(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}(FS),KS=zS;VS(jS),VS($S);var XS=VS(BS),JS=VS(HS);const ZS=["ownerState"],QS=["variants"],eE=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function tE(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(tE=function(e){return e?r:t})(e)}function rE(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const nE=_S.systemDefaultTheme=(0,XS.default)(),oE=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function iE({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function aE(e){return e?(t,r)=>r[e]:null}function lE(e,t){let{ownerState:r}=t,n=(0,US.default)(t,ZS);const o="function"==typeof e?e((0,GS.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>lE(e,(0,GS.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,US.default)(o,QS);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,GS.default)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,GS.default)({ownerState:r},n,r)):e.style))})),t}return o}var sE=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var uE=WS({themeId:ay,defaultTheme:kS,rootShouldForwardProp:sE});const cE=["theme"];function dE(e){let{theme:t}=e,r=K(e,cE);const n=t[ay];return ea.jsx(kx,j({},r,{themeId:n?ay:void 0,theme:n||t}))}var pE={exports:{}};
101
+ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(r=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",i=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+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],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),m+(r?"-":"")+n+x}},$g({exports:{}});var Jg={exports:{}};self,Jg.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Me});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var l=a[i];return a[i]=r,{updated:r,previous:l}}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 l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}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],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var l=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return h(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=m(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(l);if(-1!==r){var n=t.indexOf(s);if(-1!==n)return t.substring(r+l.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 l=S({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),r=e.indexOf(s);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}var R=t().bind(null,!0),A={},I=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===C(e)}function P(e){return void 0===e}function L(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function M(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=P(e[r||t])?i:e[t],e=e[r||t]}})),e}function k(e,t){var r=!0;if(D(e)&&D(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){k(e[n],t[n])||(r=!1)})),r);if(I(e)&&I(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!k(e[n],t[n]))return!1;return!0}return e===t}A.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(r,"/").concat(o);k(i,a)||L(t,o)||(P(a)?n.push({op:"add",path:l,value:i}):D(i)&&D(a)?n=n.concat(A.generate(a,i,l)):I(i)&&I(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&P(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(k(t,o))return n;if(!P(t[0])&&P(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(n.push({op:"remove",path:"".concat(r,"/").concat(l)}),o.splice(l,1)):n=n.concat(A.generate(o[l],t[i],"".concat(r,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(n.push({op:"move",path:"".concat(r,"/").concat(s),from:"".concat(r,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return n}(a,i,l)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){P(t[o])&&!L(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},A.apply=function(e,t){t.forEach((function(t){var r,n,o=M(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return w(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 w(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)?w(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(D(a)&&D(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!L(r,e)&&delete r[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=M(e,t.from);I(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const O=A,_=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 T="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===T)return r[n]}function N(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===T)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const j={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(r,s),p=E.getAboveComp(r,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=q(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=q(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(T))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var z="movingAverage";function $(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===z)return r[n]}function B(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===z)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var H={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return r;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),m=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(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(z))return!1;var i=$(t,e);return i&&!i.disabled}};return r}};var W="timeSeriesDecomposition";function G(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===W)return r[n]}function U(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===W)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=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(W))return!1;var i=G(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(r,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var l=ae(t),s=le(t,r,n),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,s,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",we="qDef.base.qLabel",Ce="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Ie={initBase:function(e,t){(t||Ie.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,we,i(e,Se)),r(e,Ce,i(e,Ee)))},restoreBase:function(e){Ie.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,we)),r(e,Ee,i(e,Ce)),i(e,Re)&&i(e,Ae)&&r(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const De=Ie;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 Le={accumulation:j,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Me={modifiers:Le,apply:Oe,applyModifiers:_e,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:Ne,initBase:De.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Le[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Le[e]&&Le[e].isApplicable({properties:r,layout:n})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=ze(e);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var ke={};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,l=e.masterItem,s=!1;ke[r.id]=ke[r.id]||{isFirstTime:!0};var u=ke[r.id].isFirstTime;if(ke[r.id].isFirstTime=!1,n&&"object"===Pe(n))return _e({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=ke[r.id].lastReloadTime;if(ke[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ge({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ue({modifiers:ze(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Be(n);var o=Qe(n);return Ye({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return m&&function(e){var t=e.properties;je(t).forEach((function(e){return function(e){var t=e.measure;if(Ge({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(Le[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=Le[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ve(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),_e({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Pe(e.base)}))}(p)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return je(n).forEach((function(e){return Te(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(s)}function _e(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=s?t()(!0,{},o):o),Be(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(r||(r=je(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return Te(e)})),Promise.resolve();var s=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ue({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;De.isValid(r)||De.initBase(r,!0);var s=r.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Pe(e)&&!e.disabled){if(l++,"object"!==Pe(Le[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Le[e.type].initModifier(e,r);var s=r.qLibraryId||c&&c.qLibraryId;s?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Le[n.type].generateExpression({expression:l,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,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:s,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Le[n.type].updateModifier&&Le[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),l=""===a?a:Le[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),He(r)):Te(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function Te(e){!function(e){var t=ze(e);return Array.isArray(t)&&t.some((function(e){return"object"===Pe(e)&&!e.disabled&&!Le[e.type]}))}(e)?De.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:ze(e),properties:r,layout:n})}))}function Ne(e){var t=ze(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Le[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||Le[t.type].enableTotalsFunction(e)}function je(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function ze(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){je(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&$e(r)!==e.qDef.qDef?delete e.qDef.base:!De.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function He(e){var t=ze(e);Array.isArray(t)&&t.forEach((function(t){"object"===Pe(t)&&(t.disabled||!Le[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ve(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function Ge(e){var t=e.measure,r=e.properties,n=e.layout;return!We(t)&&Ue({modifiers:ze(t),properties:r,layout:n})}function Ue(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Pe(e)||e.disabled||!Le[e.type])&&(void 0===o[e.type]&&(o[e.type]=Le[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={},l=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):_(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Pe(e)&&!e.disabled&&Le[e.type]&&Le[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=je(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=ze(t);if(Ue({modifiers:n,properties:e})){var i=We(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(ke[t.id].masterItemSubscriber=ke[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},r=i(e,"qInfo.qType");return r&&l[r]&&l[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=s(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:s(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];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]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},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()}))}}),ke[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}r.d(n,{default:()=>Be});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var l=n[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+n[a+1])?{}:[]),i=i[l]}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 l(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 l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}(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 l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:c};var p=r(645),f=r.n(p);const m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var l,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,s(n.qMeasures));var a,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach((function(e){t.properties[e]=r[e]}))},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach((function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])})),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach((function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach((function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)}))};function x(e,t,r){var n,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(n=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=a}var S=r(229),E=r.n(S);function w(e,t){var r=E()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function C(e,t){return E()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var A=Math.pow(2,53)-1;function 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}function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const P=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},L=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},M=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},k=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:[]}},_=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=r.data[0];for(t=0;t<l.dimensions.length;++t){var s=w(l.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=w(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},T=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=r.data[0];for(t=0;t<l.measures.length;++t){var s=C(l.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=C(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},q=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},l=R(a.max,o.dimensions.length,A),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,A),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},N=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},F=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some((function(e){return"general"===e.key}))}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},r,o)).components&&(o.components=[]),o},j=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>r&&r>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return I(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 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.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},B=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return D(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 D(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?D(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},H=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function V(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){i.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const W={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,l=i.getValue(a,r||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=F({exportFormat:t,initialProperties:n,hypercubePath:u}),b=i.getValue(n,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=q({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,w=y.minMeasures,C=s.defaultDimension,R=void 0===C?k():C,A=s.defaultMeasure,I=void 0===A?O():A;v.qDimensions.length=0,v.qMeasures.length=0,j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:w})&&z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:w,newHyperCubeDef:v}),_({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),T({exportFormat:t,maxMeasures:E,minMeasures:w,newHyperCubeDef:v,defaultMeasure:I}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),B({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),L("qMaxStackedCells",b,v),L("qNoOfLeftDims",b,v),M("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),M("qMode",b,v,"S"),M("qReductionMode",b,v,"N"),M("qSortbyYValue",b,v),M("qIndentMode",b,v),M("qShowTotalsAbove",b,v),P(g,t,n),h.qProperty=g;var D=i.getValue(c||{},"support.modifiers");return H({measures:v.qMeasures,modifierTypes:D}),p&&V(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&V(h.qProperty,"dynamicScript"),h}};var G={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function U(e,t,r,n){t=t||[];var o=c(e,n,r),i=c(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!G[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach((function(e){r[e]=t[e]})),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],l=t.length;if(U(a,t,n,o),Y(t,l))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,l=e.label;te(n,o);var s=n[n.length-1];if(s){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:l,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},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,l={};switch(e){case"dimension":r.qLibraryId?(l.type="dimension",l.name=r.qLibraryId,l.id=r.qLibraryId):(l.type="field",t?(l.name=r.label||r.qDef,l.id=r.qDef):(l.name=r.qDef.qFieldDefs[0],l.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?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(l.expression=i)):(l.type="expression",t?(l.name=r.label||r.qExpression,l.id=r.qExpression):(l.name=r.qDef.qDef,l.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 l}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=r?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(re(e,l||""),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:r||l,key:r||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)}n||(i.auto=!1,i.mode=a)}function le(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]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===l}(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 se=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"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?le(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==l&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:l,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,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||n[0])),!!l}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach((function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode}))},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=W.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=W.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:b,properties:d})&&me(d):he(d),b&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?V(r,"unsupportedAutoMinMax")||E()(r.measureAxis,t.measureAxis):V(r,"supportedAutoMinMax")||E()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=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 s=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);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,r.properties.measureAxes[t[0].axis])):E()(l,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},Ee={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"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,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,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 we(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function Ce(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach((function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=we(r,n,s);i.setValue(t,u,l),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,l=i.getValue(o,"qDef.cId");if(l){var s=we(r,n,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})}))}var Ae="qHyperCubeDef.qMeasures",Ie="conditionalColoring",De="measures",Pe="qDef.conditionalColoring";const Le={quarantine:function(e){Ce({properties:e,arrayPath:Ae,quarantineName:Ie,arrayName:De,itemPath:Pe})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Pe,arrayName:De,quarantineName:Ie})}};var Me="qHyperCubeDef.qMeasures",ke="measures",Oe="qHyperCubeDef.qDimensions",_e="dimensions",Te="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",je="qCalcCondition",ze="conditionalShowHide";const $e={quarantine:function(e){Ce({properties:e,arrayPath:Me,quarantineName:ze,arrayName:ke,itemPath:je}),Ce({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:_e,itemPath:je})},unquarantine:function(e){Re({properties:e,arrayPath:Me,quarantineName:ze,arrayName:ke,itemPath:je}),Re({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:_e,itemPath:je})},quarantineAlternative:function(e){Ce({properties:e,arrayPath:Te,quarantineName:ze,arrayName:qe,itemPath:je}),Ce({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Te,quarantineName:ze,arrayName:qe,itemPath:je}),Re({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})}},Be={hypercube:W,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:Ce,unquarantineArrayProp:Re,conditionalColoring:Le,conditionalShow:$e}})(),n.default})();var Zg=$(Jg.exports);const Qg="qHyperCubeDef.qDimensions",eb="dimensions",tb="qDef.representation",rb="tableRepresentation",nb=(e,t,r)=>{const n=e.length+t.length,o=((null==r?void 0:r.length)===n?r:Array.from(Array(n).keys())).map((r=>((e,t,r)=>{var n;const o=t.length,i=e<o?t[e]:r[e-o],{columnWidth:a}=i.qDef;return"pixels"===(null==a?void 0:a.type)?null!==(n=a.pixels)&&void 0!==n?n:Lh.PixelsDefault:-1})(r,e,t)));return o},ob=({propertyTree:e,hyperCubePath:t})=>{const r=Zg.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:n,qDimensions:o,qMeasures:i}}=r.properties,a=nb(o,i,n);return Hg(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),Zg.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),Zg.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),Zg.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{Zg.quarantineArrayProp({properties:e,arrayPath:Qg,itemPath:tb,arrayName:eb,quarantineName:rb})})(r.properties),r};const ib=(e,t,r,n)=>{let o=t;n&&(o=t-n);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(r)&&r.length>0){const e=r[t];i.qDef.columnWidth="number"==typeof e&&e>0?{type:Mh.Pixels,pixels:e}:{type:Mh.FitToContent}}return i},ab=({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o,viewDataMode:i})=>{const a=Zg.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});Zg.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{Zg.unquarantineArrayProp({properties:e,arrayPath:Qg,itemPath:tb,arrayName:eb,quarantineName:rb})})(a.qProperty);const{qHyperCubeDef:{qDimensions:l,qMeasures:s,qColumnOrder:u,columnWidths:c}}=a.qProperty,{dimensions:d,measures:p}=((e,t,r,n)=>{const o=e.length,i=o+t.length,a=(null==r?void 0:r.length)===i?r:Array.from(Array(i).keys());return{dimensions:a.filter((e=>e<o)).map((t=>ib(e,t,n))),measures:a.filter((e=>e>=o)).map((e=>ib(t,e,n,o)))}})(l,s,u,c);return Array.isArray(c)&&c.length>0&&(Hg(a,"qProperty.qHyperCubeDef.qDimensions",d),Hg(a,"qProperty.qHyperCubeDef.qMeasures",p)),i&&(Hg(a,"qProperty.totals.show",!1),Hg(a,"qProperty.usePagination",!0)),Zg.conditionalShow.unquarantine(a.qProperty),a};var lb={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};function sb(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function ub(e,t){let r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}function cb(e){return e>0?0:1}function db(e){return e.translator.get("Visualizations.Descriptions.Column")}function pb(e){return{measures:{min:cb,max:1e3,description:()=>db(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;sb(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties;ub(o,(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n)}},dimensions:{min:cb,max:1e3,description:()=>db(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return sb(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(null!=e&&e.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;ub(o,n)}}}}var fb,mb={};fb=mb,(()=>{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)},l=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=s(d,r),d!==(o=s(t,r))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=n&&i(n)?n:[]):c=n&&a(n)?n:{},l(d,{name:r,newValue:e(m,c,o)})):void 0!==o&&l(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:()=>Me});var e=r(229),t=r.n(e);const o=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 l=a[i];return a[i]=r,{updated:r,previous:l}}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 l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}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],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=v(c(n[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var d=c(n[0],o),p=c(n[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!r.showExcludedValues)return a;var l=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:h,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return h(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=m(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(l);if(-1!==r){var n=t.indexOf(s);if(-1!==n)return t.substring(r+l.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 l=S({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),r=e.indexOf(s);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:m,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}var R=t().bind(null,!0),A={},I=Array.isArray;function D(e){return null!=e&&!Array.isArray(e)&&"object"===C(e)}function P(e){return void 0===e}function L(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function M(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=P(e[r||t])?i:e[t],e=e[r||t]}})),e}function k(e,t){var r=!0;if(D(e)&&D(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){k(e[n],t[n])||(r=!1)})),r);if(I(e)&&I(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!k(e[n],t[n]))return!1;return!0}return e===t}A.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(r,"/").concat(o);k(i,a)||L(t,o)||(P(a)?n.push({op:"add",path:l,value:i}):D(i)&&D(a)?n=n.concat(A.generate(a,i,l)):I(i)&&I(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&P(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(k(t,o))return n;if(!P(t[0])&&P(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(n.push({op:"remove",path:"".concat(r,"/").concat(l)}),o.splice(l,1)):n=n.concat(A.generate(o[l],t[i],"".concat(r,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(n.push({op:"move",path:"".concat(r,"/").concat(s),from:"".concat(r,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return n}(a,i,l)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){P(t[o])&&!L(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},A.apply=function(e,t){t.forEach((function(t){var r,n,o=M(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return w(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 w(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)?w(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(D(a)&&D(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!L(r,e)&&delete r[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=M(e,t.from);I(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])}))},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const O=A,_=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 T="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===T)return r[n]}function N(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===T)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var F={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const j={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(r,s),p=E.getAboveComp(r,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:r,properties:n,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,F)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(N(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(N(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(N(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(N(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=q(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=q(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(N(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(T))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var z="movingAverage";function $(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===z)return r[n]}function B(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===z)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var H={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return r;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=E.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(n,u),m=E.getAboveComp(n,u,p,f);if(n.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var r=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:n,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,H)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(B(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(B(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(B(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(B(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(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(z))return!1;var i=$(t,e);return i&&!i.disabled}};return r}};var W="timeSeriesDecomposition";function G(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===W)return r[n]}function U(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===W)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=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(W))return!1;var i=G(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(r,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:r,properties:n,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Q).forEach((function(t){void 0===e[t]&&(e[t]=Q[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,r){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,r){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(r),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!r)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:n,layout:o}));var u=i(n,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:l}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var l=ae(t),s=le(t,r,n),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=E.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,s,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then((function(e){return e.map((function(e){return{label:e.qName,value:e.qName}}))}))},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",we="qDef.base.qLabel",Ce="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Ie={initBase:function(e,t){(t||Ie.isValid(e))&&(o(e,ve,i(e,be)),o(e,xe,i(e,ye)),o(e,we,i(e,Se)),o(e,Ce,i(e,Ee)))},restoreBase:function(e){Ie.isValid(e)&&(o(e,be,i(e,ve)),o(e,ye,i(e,xe)),o(e,Se,i(e,we)),o(e,Ee,i(e,Ce)),i(e,Re)&&i(e,Ae)&&o(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const De=Ie;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 Le={accumulation:j,movingAverage:V,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Me={modifiers:Le,apply:Oe,applyModifiers:_e,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:Ne,initBase:De.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Le[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Le[e]&&Le[e].isApplicable({properties:r,layout:n})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=ze(e);Ue({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:Fe};var ke={};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,l=e.masterItem,s=!1;ke[r.id]=ke[r.id]||{isFirstTime:!0};var u=ke[r.id].isFirstTime;if(ke[r.id].isFirstTime=!1,n&&"object"===Pe(n))return _e({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=ke[r.id].lastReloadTime;if(ke[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),qe({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.model,o=e.lastReloadTime;return i(n,"app.layout.qLastReloadTime")!==o&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ge({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:r,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Ue({modifiers:ze(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?r.getEffectiveProperties().then((function(e){var n=t()(!0,{},e);Be(n);var o=Qe(n);return Ye({model:r}).then((function(t){return Ke({libraryIds:o,model:r}).then((function(o){return m&&function(e){var t=e.properties;je(t).forEach((function(e){return function(e){var t=e.measure;if(Ge({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(Le[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=Le[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ve(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),_e({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Pe(e.base)}))}(p)?r.getEffectiveProperties().then((function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then((function(){var e=t()(!0,{},n);return je(n).forEach((function(e){return Te(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(s)}function _e(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=s?t()(!0,{},o):o),Be(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(r||(r=je(n)),!r.length)return Promise.resolve();if(!qe({measures:r,properties:n}))return r.forEach((function(e){return Te(e)})),Promise.resolve();var s=a?void 0:Qe(n);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){r.forEach((function(r){Ue({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;De.isValid(r)||De.initBase(r,!0);var s=r.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Pe(e)&&!e.disabled){if(l++,"object"!==Pe(Le[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Le[e.type].initModifier(e,r);var s=r.qLibraryId||c&&c.qLibraryId;s?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Le[n.type].generateExpression({expression:l,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,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:s,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Le[n.type].updateModifier&&Le[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),l=""===a?a:Le[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||Fe(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&Fe(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}}))}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),He(r)):Te(r)}))}))}))}({measures:a,properties:o,model:r,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)}))}))}function Te(e){!function(e){var t=ze(e);return Array.isArray(t)&&t.some((function(e){return"object"===Pe(e)&&!e.disabled&&!Le[e.type]}))}(e)?De.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,He(e)}function qe(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ue({modifiers:ze(e),properties:r,layout:n})}))}function Ne(e){var t=ze(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Le[n.type]&&!n.disabled)return n}}function Fe(e){var t=Ne(e);return!t||Le[t.type].enableTotalsFunction(e)}function je(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function ze(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function Be(e){je(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&$e(r)!==e.qDef.qDef?delete e.qDef.base:!De.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function He(e){var t=ze(e);Array.isArray(t)&&t.forEach((function(t){"object"===Pe(t)&&(t.disabled||!Le[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ve(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function Ge(e){var t=e.measure,r=e.properties,n=e.layout;return!We(t)&&Ue({modifiers:ze(t),properties:r,layout:n})}function Ue(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Pe(e)||e.disabled||!Le[e.type])&&(void 0===o[e.type]&&(o[e.type]=Le[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={},l=[];return o.forEach((function(e){var t=r.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=r.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).then((function(){return a}))}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):_(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Pe(e)&&!e.disabled&&Le[e.type]&&Le[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function Qe(e){var t=je(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=ze(t);if(Ue({modifiers:n,properties:e})){var i=We(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(ke[t.id].masterItemSubscriber=ke[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},r=i(e,"qInfo.qType");return r&&l[r]&&l[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=s(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:s(t.layout)}}))}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];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]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!n[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},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()}))}}),ke[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),fb.default=n.default,Object.defineProperty(fb,"__esModule",{value:!0})})();var hb=$(mb);let gb=function(e){return e.Text="text",e.Link="link",e.Image="image",e.Indicator="indicator",e}({}),bb=function(e){return e.Attribute="attribute",e.Dimension="dimension",e.Measure="measure",e}({});const vb=e=>{switch(null==e?void 0:e.type){case"url":return gb.Link;case"image":return gb.Image;case"indicator":return gb.Indicator;default:return gb.Text}},yb=(e,t)=>!e.properties.qHyperCubeDef.qIndentMode||!t,xb=(e,t,r)=>{if(e||t)return{uses:"dimensionRepresentationItems.representationType",show:(e,t,n)=>yb(n,r),options(){const r=[{value:"text",translation:"Object.Table.Representation.Text"}];return t&&r.push({value:"url",translation:"Object.Table.Representation.Link"}),e&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),r}}},Sb=(e,t)=>{if(e)return{representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:(e,r,n)=>vb(e.qDef.representation)===gb.Link&&yb(n,t)},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:(e,r,n)=>{var o;return vb(e.qDef.representation)===gb.Link&&(null===(o=e.qDef.representation)||void 0===o?void 0:o.urlPosition)===bb.Dimension&&yb(n,t)}},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:(e,r,n)=>{var o;return vb(e.qDef.representation)===gb.Link&&(null===(o=e.qDef.representation)||void 0===o?void 0:o.urlPosition)===bb.Attribute&&yb(n,t)}}}},Eb=(e,t)=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:(e,r,n)=>vb(e.qDef.representation)===gb.Image&&yb(n,t),items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}}},wb=e=>{var t,r;const{anything:n,flags:o}=e,i=o.isEnabled("CLIENT_IM_5975_INDENT_MODE"),a=o.isEnabled("CLIENT_IM_5715_LINKS"),l=o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=n&&null!==(t=n.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"tableImages"));return{representationType:xb(l,a,i),...Sb(a,i),...Eb(l,i)}},Cb=e=>{var t,r;const{flags:n,anything:o}=e,i=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=o&&null!==(t=o.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"tableImages")),a=n.isEnabled("CLIENT_IM_5975_INDENT_MODE"),l=n.isEnabled("CLIENT_IM_6696_INDICATORS"),s=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"image",translation:"Object.Table.Representation.Image"}],u=[{value:"indicator",translation:"Object.Table.Representation.Indicator"}];return{representationType:{uses:"measureRepresentationItems.representationType",show:(e,t,r)=>yb(r,a),options:i&&l?[...s,...u]:i?s:l?u:void 0},representationImage:i?{uses:"measureRepresentationItems.representationImage",show:(e,t,r)=>vb(e.qDef.representation)===gb.Image&&yb(r,a),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:l?{uses:"measureRepresentationItems.representationIndicator"}:void 0}},Rb={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},Ab=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"},...e.flags.isEnabled("CLIENT_IM_6573_TEXT_STYLE")?[{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}]}}),Ib={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}},Db=e=>{var t,r,n,o;return{type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!hb.hasActiveModifiers({measures:[e],properties:t.properties})||hb.ifEnableTotalsFunction(e)?[{value:"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"totals")?"None":"Expr"}}}},show:!(null!=e&&null!==(n=e.anything)&&void 0!==n&&null!==(n=n.sense)&&void 0!==n&&null!==(o=n.isUnsupportedFeature)&&void 0!==o&&o.call(n,"totals"))}},Pb={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:Mh.Auto,translation:"Common.Auto"},{value:Mh.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:Mh.Pixels,translation:"Object.Table.Column.Pixels"},{value:Mh.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:Mh.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:200,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===Mh.Pixels},change(e){e.qDef.columnWidth.pixels=void 0===e.qDef.columnWidth.pixels?e.qDef.columnWidth.pixels:Math.max(1,Math.min(Lh.PixelsMax,e.qDef.columnWidth.pixels))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:20,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===Mh.Percentage},change(e){e.qDef.columnWidth.percentage=void 0===e.qDef.columnWidth.percentage?e.qDef.columnWidth.percentage:Math.max(1,Math.min(Lh.PercentageMax,e.qDef.columnWidth.percentage))}}},Lb=e=>({...Rb,...Ab(e),...Ib,...Pb}),Mb={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"}},kb=(e,t)=>({libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>{var r;return t?!!(e.qLibraryId||null!==(r=e.qDef.base)&&void 0!==r&&r.qLibraryId):!!e.qLibraryId}},inlineMeasure:{component:"inline-measure",show:e=>{var r;return t?!(e.qLibraryId||null!==(r=e.qDef.base)&&void 0!==r&&r.qLibraryId):!e.qLibraryId}},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:Db(e)}),Ob=(e,t)=>({type:"items",translation:"Common.Data",component:"data-assets-panel",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:Mb},presentation:{type:"items",translation:"properties.presentation",items:{...Lb(e),...wb(e)}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:kb(e,t)},presentation:{type:"items",translation:"properties.presentation",items:{...Lb(e),...Cb(e)}}}}}}),_b={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}},Tb=e=>{var t,r;return{type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!(null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"totals"))}},qb=(e,t,r)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:!1,defaultValue(e,t,n){const o=n.theme.current(),i=r(o);return{color:"transparent"===i?"none":i}}}),Nb=(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},Fb=({ref:e,themeAccessor:t,translator:r,flags:n})=>({component:"dropdown",ref:e,options:(e,o,i)=>{const a=i.theme.current();return((e,t,r,n)=>{var o,i;const a=null!==(o=t.fontFamily)&&void 0!==o?o:"Source Sans Pro, sans-serif",l=null!==(i=t.fontFamilies)&&void 0!==i?i:[],s=Array.from(new Set([e,a,...l])),u=[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0},...s.sort().map((e=>Nb(e,!0)))],c=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...Ff(n).filter((e=>!s.includes(e))).map((e=>Nb(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),jb=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],zb=({ref:e,themeAccessor:t,translator:r})=>({component:"dropdown",ref:e,options:(e,n,o)=>{const i=o.theme.current();return((e,t,r)=>{var n;const o=t.fontSize,i=null!==(n=t.fontSizes)&&void 0!==n?n:[],a=Array.from(new Set([e,o,...i])),l=[{value:"ThemeHeader",label:r.get("properties.themeFontSizes"),metaText:r.get("properties.theme"),groupHeader:!0},...a.sort(((e,t)=>parseInt(e,10)-parseInt(t,10))).map((e=>Nb(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...jb.filter((e=>!a.includes(e))).map((e=>Nb(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),$b=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i})=>({component:"panel-section",translation:null!=i?i:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:Fb({ref:`${e}.fontFamily`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontFamily"))&&void 0!==r?r:t.fontFamily},translator:r,flags:n}),fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",width:!1,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontSize:zb({ref:`${e}.fontSize`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontSize"))&&void 0!==r?r:t.fontSize},translator:r}),fontColor:qb(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=o(t,e,"color"))&&void 0!==r?r:t.color}))}},background:qb(`${e}.background`,"properties.background",(t=>{var r;return null!==(r=o(t,e,"backgroundColor"))&&void 0!==r?r:"transparent"}))}}}}),Bb=({section:e,defaultFontStyle:t,fallbackBackground:r,getThemeValue:n})=>({component:"panel-section",translation:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontWrapperItem:{component:"inline-wrapper",items:{fontStyle:{component:"font-style-buttons",fullWidth:!0,ref:`${e}.fontStyle`,defaultValue:null!=t?t:[]},fontColor:qb(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=n(t,e,"color"))&&void 0!==r?r:t.color}))}},background:qb(`${e}.background`,"properties.background",(t=>{var o,i;return null!==(o=null!==(i=n(t,e,"backgroundColor"))&&void 0!==i?i:r)&&void 0!==o?o:"transparent"}))}}}}),Hb=e=>{var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},Vb={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:Hb,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:Hb,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},Wb=(e,t,r)=>{var n,o,i,a,l;switch(t){case"header":return null===(n=e.object)||void 0===n||null===(n=n.straightTableV2)||void 0===n||null===(n=n.dimension)||void 0===n||null===(n=n.label)||void 0===n||null===(n=n.name)||void 0===n?void 0:n[r];case"dimensionValues":return null===(o=e.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.dimension)||void 0===o||null===(o=o.label)||void 0===o||null===(o=o.value)||void 0===o?void 0:o[r];case"measureValues":return null===(i=e.object)||void 0===i||null===(i=i.straightTableV2)||void 0===i||null===(i=i.measure)||void 0===i||null===(i=i.label)||void 0===i||null===(i=i.value)||void 0===i?void 0:i[r];case"totalRow":return null===(a=e.object)||void 0===a||null===(a=a.straightTableV2)||void 0===a||null===(a=a.total)||void 0===a||null===(a=a.label)||void 0===a||null===(a=a.value)||void 0===a?void 0:a[r];case"nullValues":return null===(l=e.object)||void 0===l||null===(l=l.straightTableV2)||void 0===l||null===(l=l.null)||void 0===l||null===(l=l.label)||void 0===l||null===(l=l.value)||void 0===l?void 0:l[r];default:return}},Gb={ref:"content.rowHeight",component:"integer",placeholder:1,maxlength:4,translation:"ThemeStyleEditor.style.rowHeight",change(e){var t,r,n;null!==(null==e||null===(t=e.content)||void 0===t?void 0:t.rowHeight)&&void 0!==(null==e||null===(r=e.content)||void 0===r?void 0:r.rowHeight)&&""!==(null==e||null===(n=e.content)||void 0===n?void 0:n.rowHeight)?e.content.rowHeight=Math.max(1,Math.min(50,Math.floor(e.content.rowHeight))):e.content.rowHeight=void 0}},Ub=e=>({translation:"properties.pivot.grid",component:"panel-section",items:{gridItems:{component:"items",ref:"components",key:"theme",items:{rowHeight:{show:()=>e.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),...Gb},border:qb("grid.border","properties.border",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.straightTableV2)||void 0===r||null===(r=r.grid)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:vp.BORDER_MEDIUM})),divider:qb("grid.divider","properties.pivot.divider",(e=>{var t,r;return null!==(t=null===(r=e.object)||void 0===r||null===(r=r.straightTableV2)||void 0===r||null===(r=r.grid)||void 0===r||null===(r=r.divider)||void 0===r?void 0:r.borderColor)&&void 0!==t?t:vp.BORDER_HEAVY}))}}}}),Yb=({flags:e,translator:t})=>({headerSection:$b({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:Wb}),dimensionValueSection:$b({section:"dimensionValues",translator:t,flags:e,getThemeValue:Wb}),measureValueSection:$b({section:"measureValues",translator:t,flags:e,getThemeValue:Wb}),totalRowSection:$b({section:"totalValues",translation:"properties.totals",translator:t,flags:e,getThemeValue:Wb}),nullValues:Bb({section:"nullValues",fallbackBackground:vp.NULL_VALUE_BACKGROUND,getThemeValue:Wb}),grid:Ub(e),hoverEffectSection:Vb}),Kb=e=>({headerSection:{translation:"properties.Header",component:"panel-section",items:{headerFontItem:{component:"items",ref:"components",key:"theme",items:{headerFontWrapper:{component:"inline-wrapper",items:{headerFontSize:{component:"integer",ref:"header.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,r){var n,o;const i=r.theme.current();return parseInt(null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:i.fontSize,10)},change(e){e.header.fontSize=e.header.fontSize?Math.max(5,Math.min(300,Math.floor(e.header.fontSize))):e.header.fontSize}},headerFontColor:{show:!0,ref:"header.fontColor",type:"object",component:"color-picker",defaultValue(e,t,r){var n,o;const i=r.theme.current();return{color:null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.color)&&void 0!==n?n:i.color}},dualOutput:!0}}}}}}},contentSection:{component:"panel-section",translation:"properties.Content",items:{contentFontItem:{component:"items",ref:"components",key:"theme",items:{contentFontWrapper:{component:"inline-wrapper",items:{contentFontSize:{component:"integer",ref:"content.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,r){var n,o;const i=r.theme.current();return parseInt(null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.fontSize)&&void 0!==n?n:i.fontSize,10)},change(e){e.content.fontSize=e.content.fontSize?Math.max(5,Math.min(300,Math.floor(e.content.fontSize))):e.content.fontSize}},contentFontColor:{ref:"content.fontColor",type:"object",component:"color-picker",defaultValue(e,t,r){var n,o;const i=r.theme.current();return{color:null!==(n=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.color)&&void 0!==n?n:i.color}},dualOutput:!0}}}}}}},rowHeightSection:{show:()=>e.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES"),component:"panel-section",translation:"ThemeStyleEditor.style.rowHeight",items:{rowHeightItem:{component:"items",ref:"components",key:"theme",items:{rowHeight:Gb}}}},hoverEffectSection:Vb}),Xb=e=>({type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,useBackground:e.flags.isEnabled("CLIENT_IM_6546_TABLE_BG_COLOR"),defaultValue:[],items:e.flags.isEnabled("CLIENT_IM_6221_TABLE_STYLING")?Yb(e):Kb(e)}]}),Jb=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[Xb(e),Tb(e),{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1}]},..._b}}),Zb={uses:"sorting"},Qb={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},ev=(e,t)=>({type:"items",component:"accordion",items:{data:Ob(e,t),sorting:Zb,addOns:Qb,settings:Jb(e)}});function tv(e){const t=e.flags.isEnabled("CLIENT_IM-6276_PIVOT_MODIFIER");return{definition:ev(e,t),exploration:lb,data:pb(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:t?["accumulation","movingAverage","difference","normalization"]:void 0},importProperties(e,t,r,n){const o={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()};return ab({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o})},exportProperties:(e,t)=>ob({propertyTree:e,hyperCubePath:t})}}const rv=(e,t)=>n((()=>((e,t)=>(r,{isDim:n,colIdx:o})=>{const i=n?o:o-e.qDimensionInfo.length,a=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,l=e[n?"qDimensionInfo":"qMeasureInfo"][i].columnWidth,s=l?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...l,...r})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(r)};null==t||t.applyPatches([s],!0)})(e,t)),[e,t]),nv=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{});let ov;const iv=new Uint8Array(16);function av(){if(!ov&&(ov="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!ov))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ov(iv)}const lv=[];for(let e=0;e<256;++e)lv.push((e+256).toString(16).slice(1));var sv={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function uv(e,t,r){if(sv.randomUUID&&!t&&!e)return sv.randomUUID();const n=(e=e||{}).random||(e.rng||av)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=n[e];return t}return function(e,t=0){return lv[e[t+0]]+lv[e[t+1]]+lv[e[t+2]]+lv[e[t+3]]+"-"+lv[e[t+4]]+lv[e[t+5]]+"-"+lv[e[t+6]]+lv[e[t+7]]+"-"+lv[e[t+8]]+lv[e[t+9]]+"-"+lv[e[t+10]]+lv[e[t+11]]+lv[e[t+12]]+lv[e[t+13]]+lv[e[t+14]]+lv[e[t+15]]}(n)}const cv=()=>{var e,t,r;return null!==(e=null===(t=crypto)||void 0===t||null===(r=t.randomUUID)||void 0===r?void 0:r.call(t))&&void 0!==e?e:uv()},dv=({qLibraryId:e,cId:t})=>{var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:cv()};function pv(e){return pv="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},pv(e)}function fv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mv(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,(o=n.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),n)}var o,i}function hv(e,t,r){return t&&mv(e.prototype,t),r&&mv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function gv(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vv(e,t)}function bv(e){return bv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bv(e)}function vv(e,t){return vv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vv(e,t)}function yv(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function xv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=bv(e);if(t){var o=bv(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return yv(this,r)}}function Sv(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,l=[],s=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ev(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ev(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ev(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}var wv={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var r,n=e.indexOf("="),o="",i=!1;-1===n?r=e:(r=e.slice(0,n),o=e.slice(n+1),i=!0),t.push(function(e,t,r){return{key:Cv(e),value:Cv(t),useEqualSign:r}}(r,o,i))}})),t}};function Cv(e){try{return decodeURIComponent(e)}catch(t){return e}}function Rv(e){if(!(this instanceof Rv))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return wv.fromSearchString(t.search)}}})}function Av(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}Rv.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},Rv.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=Av((t=e[n]).key),t.value?r+="=".concat(Av(t.value)):r+=t.useEqualSign?"=":"";return r};var Iv,Dv=function(){function e(t){fv(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return hv(e,[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}]),e}(),Pv=function(){function e(){fv(this,e)}return hv(e,[{key:"decode",value:function(e){for(var t,r="",n=new Dv(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),Lv=function(e){return e>=0&&e<=1114111},Mv=function(e){return e.match(/[\s]/)},kv=function(){gv(t,Pv);var e=xv(t);function t(){return fv(this,t),e.apply(this,arguments)}return hv(t,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,r=0;r<5&&(null!=(n=e.next())&&!Mv(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return Lv(a)?String.fromCharCode(a):"�"}}]),t}(),Ov=function(){function e(t,r){fv(this,e),this._key=t,this._value=r}return hv(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}}]),e}(),_v=function(){function e(){fv(this,e)}return hv(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,r,n){var o,i;if(t.length===r)return i=this._value,this.setValue(n),i;var a=t.charAt(r);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return Ov.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return Ov.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||Ov.newInstanceIfNeeded(e,t,this._value)}}]),e}(),Tv=function(){function e(){fv(this,e),this.clear()}return hv(e,[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new _v);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),qv=function(){var e,t,r,n=[],o=[],i=new Tv;for(e in n["&quot"]="34",n["&amp"]="38",n["&lt"]="60",n["&gt"]="62",n["&nbsp"]="160",n["&iexcl"]="161",n["&cent"]="162",n["&pound"]="163",n["&curren"]="164",n["&yen"]="165",n["&brvbar"]="166",n["&sect"]="167",n["&uml"]="168",n["&copy"]="169",n["&ordf"]="170",n["&laquo"]="171",n["&not"]="172",n["&shy"]="173",n["&reg"]="174",n["&macr"]="175",n["&deg"]="176",n["&plusmn"]="177",n["&sup2"]="178",n["&sup3"]="179",n["&acute"]="180",n["&micro"]="181",n["&para"]="182",n["&middot"]="183",n["&cedil"]="184",n["&sup1"]="185",n["&ordm"]="186",n["&raquo"]="187",n["&frac14"]="188",n["&frac12"]="189",n["&frac34"]="190",n["&iquest"]="191",n["&Agrave"]="192",n["&Aacute"]="193",n["&Acirc"]="194",n["&Atilde"]="195",n["&Auml"]="196",n["&Aring"]="197",n["&AElig"]="198",n["&Ccedil"]="199",n["&Egrave"]="200",n["&Eacute"]="201",n["&Ecirc"]="202",n["&Euml"]="203",n["&Igrave"]="204",n["&Iacute"]="205",n["&Icirc"]="206",n["&Iuml"]="207",n["&ETH"]="208",n["&Ntilde"]="209",n["&Ograve"]="210",n["&Oacute"]="211",n["&Ocirc"]="212",n["&Otilde"]="213",n["&Ouml"]="214",n["&times"]="215",n["&Oslash"]="216",n["&Ugrave"]="217",n["&Uacute"]="218",n["&Ucirc"]="219",n["&Uuml"]="220",n["&Yacute"]="221",n["&THORN"]="222",n["&szlig"]="223",n["&agrave"]="224",n["&aacute"]="225",n["&acirc"]="226",n["&atilde"]="227",n["&auml"]="228",n["&aring"]="229",n["&aelig"]="230",n["&ccedil"]="231",n["&egrave"]="232",n["&eacute"]="233",n["&ecirc"]="234",n["&euml"]="235",n["&igrave"]="236",n["&iacute"]="237",n["&icirc"]="238",n["&iuml"]="239",n["&eth"]="240",n["&ntilde"]="241",n["&ograve"]="242",n["&oacute"]="243",n["&ocirc"]="244",n["&otilde"]="245",n["&ouml"]="246",n["&divide"]="247",n["&oslash"]="248",n["&ugrave"]="249",n["&uacute"]="250",n["&ucirc"]="251",n["&uuml"]="252",n["&yacute"]="253",n["&thorn"]="254",n["&yuml"]="255",n["&OElig"]="338",n["&oelig"]="339",n["&Scaron"]="352",n["&scaron"]="353",n["&Yuml"]="376",n["&fnof"]="402",n["&circ"]="710",n["&tilde"]="732",n["&Alpha"]="913",n["&Beta"]="914",n["&Gamma"]="915",n["&Delta"]="916",n["&Epsilon"]="917",n["&Zeta"]="918",n["&Eta"]="919",n["&Theta"]="920",n["&Iota"]="921",n["&Kappa"]="922",n["&Lambda"]="923",n["&Mu"]="924",n["&Nu"]="925",n["&Xi"]="926",n["&Omicron"]="927",n["&Pi"]="928",n["&Rho"]="929",n["&Sigma"]="931",n["&Tau"]="932",n["&Upsilon"]="933",n["&Phi"]="934",n["&Chi"]="935",n["&Psi"]="936",n["&Omega"]="937",n["&alpha"]="945",n["&beta"]="946",n["&gamma"]="947",n["&delta"]="948",n["&epsilon"]="949",n["&zeta"]="950",n["&eta"]="951",n["&theta"]="952",n["&iota"]="953",n["&kappa"]="954",n["&lambda"]="955",n["&mu"]="956",n["&nu"]="957",n["&xi"]="958",n["&omicron"]="959",n["&pi"]="960",n["&rho"]="961",n["&sigmaf"]="962",n["&sigma"]="963",n["&tau"]="964",n["&upsilon"]="965",n["&phi"]="966",n["&chi"]="967",n["&psi"]="968",n["&omega"]="969",n["&thetasym"]="977",n["&upsih"]="978",n["&piv"]="982",n["&ensp"]="8194",n["&emsp"]="8195",n["&thinsp"]="8201",n["&zwnj"]="8204",n["&zwj"]="8205",n["&lrm"]="8206",n["&rlm"]="8207",n["&ndash"]="8211",n["&mdash"]="8212",n["&lsquo"]="8216",n["&rsquo"]="8217",n["&sbquo"]="8218",n["&ldquo"]="8220",n["&rdquo"]="8221",n["&bdquo"]="8222",n["&dagger"]="8224",n["&Dagger"]="8225",n["&bull"]="8226",n["&hellip"]="8230",n["&permil"]="8240",n["&prime"]="8242",n["&Prime"]="8243",n["&lsaquo"]="8249",n["&rsaquo"]="8250",n["&oline"]="8254",n["&frasl"]="8260",n["&euro"]="8364",n["&image"]="8365",n["&weierp"]="8472",n["&real"]="8476",n["&trade"]="8482",n["&alefsym"]="8501",n["&larr"]="8592",n["&uarr"]="8593",n["&rarr"]="8594",n["&darr"]="8595",n["&harr"]="8596",n["&crarr"]="8629",n["&lArr"]="8656",n["&uArr"]="8657",n["&rArr"]="8658",n["&dArr"]="8659",n["&hArr"]="8660",n["&forall"]="8704",n["&part"]="8706",n["&exist"]="8707",n["&empty"]="8709",n["&nabla"]="8711",n["&isin"]="8712",n["&notin"]="8713",n["&ni"]="8715",n["&prod"]="8719",n["&sum"]="8721",n["&minus"]="8722",n["&lowast"]="8727",n["&radic"]="8730",n["&prop"]="8733",n["&infin"]="8734",n["&ang"]="8736",n["&and"]="8743",n["&or"]="8744",n["&cap"]="8745",n["&cup"]="8746",n["&int"]="8747",n["&there4"]="8756",n["&sim"]="8764",n["&cong"]="8773",n["&asymp"]="8776",n["&ne"]="8800",n["&equiv"]="8801",n["&le"]="8804",n["&ge"]="8805",n["&sub"]="8834",n["&sup"]="8835",n["&nsub"]="8836",n["&sube"]="8838",n["&supe"]="8839",n["&oplus"]="8853",n["&otimes"]="8855",n["&perp"]="8869",n["&sdot"]="8901",n["&lceil"]="8968",n["&rceil"]="8969",n["&lfloor"]="8970",n["&rfloor"]="8971",n["&lang"]="9001",n["&rang"]="9002",n["&loz"]="9674",n["&spades"]="9824",n["&clubs"]="9827",n["&hearts"]="9829",n["&diams"]="9830",n)"function"!=typeof n[e]&&n.hasOwnProperty(e)&&(o[n[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(r=o[t].toLowerCase().substr(1),i.put(r,String.fromCharCode(t)));return i}(),Nv=function(){gv(t,Pv);var e=xv(t);function t(){return fv(this,t),e.apply(this,arguments)}return hv(t,[{key:"decodeCharacter",value:function(e){var t;e.mark();var r=e.next();if(null==r||"&"!==r)return e.reset(),null;var n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(null!=(t=this._getNumericEntity(e)))return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,r,n,o="";for(t=Math.min(e.remainder().length,qv.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=qv.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,16);return!Number.isNaN(+n)&&Lv(n)?String.fromCharCode(n):null}},{key:"_parseNumber",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,10);return!Number.isNaN(+n)&&Lv(n)?String.fromCharCode(n):null}}]),t}(),Fv=function(){gv(t,Pv);var e=xv(t);function t(){return fv(this,t),e.apply(this,arguments)}return hv(t,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",r=0;r<2;r++)null!=(n=e.nextHex())&&(t+=n);return 2===t.length&&(o=parseInt(t,16),Lv(o))?String.fromCharCode(o):(e.reset(),null)}}]),t}(),jv=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(Iv=document.createElement("div"));var zv=Array.prototype.indexOf,$v=[",",".","_"," "],Bv={default:[",",".","-","_"," "]},Hv={width:["%"],height:["%"]},Vv={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},Wv={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":Vv.image,"background-color":Vv.color,"border-color":Vv.color,"border-image":Vv.image,color:Vv.color,icon:Vv.image,"list-style-image":Vv.image,"outline-color":Vv.color},Gv={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function Uv(e,t,r){var n;if(t){if(zv)return zv.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 Yv(e){if(null==e)return"";var t,r=document.createTextNode(e);return Iv.appendChild(r),t=Iv.innerHTML,Iv.removeChild(r),t}function Kv(e,t,r){var n,o,i,a,l,s,u,c,d;if(e=Jv(e).toLowerCase(),t=Jv(t),Uv(e,Gv.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<Gv.attr_val;i++)if(t.toLowerCase().match(Gv.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=Hv[e])||(n=Bv.default),o="",!r){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=l}o+='="'}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&Uv(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function Xv(e,t,r){var n,o,i,a,l,s,u,c,d,p;if(e=Jv(e).toLowerCase(),t=Jv(t),Uv(e,Gv.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<Gv.css_val.length;n++)if(t.toLowerCase().indexOf(Gv.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=Wv[e])||(o=Vv.default),i="",!r){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=l}i+=": "}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&Uv(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function Jv(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var l=[new Nv,new Fv,new kv];!a;){n=r;for(var s=0;s<l.length;s++)(i=l[s].decode(r))!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}for(var Zv=[],Qv=0;Qv<255;Qv++)Zv[Qv]=Qv>=48&&Qv<=57||Qv>=65&&Qv<=90||Qv>=97&&Qv<=122?null:Qv.toString(16);var ey=function(e){return Yv(e.unsafe)},ty=function(e){var t,r=[],n=[],o={},i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=Xv(t,r[t],!0),i+=Xv(t,r[t],!0),o[t]=n[t]);return e.map?o:i},ry=function(e){var t=[],r=[],n={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(r[i]=Kv(i,t[i],!0),o+=Kv(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function ny(e,t){throw new Error(t)}var oy={canonicalize:Jv,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===pv(arguments[0])?function(){for(var e,t,r,n=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(n===(r=e[t]))continue;void 0!==r&&(n[t]=r)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?ey(e):"css"===e.context?(null!=e.map&&"object"!==pv(e.map)&&ny(this,"Invalid parameter type"),ty(e)):"attr"===e.context?(null!=e.map&&"object"!==pv(e.map)&&ny(this,"Invalid parameter type"),ry(e)):void ny(this,"Invalid parameter type")},encodeForAttr:Kv,encodeForAttr2:function(e){return Kv("nonsens",e,!0)},encodeForCSS:Xv,encodeForHref:function(e){Jv(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new Rv(e),r=Rv.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+Rv.encodeSearchParams(n)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var r,n,o,i,a,l;for(t||(t=$v),l="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),Uv(o,t)>=0||null==Zv[i]?l+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),l+="\\x".concat(a).concat(n.toUpperCase())):(a="0000".substr(n.length),l+="\\u".concat(a).concat(n.toUpperCase())));return l},encodeForHTML:Yv,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=Jv(t).toLowerCase():ny(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':""},isSafeDataURL:function(e,t){var r=null!=t?t:{},n=r.maxByteSizeSvg,o=void 0===n?5e5:n,i=r.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,r=Sv(null!==(t=jv.exec(e.trim()))&&void 0!==t?t:[],4),n=r[1];return{encoding:r[2],data:r[3],mimeType:null==n?void 0:n.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,r){var n={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(r)],n).size}catch(e){return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a}};const iy=(e,t)=>{var r;const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps;return null==n||null===(r=n.qValues)||void 0===r?void 0:r[e]},ay=e=>{switch(e){case"topLeft":default:return{horizontal:"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"flex-end",vertical:"center"};case"topRight":return{horizontal:"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"flex-end",vertical:"flex-end"}}},ly=({text:e,url:t,imageSize:r,imagePosition:n})=>n&&t&&!t.toLowerCase().includes("javascript:")&&oy.isSafeDataURL(t)?{type:gb.Image,url:t,text:e,imageSize:r,resolvedImagePosition:ay(n)}:{type:gb.Text,url:void 0,text:e},sy=(e,t,r)=>{var n;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(n=o.qValues)||void 0===n?void 0:n[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==r?void 0:r.urlPosition)===bb.Attribute||null==r?void 0:r.urlLabel},uy=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:gb.Link,url:oy.encodeForHref(t),text:e}}catch(t){return{type:gb.Text,url:void 0,text:e}}},cy=(e,t,r,n)=>{var o,i;const a=vb(t);return a!==gb.Image||!n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(o=n.anything.sense)&&void 0!==o&&null!==(i=o.isUnsupportedFeature)&&void 0!==i&&i.call(o,"tableImages")?a===gb.Link&&n.flags.isEnabled("CLIENT_IM_5715_LINKS")?((e,t,r)=>{const{urlPosition:n}=null!=t?t:{};if(n===bb.Attribute){var o;const n=sy(null!==(o=r.url)&&void 0!==o?o:-1,e,t),i=e.qText||n||"";return uy({text:i,url:n})}if(n===bb.Dimension){var i;const n=sy(null!==(i=r.urlLabel)&&void 0!==i?i:-1,e,t)||e.qText;return uy({text:n,url:e.qText})}return{type:gb.Text,url:void 0,text:e.qText}})(e,t,r):a===gb.Indicator&&n.flags.isEnabled("CLIENT_IM_6696_INDICATORS")?((e,t)=>{const{indicator:r,indicatorConditionalColoring:n}=null!=t?t:{};return{type:gb.Indicator,url:void 0,text:e.qText,indicator:{applySegmentColors:null==r?void 0:r.applySegmentColors,position:null==r?void 0:r.position,showTextValues:null==r?void 0:r.showTextValues},indicatorConditionalColoring:n}})(e,t):{type:gb.Text,url:void 0,text:e.qText}:((e,t,r)=>{const{imageSize:n,imagePosition:o,imageSetting:i,imageLabel:a}=null!=t?t:{};if("url"===i){var l,s;const t=e.qText,i=null===(l=iy(null!==(s=r.imageUrl)&&void 0!==s?s:-1,e))||void 0===l?void 0:l.qText;return ly({text:t,url:i,imageSize:n,imagePosition:o})}if("label"===i){var u,c,d;const t=e.qText;if(-1===r.imageLabel)return ly({text:a||t||"",url:t,imageSize:n,imagePosition:o});const i=null!==(u=null===(c=iy(null!==(d=r.imageLabel)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return ly({text:i,url:t,imageSize:n,imagePosition:o})}return{type:gb.Text,url:void 0,text:e.qText}})(e,t,r)},dy=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,py=e=>!Number.isNaN(+e),fy=e=>!(!e.qNum&&0!==e.qNum||!py(e.qNum)),my=1e4;function hy(e,t){return[...t].reverse().find((t=>t*e<=my))||Math.floor(my/e)}function gy(e,t){var r,n;if(null!==(r=t.viewState)&&void 0!==r&&r.skipTotals)return{atTop:!1,atBottom:!1};const[o,i,a,l,s]=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,null===(n=e.totals)||void 0===n?void 0:n.show,e.totals.position];if(a&&(o&&i||!l&&!o)){if(l||"top"===s)return{atTop:!0,atBottom:!1};if(!l&&"bottom"===s)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function by(e,t,r,n){var o,i,a;return t?0===r&&null!==(a=e.totals.label)&&void 0!==a?a:"":null!==(o=null===(i=e.qHyperCube.qGrandTotalRow[n])||void 0===i?void 0:i.qText)&&void 0!==o?o:""}function vy(e,t){const r=e.qHyperCube.qGrandTotalRow[t];return py(null==r?void 0:r.qNum)}function yy(e,t,r){return e&&!e.auto?{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:r?"left":"right",bodyTextAlign:"auto"}}const xy=(e,t)=>"auto"!==t?t:fy(e)?"right":"left";const Sy=e=>{const{qHyperCube:{qColumnOrder:t,qDimensionInfo:r,qMeasureInfo:n}}=e,o=r.length+n.length,i=(null==t?void 0:t.length)===o?t:Array.from(Array(o).keys()),{visibleColumnsOrder:a,visibleColumnIndexes:l}=((e,t,r)=>{const n=t.length,o=[];let i=0,a=0;return{visibleColumnsOrder:e.filter((e=>{const l=e<n,{qError:s}=l?t[e]:r[e-n],u=7005===(null==s?void 0:s.qErrorCode);return u?l?i++:a++:o[e]=l?e-i:e-n-a,!u})),visibleColumnIndexes:o}})(i,r,n);return a.map(((t,r)=>function(e,t,r,n){const{qDimensionInfo:o,qMeasureInfo:i,qEffectiveInterColumnSortOrder:a}=e.qHyperCube,l=o.length,s=t<l,u=s?o[t]:i[t-l],c=t===a[0];let d,p=0,f="",m=!1,h=-1;const{representation:g,conditionalColoring:b}=u;if(s){const e=u;p=e.qGroupPos,f=e.qGroupFieldDefs[p],m=e.qLocked,h=n,({qDimensionType:d}=e)}const{qFallbackTitle:v,textAlign:y,qAttrExprInfo:x,qSortIndicator:S,qReverseSort:E,qApprMaxGlyphCount:w,columnWidth:C,qLibraryId:R}=u;return{isDim:s,isLocked:m,fieldId:f,colIdx:t,qLibraryId:R,pageColIdx:r,qApprMaxGlyphCount:w,qReverseSort:E,columnWidth:C,selectionColIdx:h,isActivelySorted:c,id:dv(u),label:v,qAttrExprInfoIDs:x.map((e=>e.id)),qAttrExprInfoIndex:nv(u),sortDirection:S&&"N"!==S?S:"A",totalInfo:by(e,s,r,n),...!s&&{isTotalNumeric:vy(e,n)},...yy(y,d,s),representation:g,conditionalColoring:s?void 0:b}}(e,t,r,l[t])))};const Ey=(e,t)=>{var r;return!!(e.snapshotData||null!==(r=t.viewState)&&void 0!==r&&r.visibleHeight)},wy=(e,t)=>{var r;return void 0!==(null===(r=t.viewState)||void 0===r?void 0:r.usePagination)?t.viewState.usePagination:!1!==e.usePagination||Ey(e,t)};var Cy="$$material";const Ry=["values","unit","step"],Ay=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)=>z({},e,{[t.key]:t.val})),{})};function Iy(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=K(e,Ry),i=Ay(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r})`}function s(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 z({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},o)}var Dy={borderRadius:4};function Py(e,t){return t?_n(e,t,{clone:!1}):e}const Ly={xs:0,sm:600,md:900,lg:1200,xl:1536},My={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ly[e]}px)`};function ky(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||My;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||My;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Ly).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Oy(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 _y(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Oy(e,r)||n,t&&(o=t(o,n,e)),o}function Ty(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=Oy(e.theme,n)||{};return ky(e,i,(e=>{let n=_y(a,o,e);return e===n&&"string"==typeof e&&(n=_y(a,o,`${t}${"default"===e?"":ao(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const qy={m:"margin",p:"padding"},Ny={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Fy={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},jy=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Fy[e])return[e];e=Fy[e]}const[t,r]=e.split(""),n=qy[t],o=Ny[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),zy=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],$y=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function By(e,t,r,n){var o;const i=null!=(o=Oy(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 Hy(e){return By(e,"spacing",8)}function Vy(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 Wy(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Vy(t,r),e)),{})}(jy(r),n);return ky(e,e[r],o)}function Gy(e,t){const r=Hy(e.theme);return Object.keys(e).map((n=>Wy(e,t,n,r))).reduce(Py,{})}function Uy(e){return Gy(e,zy)}function Yy(e){return Gy(e,$y)}function Ky(...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]?Py(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function Xy(e){return"number"!=typeof e?e:`${e}px solid`}function Jy(e,t){return Ty({prop:e,themeKey:"borders",transform:t})}Uy.propTypes={},Uy.filterProps=zy,Yy.propTypes={},Yy.filterProps=$y;const Zy=Jy("border",Xy),Qy=Jy("borderTop",Xy),ex=Jy("borderRight",Xy),tx=Jy("borderBottom",Xy),rx=Jy("borderLeft",Xy),nx=Jy("borderColor"),ox=Jy("borderTopColor"),ix=Jy("borderRightColor"),ax=Jy("borderBottomColor"),lx=Jy("borderLeftColor"),sx=Jy("outline",Xy),ux=Jy("outlineColor"),cx=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=By(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Vy(t,e)});return ky(e,e.borderRadius,r)}return null};cx.propTypes={},cx.filterProps=["borderRadius"],Ky(Zy,Qy,ex,tx,rx,nx,ox,ix,ax,lx,cx,sx,ux);const dx=e=>{if(void 0!==e.gap&&null!==e.gap){const t=By(e.theme,"spacing",8),r=e=>({gap:Vy(t,e)});return ky(e,e.gap,r)}return null};dx.propTypes={},dx.filterProps=["gap"];const px=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=By(e.theme,"spacing",8),r=e=>({columnGap:Vy(t,e)});return ky(e,e.columnGap,r)}return null};px.propTypes={},px.filterProps=["columnGap"];const fx=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=By(e.theme,"spacing",8),r=e=>({rowGap:Vy(t,e)});return ky(e,e.rowGap,r)}return null};fx.propTypes={},fx.filterProps=["rowGap"];function mx(e,t){return"grey"===t?t:e}Ky(dx,px,fx,Ty({prop:"gridColumn"}),Ty({prop:"gridRow"}),Ty({prop:"gridAutoFlow"}),Ty({prop:"gridAutoColumns"}),Ty({prop:"gridAutoRows"}),Ty({prop:"gridTemplateColumns"}),Ty({prop:"gridTemplateRows"}),Ty({prop:"gridTemplateAreas"}),Ty({prop:"gridArea"}));function hx(e){return e<=1&&0!==e?100*e+"%":e}Ky(Ty({prop:"color",themeKey:"palette",transform:mx}),Ty({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:mx}),Ty({prop:"backgroundColor",themeKey:"palette",transform:mx}));const gx=Ty({prop:"width",transform:hx}),bx=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])||Ly[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:hx(t)}};return ky(e,e.maxWidth,t)}return null};bx.filterProps=["maxWidth"];const vx=Ty({prop:"minWidth",transform:hx}),yx=Ty({prop:"height",transform:hx}),xx=Ty({prop:"maxHeight",transform:hx}),Sx=Ty({prop:"minHeight",transform:hx});Ty({prop:"size",cssProperty:"width",transform:hx}),Ty({prop:"size",cssProperty:"height",transform:hx});Ky(gx,bx,vx,yx,xx,Sx,Ty({prop:"boxSizing"}));var Ex={border:{themeKey:"borders",transform:Xy},borderTop:{themeKey:"borders",transform:Xy},borderRight:{themeKey:"borders",transform:Xy},borderBottom:{themeKey:"borders",transform:Xy},borderLeft:{themeKey:"borders",transform:Xy},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Xy},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:cx},color:{themeKey:"palette",transform:mx},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:mx},backgroundColor:{themeKey:"palette",transform:mx},p:{style:Yy},pt:{style:Yy},pr:{style:Yy},pb:{style:Yy},pl:{style:Yy},px:{style:Yy},py:{style:Yy},padding:{style:Yy},paddingTop:{style:Yy},paddingRight:{style:Yy},paddingBottom:{style:Yy},paddingLeft:{style:Yy},paddingX:{style:Yy},paddingY:{style:Yy},paddingInline:{style:Yy},paddingInlineStart:{style:Yy},paddingInlineEnd:{style:Yy},paddingBlock:{style:Yy},paddingBlockStart:{style:Yy},paddingBlockEnd:{style:Yy},m:{style:Uy},mt:{style:Uy},mr:{style:Uy},mb:{style:Uy},ml:{style:Uy},mx:{style:Uy},my:{style:Uy},margin:{style:Uy},marginTop:{style:Uy},marginRight:{style:Uy},marginBottom:{style:Uy},marginLeft:{style:Uy},marginX:{style:Uy},marginY:{style:Uy},marginInline:{style:Uy},marginInlineStart:{style:Uy},marginInlineEnd:{style:Uy},marginBlock:{style:Uy},marginBlockStart:{style:Uy},marginBlockEnd:{style:Uy},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:dx},rowGap:{style:fx},columnGap:{style:px},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:hx},maxWidth:{style:bx},minWidth:{transform:hx},height:{transform:hx},maxHeight:{transform:hx},minHeight:{transform:hx},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function wx(){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:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=Oy(r,l)||{};if(u)return u(o);return ky(o,t,(t=>{let r=_y(c,s,t);return t===r&&"string"==typeof t&&(r=_y(c,s,`${e}${"default"===t?"":ao(t)}`,t)),!1===a?r:{[a]:r}}))}return function t(r){var n;const{sx:o,theme:i={}}=r||{};if(!o)return null;const a=null!=(n=i.unstable_sxConfig)?n:Ex;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;return(null==(t=e.keys)?void 0:t.reduce(((t,r)=>(t[e.up(r)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(n).forEach((r=>{const o=(l=n[r],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[r])s=Py(s,e(r,o,i,a));else{const e=ky({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)?s=Py(s,e):s[r]=t({sx:o,theme:i})}else s=Py(s,e(r,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const r=e[t];return(!r||0===Object.keys(r).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const Cx=wx();Cx.filterProps=["sx"];var Rx=Cx;function Ax(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:{}}const Ix=["breakpoints","palette","spacing","shape"];function Dx(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=K(e,Ix),l=Iy(r),s=function(e=8){if(e.mui)return e;const t=Hy({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=_n({breakpoints:l,direction:"ltr",components:{},palette:z({mode:"light"},n),spacing:s,shape:z({},Dy,i)},a);return u.applyStyles=Ax,u=t.reduce(((e,t)=>_n(e,t)),u),u.unstable_sxConfig=z({},Ex,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Rx({sx:e,theme:this})},u}var Px=Object.freeze({__proto__:null,default:Dx,private_createBreakpoints:Iy,unstable_applyStyles:Ax});function Lx(e=null){const t=y.useContext(hn);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Mx=Dx();const kx=["sx"],Ox=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:Ex;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n};function _x(e){const{sx:t}=e,r=K(e,kx),{systemProps:n,otherProps:o}=Ox(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return kn(r)?z({},n,r):n}:z({},n,t),z({},o,{sx:i})}var Tx=Object.freeze({__proto__:null,default:Rx,extendSxProp:_x,unstable_createStyleFunctionSx:wx,unstable_defaultSxConfig:Ex});const qx=["className","component"];function Nx(e){if(e.type)return e;if("#"===e.charAt(0))return Nx(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(_e(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(_e(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Fx(e,t){return e=Nx(e),t=function(e,t=0,r=1){return qo(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)}var jx=y.createContext(null);function zx(){return y.useContext(jx)}var $x="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Bx(e){const{children:t,theme:r}=e,n=zx(),o=y.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return z({},e,t)}(n,r);return null!=e&&(e[$x]=null!==n),e}),[r,n]);return ea.jsx(jx.Provider,{value:o,children:t})}const Hx=["value"],Vx=y.createContext();function Wx(e){let{value:t}=e,r=K(e,Hx);return ea.jsx(Vx.Provider,z({value:null==t||t},r))}const Gx=y.createContext(void 0);function Ux({value:e,children:t}){return ea.jsx(Gx.Provider,{value:e,children:t})}function Yx({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?Po(o.defaultProps,n):o.styleOverrides||o.variants?n:Po(o,n)}({props:e,name:t,theme:{components:y.useContext(Gx)}})}const Kx={};function Xx(e,t,r,n=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?z({},t,{[e]:i}):i;return n?()=>a:a}return z({},t,e?{[e]:r}:r)}),[e,t,r,n])}function Jx(e){const{children:t,theme:r,themeId:n}=e,o=Lx(Kx),i=zx()||Kx,a=Xx(n,o,r),l=Xx(n,i,r,!0),s="rtl"===a.direction;return ea.jsx(Bx,{theme:l,children:ea.jsx(hn.Provider,{value:a,children:ea.jsx(Wx,{value:s,children:ea.jsx(Ux,{value:null==a?void 0:a.components,children:t})})})})}var Zx,Qx={},eS={exports:{}};(Zx=eS).exports=function(e){return e&&e.__esModule?e:{default:e}},Zx.exports.__esModule=!0,Zx.exports.default=Zx.exports;var tS=eS.exports,rS=B(Te),nS=B(No),oS=tS;Object.defineProperty(Qx,"__esModule",{value:!0});var iS=Qx.alpha=vS;Qx.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=fS(e),a=fS(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return hS({type:"rgb",values:l})},Qx.colorChannel=void 0;var aS=Qx.darken=yS;Qx.decomposeColor=fS,Qx.emphasize=SS;var lS=Qx.getContrastRatio=function(e,t){const r=bS(e),n=bS(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};Qx.getLuminance=bS,Qx.hexToRgb=pS,Qx.hslToRgb=gS;var sS=Qx.lighten=xS;Qx.private_safeAlpha=function(e,t,r){try{return vS(e,t)}catch(t){return e}},Qx.private_safeColorChannel=void 0,Qx.private_safeDarken=function(e,t,r){try{return yS(e,t)}catch(t){return e}},Qx.private_safeEmphasize=function(e,t,r){try{return SS(e,t)}catch(t){return e}},Qx.private_safeLighten=function(e,t,r){try{return xS(e,t)}catch(t){return e}},Qx.recomposeColor=hS,Qx.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=fS(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 uS=oS(rS),cS=oS(nS);function dS(e,t=0,r=1){return(0,cS.default)(e,t,r)}function pS(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 fS(e){if(e.type)return e;if("#"===e.charAt(0))return fS(pS(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,uS.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,uS.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const mS=e=>{const t=fS(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};Qx.colorChannel=mS;function hS(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 gS(e){e=fS(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 l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),hS({type:l,values:s})}function bS(e){let t="hsl"===(e=fS(e)).type||"hsla"===e.type?fS(gS(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 vS(e,t){return e=fS(e),t=dS(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,hS(e)}function yS(e,t){if(e=fS(e),t=dS(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 hS(e)}function xS(e,t){if(e=fS(e),t=dS(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 hS(e)}function SS(e,t=.15){return bS(e)>.5?yS(e,t):xS(e,t)}Qx.private_safeColorChannel=(e,t)=>{try{return mS(e)}catch(t){return e}};var ES={black:"#000",white:"#fff"};var wS={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"};var CS={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var RS={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"};var AS={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"};var IS={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"};var DS={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var PS={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"};const LS=["mode","contrastThreshold","tonalOffset"],MS={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:ES.white,default:ES.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}},kS={text:{primary:ES.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:ES.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 OS(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=sS(e.main,o):"dark"===t&&(e.dark=aS(e.main,i)))}function _S(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=K(e,LS),i=e.primary||function(e="light"){return"dark"===e?{main:IS[200],light:IS[50],dark:IS[400]}:{main:IS[700],light:IS[400],dark:IS[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:CS[200],light:CS[50],dark:CS[400]}:{main:CS[500],light:CS[300],dark:CS[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:RS[500],light:RS[300],dark:RS[700]}:{main:RS[700],light:RS[400],dark:RS[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:DS[400],light:DS[300],dark:DS[700]}:{main:DS[700],light:DS[500],dark:DS[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:PS[400],light:PS[300],dark:PS[700]}:{main:PS[800],light:PS[500],dark:PS[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:AS[400],light:AS[300],dark:AS[700]}:{main:"#ed6c02",light:AS[500],dark:AS[900]}}(t);function d(e){return lS(e,kS.text.primary)>=r?kS.text.primary:MS.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=z({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(_e(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(_e(12,t?` (${t})`:"",JSON.stringify(e.main)));return OS(e,"light",o,n),OS(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:kS,light:MS};return _n(z({common:z({},ES),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:wS,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const TS=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const qS={textTransform:"uppercase"},NS='"Roboto", "Helvetica", "Arial", sans-serif';function FS(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=NS,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=K(r,TS),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return z({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===NS?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:h(i,96,1.167,-1.5),h2:h(i,60,1.2,-.5),h3:h(a,48,1.167,0),h4:h(a,34,1.235,.25),h5:h(a,24,1.334,0),h6:h(l,20,1.6,.15),subtitle1:h(a,16,1.75,.15),subtitle2:h(l,14,1.57,.1),body1:h(a,16,1.5,.15),body2:h(a,14,1.43,.15),button:h(l,14,1.75,.4,qS),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,qS),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return _n(z({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function jS(...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(",")}var zS=["none",jS(0,2,1,-1,0,1,1,0,0,1,3,0),jS(0,3,1,-2,0,2,2,0,0,1,5,0),jS(0,3,3,-2,0,3,4,0,0,1,8,0),jS(0,2,4,-1,0,4,5,0,0,1,10,0),jS(0,3,5,-1,0,5,8,0,0,1,14,0),jS(0,3,5,-1,0,6,10,0,0,1,18,0),jS(0,4,5,-2,0,7,10,1,0,2,16,1),jS(0,5,5,-3,0,8,10,1,0,3,14,2),jS(0,5,6,-3,0,9,12,1,0,3,16,2),jS(0,6,6,-3,0,10,14,1,0,4,18,3),jS(0,6,7,-4,0,11,15,1,0,4,20,3),jS(0,7,8,-4,0,12,17,2,0,5,22,4),jS(0,7,8,-4,0,13,19,2,0,5,24,4),jS(0,7,9,-4,0,14,21,2,0,5,26,4),jS(0,8,9,-5,0,15,22,2,0,6,28,5),jS(0,8,10,-5,0,16,24,2,0,6,30,5),jS(0,8,11,-5,0,17,26,2,0,6,32,5),jS(0,9,11,-5,0,18,28,2,0,7,34,6),jS(0,9,12,-6,0,19,29,2,0,7,36,6),jS(0,10,13,-6,0,20,31,3,0,8,38,7),jS(0,10,13,-6,0,21,33,3,0,8,40,7),jS(0,10,14,-6,0,22,35,3,0,8,42,7),jS(0,11,14,-7,0,23,36,3,0,9,44,8),jS(0,11,15,-7,0,24,38,3,0,9,46,8)];const $S=["duration","easing","delay"],BS={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},HS={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function VS(e){return`${Math.round(e)}ms`}function WS(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function GS(e){const t=z({},BS,e.easing),r=z({},HS,e.duration);return z({getAutoHeightDuration:WS,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return K(n,$S),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:VS(o)} ${i} ${"string"==typeof a?a:VS(a)}`)).join(",")}},e,{easing:t,duration:r})}var US={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const YS=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function KS(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=K(e,YS);if(e.vars)throw new Error(_e(18));const l=_S(n),s=Dx(e);let u=_n(s,{mixins:(c=s.breakpoints,d=r,z({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:zS.slice(),typography:FS(l,i),transitions:GS(o),zIndex:z({},US)});var c,d;return u=_n(u,a),u=t.reduce(((e,t)=>_n(e,t)),u),u.unstable_sxConfig=z({},Ex,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Rx({sx:e,theme:this})},u}var XS,JS=KS(),ZS={},QS={exports:{}};var eE,tE={exports:{}};var rE=B(Mn),nE=B(qn),oE=B(lo),iE=B(io),aE=B(Px),lE=B(Tx),sE=tS;Object.defineProperty(ZS,"__esModule",{value:!0});var uE=ZS.default=function(e={}){const{themeId:t,defaultTheme:r=SE,rootShouldForwardProp:n=xE,slotShouldForwardProp:o=xE}=e,i=e=>(0,hE.default)((0,cE.default)({},e,{theme:wE((0,cE.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,pE.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=CE(EE(s))}=a,p=(0,dE.default)(a,vE),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=xE;"Root"===s||"root"===s?h=n:s?h=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const g=(0,pE.default)(e,(0,cE.default)({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,fE.isPlainObject)(e)?n=>RE(e,(0,cE.default)({},n,{theme:wE({theme:n.theme,defaultTheme:r,themeId:t})})):e,v=(n,...o)=>{let a=b(n);const s=o?o.map(b):[];l&&d&&s.push((e=>{const n=wE((0,cE.default)({},e,{defaultTheme:r,themeId:t}));if(!n.components||!n.components[l]||!n.components[l].styleOverrides)return null;const o=n.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,r])=>{i[t]=RE(r,(0,cE.default)({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=wE((0,cE.default)({},e,{defaultTheme:r,themeId:t}));return RE({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},(0,cE.default)({},e,{theme:o}))})),m||s.push(i);const u=s.length-o.length;if(Array.isArray(n)&&u>0){const e=new Array(u).fill("");a=[...n,...e],a.raw=[...n.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};ZS.shouldForwardProp=xE,ZS.systemDefaultTheme=void 0;var cE=sE((XS||(XS=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}(QS)),QS.exports)),dE=sE((eE||(eE=1,function(e){e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(tE)),tE.exports)),pE=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=yE(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}(rE),fE=nE;sE(oE),sE(iE);var mE=sE(aE),hE=sE(lE);const gE=["ownerState"],bE=["variants"],vE=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function yE(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(yE=function(e){return e?r:t})(e)}function xE(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const SE=ZS.systemDefaultTheme=(0,mE.default)(),EE=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function wE({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function CE(e){return e?(t,r)=>r[e]:null}function RE(e,t){let{ownerState:r}=t,n=(0,dE.default)(t,gE);const o="function"==typeof e?e((0,cE.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>RE(e,(0,cE.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,dE.default)(o,bE);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,cE.default)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,cE.default)({ownerState:r},n,r)):e.style))})),t}return o}var AE=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var IE=uE({themeId:Cy,defaultTheme:JS,rootShouldForwardProp:AE});const DE=["theme"];function PE(e){let{theme:t}=e,r=K(e,DE);const n=t[Cy];return ea.jsx(Jx,z({},r,{themeId:n?Cy:void 0,theme:n||t}))}var LE={exports:{}};
102
102
  /*!
103
103
  * CSSJanus. https://github.com/cssjanus/cssjanus
104
104
  *
@@ -117,7 +117,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.le
117
117
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
118
118
  * See the License for the specific language governing permissions and
119
119
  * limitations under the License.
120
- */!function(e,t){var r;function n(e,t){var r=[],n=0;function o(e){return r.push(e),t}function i(){return r[n++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="direction\\s*:\\s*",a="['\"]?\\s*",l="(^|[^a-zA-Z])",s="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",c="(?:[_a-z0-9-]|"+r+"|"+u+")",d=o+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+r+"|"+u+")")+c+"*")+")?",p="((?:-?"+d+")|(?:inherit|auto))",f="(#?"+c+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",m="(?:[!#$%&*-~]|"+r+"|"+u+")*?",h="(?![a-zA-Z])",g="(?!("+c+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",b="(?!"+m+a+"\\))",v="(?="+m+a+"\\))",y="(\\s*(?:!important\\s*)?[;}])",x=/`TMP`/g,S=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),E=new RegExp("("+s+g+"[^;}]+;?)","gi"),C=new RegExp("("+s+"[^\\}]*?})","gi"),w=new RegExp("("+i+")ltr","gi"),R=new RegExp("("+i+")rtl","gi"),A=new RegExp(l+"(left)"+h+b+g,"gi"),I=new RegExp(l+"(right)"+h+b+g,"gi"),D=new RegExp(l+"(left)"+v,"gi"),P=new RegExp(l+"(right)"+v,"gi"),L=new RegExp(l+"(ltr)"+v,"gi"),M=new RegExp(l+"(rtl)"+v,"gi"),O=new RegExp(l+"([ns]?)e-resize","gi"),k=new RegExp(l+"([ns]?)w-resize","gi"),_=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+y,"gi"),T=new RegExp("((?:-color|border-style)\\s*:\\s*)"+f+"(\\s+)"+f+"(\\s+)"+f+"(\\s+)"+f+y,"gi"),q=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+d+")","gi"),N=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),F=new RegExp("(border-radius\\s*:\\s*)"+p+"(?:(?:\\s+"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?)?(?:(?:(?:\\s*\\/\\s*)"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?(?:\\s+"+p+")?)?"+y,"gi"),z=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+p,"gi"),j=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+f,"gi"),$=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+p,"gi"),B=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),H=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),V=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+p+"((?:\\s*,\\s*"+p+"){0,2}\\s*\\))","gi");function W(e,t,r){var n,o;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r}function G(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function U(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter((function(e){return e})),o=r.slice(6,10).filter((function(e){return e})),i=r[10]||"";return t+(o.length?G(n)+" / "+G(o):G(n))+i}function Y(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function K(e,t,r){return t+Y(r)}function X(e,t,r,n,o){return t+r+Y(n)+o}function J(e,t,r,n,o){return t+r+n+Y(o)}return{transform:function(r,o){var i=new n(E,"`NOFLIP_SINGLE`"),a=new n(C,"`NOFLIP_CLASS`"),l=new n(S,t);return r=l.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(L,"$1"+e).replace(M,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(r=r.replace(D,"$1"+e).replace(P,"$1left").replace(x,"right")),r=r.replace(w,"$1"+e).replace(R,"$1ltr").replace(x,"rtl").replace(A,"$1"+e).replace(I,"$1left").replace(x,"right").replace(O,"$1$2"+e).replace(k,"$1$2e-resize").replace(x,"w-resize").replace(F,U).replace(z,K).replace(j,J).replace($,J).replace(B,K).replace(H,X).replace(V,X).replace(_,"$1$2$3$8$5$6$7$4$9").replace(T,"$1$2$3$8$5$6$7$4$9").replace(q,W).replace(N,W),r=i.detokenize(a.detokenize(l.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)}(pE,pE.exports);var fE=$(pE.exports),mE="comm",hE="rule",gE="decl",bE="@media",vE="@import",yE="@supports",xE="@keyframes",SE=Math.abs,EE=String.fromCharCode;function CE(e){return e.trim()}function wE(e,t,r){return e.replace(t,r)}function RE(e,t,r){return e.indexOf(t,r)}function AE(e,t){return 0|e.charCodeAt(t)}function IE(e,t,r){return e.slice(t,r)}function DE(e){return e.length}function PE(e,t){return t.push(e),e}var LE,ME,OE,kE,_E,TE=1,qE=1,NE=0,FE=0,zE=0,jE="";function $E(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:TE,column:qE,length:a,return:"",siblings:l}}function BE(){return zE=FE>0?AE(jE,--FE):0,qE--,10===zE&&(qE=1,TE--),zE}function HE(){return zE=FE<NE?AE(jE,FE++):0,qE++,10===zE&&(qE=1,TE++),zE}function VE(){return AE(jE,FE)}function WE(){return FE}function GE(e,t){return IE(jE,e,t)}function UE(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 YE(e){return CE(GE(FE-1,JE(91===e?e+2:40===e?e+1:e)))}function KE(e){for(;(zE=VE())&&zE<33;)HE();return UE(e)>2||UE(zE)>3?"":" "}function XE(e,t){for(;--t&&HE()&&!(zE<48||zE>102||zE>57&&zE<65||zE>70&&zE<97););return GE(e,WE()+(t<6&&32==VE()&&32==HE()))}function JE(e){for(;HE();)switch(zE){case e:return FE;case 34:case 39:34!==e&&39!==e&&JE(zE);break;case 40:41===e&&JE(e);break;case 92:HE()}return FE}function ZE(e,t){for(;HE()&&e+zE!==57&&(e+zE!==84||47!==VE()););return"/*"+GE(t,FE-1)+"*"+EE(47===e?e:HE())}function QE(e){for(;!UE(VE());)HE();return GE(e,FE)}function eC(e){return function(e){return jE="",e}(tC("",null,null,null,[""],e=function(e){return TE=qE=1,NE=DE(jE=e),FE=0,[]}(e),0,[0],e))}function tC(e,t,r,n,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,E=n,C=y;g;)switch(m=v,v=HE()){case 40:if(108!=m&&58==AE(C,d-1)){-1!=RE(C+=wE(YE(v),"&","&\f"),"&\f",SE(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=YE(v);break;case 9:case 10:case 13:case 32:C+=KE(m);break;case 92:C+=XE(WE()-1,7);continue;case 47:switch(VE()){case 42:case 47:PE(nC(ZE(HE(),WE()),t,r,s),s),5!=UE(m||1)&&5!=UE(VE()||1)||!DE(C)||" "===IE(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*h:l[u++]=DE(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=wE(C,/\f/g,"")),f>0&&(DE(C)-d||0===h&&47===m)&&PE(f>32?oC(C+";",n,r,d-1,s):oC(wE(C," ","")+";",n,r,d-2,s),s);break;case 59:C+=";";default:if(PE(E=rC(C,t,r,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)tC(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===AE(C,3)?100:p){case 100:case 108:case 109:case 115:tC(e,E,E,n&&PE(rC(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,n?x:S);break;default:tC(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+DE(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==BE())continue;switch(C+=EE(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(DE(C)-1)*b,b=1;break;case 64:45===VE()&&(C+=YE(HE())),p=VE(),c=d=DE(y=C+=QE(WE())),v++;break;case 45:45===m&&2==DE(C)&&(h=0)}}return i}function rC(e,t,r,n,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=function(e){return e.length}(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=IE(e,p+1,p=SE(g=a[h])),x=e;v<m;++v)(x=CE(g>0?f[v]+" "+y:wE(y,/&\f/g,f[v])))&&(s[b++]=x);return $E(e,t,r,0===o?hE:l,s,u,c,d)}function nC(e,t,r,n){return $E(e,t,r,mE,EE(zE),IE(e,2,-2),0,n)}function oC(e,t,r,n,o){return $E(e,t,r,gE,IE(e,0,n),IE(e,n+1,-1),n,o)}function iC(e,t,r){switch(e.type){case vE:case gE:case mE:return e.return=e.return||e.value;case hE:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===mE&&(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),iC);return DE(n)?e.return=e.value+"{"+n+"}":""}function aC(e,t,r,n){if(e.type===xE||e.type===yE||e.type===hE&&(!e.parent||e.parent.type===bE||e.parent.type===hE)){var o=fE.transform(iC(e));e.children=o?eC(o)[0].children:[],e.return=""}}Object.defineProperty(aC,"name",{value:"stylisRTLPlugin"}),function(e){e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive"}(LE||(LE={})),function(e){e.SELECT="select",e.SELECT_MOUSE_DOWN="selectMouseDown",e.SELECT_MOUSE_UP="selectMouseUp",e.SELECT_MULTI_ADD="selectMultiAdd",e.SELECT_MULTI_END="selectMultiEnd",e.RESET="reset",e.CLEAR="clear",e.UPDATE_PAGE_ROWS="updatePageRows"}(ME||(ME={})),function(e){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.PAGE_UP="PageUp",e.PAGE_DOWN="PageDown"}(OE||(OE={})),function(e){e.FOCUS="focus",e.FOCUS_BUTTON="focusButton",e.BLUR="blur",e.ADD_TAB="addTab",e.REMOVE_TAB="removeTab"}(kE||(kE={})),function(e){e.A="ascending",e.D="descending"}(_E||(_E={}));const lC=[0,0],sC={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"},uC={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",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",...sC,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",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)"},cC=12,dC=14,pC=16,fC=24,mC=3,hC=300,gC=400,bC=600,vC=700,yC={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Y(uC.GREYSCALE_0,.05),Y(uC.GREEN_PALE,.5),Y(uC.BLUE_PALE,.5),Y(uC.GREEN_PALE,.5),Y(uC.BLUE_PALE,.5),Y(uC.GREEN_PALE,.5),Y(uC.BLUE_PALE,.5);var xC;function SC(){return SC=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},SC.apply(null,arguments)}Y(uC.GREEN_PALE,.5),Y(uC.BLUE_PALE,.5),Y(uC.GREEN_PALE,.5),Y(uC.BLUE_PALE,.5);var EC,CC=function(e){return y.createElement("svg",SC({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),xC||(xC=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function wC(){return wC=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},wC.apply(null,arguments)}var RC=function(e){return y.createElement("svg",wC({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),EC||(EC=y.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function AC({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return x.createElement("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r},t)}var IC=(e={})=>x.createElement(AC,{...e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},x.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),x.createElement("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"}))),DC=(e={})=>x.createElement(AC,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),x.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),PC=(e={})=>x.createElement(AC,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},x.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),LC=(e={})=>x.createElement(AC,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),x.createElement("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"}))),MC=({className:e})=>x.createElement(AC,{fontSize:"small",className:e},x.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},x.createElement("g",{transform:"translate(4.324187, 1.300372)"},x.createElement("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"}),x.createElement("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 OC(e){return Lx(e)}var kC=To("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const _C=["center","classes","className"];let TC,qC,NC,FC,zC=e=>e;const jC=Rn(TC||(TC=zC`
120
+ */!function(e,t){var r;function n(e,t){var r=[],n=0;function o(e){return r.push(e),t}function i(){return r[n++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="direction\\s*:\\s*",a="['\"]?\\s*",l="(^|[^a-zA-Z])",s="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",c="(?:[_a-z0-9-]|"+r+"|"+u+")",d=o+"(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+r+"|"+u+")")+c+"*")+")?",p="((?:-?"+d+")|(?:inherit|auto))",f="(#?"+c+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",m="(?:[!#$%&*-~]|"+r+"|"+u+")*?",h="(?![a-zA-Z])",g="(?!("+c+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",b="(?!"+m+a+"\\))",v="(?="+m+a+"\\))",y="(\\s*(?:!important\\s*)?[;}])",x=/`TMP`/g,S=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),E=new RegExp("("+s+g+"[^;}]+;?)","gi"),w=new RegExp("("+s+"[^\\}]*?})","gi"),C=new RegExp("("+i+")ltr","gi"),R=new RegExp("("+i+")rtl","gi"),A=new RegExp(l+"(left)"+h+b+g,"gi"),I=new RegExp(l+"(right)"+h+b+g,"gi"),D=new RegExp(l+"(left)"+v,"gi"),P=new RegExp(l+"(right)"+v,"gi"),L=new RegExp(l+"(ltr)"+v,"gi"),M=new RegExp(l+"(rtl)"+v,"gi"),k=new RegExp(l+"([ns]?)e-resize","gi"),O=new RegExp(l+"([ns]?)w-resize","gi"),_=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+y,"gi"),T=new RegExp("((?:-color|border-style)\\s*:\\s*)"+f+"(\\s+)"+f+"(\\s+)"+f+"(\\s+)"+f+y,"gi"),q=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+d+")","gi"),N=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),F=new RegExp("(border-radius\\s*:\\s*)"+p+"(?:(?:\\s+"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?)?(?:(?:(?:\\s*\\/\\s*)"+p+")(?:\\s+"+p+")?(?:\\s+"+p+")?(?:\\s+"+p+")?)?"+y,"gi"),j=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+p,"gi"),z=new RegExp("(text-shadow\\s*:\\s*)"+p+"(\\s*)"+f,"gi"),$=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+p,"gi"),B=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),H=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),V=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+p+"((?:\\s*,\\s*"+p+"){0,2}\\s*\\))","gi");function W(e,t,r){var n,o;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r}function G(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function U(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter((function(e){return e})),o=r.slice(6,10).filter((function(e){return e})),i=r[10]||"";return t+(o.length?G(n)+" / "+G(o):G(n))+i}function Y(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function K(e,t,r){return t+Y(r)}function X(e,t,r,n,o){return t+r+Y(n)+o}function J(e,t,r,n,o){return t+r+n+Y(o)}return{transform:function(r,o){var i=new n(E,"`NOFLIP_SINGLE`"),a=new n(w,"`NOFLIP_CLASS`"),l=new n(S,t);return r=l.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(L,"$1"+e).replace(M,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(r=r.replace(D,"$1"+e).replace(P,"$1left").replace(x,"right")),r=r.replace(C,"$1"+e).replace(R,"$1ltr").replace(x,"rtl").replace(A,"$1"+e).replace(I,"$1left").replace(x,"right").replace(k,"$1$2"+e).replace(O,"$1$2e-resize").replace(x,"w-resize").replace(F,U).replace(j,K).replace(z,J).replace($,J).replace(B,K).replace(H,X).replace(V,X).replace(_,"$1$2$3$8$5$6$7$4$9").replace(T,"$1$2$3$8$5$6$7$4$9").replace(q,W).replace(N,W),r=i.detokenize(a.detokenize(l.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)}(LE,LE.exports);var ME=$(LE.exports),kE="comm",OE="rule",_E="decl",TE="@media",qE="@import",NE="@supports",FE="@keyframes",jE=Math.abs,zE=String.fromCharCode;function $E(e){return e.trim()}function BE(e,t,r){return e.replace(t,r)}function HE(e,t,r){return e.indexOf(t,r)}function VE(e,t){return 0|e.charCodeAt(t)}function WE(e,t,r){return e.slice(t,r)}function GE(e){return e.length}function UE(e,t){return t.push(e),e}var YE,KE,XE,JE,ZE,QE=1,ew=1,tw=0,rw=0,nw=0,ow="";function iw(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:QE,column:ew,length:a,return:"",siblings:l}}function aw(){return nw=rw>0?VE(ow,--rw):0,ew--,10===nw&&(ew=1,QE--),nw}function lw(){return nw=rw<tw?VE(ow,rw++):0,ew++,10===nw&&(ew=1,QE++),nw}function sw(){return VE(ow,rw)}function uw(){return rw}function cw(e,t){return WE(ow,e,t)}function dw(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 pw(e){return $E(cw(rw-1,hw(91===e?e+2:40===e?e+1:e)))}function fw(e){for(;(nw=sw())&&nw<33;)lw();return dw(e)>2||dw(nw)>3?"":" "}function mw(e,t){for(;--t&&lw()&&!(nw<48||nw>102||nw>57&&nw<65||nw>70&&nw<97););return cw(e,uw()+(t<6&&32==sw()&&32==lw()))}function hw(e){for(;lw();)switch(nw){case e:return rw;case 34:case 39:34!==e&&39!==e&&hw(nw);break;case 40:41===e&&hw(e);break;case 92:lw()}return rw}function gw(e,t){for(;lw()&&e+nw!==57&&(e+nw!==84||47!==sw()););return"/*"+cw(t,rw-1)+"*"+zE(47===e?e:lw())}function bw(e){for(;!dw(sw());)lw();return cw(e,rw)}function vw(e){return function(e){return ow="",e}(yw("",null,null,null,[""],e=function(e){return QE=ew=1,tw=GE(ow=e),rw=0,[]}(e),0,[0],e))}function yw(e,t,r,n,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,E=n,w=y;g;)switch(m=v,v=lw()){case 40:if(108!=m&&58==VE(w,d-1)){-1!=HE(w+=BE(pw(v),"&","&\f"),"&\f",jE(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:w+=pw(v);break;case 9:case 10:case 13:case 32:w+=fw(m);break;case 92:w+=mw(uw()-1,7);continue;case 47:switch(sw()){case 42:case 47:UE(Sw(gw(lw(),uw()),t,r,s),s),5!=dw(m||1)&&5!=dw(sw()||1)||!GE(w)||" "===WE(w,-1,void 0)||(w+=" ");break;default:w+="/"}break;case 123*h:l[u++]=GE(w)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(w=BE(w,/\f/g,"")),f>0&&(GE(w)-d||0===h&&47===m)&&UE(f>32?Ew(w+";",n,r,d-1,s):Ew(BE(w," ","")+";",n,r,d-2,s),s);break;case 59:w+=";";default:if(UE(E=xw(w,t,r,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)yw(w,t,E,E,x,i,d,l,S);else switch(99===p&&110===VE(w,3)?100:p){case 100:case 108:case 109:case 115:yw(e,E,E,n&&UE(xw(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,n?x:S);break;default:yw(w,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=b=1,y=w="",d=a;break;case 58:d=1+GE(w),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==aw())continue;switch(w+=zE(v),v*h){case 38:b=c>0?1:(w+="\f",-1);break;case 44:l[u++]=(GE(w)-1)*b,b=1;break;case 64:45===sw()&&(w+=pw(lw())),p=sw(),c=d=GE(y=w+=bw(uw())),v++;break;case 45:45===m&&2==GE(w)&&(h=0)}}return i}function xw(e,t,r,n,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=function(e){return e.length}(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=WE(e,p+1,p=jE(g=a[h])),x=e;v<m;++v)(x=$E(g>0?f[v]+" "+y:BE(y,/&\f/g,f[v])))&&(s[b++]=x);return iw(e,t,r,0===o?OE:l,s,u,c,d)}function Sw(e,t,r,n){return iw(e,t,r,kE,zE(nw),WE(e,2,-2),0,n)}function Ew(e,t,r,n,o){return iw(e,t,r,_E,WE(e,0,n),WE(e,n+1,-1),n,o)}function ww(e,t,r){switch(e.type){case qE:case _E:case kE:return e.return=e.return||e.value;case OE:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===kE&&(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),ww);return GE(n)?e.return=e.value+"{"+n+"}":""}function Cw(e,t,r,n){if(e.type===FE||e.type===NE||e.type===OE&&(!e.parent||e.parent.type===TE||e.parent.type===OE)){var o=ME.transform(ww(e));e.children=o?vw(o)[0].children:[],e.return=""}}Object.defineProperty(Cw,"name",{value:"stylisRTLPlugin"}),function(e){e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive"}(YE||(YE={})),function(e){e.SELECT="select",e.SELECT_MOUSE_DOWN="selectMouseDown",e.SELECT_MOUSE_UP="selectMouseUp",e.SELECT_MULTI_ADD="selectMultiAdd",e.SELECT_MULTI_END="selectMultiEnd",e.RESET="reset",e.CLEAR="clear",e.UPDATE_PAGE_ROWS="updatePageRows"}(KE||(KE={})),function(e){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.PAGE_UP="PageUp",e.PAGE_DOWN="PageDown"}(XE||(XE={})),function(e){e.FOCUS="focus",e.FOCUS_BUTTON="focusButton",e.BLUR="blur",e.ADD_TAB="addTab",e.REMOVE_TAB="removeTab"}(JE||(JE={})),function(e){e.A="ascending",e.D="descending"}(ZE||(ZE={}));const Rw=[0,0],Aw={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"},Iw={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",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",...Aw,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",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)"},Dw=12,Pw=14,Lw=16,Mw=24,kw=3,Ow=300,_w=400,Tw=600,qw=700,Nw={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Y(Iw.GREYSCALE_0,.05),Y(Iw.GREEN_PALE,.5),Y(Iw.BLUE_PALE,.5),Y(Iw.GREEN_PALE,.5),Y(Iw.BLUE_PALE,.5),Y(Iw.GREEN_PALE,.5),Y(Iw.BLUE_PALE,.5);var Fw;function jw(){return jw=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},jw.apply(null,arguments)}Y(Iw.GREEN_PALE,.5),Y(Iw.BLUE_PALE,.5),Y(Iw.GREEN_PALE,.5),Y(Iw.BLUE_PALE,.5);var zw,$w=function(e){return y.createElement("svg",jw({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Fw||(Fw=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Bw(){return Bw=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},Bw.apply(null,arguments)}var Hw=function(e){return y.createElement("svg",Bw({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),zw||(zw=y.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function Vw({fontSize:e="medium",children:t=null,className:r=""}={}){const n="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return x.createElement("i",{style:{fontSize:n,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r},t)}var Ww=(e={})=>x.createElement(Vw,{...e},x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},x.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),x.createElement("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"}))),Gw=(e={})=>x.createElement(Vw,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),x.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),Uw=(e={})=>x.createElement(Vw,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},x.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),Yw=(e={})=>x.createElement(Vw,{fontSize:"medium",...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},x.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),x.createElement("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"}))),Kw=({className:e})=>x.createElement(Vw,{fontSize:"small",className:e},x.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},x.createElement("g",{transform:"translate(4.324187, 1.300372)"},x.createElement("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"}),x.createElement("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 Xw(e){return Yx(e)}var Jw=To("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Zw=["center","classes","className"];let Qw,eC,tC,rC,nC=e=>e;const oC=Rn(Qw||(Qw=nC`
121
121
  0% {
122
122
  transform: scale(0);
123
123
  opacity: 0.1;
@@ -127,7 +127,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.le
127
127
  transform: scale(1);
128
128
  opacity: 0.3;
129
129
  }
130
- `)),$C=Rn(qC||(qC=zC`
130
+ `)),iC=Rn(eC||(eC=nC`
131
131
  0% {
132
132
  opacity: 1;
133
133
  }
@@ -135,7 +135,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.le
135
135
  100% {
136
136
  opacity: 0;
137
137
  }
138
- `)),BC=Rn(NC||(NC=zC`
138
+ `)),aC=Rn(tC||(tC=nC`
139
139
  0% {
140
140
  transform: scale(1);
141
141
  }
@@ -147,7 +147,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.le
147
147
  100% {
148
148
  transform: scale(1);
149
149
  }
150
- `)),HC=uE("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),VC=uE((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=y.useState(!1),p=zo(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=zo(r.child,c&&r.childLeaving,n&&r.childPulsate);return l||c||d(!0),y.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),ea.jsx("span",{className:p,style:f,children:ea.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(FC||(FC=zC`
150
+ `)),lC=IE("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),sC=IE((function(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:s,timeout:u}=e,[c,d]=y.useState(!1),p=jo(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=jo(r.child,c&&r.childLeaving,n&&r.childPulsate);return l||c||d(!0),y.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,u);return()=>{clearTimeout(e)}}}),[s,l,u]),ea.jsx("span",{className:p,style:f,children:ea.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(rC||(rC=nC`
151
151
  opacity: 0;
152
152
  position: absolute;
153
153
 
@@ -190,4 +190,4 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,l,s,u,c,d,p=e.le
190
190
  animation-iteration-count: infinite;
191
191
  animation-delay: 200ms;
192
192
  }
193
- `),kC.rippleVisible,jC,550,(({theme:e})=>e.transitions.easing.easeInOut),kC.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),kC.child,kC.childLeaving,$C,550,(({theme:e})=>e.transitions.easing.easeInOut),kC.childPulsate,BC,(({theme:e})=>e.transitions.easing.easeInOut));var WC=y.forwardRef((function(e,t){const r=OC({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=K(r,_C),[l,s]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=y.useRef(!1),p=yo(),f=y.useRef(null),m=y.useRef(null),h=y.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;s((e=>[...e,ea.jsx(VC,{classes:{ripple:zo(o.ripple,kC.ripple),rippleVisible:zo(o.rippleVisible,kC.rippleVisible),ripplePulsate:zo(o.ripplePulsate,kC.ripplePulsate),child:zo(o.child,kC.child),childLeaving:zo(o.childLeaving,kC.childLeaving),childPulsate:zo(o.childPulsate,kC.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 l=a?null:m.current,s=l?l.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(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,h,p]),b=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,s((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]),ea.jsx(HC,j({className:zo(kC.root,o.root,i),ref:m},a,{children:ea.jsx(us,{component:null,exit:!0,children:l})}))}));function GC(e){return _o("MuiButtonBase",e)}var UC=To("MuiButtonBase",["root","disabled","focusVisible"]);const YC=["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"],KC=uE("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"},[`&.${UC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),XC=y.forwardRef((function(e,t){const r=OC({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:A,onTouchStart:I,tabIndex:D=0,TouchRippleProps:P,touchRippleRef:L,type:M}=r,O=K(r,YC),k=y.useRef(null),_=y.useRef(null),T=ho(_,L),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=Do(),[$,B]=y.useState(!1);s&&$&&B(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{B(!0),k.current.focus()}})),[]);const[H,V]=y.useState(!1);y.useEffect((()=>{V(!0)}),[]);const W=H&&!u&&!s;function G(e,t,r=c){return mo((n=>{t&&t(n);return!r&&_.current&&_.current[e](n),!0}))}y.useEffect((()=>{$&&d&&!u&&H&&_.current.pulsate()}),[u,d,$,H]);const U=G("start",E),Y=G("stop",h),X=G("stop",g),J=G("stop",w),Z=G("stop",(e=>{$&&e.preventDefault(),C&&C(e)})),Q=G("start",I),ee=G("stop",R),te=G("stop",A),re=G("stop",(e=>{F(e),!1===q.current&&B(!1),f&&f(e)}),!1),ne=mo((e=>{k.current||(k.current=e.currentTarget),N(e),!0===q.current&&(B(!0),v&&v(e)),b&&b(e)})),oe=()=>{const e=k.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ie=y.useRef(!1),ae=mo((e=>{d&&!ie.current&&$&&_.current&&" "===e.key&&(ie.current=!0,_.current.stop(e,(()=>{_.current.start(e)}))),e.target===e.currentTarget&&oe()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&oe()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),le=mo((e=>{d&&" "===e.key&&_.current&&$&&!e.defaultPrevented&&(ie.current=!1,_.current.stop(e,(()=>{_.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&oe()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let se=l;"button"===se&&(O.href||O.to)&&(se=p);const ue={};"button"===se?(ue.type=void 0===M?"button":M,ue.disabled=s):(O.href||O.to||(ue.role="button"),s&&(ue["aria-disabled"]=s));const ce=ho(t,z,k),de=j({},r,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:D,focusVisible:$}),pe=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Lo({root:["root",t&&"disabled",r&&"focusVisible"]},GC,o);return r&&n&&(i.root+=` ${n}`),i})(de);return ea.jsxs(KC,j({as:se,className:zo(pe.root,a),ownerState:de,onBlur:re,onClick:m,onContextMenu:Y,onFocus:ne,onKeyDown:ae,onKeyUp:le,onMouseDown:U,onMouseLeave:Z,onMouseUp:J,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:ce,tabIndex:s?-1:D,type:M},ue,O,{children:[i,W?ea.jsx(WC,j({ref:T,center:o},P)):null]}))}));var JC=XC;var ZC=To("MuiBox",["root"]);const QC=MS(),ew=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Pn("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(lx),a=y.forwardRef((function(e,a){const l=function(e=fx){return px(e)}(r),s=gx(e),{className:u,component:c="div"}=s,d=K(s,vx);return ea.jsx(i,j({as:c,ref:a,className:zo(u,o?o(n):n),theme:t&&l[t]||l},d))}));return a}({themeId:ay,defaultTheme:QC,defaultClassName:ZC.root,generateClassName:Oo.generate});var tw=ew;var rw=To("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var nw=y.createContext({});function ow(e){return _o("MuiListItemIcon",e)}var iw=To("MuiListItemIcon",["root","alignItemsFlexStart"]);const aw=["className"],lw=uE("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})=>j({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var sw=y.forwardRef((function(e,t){const r=OC({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=K(r,aw),i=j({},r,{alignItems:y.useContext(nw).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Lo({root:["root","flex-start"===t&&"alignItemsFlexStart"]},ow,r)})(i);return ea.jsx(lw,j({className:zo(a.root,n),ownerState:i,ref:t},o))}));var uw=To("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function cw(e){return _o("MuiMenuItem",e)}var dw=To("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const pw=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],fw=uE(JC,{shouldForwardProp:e=>sE(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})=>j({},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"}},[`&.${dw.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$x(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${dw.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:$x(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${dw.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:$x(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})`:$x(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${dw.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${dw.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${rw.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${rw.inset}`]:{marginLeft:52},[`& .${uw.root}`]:{marginTop:0,marginBottom:0},[`& .${uw.inset}`]:{paddingLeft:36},[`& .${iw.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&j({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${iw.root} svg`]:{fontSize:"1.25rem"}}))));var mw=y.forwardRef((function(e,t){const r=OC({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=r,p=K(r,pw),f=y.useContext(nw),m=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=y.useRef(null);fo((()=>{n&&h.current&&h.current.focus()}),[n]);const g=j({},r,{dense:m.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return j({},a,Lo({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},cw,a))})(r),v=ho(h,t);let x;return r.disabled||(x=void 0!==c?c:-1),ea.jsx(nw.Provider,{value:m,children:ea.jsx(fw,j({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:zo(b.focusVisible,s),className:zo(b.root,d)},p,{ownerState:g,classes:b}))})}));var hw=y.createContext();function gw(e){return _o("MuiTable",e)}To("MuiTable",["root","stickyHeader"]);const bw=["className","component","padding","size","stickyHeader"],vw=uE("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>j({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":j({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),yw="table",xw=y.forwardRef((function(e,t){const r=OC({props:e,name:"MuiTable"}),{className:n,component:o=yw,padding:i="normal",size:a="medium",stickyHeader:l=!1}=r,s=K(r,bw),u=j({},r,{component:o,padding:i,size:a,stickyHeader:l}),c=(e=>{const{classes:t,stickyHeader:r}=e;return Lo({root:["root",r&&"stickyHeader"]},gw,t)})(u),d=y.useMemo((()=>({padding:i,size:a,stickyHeader:l})),[i,a,l]);return ea.jsx(hw.Provider,{value:d,children:ea.jsx(vw,j({as:o,role:o===yw?null:"table",ref:t,className:zo(c.root,n),ownerState:u},s))})}));var Sw=xw;var Ew=y.createContext();function Cw(e){return _o("MuiTableBody",e)}To("MuiTableBody",["root"]);const ww=["className","component"],Rw=uE("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Aw={variant:"body"},Iw="tbody";var Dw=y.forwardRef((function(e,t){const r=OC({props:e,name:"MuiTableBody"}),{className:n,component:o=Iw}=r,i=K(r,ww),a=j({},r,{component:o}),l=(e=>{const{classes:t}=e;return Lo({root:["root"]},Cw,t)})(a);return ea.jsx(Ew.Provider,{value:Aw,children:ea.jsx(Rw,j({className:zo(l.root,n),as:o,ref:t,role:o===Iw?null:"rowgroup",ownerState:a},i))})}));function Pw(e){return _o("MuiTableCell",e)}var Lw=To("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const Mw=["align","className","component","padding","scope","size","sortDirection","variant"],Ow=uE("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ao(r.size)}`],"normal"!==r.padding&&t[`padding${ao(r.padding)}`],"inherit"!==r.align&&t[`align${ao(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>j({},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?Vx($x(e.palette.divider,1),.88):Bx($x(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",[`&.${Lw.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}))),kw=y.forwardRef((function(e,t){const r=OC({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:l,size:s,sortDirection:u,variant:c}=r,d=K(r,Mw),p=y.useContext(hw),f=y.useContext(Ew),m=f&&"head"===f.variant;let h;h=i||(m?"th":"td");let g=l;"td"===h?g=void 0:!g&&m&&(g="col");const b=c||f&&f.variant,v=j({},r,{align:n,component:h,padding:a||(p&&p.padding?p.padding:"normal"),size:s||(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 Lo({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${ao(n)}`,"normal"!==o&&`padding${ao(o)}`,`size${ao(i)}`]},Pw,t)})(v);let S=null;return u&&(S="asc"===u?"ascending":"descending"),ea.jsx(Ow,j({as:h,ref:t,className:zo(x.root,o),"aria-sort":S,scope:g,ownerState:v},d))}));var _w=kw;function Tw(e){return _o("MuiTableContainer",e)}To("MuiTableContainer",["root"]);const qw=["className","component"],Nw=uE("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var Fw=y.forwardRef((function(e,t){const r=OC({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=K(r,qw),a=j({},r,{component:o}),l=(e=>{const{classes:t}=e;return Lo({root:["root"]},Tw,t)})(a);return ea.jsx(Nw,j({ref:t,as:o,className:zo(l.root,n),ownerState:a},i))}));function zw(e){return _o("MuiTableHead",e)}To("MuiTableHead",["root"]);const jw=["className","component"],$w=uE("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Bw={variant:"head"},Hw="thead";var Vw=y.forwardRef((function(e,t){const r=OC({props:e,name:"MuiTableHead"}),{className:n,component:o=Hw}=r,i=K(r,jw),a=j({},r,{component:o}),l=(e=>{const{classes:t}=e;return Lo({root:["root"]},zw,t)})(a);return ea.jsx(Ew.Provider,{value:Bw,children:ea.jsx($w,j({as:o,className:zo(l.root,n),ref:t,role:o===Hw?null:"rowgroup",ownerState:a},i))})}));function Ww(e){return _o("MuiTableRow",e)}var Gw=To("MuiTableRow",["root","selected","hover","head","footer"]);const Uw=["className","component","hover","selected"],Yw=uE("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,[`&.${Gw.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Gw.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:$x(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}))`:$x(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),Kw="tr",Xw=y.forwardRef((function(e,t){const r=OC({props:e,name:"MuiTableRow"}),{className:n,component:o=Kw,hover:i=!1,selected:a=!1}=r,l=K(r,Uw),s=y.useContext(Ew),u=j({},r,{component:o,hover:i,selected:a,head:s&&"head"===s.variant,footer:s&&"footer"===s.variant}),c=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:i}=e;return Lo({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},Ww,t)})(u);return ea.jsx(Yw,j({as:o,ref:t,className:zo(c.root,n),role:o===Kw?null:"row",ownerState:u},l))}));var Jw=Xw,Zw=(e={})=>x.createElement(AC,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{stroke:uC.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const Qw={MuiAccordion:{styleOverrides:{root:{backgroundColor:uC.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:uC.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:x.createElement(CC,{"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 ${uC.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:uC.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${uC.MISC_FOCUS_BORDER}`,borderRadius:mC,backgroundColor:uC.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 ${uC.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:uC.WHITE,color:uC.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:mC},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${uC.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:uC.GREYSCALE_0_15,backgroundColor:uC.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:uC.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${uC.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:uC.GREEN_PALE},"&:active":{backgroundColor:uC.GREEN_DARK},"&.Mui-focusVisible":{borderColor:uC.GREEN_PALE,boxShadow:`0 0 0 3px ${xx(uC.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:uC.BLUE_PALE},"&:active":{backgroundColor:uC.BLUE_DARK},"&.Mui-focusVisible":{borderColor:uC.BLUE_PALE,boxShadow:`0 0 0 3px ${xx(uC.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:mC,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:uC.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${uC.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:uC.GREYSCALE_0_15,backgroundColor:uC.GREYSCALE_100_60,"&:active":{backgroundColor:uC.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:uC.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${uC.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:uC.PURPLE,"&.Mui-focusVisible":{borderColor:uC.PURPLE,boxShadow:`0 0 0 3px ${xx(uC.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:uC.GREEN,"&.Mui-focusVisible":{borderColor:uC.GREEN,boxShadow:`0 0 0 3px ${xx(uC.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:uC.BLUE,"&.Mui-focusVisible":{borderColor:uC.BLUE,boxShadow:`0 0 0 3px ${xx(uC.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:uC.ORANGE,"&.Mui-focusVisible":{borderColor:uC.ORANGE,boxShadow:`0 0 0 3px ${xx(uC.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:uC.RED,"&.Mui-focusVisible":{borderColor:uC.RED,boxShadow:`0 0 0 3px ${xx(uC.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:uC.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:uC.PURPLE_PALE},"&:active":{backgroundColor:uC.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:uC.PURPLE_PALE,boxShadow:`0 0 0 3px ${xx(uC.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:uC.GREEN_PALE},"&:active":{backgroundColor:uC.GREEN_DARK},"&.Mui-focusVisible":{borderColor:uC.GREEN_PALE,boxShadow:`0 0 0 3px ${xx(uC.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:uC.BLUE_PALE},"&:active":{backgroundColor:uC.BLUE_DARK},"&.Mui-focusVisible":{borderColor:uC.BLUE_PALE,boxShadow:`0 0 0 3px ${xx(uC.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:uC.ORANGE_PALE},"&:active":{backgroundColor:uC.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:uC.ORANGE_PALE,boxShadow:`0 0 0 3px ${xx(uC.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:uC.RED_PALE},"&:active":{backgroundColor:uC.RED_DARK},"&.Mui-focusVisible":{borderColor:uC.RED_PALE,boxShadow:`0 0 0 3px ${xx(uC.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:uC.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:uC.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:mC,boxShadow:`inset 0 0 0 2px ${uC.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:x.createElement(RC,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:cC,borderRadius:mC,color:uC.TEXT_PRIMARY,backgroundColor:uC.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:uC.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${uC.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:uC.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:uC.GREYSCALE_0_05,color:uC.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:uC.GREEN,borderColor:uC.GREEN},"&.MuiChip-outlinedInfo":{color:uC.BLUE,borderColor:uC.BLUE},"&.MuiChip-outlinedWarning":{color:uC.ORANGE,borderColor:uC.ORANGE},"&.MuiChip-outlinedError":{color:uC.RED,borderColor:uC.RED}},outlined:{border:`solid 1px ${uC.GREYSCALE_0_15}`,backgroundColor:uC.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:mC,boxShadow:"none",backgroundColor:uC.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:uC.GREEN,borderColor:uC.GREEN},outlinedSecondary:{color:uC.BLUE,borderColor:uC.BLUE},label:{fontFamily:yC.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:x.createElement(RC,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:x.createElement(CC,{"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:mC},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:mC,fontSize:dC,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:uC.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${uC.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:uC.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:uC.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:uC.GREYSCALE_0_05}}},popupIndicator:{borderRadius:mC,border:`solid 1px ${uC.GREYSCALE_0_15}`,color:uC.GREYSCALE_0_60,marginRight:0,width:fC,height:fC},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${uC.GREYSCALE_0_15}`},clearIndicator:{borderRadius:mC,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:uC.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:dC}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:cC,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:uC.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:uC.GREYSCALE_25,fontSize:cC,fontFamily:yC.FONT_FAMILY,fontWeight:bC,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:uC.TEXT_PRIMARY},"&.Mui-error":{color:uC.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:uC.TEXT_SECONDARY,content:"'(optional)'",fontWeight:gC,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:uC.TEXT_SECONDARY,content:"'(required)'",fontWeight:gC,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:dC,lineHeight:"16px",backgroundColor:uC.WHITE,borderRadius:mC,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${uC.GREYSCALE_0_05}`,borderColor:uC.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${uC.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${uC.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${uC.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${uC.RED}`,boxShadow:`0px 0px 0px 1px ${uC.RED}, inset 0 2px 0 0 ${uC.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${uC.GREYSCALE_0_10}`,borderColor:uC.GREYSCALE_0_10,backgroundColor:uC.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:uC.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:uC.GREYSCALE_0_15,borderRadius:mC,boxShadow:`inset 0 2px 0 0 ${uC.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>x.createElement(CC,{...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:uC.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:uC.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:uC.GREYSCALE_0_03},"&:active":{backgroundColor:uC.GREYSCALE_0_10},"&:focus":{backgroundColor:uC.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${uC.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${uC.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:uC.GREYSCALE_0_30,"&:hover":{backgroundColor:uC.GREYSCALE_0_0,borderColor:uC.GREYSCALE_0_15},"& ~svg":{color:uC.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${uC.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:mC}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:uC.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${uC.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:uC.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:dC,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:cC,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:cC,fontWeight:bC,color:uC.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:bC}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${uC.GREYSCALE_0_15}, 0px 0px 0px 1px ${uC.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:x.createElement(PC,null),checkedIcon:x.createElement(LC,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:uC.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${uC.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:uC.GREEN_PALE,boxShadow:`0 0 0 3px ${xx(uC.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:uC.BLUE_PALE,boxShadow:`0 0 0 3px ${xx(uC.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:uC.GREYSCALE_0_20}},"&.Mui-disabled":{fill:uC.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:x.createElement(Zw,null),checkedIcon:x.createElement(IC,null),indeterminateIcon:x.createElement(DC,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:mC,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:uC.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:uC.GREYSCALE_0_55,color:uC.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:uC.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:uC.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:uC.GREYSCALE_0_55,"&:hover":{color:uC.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:uC.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:uC.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:dC,color:uC.TEXT_PRIMARY,lineHeight:"16px",fontWeight:bC},secondary:{fontSize:cC,color:uC.GREYSCALE_45,fontWeight:gC,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:dC,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:uC.GREYSCALE_0_03},"&:active":{backgroundColor:uC.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:dC,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:uC.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:cC,borderBottom:`solid 1px ${uC.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:dC,color:uC.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:uC.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:uC.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:uC.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:uC.RED}}},"&.Mui-focusVisible":{backgroundColor:uC.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:uC.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:uC.GREEN,height:"24px","&.Mui-disabled":{color:uC.GREYSCALE_0_15}},rail:{backgroundColor:uC.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${uC.GREYSCALE_0_05}`,borderRadius:mC,boxShadow:`inset 0px 0px 0px 1px ${uC.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${uC.GREYSCALE_0_05}`,borderRadius:mC},thumb:{height:"16px",width:"16px",borderRadius:mC,backgroundColor:uC.WHITE,boxShadow:`0px 1px 2px 0px ${uC.GREYSCALE_0_15}, 0px 0px 0px 1px ${uC.GREYSCALE_0_05}`,"&:hover":{borderRadius:mC,boxShadow:`0 2px 4px 0 ${uC.GREYSCALE_0_30}, 0 0 0 1px ${uC.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${uC.GREYSCALE_0_15}, 0 0 0 1px ${uC.GREYSCALE_0_06}, 0 0 0 2px ${uC.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${uC.GREYSCALE_0_15}, 0 0 0 1px ${uC.GREYSCALE_0_06}, 0 0 0 2px ${uC.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:uC.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:uC.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:uC.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:uC.GREYSCALE_0_15},markLabel:{color:uC.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:uC.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:uC.WHITE,color:uC.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:uC.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:uC.GREEN_PALE,boxShadow:`0 0 0 3px ${xx(uC.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:uC.BLUE_PALE,boxShadow:`0 0 0 3px ${xx(uC.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:uC.GREYSCALE_0_15,borderRadius:mC},thumb:{height:"16px",width:"16px",borderRadius:mC,backgroundColor:uC.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:dC,fontWeight:bC,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${uC.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${uC.MISC_FOCUS_BORDER}`,backgroundColor:uC.GREYSCALE_0_03,borderRadius:mC},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:uC.GREYSCALE_25,"&.Mui-selected":{color:uC.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:dC,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:mC,"&:hover":{backgroundColor:`${uC.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 ${uC.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${uC.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:mC,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:uC.GREYSCALE_0_05},"&:hover":{backgroundColor:`${uC.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${uC.GREYSCALE_85}`,borderRight:`1px solid ${uC.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:bC,backgroundColor:uC.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:uC.GREYSCALE_98,borderBottom:`1px solid ${uC.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${uC.GREYSCALE_85}`,borderTop:`1px solid ${uC.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:uC.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:uC.GREYSCALE_0_05,"&:hover":{backgroundColor:uC.GREYSCALE_0_03}},"&&:hover":{backgroundColor:uC.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>x.createElement(MC,{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 ${uC.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:dC,borderRadius:mC,padding:"7px 16px",border:`1px solid ${uC.GREYSCALE_0_15}`,backgroundColor:uC.GREYSCALE_100_60,color:uC.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:uC.GREYSCALE_0_10,border:`1px solid ${uC.GREYSCALE_0_30}`},"&:hover":{backgroundColor:uC.GREYSCALE_0_03,border:`1px solid ${uC.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:uC.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${uC.MISC_FOCUS_BORDER}`,border:`1px solid ${uC.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:uC.GREYSCALE_25,backgroundColor:uC.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:uC.GREYSCALE_0_10,border:`1px solid ${uC.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:cC,height:24,width:24,padding:7},sizeLarge:{fontSize:pC,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:dC,borderRadius:mC}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:uC.GREYSCALE_20},tooltip:{backgroundColor:uC.GREYSCALE_20,fontSize:cC,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var eR=e=>Qw;const tR={mode:"light",primary:{ultraLight:uC.GREEN_ULTRA_LIGHT,light:uC.GREEN_PALE,main:uC.GREEN,dark:uC.GREEN_DARK,extraDark:uC.GREEN_EXTRA_DARK,contrastText:uC.WHITE},secondary:{ultraLight:uC.BLUE_ULTRA_LIGHT,light:uC.BLUE_PALE,main:uC.BLUE,dark:uC.BLUE_DARK,extraDark:uC.BLUE_EXTRA_DARK,contrastText:uC.WHITE},error:{ultraLight:uC.RED_ULTRA_LIGHT,light:uC.RED_PALE,main:uC.RED,dark:uC.RED_DARK,extraDark:uC.RED_EXTRA_DARK,contrastText:uC.WHITE},warning:{ultraLight:uC.ORANGE_ULTRA_LIGHT,light:uC.ORANGE_PALE,main:uC.ORANGE,dark:uC.ORANGE_DARK,extraDark:uC.ORANGE_EXTRA_DARK,contrastText:uC.WHITE},success:{ultraLight:uC.GREEN_ULTRA_LIGHT,light:uC.GREEN_PALE,main:uC.GREEN,dark:uC.GREEN_DARK,extraDark:uC.GREEN_EXTRA_DARK,contrastText:uC.WHITE},info:{ultraLight:uC.BLUE_ULTRA_LIGHT,light:uC.BLUE_PALE,main:uC.BLUE,dark:uC.BLUE_DARK,extraDark:uC.BLUE_EXTRA_DARK,contrastText:uC.WHITE},text:{primary:uC.TEXT_PRIMARY,secondary:uC.TEXT_SECONDARY,disabled:uC.GREYSCALE_0_30},action:{hover:uC.GREYSCALE_0_03,hoverOpacity:.03,selected:uC.GREYSCALE_0_05,selectedOpacity:.05,focus:uC.MISC_FOCUS_BORDER},amethyst:{ultraLight:uC.WHITE,main:uC.PURPLE,light:uC.PURPLE_PALE,dark:uC.PURPLE_DARK,extraDark:uC.GREYSCALE_0_0,contrastText:uC.WHITE},background:{paper:uC.WHITE,default:uC.GREYSCALE_95},divider:uC.GREYSCALE_0_15},rR=e=>({components:eR(),palette:tR,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:dC,fontWeightLight:hC,fontWeightRegular:gC,fontWeightMedium:bC,fontWeightBold:vC,htmlFontSize:dC,fontFamily:yC.FONT_FAMILY,button:{fontWeight:bC,fontSize:dC,textTransform:"none"},body1:{fontSize:pC,lineHeight:"24px"},body2:{fontSize:dC,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:fC,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:pC,fontWeight:bC,lineHeight:"16px"},h6:{fontSize:dC,fontWeight:bC,lineHeight:"16px"},caption:{color:uC.TEXT_SECONDARY},subtitle1:{fontSize:dC,color:uC.TEXT_SECONDARY},subtitle2:{fontSize:cC,color:uC.TEXT_SECONDARY}},shape:{borderRadius:mC}}),nR={...sC,MISC_FOCUS_BORDER:uC.MISC_FOCUS_BORDER},oR=(e="light")=>rR(),iR=oR().palette,aR={SELECTED:{color:nR.GREYSCALE_100,background:iR.primary.light,selectedCellClass:LE.Selected},DISABLED_BACKGROUND:"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)"},lR=4/3,sR="12px",uR="600",cR="Source Sans Pro, sans-serif",dR={height:"auto",fontSize:sR,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"}},pR={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:uR},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},fR=25e4,mR=(e,t,r)=>{if(null==e||!e.length)return[];const n=[],o=[];let i=t;if(e.forEach(((e,a)=>{var l;if(e.columnWidth){const{columnWidth:{type:s,pixels:u,percentage:c},label:d,qApprMaxGlyphCount:p,totalInfo:f}=e;let m=0;const h=()=>{n[a]=Math.min(ph.PixelsMax,Math.max(ph.PixelsMin,m)),i-=n[a]};switch(s){case fh.Pixels:m=u||ph.PixelsDefault,h();break;case fh.Percentage:m=(c||ph.PercentageDefault)/100*t,h();break;case fh.FitToContent:(null===(l=e.representation)||void 0===l?void 0:l.type)===Zg.Image?o.push(a):(m=r(d,f,p,e.isLocked,e.isActivelySorted,e.isDim),h());break;case fh.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}}else o.push(a)})),o.length){const e=i/o.length;o.forEach((t=>{n[t]=Math.max(ph.AutoMinTable,e)}))}return n},hR=e=>e.ctrlKey||e.metaKey,gR=e=>e.shiftKey&&hR(e),bR=e=>[OE.LEFT,OE.RIGHT,OE.UP,OE.DOWN].includes(e),vR=e=>bR(e)||[OE.HOME,OE.END,OE.PAGE_UP,OE.PAGE_DOWN].includes(e),yR=e=>e.shiftKey&&bR(e.key),xR=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=LE.Inactive;return null!=o&&o.isModal()&&(i=r!==e.selectionColIdx?LE.Disabled:void 0!==n[e.qElemNumber]?LE.Selected:LE.Possible),i},SR=(e,t,r)=>{const n=Object.keys(r).length,o=n>=Object.keys(t).length;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"]})},ER=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:l}=t;let s={};if(-1===o)null==r||r.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;s={...n}}return s=((e,t,r)=>{const{qElemNumber:n,rowIdx:o}=t;return r.ctrlKey||r.metaKey?{[n]:o}:(void 0!==e[n]?delete e[n]:e[n]=o,{...e})})(s,i,l),SR(a,n,s),Object.keys(s).length?(null==r||r.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(s),[i.selectionColIdx]]}),{...e,rows:s,colIdx:i.selectionColIdx}):(null==r||r.cancel(),{...e,rows:s,colIdx:-1})},CR=(e,t)=>{var r;const{api:n,rows:o,colIdx:i,pageRows:a,firstCell:l}=e,{cell:s,announce:u,evt:c}=t;let d={};return l||"key"in c&&yR(c)?(-1===i?null==n||n.begin(["/qHyperCubeDef"]):d={...o},d=((e,t,r,n,o)=>{const i={...t};if("key"in n&&yR(n)){i[r.qElemNumber]=r.rowIdx;const t=n.key===OE.DOWN?1:-1;return i[e[r.pageRowIdx+t][r.pageColIdx].qElemNumber]=r.rowIdx+t,i}if(!o)return t;const a=Math.min(o.pageRowIdx,r.pageRowIdx),l=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=l;t++){const r=e[t][o.pageColIdx];i[r.qElemNumber]=r.rowIdx}return i})(a,d,s,c,l),SR(u,o,d),{...e,rows:d,colIdx:null!==(r=null==l?void 0:l.selectionColIdx)&&void 0!==r?r:s.selectionColIdx,isSelectMultiValues:!0}):e},wR=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&(null==t||t.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(r),[n]]})),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},RR=(e,t)=>{var r;switch(t.type){case ME.SELECT:return ER(e,t.payload);case ME.SELECT_MOUSE_DOWN: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 ME.SELECT_MOUSE_UP:return((e,t)=>wR(e.isSelectMultiValues||e.firstCell!==t.cell?e:ER(e,t)))(e,t.payload);case ME.SELECT_MULTI_ADD:return CR(e,t.payload);case ME.SELECT_MULTI_END:return wR(e);case ME.RESET:return null!==(r=e.api)&&void 0!==r&&r.isModal()?e:{...e,rows:{},colIdx:-1};case ME.CLEAR:return Object.keys(e.rows).length?{...e,rows:{}}:e;case ME.UPDATE_PAGE_ROWS:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},AR=4/3,IR=e=>parseInt(e,10)*AR+8+1,DR=e=>!!e&&(!(null==e||!e.color)||(null==e?void 0:e.index)>-1);function PR(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const LR=e=>Ef(e)?vp.WHITE:vp.TEXT,MR=(e,t)=>e?{borderBottomColor:vp.DARK_MODE_BORDER,borderRightColor:vp.DARK_MODE_BORDER,borderLeftColor:vp.DARK_MODE_BORDER,borderTopColor:vp.DARK_MODE_BORDER}:{borderLeftColor:vp.BORDER_MEDIUM,borderRightColor:vp.BORDER_MEDIUM,borderTopColor:vp.BORDER_HEAVY,borderBottomColor:t?vp.BORDER_HEAVY:vp.BORDER_LIGHT},OR=e=>{var t;return null===(t=e.components)||void 0===t?void 0:t.find((e=>"theme"===e.key))},kR=(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"),l={fontFamily:o,color:DR(null==r?void 0:r.fontColor)?PR(vp.TEXT,t,null==r?void 0:r.fontColor):i||vp.TEXT,fontSize:(null==r?void 0:r.fontSize)&&`${r.fontSize}px`||a,padding:r&&"padding"in r?null==r?void 0:r.padding:void 0,...MR(t.background.isDark,n)};return Object.keys(l).forEach((e=>{const t=e;null==l[t]&&delete l[t]})),l};function _R(e,t,r){var n,o,i;const a=null===(n=OR(e))||void 0===n?void 0:n.header,l=kR("header",t,a,r);return l.background=If(t.background.headerColor),l.hoverBackground=yf(null!==(o=l.background)&&void 0!==o?o:vp.WHITE,mh.hover),l.activeBackground=yf(null!==(i=l.background)&&void 0!==i?i:vp.WHITE,mh.active),l}function TR(e,t,r,n){var o;const i=null===(o=OR(e))||void 0===o?void 0:o.content,a=kR("content",t,i);a.background=t.background.color;const l=((e,t,r)=>{if(e&&t&&r)return IR(e)*(t+2)<r.clientHeight-40?"1px":"0px";return"0px"})(null==a?void 0:a.fontSize,r,n),s=null==i?void 0:i.hoverColor,u=null==i?void 0:i.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),d=t.getStyle("object","","straightTableV2.content.hover.color"),p=DR(u)||!!d,f=DR(s)||!!c,m=p||f;let h;h=DR(s)?PR(vp.HOVER,t,s):c||(p?"":vp.HOVER);const g=m?PR(LR(h),t,u):"";return{...a,lastRowBottomBorder:l,hoverColors:{background:h,color:g}}}const qR=(e,t)=>{var r;const n=null!==(r=e.toLowerCase().match(/<[^>]+>/g))&&void 0!==r?r:[];return n.forEach((e=>e in pR&&Object.assign(t,pR[e]))),t};function NR(e,t,r,n){var o;const i={};let a={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return null==t||null===(o=t.qValues)||void 0===o||o.forEach(((e,t)=>{const o=e.qText,l=o&&Af(o);l&&"none"!==l&&(i[r[t]]=l),n.isEnabled("CLIENT_IM_6573_TEXT_STYLE")&&o&&(a=qR(o,a))})),i.cellBackgroundColor&&!i.cellForegroundColor&&(i.cellForegroundColor=LR(i.cellBackgroundColor)),{...e,...i,color:i.cellForegroundColor||e.color,background:i.cellBackgroundColor||e.background,fontStyle:a.fontStyle,fontWeight:a.fontWeight,textDecoration:a.textDecoration}}const FR=e=>parseInt(e||sR,10),zR=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return sR}},jR=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",$R=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",BR=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?uR:"normal",HR=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},VR=(e,t,r,n)=>{var o,i;const{objectColorFromCSS:a,sheetColorFromCSS:l}=t.background,s=HR(t,null==r?void 0:r.background),u=t.getStyle("","",n);return null!==(o=null!==(i=Mf(s,s||a||u,l))&&void 0!==i?i:e)&&void 0!==o?o:vp.WHITE},WR=(e,t,r,n)=>{var o,i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,A,I,D,P,L,M,O,k,_,T,q,N,F,z,j,$,B,H,V,W,G,U,Y,K,X,J,Z,Q,ee,te,re,ne,oe,ie,ae,le,se,ue,ce,de;if(!e.flags.isEnabled("CLIENT_IM_6221_TABLE_STYLING"))return((e,t,r)=>{var n,o,i;return{header:{fontFamily:t.head.fontFamily,fontSize:t.head.fontSize,fontStyle:"normal",fontWeight:uR,textDecoration:"none",color:t.head.color,background:t.head.background},dimension:{values:{fontFamily:t.body.fontFamily,fontSize:t.body.fontSize,fontStyle:"normal",fontWeight:"normal",textDecoration:"none",color:t.body.color,background:t.body.background}},measure:{values:{fontFamily:t.body.fontFamily,fontSize:t.body.fontSize,fontStyle:"normal",fontWeight:"normal",textDecoration:"none",color:t.body.color,background:t.body.background}},totalRow:{fontFamily:t.totals.fontFamily,fontSize:t.totals.fontSize,fontStyle:"normal",fontWeight:uR,textDecoration:"none",color:t.totals.color,background:t.totals.background},nullValues:{fontStyle:"",fontWeight:"",textDecoration:"",color:"",background:"#F2F2F2"},grid:{lineClamp:null===(n=OR(e))||void 0===n||null===(n=n.content)||void 0===n?void 0:n.rowHeight,border:r.background.isDark?vp.DARK_MODE_BORDER:vp.BORDER_MEDIUM,divider:vp.BORDER_HEAVY,hoverColors:{color:null===(o=t.body.hoverColors)||void 0===o?void 0:o.color,background:null===(i=t.body.hoverColors)||void 0===i?void 0:i.background},lastRowBottomBorder:t.body.lastRowBottomBorder},selectedColors:{background:vp.SELECTED,color:vp.WHITE},headerMenuHoverBackground:t.head.hoverBackground,headerMenuActiveBackground:t.head.activeBackground}})(t,r,n);const{header:pe,dimensionValues:fe,measureValues:me,totalValues:he,nullValues:ge,grid:be,content:ve}=null!==(o=OR(t))&&void 0!==o?o:{},ye=VR(r.head.background,n,pe,"object.straightTableV2.dimension.label.name.backgroundColor"),xe=null!==(i=null!==(a=null!==(l=null!==(s=HR(n,null==fe?void 0:fe.fontColor))&&void 0!==s?s:HR(n,null==ve?void 0:ve.fontColor))&&void 0!==l?l:n.getStyle("object.straightTableV2.dimension","label.value","color"))&&void 0!==a?a:r.body.color)&&void 0!==i?i:vp.TEXT;return{header:{fontFamily:null!==(u=null!==(c=null!==(d=null==pe?void 0:pe.fontFamily)&&void 0!==d?d:n.getStyle("object.straightTableV2.dimension","label.name","fontFamily"))&&void 0!==c?c:r.head.fontFamily)&&void 0!==u?u:cR,fontSize:zR(null!==(p=null!==(f=null==pe?void 0:pe.fontSize)&&void 0!==f?f:n.getStyle("object.straightTableV2.dimension","label.name","fontSize"))&&void 0!==p?p:r.head.fontSize),fontStyle:jR(null==pe?void 0:pe.fontStyle),fontWeight:BR(null==pe?void 0:pe.fontStyle,uR),textDecoration:$R(null==pe?void 0:pe.fontStyle),color:null!==(m=null!==(h=null!==(g=HR(n,null==pe?void 0:pe.fontColor))&&void 0!==g?g:n.getStyle("object.straightTableV2.dimension","label.name","color"))&&void 0!==h?h:r.head.color)&&void 0!==m?m:vp.TEXT,background:ye},headerMenuHoverBackground:yf(ye,mh.hover),headerMenuActiveBackground:yf(ye,mh.active),dimension:{values:{fontFamily:null!==(b=null!==(v=null!==(y=null==fe?void 0:fe.fontFamily)&&void 0!==y?y:n.getStyle("object.straightTableV2.dimension","label.value","fontFamily"))&&void 0!==v?v:r.body.fontFamily)&&void 0!==b?b:cR,fontSize:zR(null!==(x=null!==(S=null!==(E=null==fe?void 0:fe.fontSize)&&void 0!==E?E:null==ve?void 0:ve.fontSize)&&void 0!==S?S:n.getStyle("object.straightTableV2.dimension","label.value","fontSize"))&&void 0!==x?x:r.body.fontSize),fontStyle:jR(null==fe?void 0:fe.fontStyle),fontWeight:BR(null==fe?void 0:fe.fontStyle,"normal"),textDecoration:$R(null==fe?void 0:fe.fontStyle),color:xe,background:null!==(C=null!==(w=null!==(R=HR(n,null==fe?void 0:fe.background))&&void 0!==R?R:n.getStyle("object.straightTableV2.dimension","label.value","backgroundColor"))&&void 0!==w?w:r.body.background)&&void 0!==C?C:vp.TRANSPARENT}},measure:{values:{fontFamily:null!==(A=null!==(I=null!==(D=null==me?void 0:me.fontFamily)&&void 0!==D?D:n.getStyle("object.straightTableV2.measure","label.value","fontFamily"))&&void 0!==I?I:r.body.fontFamily)&&void 0!==A?A:cR,fontSize:zR(null!==(P=null!==(L=null!==(M=null==me?void 0:me.fontSize)&&void 0!==M?M:null==ve?void 0:ve.fontSize)&&void 0!==L?L:n.getStyle("object.straightTableV2.measure","label.value","fontSize"))&&void 0!==P?P:r.body.fontSize),fontStyle:jR(null==me?void 0:me.fontStyle),fontWeight:BR(null==me?void 0:me.fontStyle,"normal"),textDecoration:$R(null==me?void 0:me.fontStyle),color:null!==(O=null!==(k=null!==(_=null!==(T=HR(n,null==me?void 0:me.fontColor))&&void 0!==T?T:HR(n,null==ve?void 0:ve.fontColor))&&void 0!==_?_:n.getStyle("object.straightTableV2.measure","label.value","color"))&&void 0!==k?k:r.body.color)&&void 0!==O?O:vp.TEXT,background:null!==(q=null!==(N=null!==(F=HR(n,null==me?void 0:me.background))&&void 0!==F?F:n.getStyle("object.straightTableV2.measure","label.value","backgroundColor"))&&void 0!==N?N:r.body.background)&&void 0!==q?q:vp.TRANSPARENT}},totalRow:{fontFamily:null!==(z=null!==(j=null!==($=null==he?void 0:he.fontFamily)&&void 0!==$?$:n.getStyle("object.straightTableV2.total","label.value","fontFamily"))&&void 0!==j?j:r.totals.fontFamily)&&void 0!==z?z:cR,fontSize:zR(null!==(B=null!==(H=null!==(V=null==he?void 0:he.fontSize)&&void 0!==V?V:null==ve?void 0:ve.fontSize)&&void 0!==H?H:n.getStyle("object.straightTableV2.total","label.value","fontSize"))&&void 0!==B?B:r.totals.fontSize),fontStyle:jR(null==he?void 0:he.fontStyle),fontWeight:BR(null==he?void 0:he.fontStyle,uR),textDecoration:$R(null==he?void 0:he.fontStyle),color:null!==(W=null!==(G=null!==(U=null!==(Y=HR(n,null==he?void 0:he.fontColor))&&void 0!==Y?Y:HR(n,null==ve?void 0:ve.fontColor))&&void 0!==U?U:n.getStyle("object.straightTableV2.total","label.value","color"))&&void 0!==G?G:r.totals.color)&&void 0!==W?W:vp.TEXT,background:VR(r.totals.background,n,he,"object.straightTableV2.total.label.value.backgroundColor")},nullValues:{fontStyle:jR(null==ge?void 0:ge.fontStyle),fontWeight:BR(null==ge?void 0:ge.fontStyle,"normal"),textDecoration:$R(null==ge?void 0:ge.fontStyle),color:null!==(K=null!==(X=null!==(J=null!==(Z=HR(n,null==ge?void 0:ge.fontColor))&&void 0!==Z?Z:HR(n,null==ve?void 0:ve.fontColor))&&void 0!==J?J:n.getStyle("object.straightTableV2.null","label.value","color"))&&void 0!==X?X:r.body.color)&&void 0!==K?K:vp.TEXT,background:null!==(Q=null!==(ee=HR(n,null==ge?void 0:ge.background))&&void 0!==ee?ee:n.getStyle("object.straightTableV2.null","label.value","backgroundColor"))&&void 0!==Q?Q:vp.NULL_VALUE_BACKGROUND},grid:{lineClamp:null!==(te=null==ve?void 0:ve.rowHeight)&&void 0!==te?te:n.getStyle("object.straightTableV2","grid","lineClamp"),border:null!==(re=null!==(ne=HR(n,null==be?void 0:be.border))&&void 0!==ne?ne:n.getStyle("object.straightTableV2","grid","borderColor"))&&void 0!==re?re:n.background.isDark?vp.DARK_MODE_BORDER:vp.BORDER_MEDIUM,divider:null!==(oe=null!==(ie=HR(n,null==be?void 0:be.divider))&&void 0!==ie?ie:n.getStyle("object.straightTableV2.grid","","divider.borderColor"))&&void 0!==oe?oe:vp.BORDER_HEAVY,hoverColors:{color:null!==(ae=null!==(le=HR(n,null==ve?void 0:ve.hoverFontColor))&&void 0!==le?le:n.getStyle("object.straightTableV2","","grid.hover.color"))&&void 0!==ae?ae:null===(se=r.body.hoverColors)||void 0===se?void 0:se.color,background:null!==(ue=null!==(ce=HR(n,null==ve?void 0:ve.hoverColor))&&void 0!==ce?ce:n.getStyle("object.straightTableV2","","grid.hover.backgroundColor"))&&void 0!==ue?ue:null===(de=r.body.hoverColors)||void 0===de?void 0:de.background},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:Sf({desiredColor:xe,theme:n,flags:e.flags})}},GR=(e,t,r,n)=>{const o=E((()=>{const o=r.totalsPosition.atTop,i=TR(e,t,r.rows.length,n),a=_R(e,t,!o),l=function(e,t,r){var n;const o=null===(n=OR(e))||void 0===n?void 0:n.content,i=kR("content",t,o),{borderBottomColor:a,borderTopColor:l,background:s}=_R(e,t,r);return{...i,borderBottomColor:a,background:s,borderTopColor:l}}(e,t,o);return{body:i,head:a,totals:l}}),[e,t,r,n]);return o},UR=new Map;const YR=L({}),KR=function(e){const t=L([()=>{},new Set]);return UR.set(e,t),({children:r,value:n})=>{const o=M(n),i=M(new Set);C((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=O((()=>o.current),[o]),l=E((()=>[a,i.current]),[a]);return ea.jsx(e.Provider,{value:n,children:ea.jsx(t.Provider,{value:l,children:r})})}}(YR),XR={rows:[],columns:[],totalsPosition:{}},JR=({app:e,children:t,tableData:r=XR,selectionsAPI:n,cellCoordMock:o,layout:i,model:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,setPage:h,pageInfo:g,initialDataPages:b,rect:v,viewService:y,env:x})=>{const[C,w]=S(0),[R,A]=S(o||lC),[I,D]=((e,t)=>{const[r,n]=P(RR,{pageRows:e,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(r.rows,n),[L,M]=S(-1),O=GR(i,u,r,d),k=((e,t,r,n)=>E((()=>WR(e,t,r,n)),[t,r,e,n]))(x,i,O,u),[_,T,q,N]=((e,t,r,n)=>{const o=t.atBottom||t.atTop,i=Zm({...n.header,fontWeight:uR},{maxNbrLinesOfText:3}).measureText,a=Zm({...n.totalRow,fontWeight:uR},{maxNbrLinesOfText:3}).measureText,{estimateWidth:l}=Zm(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:s}=Zm(n.measure.values,{maxNbrLinesOfText:3}),u=E((()=>(e,t,r,n,u,c)=>{let d=25;d+=28,n&&(d+=24),u&&(d+=20);const p=c?l:s;return Math.max(i(e)+d,o?a(t)+24+1:0,p(r))}),[l,s,i,a,o]),[c,d]=S(0),[p,f]=S((()=>mR(e,r,u)));th((()=>{f(mR(e,r-c,u))}),[e,r,c,u]);const m=E((()=>((e,t,r)=>!!(e&&e.length>0)&&e.reduce(((e,t)=>e+t))+t<r)(p,c,r)),[p,c,r]);return[p,f,d,m]})(r.columns,r.totalsPosition,v.width,k),F=E((()=>({app:e,selectionsAPI:n,layout:i,model:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,rect:v,viewService:y,styleService:k})),[e,n,i,a,l,s,u,c.active,d,p,f,m,v,y,k]);return ea.jsx(KR,{value:{headRowHeight:C,setHeadRowHeight:w,focusedCellCoord:R,setFocusedCellCoord:A,selectionState:I,selectionDispatch:D,hoverIndex:L,setHoverIndex:M,columnWidths:_,setColumnWidths:T,baseProps:F,tableData:r,setYScrollbarWidth:q,setPage:h,pageInfo:g,initialDataPages:b,showRightBorder:N,env:x},children:t})};function ZR(e,t){const r=function(e){return UR.get(e)}(e),[n,o]=w(r),[,i]=P((e=>e+1),0),a=M(t),l=M(),s=n();if(void 0===s)throw new Error("You must call useContextSelector inside a valid context.");const u=E((()=>t(s)),[s,t]);return C((()=>{a.current=t,l.current=u}),[s,u,t]),C((()=>{const e=e=>{(a.current&&a.current(e))!==l.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function QR(e){var t;const r=oR();return null!=r&&null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),MS({...r,direction:e})}const eA={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},tA={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},rA=El("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",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":{...eA},"&::-moz-range-track":{...eA},"&::-ms-track":{...eA},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...tA},"&::-moz-range-thumb":{...tA},"&::-ms-thumb":{...tA},"&: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"}}))),nA=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u,accessibilityRelatedArgs:c})=>{const d=nh({translator:c.translator}),p=M({initWidth:e,columnWidth:e,initX:0}),f=r?0:1,m=n&&!u,h={left:m?p.current.columnWidth-f:"100%"},g=t=>{p.current={initWidth:e,columnWidth:e,initX:null!=t?t:p.current.initX}};th((()=>m&&g()),[e]);const b=e=>{const t=Math.max(e,ph.PixelsMin);p.current.columnWidth=t,i(t)},v=()=>{if(p.current.columnWidth!==p.current.initWidth){const e={type:fh.Pixels,pixels:p.current.columnWidth};a(e)}else null==s||s(!1)},y=e=>{const t=p.current.initWidth+e.clientX-p.current.initX;b(t)},S=e=>{Pf(e),document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",S),v()},E=e=>{const t=p.current.initWidth+e.touches[0].clientX-p.current.initX;b(t)},C=e=>{Pf(e),document.removeEventListener("touchmove",E),document.removeEventListener("touchend",C),v()},w=!n&&l?e=>{if(e.key===ch.LEFT||e.key===ch.RIGHT){Pf(e);const t=5,r=e.key===ch.LEFT?-t:t;b(p.current.columnWidth+r)}else e.key===ch.SPACE||e.key===ch.ENTER?(Pf(e),l(e),v()):e.key===ch.ESC&&(Pf(e),l(e),b(p.current.initWidth))}:void 0,R=d.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return x.createElement(rA,{style:h,key:t,hoverColor:o,isLastColumn:r,className:dh,"data-testid":dh,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",y),document.addEventListener("mouseup",S),null==s||s(!0),g(e.clientX)},onDoubleClick:()=>a({type:fh.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",E),document.addEventListener("touchend",C),null==s||s(!0),g(e.touches[0].clientX))},onKeyDown:w,onBlur:l,onFocus:()=>g(),type:"range",tabIndex:"-1",max:ph.PixelsMax,"aria-label":R,"aria-valuemin":ph.PixelsMin,"aria-valuemax":ph.PixelsMax,"aria-valuenow":Number(e.toFixed(1))})};function oA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const iA=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){oA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"}))));function aA(){return aA=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},aA.apply(null,arguments)}const lA=El(Wu,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),sA=El(iA,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),uA=El(Ed)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),cA=El(hc)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),dA=El(Id)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),pA=El(Id,{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")}))),fA=El("div")((({theme:e})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),mA=El("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),hA=El(Gs)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),gA=El(Kc)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function bA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const vA=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){bA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"}))));let yA={};const xA=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=S(!1),p=M(null),f=O((e=>{e.stopPropagation(),d(!1)}),[d]);return x.createElement(x.Fragment,null,x.createElement(pA,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),yA={}),null!=a&&a.length&&(d(!0),yA[n]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&x.createElement(fA,null),x.createElement(mA,null,x.createElement(gA,null,x.createElement(o,null)),x.createElement(hA,{variant:"body2"},n)),null!=a&&a.length?x.createElement(vA,null):null),(null==a?void 0:a.length)&&x.createElement(CA,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=yA,m.map((e=>e.map((e=>{var t;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(t=e.items)||void 0===t?void 0:t.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(h).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var m,h},SA=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map((e=>{var n;return[[e.groupHeading&&x.createElement(dA,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(n=e.items)||void 0===n?void 0:n.map((e=>x.createElement(xA,aA({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:r}))))].filter(Boolean)]})),EA={appear:200,enter:200,exit:100},CA=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:l})=>n.length?x.createElement(uA,aA({className:lh,open:t,anchorEl:e,onClose:r,transitionDuration:EA,MenuListProps:{id:sh}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map(((n,o)=>[SA({menuGroup:n,isSubMenu:t,handleHeadCellMenuKeyDown:r}),o<e.length-1?x.createElement(cA,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:n,isSubMenu:a,handleHeadCellMenuKeyDown:l})):null,wA={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},RA=(e,t)=>e.some((e=>t[e]>0));function AA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const IA=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){AA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function DA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const PA=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){DA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function LA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const MA=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){LA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function OA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const kA=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){OA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function _A(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const TA=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){_A(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function qA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const NA=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){qA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function FA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const zA=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){FA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function jA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const $A=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){jA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function BA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const HA=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){BA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function VA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const WA=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){VA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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 GA=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const UA=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,setFocusOnColumnAdjuster:c})=>{const d=[];if(r[GA.SORTING]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({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);d.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"A")),n(!1)},icon:IA,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"D")),n(!1)},icon:kA,enabled:l,isActive:!!r&&"D"===i,autoFocus:!a&&l}]}])}if(e.isDim&&null!=i&&i.select){const e=[];r[GA.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:TA,enabled:!0}]}]),r[GA.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:WA,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectAll())},icon:NA,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectPossible())},icon:HA,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectAlternative())},icon:zA,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectExcluded())},icon:$A,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.clear())},icon:PA,enabled:s.canClearSelections}]}]]}]}]),e.length>0&&d.push(...e)}return r[GA.ADJUST_HEADER_SIZE]&&d.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),null==c||c(u)},icon:MA,enabled:!0}]}]),d},YA=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const m=nh({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:b}=n,{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:E,updateSelectionActionsEnabledStatus:w}=(({headerData:e,app:t})=>{const[r,n]=S(null),[o,i]=S(wA);return C((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(n).catch(console.error)}),[t,e]),{fieldInstance:r,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:O((()=>i(wA)),[]),updateSelectionActionsEnabledStatus:O((t=>{const r=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));r&&i({canSelectAll:RA(["qOption","qAlternative","qExcluded","qDeselected"],r.qStateCounts),canClearSelections:RA(["qSelected"],r.qStateCounts),canSelectPossible:RA(["qOption"],r.qStateCounts),canSelectAlternative:RA(["qAlternative"],r.qStateCounts),canSelectExcluded:RA(["qAlternative","qExcluded"],r.qStateCounts)})}),[e.label,i])}})({headerData:n,app:null==d?void 0:d.app}),R=O((()=>{const e=g?{qLibraryId:g,type:"dimension"}:b;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:r}=c;t.__DO_NOT_USE__.popover(r.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},sortCriteria:c.sortCriteria})}}),[c,b,g]);C((()=>{e||(E(),null!=d&&d.model&&d.model.getLayout().then((e=>{w(e)})).catch((e=>console.error(e))))}),[e,E,w,null==d?void 0:d.model]);const A=O((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?x.createElement(lA,{rightAligned:"right"===h,shouldShowMenuIcon:s,className:ah},s&&x.createElement(sA,{height:oh,className:ih,"data-testid":ih,isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},x.createElement(iA,null)),x.createElement(CA,{open:e,anchorEl:r.current,onClose:A,menuGroups:UA({headerData:n,translator:m,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:R,interactions:i,fieldInstance:v,selectionActionsEnabledStatus:y,anchorRef:r,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),handleHeadCellMenuKeyDown:a})):null},KA=e=>e.isDark?{background:e.color,borderColor:vp.DARK_MODE_BORDER,color:vp.DARK_MODE_TEXT,disabledColor:vp.DARK_MODE_DISABLED,iconColor:vp.DARK_MODE_TEXT}:{background:e.color,borderColor:vp.BORDER_MEDIUM,color:vp.TEXT,disabledColor:vp.DISABLED},XA=El(Wu,{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}`}))),JA=El(dp,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),ZA=El(rc,{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)}))),QA=El(Gs)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),eI=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=E((()=>KA(n.background)),[n]);if(!r.active)return null;const a=o?x.createElement(XA,{footerStyle:i},e):null;return t?z.createPortal(e,t):a},tI=L({}),rI=()=>w(tI),nI=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=E((()=>KA(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=nh({translator:d}),S=E((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:m,layout:h,footerStyle:b,tabIndex:g,width:v})),[t,r,n,o,i,a,l,s,u,c,y,p,f,m,h,b,g,v]);return x.createElement(tI.Provider,{value:S},e)};let oI=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),iI=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});function aI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const lI=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){aI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"}))));function sI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const uI=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){sI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"}))));function cI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const dI=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){cI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})))),pI={FirstPage:uI,PreviousPage:lI,NextPage:vA,LastPage:dI,FirstPageRTL:dI,PreviousPageRTL:vA,NextPageRTL:lI,LastPageRTL:uI},fI=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=rI(),u=pI[`${r}${"rtl"===n?"RTL":""}`];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:l.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},mI=()=>{const{pageInfo:e,width:t}=rI(),r=0===e.page,{IconComponent:n,styledProps:o}=fI({type:oI.FirstPage,disabledCondition:r,pageNumber:0});return t<=iI.FirstPage?null:x.createElement(ZA,o,x.createElement(n,{height:oh}))},hI=(e,t,r=!1)=>{r&&e.key===ch.TAB&&!e.shiftKey&&(Pf(e),Df(e.target,t,!1))},gI=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=rI(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=fI({type:oI.LastPage,disabledCondition:i,pageNumber:r-1}),s=t.enabled?e=>hI(e,t,n):null;return o<=iI.LastPage?null:x.createElement(ZA,aA({},l,{onKeyDown:s}),x.createElement(a,{height:oh}))},bI=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=rI(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=fI({type:oI.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>iI.FirstPage&&o>iI.LastPage)&&t.enabled?e=>hI(e,t,n):null;return x.createElement(ZA,aA({},l,{onKeyDown:s}),x.createElement(a,{height:oh}))},vI=()=>{const{pageInfo:e}=rI(),t=0===e.page,{IconComponent:r,styledProps:n}=fI({type:oI.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return x.createElement(ZA,n,x.createElement(r,{height:oh}))},yI=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=rI(),{page:o,rowsPerPage:i}=r;if(t<=iI.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return x.createElement(QA,{variant:"caption"},a)},xI=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=rI(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return x.createElement(x.Fragment,null,x.createElement(QA,{variant:"caption",id:d},u,":"),x.createElement(JA,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:p},r))},SI=()=>{var e;const{pageInfo:t,isSelectionMode:r,totalColumnCount:n,width:o,handleChangeRowsPerPage:i}=rI();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!r&&o>iI.RowsPerPage&&n<=100)||void 0===t.rowsPerPageOptions)return null;const a=x.createElement(x.Fragment,null,t.rowsPerPageOptions.map((e=>x.createElement("option",{key:e,value:e},e))));return x.createElement(xI,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},EI=1e3,CI="…",wI=({totalPages:e,page:t})=>{const r=Math.min(e,EI),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-EI):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return x.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(x.createElement("option",{key:"startMoreOptions",value:CI,disabled:!0},CI)),o<e-1&&a.push(x.createElement("option",{key:"endMoreOptions",value:CI,disabled:!0},CI)),x.createElement(x.Fragment,null,a)},RI=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=rI(),{page:o}=e;if(t<=iI.SelectPage)return null;const i=x.createElement(wI,{totalPages:r,page:o});return x.createElement(xI,{name:"SelectPage",value:o,options:i,handleChange:e=>n(+e.target.value)})};var AI=_((e=>x.createElement(nI,e,x.createElement(SI,null),x.createElement(RI,null),x.createElement(yI,null),x.createElement(mI,null),x.createElement(vI,null),x.createElement(bI,null),x.createElement(gI,null))));const II=e=>x.createElement(eI,e,x.createElement(AI,e)),DI=uE(tw,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.color}))),PI=uE(tw,{shouldForwardProp:e=>"lines"!==e&&"allIconsDisabled"!==e&&"headCell"!==e&&"isPagination"!==e&&"wordBreak"!==e&&"virtualizedCell"!==e})((({lines:e,wordBreak:t,allIconsDisabled:r=!1,headCell:n=!1,isPagination:o=!1,virtualizedCell:i=!1})=>({lineHeight:"calc(4/3)",fontSize:"inherit",...(n||t||1===e)&&{height:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:n&&o?"break-word":"break-all",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",...n&&{whiteSpace:r||i?"normal":"nowrap"}}}))),LI=uE(tw)({overflow:"hidden",textOverflow:"ellipsis"});function MI(e,t){const r=M(!1);C((()=>{r.current?e():r.current=!0}),t)}const OI=(e,t)=>{var r;return null===(r=e.getElementsByClassName("sn-table-row")[t[0]])||void 0===r?void 0:r.getElementsByClassName("sn-table-cell")[t[1]]},kI=e=>e.querySelector("td[tabindex='0'], th[tabindex='0']"),_I=e=>{const t=e.nextElementSibling;var r;return t?"HR"===t.tagName?_I(t):t:null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[0]},TI=e=>{const t=e.previousElementSibling;if(!t){var r,n;const t=null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r.length;return null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[t-1]}return"HR"===t.tagName?TI(t):t},qI=e=>{setTimeout((()=>{var t;const r=null===(t=e.current)||void 0===t||null===(t=t.closest(".sn-table-cell"))||void 0===t?void 0:t.querySelector(`.${dh}`);null==r||r.setAttribute("tabIndex","0"),null==r||r.focus()}),0)},NI=({focusType:e,cell:t})=>{if(t)switch(e){case kE.FOCUS:t.focus(),t.setAttribute("tabIndex","0");break;case kE.FOCUS_BUTTON:const e=t.querySelector(".sn-table-head-label");null==e||e.focus();break;case kE.BLUR:t.blur(),t.setAttribute("tabIndex","-1");break;case kE.ADD_TAB:t.setAttribute("tabIndex","0");break;case kE.REMOVE_TAB:t.setAttribute("tabIndex","-1")}},FI=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o})=>{NI({focusType:kE.REMOVE_TAB,cell:e.currentTarget});const i=((e,t,r,n={top:0,bottom:0})=>{const o=n.top>0,i=n.top,a=t.getElementsByClassName("sn-table-row").length-1-n.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[s,u]=r;switch(e.key){case OE.DOWN:s<a&&s++;break;case OE.UP:s>i&&s--;break;case OE.RIGHT:if(o)break;u<l?u++:s<a&&(s++,u=0);break;case OE.LEFT:if(o)break;u>0?u--:s>0&&(s--,u=l);break;case OE.HOME:(hR(e)||o)&&(s=i),o||(u=0);break;case OE.END:(hR(e)||o)&&(s=a),o||(u=l);break;case OE.PAGE_DOWN:s=Math.min(a,s+10);break;case OE.PAGE_UP:s=Math.max(i,s-10)}return[s,u]})(e,t,r,o),a=OI(t,i);return NI({focusType:kE.FOCUS,cell:a}),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(null==r||!r.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{var i;const e=t.getElementsByClassName("sn-table-head-cell")[0],a=null===(i=t.getElementsByClassName("sn-table-row")[n])||void 0===i?void 0:i.getElementsByClassName("sn-table-cell")[o];if(!a||!e)return;if(a.offsetTop-e.offsetHeight<r.scrollTop){const t=r.scrollTop-a.offsetHeight-e.offsetHeight;r.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(i,t),n(i),{nextCell:a,nextCellCoord:i}},zI=(e,t,r,n)=>{var o;(NI({focusType:kE.REMOVE_TAB,cell:kI(t)}),r(e),n.enabled&&!n.active)?null===(o=n.focus)||void 0===o||o.call(n):NI({focusType:kE.ADD_TAB,cell:OI(t,e)})},jI=(e,t,r)=>{C((()=>{const n=e.current;if(!n)return;const o=e=>((e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!(null==n||!n.contains(o)),a=null==o?void 0:o.closest(`.${lh}`);if(r.enabled&&!i&&!a&&!t.current&&n){var l;const e=n.querySelector(".sn-table-announcer-1"),t=n.querySelector(".sn-table-announcer-2");e&&t&&(e.innerHTML="",t.innerHTML=""),null===(l=r.blur)||void 0===l||l.call(r,!1)}})(e,t,r);return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])},$I=(e,t,r)=>{C((()=>{const n=e.current;if(!n)return;const o=e=>((e,t,r)=>{if(0===e.deltaX)return;e.stopPropagation();const n=r.scrollWidth-r.offsetWidth;let{scrollLeft:o}=r,i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(n,i)):Math.max(0,Math.min(n,i)))})(e,"rtl"===t,n),i=e=>{var t;r.scrollLeft=(null===(t=e.currentTarget)||void 0===t?void 0:t.scrollLeft)||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}}),[e,t,r])},BI=(e,t=!1)=>e.key===OE.ESC&&!t||(e.key===OE.LEFT||e.key===OE.RIGHT)&&gR(e),HI=e=>{var t;const{key:r,currentTarget:n}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:n;if(r===OE.DOWN||r===OE.UP){const t=e=>r===OE.DOWN?_I(e):TI(e);Pf(e);let n=t(o);for(;n;){if("true"!==n.ariaDisabled){n.focus();break}n=t(n)}}},VI=({evt:e,rootElement:t,cell:r,selectionDispatch:n,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,keyboard:l,paginationNeeded:s,totalsPosition:u,selectionsAPI:c})=>{if(e.currentTarget.classList.contains(LE.Disabled))return void Pf(e);const d=null==c?void 0:c.isModal();if(!BI(e,d))switch(e.key){case OE.SPACE:Pf(e),r.isSelectable&&o&&n({type:ME.SELECT,payload:{cell:r,evt:e,announce:a}});break;case OE.ENTER:Pf(e),d&&(null==c||c.confirm(),a({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case OE.ESC:Pf(e),null==c||c.cancel(),a({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case OE.TAB:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{(null==t?void 0:t.enabled)&&r&&(e.shiftKey||!e.shiftKey&&!n)&&(Pf(e),Df(e.currentTarget,t,e.shiftKey))})({evt:e,keyboard:l,isSelectionMode:d,paginationNeeded:s});break;case OE.C:Pf(e),hR(e)&&bh(e.currentTarget);break;default:vR(e.key)&&(Pf(e),(({evt:e,rootElement:t,cell:r,selectionDispatch:n,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:l,isSelectionMode:s})=>{const u=l.atTop?2:1,c=[r.pageRowIdx+u,r.pageColIdx],d={top:s?u:0,bottom:s&&l.atBottom?1:0},{nextCell:p,nextCellCoord:f}=FI({evt:e,rootElement:t,cellCoord:c,setFocusedCellCoord:i,allowedRows:d});f[0]!==c[0]&&(((e,t,r)=>t.shiftKey&&e&&r.isSelectable)(o,e,r)?n({type:ME.SELECT_MULTI_ADD,payload:{cell:r,evt:e,announce:a}}):((e,t,r=!1)=>{r&&t&&e(t.classList.contains("selected")?{keys:["SNTable.SelectionLabel.SelectedValue"]}:{keys:["SNTable.SelectionLabel.NotSelectedValue"]})})(a,p,s))})({evt:e,rootElement:t,cell:r,selectionDispatch:n,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:u,isSelectionMode:d}))}},WI=e=>{const{layout:t,rect:r,theme:n}=ZR(YR,(e=>e.baseProps)),[o,i]=S(0),[a,l]=S(0);return T((()=>{if(e.current){var t;const{offsetWidth:r=0,offsetHeight:n=0,clientWidth:o=0,clientHeight:a=0}=null!==(t=e.current)&&void 0!==t?t:{},s=n-a;l(r-o),i(s)}}),[e,t,r,n]),{xScrollbarWidth:o,yScrollbarWidth:a}},GI=uE("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),UI=uE(Fw,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.active?"auto":"hidden",border:"none"}))),YI=uE(Sw,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),KI=()=>ea.jsxs(ea.Fragment,{children:[ea.jsx(GI,{className:"sn-table-announcer-1","aria-live":"polite","aria-atomic":"true"}),ea.jsx(GI,{className:"sn-table-announcer-2","aria-live":"polite","aria-atomic":"true"})]}),XI=e=>e.stopPropagation(),JI=({href:e,text:t,interactions:r,color:n})=>x.createElement(zc,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:XI,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}},t),ZI=({viewService:e,isImagesEnabled:t,styleService:r})=>{var n,o;let i=null===(n=e.viewState)||void 0===n?void 0:n.maxLineCount;var a;t&&(i=null!==(a=i)&&void 0!==a?a:r.grid.lineClamp);return{maxNbrLines:null!==(o=i)&&void 0!==o?o:3,isStaticNbrOfLines:void 0!==i}},QI=({children:e,fontSize:t="",wordBreak:r=!1,isPagination:n=!1,virtualizedCell:o=!1,lines:i=3,headCell:a=!1,allIconsDisabled:l=!1,indicatorColor:s=""})=>{if(a)return ea.jsx(PI,{component:"span",className:"sn-table-cell-text",lines:i,isPagination:n,headCell:!0,allIconsDisabled:l,children:e});const u=FR(t),c=ea.jsx(PI,{component:"span",className:"sn-table-cell-text",wordBreak:r,lines:i,virtualizedCell:o,children:e});return r?c:ea.jsx(LI,{color:s,minHeight:u*lR,maxHeight:u*lR*i,children:c})},eD=e=>{let t="center",r="center";return"flex-start"===(null==e?void 0:e.vertical)?t="top":"flex-end"===(null==e?void 0:e.vertical)&&(t="bottom"),"flex-start"===(null==e?void 0:e.horizontal)?r="left":"flex-end"===(null==e?void 0:e.horizontal)&&(r="right"),`${r} ${t}`},tD=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},rD=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{url:o,text:i,imageSize:a,resolvedImagePosition:l}=e,s="fitHeight"===a,u=ea.jsx("img",{src:o,alt:i,style:{...t,width:s?"auto":"100%",height:"100%",maxHeight:r,objectFit:tD(a),objectPosition:eD(l),overflow:"hidden"}});var c;return n?ea.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:s?r:"100%",overflow:"hidden",display:"flex",justifyContent:s?null==e||null===(c=e.resolvedImagePosition)||void 0===c?void 0:c.horizontal:void 0},children:u}):u};function nD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const oD=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){nD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"}))));function iD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const aD=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){iD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m8 0 7 4-7 4-7-4zm1 16v-6l6-3.5V13zm-8-3V6.5L7.1 10v6z"}))));function lD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const sD=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){lD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function uD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const cD=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){uD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}),x.createElement("use",{fillRule:"evenodd"}))));function dD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const pD=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){dD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function fD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const mD=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){fD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function hD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const gD=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){hD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function bD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const vD=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){bD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M2 7h12v2H2z"}))));function yD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const xD=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){yD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function SD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ED=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){SD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function CD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const wD=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){CD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function RD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const AD=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){RD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"}))));function ID(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const DD=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ID(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function PD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const LD=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){PD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function MD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const OD=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){MD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function kD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _D(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const TD={m:AD,"ï":wD,R:k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){kD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M13.6 11H2.4a.2.2 0 0 1-.16-.32l5.6-7.467a.2.2 0 0 1 .32 0l5.6 7.467a.2.2 0 0 1-.16.32"})))),S:DD,T:LD,U:OD,P:ED,Q:gD,"è":k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){_D(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M15.738 13.5c.5.8.1 1.5-.8 1.5h-13.9c-1 0-1.3-.7-.8-1.5l6.8-11.9c.5-.8 1.3-.8 1.8 0zm-6.8-2c0-.3-.2-.5-.5-.5h-1c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5zm0-6c0-.3-.2-.5-.5-.5h-1c-.3 0-.5.2-.5.5v4c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5z"})))),"¢":pD,"©":cD,"23F4":mD,2013:aD,"&":xD,add:oD,"minus-2":vD,dot:sD},qD=({size:e,iconKey:t,color:r})=>{const n=t&&TD[t]||void 0;return n&&ea.jsx(n,{style:{color:r,height:e}})},ND=({representation:e})=>{var t;const{text:r,indicator:n}=e,{showTextValues:o,position:i,applySegmentColors:a}=null!=n?n:{},l=null==e||null===(t=e.indicatorConditionalColoring)||void 0===t?void 0:t.segments.paletteColors[0].icon,{styleService:s,theme:u}=ZR(YR,(e=>e.baseProps)),c=FR(s.measure.values.fontSize),d=((e,t)=>{var r;const n=null==e||null===(r=e.indicatorConditionalColoring)||void 0===r?void 0:r.segments.paletteColors[0],{color:o,index:i}=n||{index:6};return PR("",t,{color:o,index:i})})(e,u);return o?ea.jsxs("div",{"data-key":"representation-indicator",style:{display:"grid",gridTemplateColumns:"1fr auto",gap:"2px",alignItems:"center"},children:["left"===i&&qD({size:c,iconKey:l,color:d}),ea.jsx(QI,{indicatorColor:a?d:void 0,children:r}),"right"===i&&qD({size:c,iconKey:l,color:d})]}):qD({size:c,iconKey:l,color:d})},FD=({cell:e,style:t,maxImageHeight:r,virtualizedCell:n})=>{const{flags:o}=ZR(YR,(e=>e.env)),{interactions:i,viewService:a,styleService:l}=ZR(YR,(e=>e.baseProps)),s=ZR(YR,(e=>{var t;return null===(t=e.selectionState.api)||void 0===t?void 0:t.isActive()})),{maxNbrLines:u}=ZI({viewService:a,styleService:l,isImagesEnabled:o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")});let c=e.representation.text;return e.representation.type!==Zg.Link||s||(c=ea.jsx(JI,{href:e.representation.url,text:e.representation.text,interactions:i,color:t.cellForegroundColor})),e.representation.type===Zg.Image?ea.jsx(rD,{representation:e.representation,textStyle:t,maxImageHeight:r,wrapInContainer:!n}):e.isNull||e.representation.type!==Zg.Indicator?ea.jsx(QI,{wordBreak:!e.isNumeric,fontSize:t.fontSize,lines:u,virtualizedCell:n,children:c}):ea.jsx(ND,{representation:e.representation})},zD=({selectionsAPI:e,selectionDispatch:t,setShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{C((()=>{const i=()=>{t({type:ME.RESET})},a=()=>{t({type:ME.CLEAR})},l=()=>{var e;if(null!==(e=o.current)&&void 0!==e&&e.contains(document.activeElement))r();else if(n.enabled){var t;null===(t=n.blur)||void 0===t||t.call(n,!0)}i()};return null==e||e.on("deactivated",i),null==e||e.on("canceled",i),null==e||e.on("confirmed",l),null==e||e.on("cleared",a),()=>{null==e||e.removeListener("deactivated",i),null==e||e.removeListener("canceled",i),null==e||e.removeListener("confirmed",l),null==e||e.removeListener("cleared",a)}}),[e,n,t,r,o])},jD=e=>parseInt(null!=e?e:dR.fontSize,10)*lR,$D=({maxNbrLines:e,isStaticNbrOfLines:t,lineHeight:r})=>t?r*e+8+1:void 0,BD=(e,t,r,n)=>({handleMouseDown:n=>{null==e||e(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>r({type:ME.SELECT_MULTI_END});r({type:ME.SELECT_MOUSE_DOWN,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:ME.SELECT_MULTI_ADD,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:ME.SELECT_MOUSE_UP,payload:{cell:t,evt:e,announce:n}})}}),HD=uE(Dw,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),VD=uE(Jw,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e})((({hover:e,hoverColors:t})=>({"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}}))),WD=uE(_w,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...dR,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}))),GD=uE(_w,{shouldForwardProp:e=>"atTop"!==e&&"headRowHeight"!==e&&"totalsStyle"!==e})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...dR,...e,fontWeight:uR,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t&&r,bottom:!t&&0,verticalAlign:t?"bottom":"top"})));function UD(e){return t=>{const{cell:r,styling:n,announce:o,onMouseDown:i}=t,{styleService:a}=ZR(YR,(e=>e.baseProps)),l=ZR(YR,(e=>xR(r,e.selectionState))),s=ZR(YR,(e=>e.selectionDispatch)),{handleMouseDown:u,handleMouseOver:c,handleMouseUp:d}=BD(i,r,s,o),p=function(e,t,r){return t===LE.Selected?{...e,...r}:t===LE.Disabled?{...e,background:`${aR.DISABLED_BACKGROUND}, ${e.background}`}:e}(n,l,a.selectedColors);return ea.jsx(e,{...t,styling:p,onMouseUp:d,onMouseDown:u,onMouseOver:c,cellSelectionState:l})}}function YD(e,t,r){let n=(o=WD,e=>{const{styling:{selectedCellClass:t,...r},component:n,align:i,children:a,scope:l,tabIndex:s,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,title:m,cellSelectionState:h}=e;return ea.jsx(o,{cellStyle:r,component:n,scope:l,align:i,tabIndex:s,className:`sn-table-cell ${h} ${uh}`,title:m,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,children:a})});var o;return t&&(n=UD(n)),e&&(n=function(e,t){return r=>{const{cell:n,column:o,styling:i}=r,a=E((()=>NR(i,n.qAttrExps,o.qAttrExprInfoIDs,t)),[i,n.qAttrExps,o.qAttrExprInfoIDs]);return ea.jsx(e,{...r,styling:a})}}(n,r)),n}const KD=(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}),XD=()=>{const{columns:e,totalsPosition:t,rows:r}=ZR(YR,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,styleService:a,interactions:l}=ZR(YR,(e=>e.baseProps)),s=ZR(YR,(e=>e.headRowHeight)),u=ZR(YR,(e=>e.setFocusedCellCoord));return ea.jsx(Jw,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,c)=>{const d=[t.atTop?1:r.length+1,c];return ea.jsx(GD,{totalsStyle:{...a.totalRow,...KD(a,t,!1)},headRowHeight:s,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${uh}`,tabIndex:-1,title:l.passive?e.totalInfo:void 0,onKeyDown:e=>{((e,t,r,n,o=!1)=>{if(o)Pf(e);else if(!BI(e))switch(e.key){case OE.C:Pf(e),hR(e)&&bh(e.currentTarget);break;case OE.SPACE:e.preventDefault();break;default:vR(e.key)&&(Pf(e),FI({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n}))}})(e,n,d,u,null==o?void 0:o.isModal())},onMouseDown:()=>{zI(d,n,u,i)},children:ea.jsx(QI,{wordBreak:!e.isTotalNumeric,fontSize:a.totalRow.fontSize,children:e.totalInfo})},e.id)}))})};var JD=_(XD);const ZD=({setShouldRefocus:e,tableWrapperRef:t,announce:r})=>{var n;const{rows:o,columns:i,paginationNeeded:a,totalsPosition:l}=ZR(YR,(e=>e.tableData)),{selectionsAPI:s,rootElement:u,keyboard:c,layout:d,interactions:p,styleService:f,viewService:m}=ZR(YR,(e=>e.baseProps)),h=ZR(YR,(e=>e.setFocusedCellCoord)),g=ZR(YR,(e=>e.selectionDispatch)),{flags:b}=ZR(YR,(e=>e.env)),v=!!p.active&&!!p.select,y=JSON.stringify(i.map((e=>e.qAttrExprInfoIDs))),x=E((()=>JSON.parse(y).map((e=>YD(e.some((e=>["cellBackgroundColor","cellForegroundColor",b.isEnabled("CLIENT_IM_6573_TEXT_STYLE")&&"textStyleExpression"].includes(e))),v,b)))),[y,v,b]),S=!(null===(n=OR(d))||void 0===n||null===(n=n.content)||void 0===n||!n.hoverEffect),{maxNbrLines:C,isStaticNbrOfLines:w}=ZI({viewService:m,styleService:f,isImagesEnabled:b.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")}),R=jD(f.dimension.values.fontSize),A=jD(f.measure.values.fontSize),I=Math.max(R,A),D=$D({maxNbrLines:C,isStaticNbrOfLines:w,lineHeight:I});return zD({keyboard:c,selectionDispatch:g,selectionsAPI:s,setShouldRefocus:e,tableWrapperRef:t}),ea.jsxs(HD,{lastRowBottomBorder:f.grid.lastRowBottomBorder,children:[l.atTop?ea.jsx(JD,{}):void 0,o.map(((e,t)=>ea.jsx(VD,{hoverColors:f.grid.hoverColors,hover:S,tabIndex:-1,className:"sn-table-row sn-table-data-row",rowindex:t,height:D,children:i.map(((t,n)=>{const{id:o}=t,i=e[n],d=x[n];let m=t.isDim?f.dimension.values:f.measure.values;i.isNull&&(m={...m,...f.nullValues}),!b.isEnabled("CLIENT_IM_6696_INDICATORS")||t.isDim||i.isNull||(i.representation.indicatorConditionalColoring=t.conditionalColoring);const y=NR(m,i.qAttrExps,t.qAttrExprInfoIDs,b);return d&&ea.jsx(d,{scope:0===n?"row":void 0,component:0===n?"th":void 0,cell:i,column:t,align:i.align,styling:{...m,borderColor:f.grid.border},tabIndex:-1,announce:r,title:p.passive?i.representation.text:void 0,onKeyDown:e=>{VI({evt:e,rootElement:u,selectionsAPI:s,cell:i,selectionDispatch:g,isSelectionsEnabled:v,setFocusedCellCoord:h,announce:r,keyboard:c,paginationNeeded:a,totalsPosition:l})},onKeyUp:e=>((e,t)=>{e.key===OE.SHIFT&&t({type:ME.SELECT_MULTI_END})})(e,g),onMouseDown:()=>((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,l=o.atTop?i+2:i+1;zI([l,a],t,r,n)})(i,u,h,c,l),children:ea.jsx(FD,{cell:i,style:y,maxImageHeight:w?I*C:I})},o)}))},`row-${t}`))),l.atBottom?ea.jsx(JD,{}):void 0]})};var QD=_(ZD);const eP=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:l,translator:s}=ZR(YR,(e=>e.baseProps)),u=ZR(YR,(e=>e.columnWidths)),c=ZR(YR,(e=>e.setColumnWidths));if(!l.active)return null;return ea.jsx(nA,{columnWidth:u[o],isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{null==r||r();const t=[...u];t[o]=e,c(t)},confirmWidthCallback:t=>{a(t,e)},handleBlur:e=>(e=>{e.setAttribute("tabIndex","-1");const t=e.closest(".sn-table-cell");NI({focusType:kE.FOCUS,cell:t})})(e.currentTarget),setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:s,columnLabel:i}})};function tP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const rP=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){tP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function nP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const oP=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){nP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function iP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const aP=k(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){iP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),x.createElement("use",{fillRule:"evenodd"})))),lP=uE("div")({position:"absolute",left:0,bottom:0}),sP=uE(tw,{shouldForwardProp:e=>!["textAlign"].includes(e)})((({textAlign:e,theme:t})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center"})));uE("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1});const uP=uE(tw,{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},[`& .${ah}`]:{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:2},[`& .${ah}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),cP=uE(tw,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})));uE(tw,{shouldForwardProp:e=>"isVisible"!==e&&"rightAligned"!==e})((({rightAligned:e})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:"24px",display:"flex"}))),uE(mw)((({theme:e})=>({borderRadius:"4px",margin:e.spacing(0,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"}}))),uE("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),uE(sw)((({theme:e})=>({marginRight:e.spacing(1.5),lineHeight:0}))),uE("div")((({theme:e})=>({height:"350px",boxSizing:"border-box",background:e.palette.common.white})));const dP=uE(_w,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...dR,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom","&&:focus-visible, &&:hover":{background:t.active?r:n}})));uE("div")({display:"flex",alignItems:"center"});const pP=uE("span",{shouldForwardProp:e=>"align"!==e})((({align:e})=>({minWidth:sR,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),fP=({column:e,isInteractionEnabled:t,open:r,setOpen:n,allColumnsIconVisibilityStatusRef:o,isPagination:i})=>{const{translator:a,changeSortOrder:l,interactions:s,embed:u,app:c,model:d,styleService:p}=ZR(YR,(e=>e.baseProps)),f=ZR(YR,(t=>t.columnWidths[e.pageColIdx])),m=M(null),h=M(null),{getHeadCellsIconsVisibilityStatus:g,allIconsDisabled:b}=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=Zm({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:uR}),o=O((()=>{let e=!1,o=!1,i=!1;const a=t.isLocked,l=t.isActivelySorted,s=r-25,u=a?20:0,c=l?20:0;let d=n(t.label);return a&&d+u<=s&&(i=!0,d+=u,l&&d+c<=s&&(o=!0,d+=c)),!a&&l&&d+c<=s&&(o=!0,d+=c),d+24<=s&&(e=!0,d+=24),{shouldShowMenuIcon:e,shouldShowSortIcon:o,shouldShowLockIcon:i}}),[t.isLocked,t.label,t.isActivelySorted,r,n]);return{getHeadCellsIconsVisibilityStatus:o,allIconsDisabled:Object.values(o()).every((e=>!1===e))}})({styleService:p,column:e,columnWidth:f}),v=g(),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n})=>{const o="A"===e?ea.jsx(rP,{height:sR,"data-testid":"head-cell-sort-ascending-icon"}):ea.jsx(oP,{height:sR,"data-testid":"head-cell-sort-descending-icon"}),i=r?ea.jsx(pP,{align:t,children:o}):void 0,a=n?ea.jsx(cP,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:ea.jsx(aP,{height:sR,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:i,LockIcon:a}:{EndIcon:i,LockIcon:a}})(e,v);o&&(o.current[e.pageColIdx]=v);return ea.jsxs(uP,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:e.headTextAlign,children:[S,ea.jsxs(sP,{className:"sn-table-head-label",textAlign:e.headTextAlign,children:[y,ea.jsx(QI,{allIconsDisabled:b,isPagination:i,virtualizedCell:!i,headCell:!0,children:e.label}),x]}),t&&ea.jsxs(ea.Fragment,{children:[ea.jsx(YA,{headerData:e,translator:a,anchorRef:m,handleHeadCellMenuKeyDown:HI,menuAvailabilityFlags:{[GA.SORTING]:!0,[GA.SEARCHING]:!0,[GA.SELECTIONS]:!0,[GA.ADJUST_HEADER_SIZE]:!0},open:r,setOpen:n,interactions:s,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),l(e,r))},searchRelatedArgs:{embed:u,listboxRef:h},selectionRelatedArgs:{app:c,model:d},adjustHeaderSizeRelatedArgs:{setFocusOnColumnAdjuster:qI},shouldShowMenuIcon:v.shouldShowMenuIcon}),ea.jsx(lP,{ref:h}),ea.jsx(lP,{ref:m})]})]})},mP=({isInteractionEnabled:e,columnsData:t})=>{const[r,n]=S(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=(e=>{const[t,r]=S(!1);return th((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}})([t]);return{open:r,setOpen:n,handleOpenMenu:t=>e&&!(e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(dh)})(t)&&!o&&n(!0),setIsAdjustingWidth:i}},hP=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a}=ZR(YR,(e=>e.baseProps)),{columns:l,totalsPosition:s}=ZR(YR,(e=>e.tableData)),u=ZR(YR,(e=>e.columnWidths[t])),c=ZR(YR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),d=ZR(YR,(e=>e.setFocusedCellCoord)),p=ZR(YR,(({focusedCellCoord:[e,r]})=>0===e&&r===t)),f=!!n.active&&!c,{open:m,setOpen:h,handleOpenMenu:g,setIsAdjustingWidth:b}=mP({isInteractionEnabled:f,columnsData:l}),v=e.isActivelySorted?_E[e.sortDirection]:void 0,y=m?sh:void 0,x=m?"true":void 0,S=t===r-1,E=[0,e.pageColIdx],C={width:u-(S?8:9),zIndex:l.length-t},w=p&&0===t&&!i.enabled&&f?0:-1;return ea.jsxs(dP,{headerStyle:{...a.header,...KD(a,s,!0)},background:m?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:n,style:C,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${uh}`,tabIndex:w,title:n.passive?e.label:void 0,onKeyDown:e=>(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,isInteractionEnabled:o,handleOpenMenu:i})=>{if(o){if(!BI(e))switch(e.key){case OE.C:Pf(e),hR(e)&&bh(e.currentTarget);break;case OE.ENTER:case OE.SPACE:i&&i(e);break;default:vR(e.key)&&(Pf(e),FI({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n}))}}else Pf(e)})({evt:e,rootElement:o,cellCoord:E,setFocusedCellCoord:d,isInteractionEnabled:f,handleOpenMenu:g}),onMouseDown:e=>(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{var a;e.preventDefault(),i&&(n(r),o.enabled&&!o.active?null===(a=o.focus)||void 0===a||a.call(o):NI({focusType:kE.FOCUS,cell:OI(t,r)}))})({evt:e,rootElement:o,cellCoord:E,setFocusedCellCoord:d,keyboard:i,isInteractionEnabled:f}),onClick:g,"aria-sort":v,"aria-controls":y,"aria-expanded":x,"aria-haspopup":"true",children:[ea.jsx(fP,{column:e,isInteractionEnabled:f,open:m,setOpen:h,isPagination:!0}),ea.jsx(eP,{column:e,isLastColumn:S,setIsAdjustingWidth:b})]},e.id)},gP=()=>{var e;const{columns:t}=ZR(YR,(e=>e.tableData)),{styleService:r,viewService:n}=ZR(YR,(e=>e.baseProps)),o=ZR(YR,(e=>e.setHeadRowHeight)),i=ZR(YR,(e=>e.columnWidths)),a=M(null);return C((()=>{a.current&&o(a.current.clientHeight)}),[r.header.fontSize,i,o]),null!==(e=n.viewState)&&void 0!==e&&e.skipHeader?null:ea.jsx(Vw,{children:ea.jsx(Jw,{ref:a,className:"sn-table-row sn-table-head-row",children:t.map(((e,r)=>ea.jsx(hP,{column:e,columnIndex:r,columnsLength:t.length},e.id)))})})};var bP=_(gP);const vP=e=>{var t,r;const{pageInfo:n,setPageInfo:o,direction:i,footerContainer:a,announce:l}=e,{page:s,rowsPerPage:u}=n,{totalColumnCount:c,totalRowCount:d,totalPages:p,paginationNeeded:f,rows:m,columns:h,totalsPosition:g}=ZR(YR,(e=>e.tableData)),{rootElement:b,keyboard:v,translator:y,theme:x,interactions:S,styleService:E,viewService:w,layout:R,rect:A}=ZR(YR,(e=>e.baseProps)),I=ZR(YR,(e=>e.focusedCellCoord)),D=ZR(YR,(e=>e.setFocusedCellCoord)),P=ZR(YR,(e=>e.setYScrollbarWidth)),L=ZR(YR,(e=>e.showRightBorder)),k=ZR(YR,(e=>e.selectionDispatch)),_=ZR(YR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),T=M(!1),q=M(null),N=M(null),{yScrollbarWidth:F}=WI(q),z=`${y.get("SNTable.Accessibility.RowsAndColumns",[String(m.length),String(h.length)])} ${y.get("SNTable.Accessibility.NavigationInstructions")}`,j=oy(R,w),$=j&&null!==(t=w.scrollLeft)&&void 0!==t?t:0,B=j&&null!==(r=w.rowPartialHeight)&&void 0!==r?r:0,H=O((()=>{T.current=b.getElementsByTagName("table")[0].contains(document.activeElement)}),[b]),V=O((e=>{o({...n,page:e}),l({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),p.toString()]],politeness:"assertive"})}),[n,o,p,l]),W=O((e=>{o({...n,page:0,rowsPerPage:e}),l({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[l,n,o]);return jI(N,T,v),$I(q,i,w),(()=>{const{rootElement:e,keyboard:t}=ZR(YR,(e=>e.baseProps)),r=ZR(YR,(e=>e.focusedCellCoord));th((()=>{const n=t.active?kE.FOCUS:kE.BLUR,o=t.active?OI(e,r):kI(e);NI({focusType:n,cell:o})}),[t.active,e])})(),C((()=>{const e=q.current;e&&(e.scrollLeft=$,e.scrollTop=B)}),[n,d,$,B]),MI((()=>{(({focusedCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a,totalsPosition:l})=>{NI({focusType:kE.REMOVE_TAB,cell:kI(t)});const s=[l.atTop?2:1,e[1]],u=n?s:lC;if(o(u),!(e=>!e.enabled||e.active)(i))return;const c=r.current?kE.FOCUS:kE.ADD_TAB;r.current=!1;const d=OI(t,u);if(NI({focusType:c,cell:d}),n){var p;const e=null==d||null===(p=d.classList)||void 0===p?void 0:p.contains("selected");a({keys:[`${null==d?void 0:d.textContent},`,e?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.NotSelectedValue"]})}})({focusedCellCoord:I,rootElement:b,shouldRefocus:T,setFocusedCellCoord:D,isSelectionMode:_,keyboard:v,announce:l,totalsPosition:g})}),[m.length,d,c,s]),MI((()=>{P(F)}),[F]),MI((()=>{k({type:ME.UPDATE_PAGE_ROWS,payload:{pageRows:m}})}),[m]),ea.jsxs(DI,{ref:N,background:x.background,dir:i,onKeyDown:e=>{(({evt:e,totalRowCount:t,page:r,rowsPerPage:n,handleChangePage:o,setShouldRefocus:i,keyboard:a,isSelectionMode:l})=>{if(gR(e)){Pf(e);const a=Math.ceil(t/n)-1;e.key===OE.RIGHT&&r<a?(i(),o(r+1)):e.key===OE.LEFT&&r>0&&(i(),o(r-1))}else if(e.key===OE.ESC&&a.enabled&&!l){var s;Pf(e),null===(s=a.blur)||void 0===s||s.call(a,!0)}else bR(e.key)&&Pf(e)})({evt:e,totalRowCount:d,page:s,rowsPerPage:u,handleChangePage:V,setShouldRefocus:H,keyboard:v,isSelectionMode:_})},"data-testid":"sn-table",children:[ea.jsx(KI,{}),ea.jsx(UI,{ref:q,className:"sn-table-container",fullHeight:a||!S.active||!f,interactions:S,tabIndex:-1,role:"application","data-testid":"table-container",children:ea.jsxs(YI,{stickyHeader:!0,"aria-label":z,borderRight:L?`1px solid ${E.grid.border}`:void 0,children:[ea.jsx(bP,{}),ea.jsx(QD,{...e,setShouldRefocus:H,tableWrapperRef:N})]})}),ea.jsx(II,{footerContainer:a,pageInfo:n,paginationNeeded:f,theme:x,totalRowCount:d,totalColumnCount:c,totalPages:p,keyboard:v,translator:y,interactions:S,rect:A,layout:R,handleChangePage:V,handleChangeRowsPerPage:W,isSelectionMode:_})]})};var yP=_(vP);function xP(){return xP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xP.apply(this,arguments)}function SP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EP(e,t){return EP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},EP(e,t)}function CP(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,EP(e,t)}var wP=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function RP(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||wP(n)&&wP(o)))return!1;var n,o;return!0}function AP(e,t){var r;void 0===t&&(t=RP);var n,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}function IP(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var DP="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function PP(e){cancelAnimationFrame(e.id)}function LP(e,t){var r=DP();var n={id:requestAnimationFrame((function o(){DP()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var MP=-1;function OP(e){if(void 0===e&&(e=!1),-1===MP||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),MP=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return MP}var kP=null;function _P(e){if(void 0===e&&(e=!1),null===kP||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?kP="positive-descending":(t.scrollLeft=1,kP=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),kP}return kP}var TP=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function qP(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,SP(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:SP(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=AP((function(e,t,r,o,i,a,l,s){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),n._callOnScroll=void 0,n._callOnScroll=AP((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,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=n._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=r(n.props,t,n._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=AP((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,l=t.scrollHeight,s=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(_P()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-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&&PP(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=LP(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}CP(t,e),t.getDerivedStateFromProps=function(e,t){return NP(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=OP();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=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?s(this.props,n,r,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(_P()){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&&PP(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?TP:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],C=S[1],w=this._getVerticalRangeToRender(),A=w[0],I=w[1],D=[];if(n>0&&g)for(var P=A;P<=I;P++)for(var L=E;L<=C;L++)D.push(R(t,{columnIndex:L,data:d,isScrolling:v?x:void 0,key:f({columnIndex:L,data:d,rowIndex:P}),rowIndex:P,style:this._getItemStyle(P,L)}));var M=a(this.props,this._instanceProps),O=l(this.props,this._instanceProps);return R(m||h||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:xP({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},R(u||c||"div",{children:D,ref:s,style:{height:M,pointerEvents:x?"none":void 0,width:O}}))},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],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof n){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=r||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var NP=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},FP=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 l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},zP=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 l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},jP=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 l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},$P=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?BP(e,t,r,i,0,n):HP(e,t,r,Math.max(0,i),n)},BP=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),l=jP(e,t,a,r).offset;if(l===i)return a;l<i?o=a+1:l>i&&(n=a-1)}return o>0?o-1:0},HP=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&jP(e,t,n,r).offset<o;)n+=a,a*=2;return BP(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},VP=function(e,t,r,n,o,i,a){var l="column"===e?t.width:t.height,s=jP(e,t,r,i),u="column"===e?zP(t,i):FP(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===n&&(n=o>=d-l&&o<=c+l?"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}},WP=qP({getColumnOffset:function(e,t,r){return jP("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return $P("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=jP("column",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=jP("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:FP,getEstimatedTotalWidth:zP,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return VP("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return VP("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return jP("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return $P("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=jP("row",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=jP("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}}),GP=function(e,t){return e};function UP(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=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=s(n.props,SP(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:SP(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=AP((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=AP((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,l=i.itemSize,s=i.layout,c=n._getItemStyleCache(u&&l,u&&s,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"===s,m="rtl"===a,h=f?d:0;c[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=AP((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(_P()){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&&PP(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=LP(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}CP(t,e),t.getDerivedStateFromProps=function(e,t){return YP(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 l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?OP():0:s.scrollHeight>s.clientHeight?OP():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},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(_P()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&PP(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?GP:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),C=E[0],w=E[1],A=[];if(u>0)for(var I=C;I<=w;I++)A.push(R(t,{data:c,key:p(I,c),index:I,isScrolling:b?y:void 0,style:this._getItemStyle(I)}));var D=n(this.props,this._instanceProps);return R(m||h||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:xP({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},R(l||s||"div",{children:A,ref:a,style:{height:x?"100%":D,pointerEvents:y?"none":void 0,width:x?D:"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,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,s=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var YP=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},KP=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=n(s);o[s]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},XP=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=KP(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},JP=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&KP(e,r,t).offset<n;)r+=i,i*=2;return XP(e,t,Math.min(r,o-1),Math.floor(r/2),n)},ZP=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 l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},QP=UP({getItemOffset:function(e,t,r){return KP(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:ZP,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=KP(e,t,o),p=ZP(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=m-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return n>=m&&n<=f?n:n<m?m:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?XP(e,t,o,0,r):JP(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,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=KP(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=KP(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 eL(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 tL=["style"],rL=["style"];function nL(e,t){var r=e.style,n=IP(e,tL),o=t.style,i=IP(t,rL);return!eL(r,o)&&!eL(n,i)}const oL=({style:e})=>ea.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var iL=x.memo(oL,nL);const aL=()=>{},lL=e=>e.preventDefault();const sL=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o,i;const{rowsInPage:a,columns:l,isHoverEnabled:s,maxImageHeight:u}=n,{flags:c}=ZR(YR,(e=>e.env)),d=ZR(YR,(e=>e.hoverIndex===t)),p=ZR(YR,(e=>e.setHoverIndex)),{interactions:f,styleService:m}=ZR(YR,(e=>e.baseProps)),h=ZR(YR,(e=>e.showRightBorder)),g=null===(o=a[t])||void 0===o?void 0:o[e],{handleMouseDown:b,handleMouseOver:v,handleMouseUp:y,cellSelectionState:x}=function(e){const{interactions:t}=ZR(YR,(e=>e.baseProps)),r=ZR(YR,(e=>e.selectionDispatch)),n="object"==typeof e,o=ZR(YR,(t=>n?xR(e,t.selectionState):LE.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=BD(lL,e,r,aL);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g);let S={borderColor:m.grid.border,...m.measure.values};if(null!==(i=l[e])&&void 0!==i&&i.isDim&&(S={borderColor:m.grid.border,...m.dimension.values}),null!=g&&g.isNull&&(S={...S,...m.nullValues}),"object"==typeof g){var E;!c.isEnabled("CLIENT_IM_6696_INDICATORS")||l[e].isDim||g.isNull||(g.representation.indicatorConditionalColoring=n.columns[e].conditionalColoring);const o=((e,t,r,n,o,i,a)=>{const l=t.qAttrExprInfoIDs.length?NR(o,e.qAttrExps,t.qAttrExprInfoIDs,a):o;return n===LE.Selected?{...l,...i.selectedColors}:n===LE.Disabled?{...l,color:r?null===(s=i.grid.hoverColors)||void 0===s?void 0:s.color:l.color,background:`${aR.DISABLED_BACKGROUND}, ${r?null===(u=i.grid.hoverColors)||void 0===u?void 0:u.background:l.background}`}:r?{...l,...i.grid.hoverColors}:l;var s,u})(g,l[e],s&&d,x,S,m,c),i={rowindex:t,columnindex:e};return ea.jsx("div",{className:`sn-table-cell ${x} ${uh}`,style:{...r,...o,display:"flex",alignItems:"start",borderWidth:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:g.isLastColumn&&!h?"0px":"1px",borderStyle:"solid",justifyContent:g.representation.type===Zg.Image&&"fitHeight"===g.representation.imageSize?null===(E=g.representation)||void 0===E||null===(E=E.resolvedImagePosition)||void 0===E?void 0:E.horizontal:g.align,padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden"},onMouseDown:b,onMouseUp:y,onMouseOver:v,onMouseEnter:s?()=>p(t):void 0,onMouseLeave:s?()=>p(-1):void 0,title:f.passive?g.representation.text:void 0,...i,children:ea.jsx(FD,{cell:g,style:o,maxImageHeight:u,virtualizedCell:!0})})}return ea.jsx(iL,{style:{...r,...S,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var uL=x.memo(sL,nL);const cL=e=>{const t=M(e);return t.current=e,t},dL=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,pL=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if((null==t?void 0:t.rowIdx)!==o)return!0}return!1},fL=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!(null!=e&&e[t])))},mL=(e,t,r,n,o,i,a)=>{e.forEach((e=>{e.qMatrix.forEach(((l,s)=>{const u=e.qArea.qTop-t.page*t.rowsPerPage,{row:c,pageRowIdx:d}=((e,t,r,n,o,i,a,l,s)=>{var u;const{qSize:c}=a.qHyperCube,d=n.qTop+r,p=o+r,f=null!==(u=e[p])&&void 0!==u?u:[];return t.forEach(((e,t)=>{var r,o;const a=t+n.qLeft,{colIdx:u,isDim:m,isLocked:h,bodyTextAlign:g,selectionColIdx:b,qAttrExprInfoIndex:v,representation:y}=i[a],x=Kv(e);f[a]=null!==(r=f[a])&&void 0!==r?r:{id:Gb(),...e,align:ry(e,g),rowIdx:d,colIdx:u,isSelectable:m&&!h,pageRowIdx:p,pageColIdx:a,selectionColIdx:b,isLastRow:d===c.qcy-1,isLastColumn:a===c.qcx-1,isNumeric:x,isNull:Uv(e,m),representation:Gv(e,y,v,s)},l(null!==(o=f[a].representation.text)&&void 0!==o?o:"",p,a,x)})),{row:f,pageRowIdx:p}})(r,l,s,e.qArea,u,n,o,i,a);r[d]=c}))}))},hL=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:l,columns:s,setCellSize:u,gridState:c})=>{const d=ZR(YR,(e=>e.env)),p=M([]),f=cL(u),m=O(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return mL(t,o,n,s,e,f.current,d),p.current=n,n}),[i,o,s,e,f,d]),[h,g]=S((()=>m(null!=n?n:[])));th((()=>{g(m(null!=n?n:[]))}),[n]);const b=((e,t)=>{const r=M(new Set),n=M(new Set),o=M(new Set),i=cL(e),a=cL(t),l=E((()=>({enqueue:e=>{const t=dL(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(dL(e))}))}finally{n.current.delete(e)}}}),75))},clear:()=>{r.current.clear(),n.current.clear(),o.current.clear()}})),[i,a]);return l})((e=>t.getHyperCubeData("/qHyperCubeDef",e)),(e=>g((t=>m(e,t))))),v=O(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(fL(p.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}}),[p,b]),y=O(((e,t,r,n)=>{for(let i=t;i<t+n;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(pL(p.current,e,t,r,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:r};b.enqueue(t)}}}),[p,b,o]);return C((()=>{const{qcx:t,qcy:r}=e.qHyperCube.qSize,n=c.current.overscanRowStartIndex,i=c.current.overscanColumnStartIndex,s=n+o.page*o.rowsPerPage,u=t-i,d=o.rowsPerPage-n,p=Math.min(100,u,t,l+5),f=Math.min(100,d,r,a+25);return y(i,s,p,f),()=>{b.clear()}}),[e,a,l,o,b,y,c,r]),{rowsInPage:h,loadRows:y,loadColumns:v}},gL=({style:e,numericStyle:t,columnWidths:r,rowHeight:n,pageInfo:o,rowCount:i,gridRef:a,lineRef:l,columns:s,gridState:u,isSnapshot:c,viewService:d,maxNbrLines:p=3,isStaticNbrOfLines:f,allColumnsIconVisibilityStatus:m})=>{var h;const g=M({lastScrollToRatio:0,resetAfterRowIndex:0,heights:[],totalHeight:0,count:0,measuredCells:new Map}),{layout:b,rect:v}=ZR(YR,(e=>e.baseProps)),[y,x]=S(n||24),{measureText:E,estimateLineCount:C}=Zm(e,{maxNbrLinesOfText:p}),w=jD(e.fontSize),R=jD(null!==(h=null==t?void 0:t.fontSize)&&void 0!==h?h:e.fontSize),A=Math.max(w,R),I=8e6/i-8-1,D=Math.max(0,Math.min(p,Math.round(I/A))),P=$D({maxNbrLines:D,isStaticNbrOfLines:f,lineHeight:A}),L=f?D*A:A,k=O(((e,t,n)=>{var o;const i=s?(({width:e,columnIconsVisibilityStatus:t})=>{let r=0,n=0,o=0,i=0;if(t){const{shouldShowLockIcon:e,shouldShowSortIcon:r,shouldShowMenuIcon:a}=t;n=e?20:0,o=r?20:0,i=a?24:0}return r=e-25-n-o-i,Math.max(0,r)})({width:r[t],columnIconsVisibilityStatus:null==m?void 0:m[t]}):(e=>Math.max(0,e-24-1))(r[t]),a=Math.min(D,C({text:e.trim(),maxWidth:i,isNumeric:n})),l=null!=s&&null!==(o=s[t])&&void 0!==o&&o.isDim?A:R;return Math.max(1,a)*l+8+1}),[r,A,R,D,s,C,m]),_=O(((e,t,r,o=!1,i=!1)=>{const a=`${t}-${r}`;if(g.current.measuredCells.has(a))return;if(f)return g.current.measuredCells.set(a,[e,t,r,o]),void x(P);g.current.measuredCells.set(a,[e,t,r,o]);const l=n||24,d=((e,t,r)=>{var n;return(null==t||null===(n=t[e].representation)||void 0===n?void 0:n.type)===Zg.Image&&r})(r,s,u)?l:k(e,r,o),p=g.current.heights[t],m=d-p;m>0?(g.current.totalHeight+=m,g.current.heights[t]=d):void 0===p&&(g.current.count+=1,g.current.totalHeight+=d,g.current.heights[t]=d),i||c||x(g.current.totalHeight/g.current.count)}),[k,c,f,P,s,n,u]),T=O((e=>{var t;return null!==(t=g.current.heights[e])&&void 0!==t?t:y}),[g,y]),q=O((()=>{g.current.lastScrollToRatio=0,g.current.resetAfterRowIndex=0,g.current.heights=[],g.current.totalHeight=0,g.current.count=0,g.current.measuredCells.clear()}),[g]),N=cL(_),F=O((()=>{if(f)return void q();const e=new Map(g.current.measuredCells);q(),e.forEach((([e,t,r,n])=>{N.current(e,t,r,n,!0)})),c||x(g.current.totalHeight/g.current.count)}),[q,c,N,f]);th((()=>{q()}),[b,o]),th((()=>{F()}),[E,v.width]);return null!=a&&a.current?a.current.resetAfterRowIndex(g.current.resetAfterRowIndex,!1):null!=l&&l.current&&l.current.resetAfterIndex(g.current.resetAfterRowIndex,!1),d.estimatedRowHeight=y,{setCellSize:_,getRowHeight:T,rowMeta:g,estimatedRowHeight:y,maxLineCount:D,resizeVisibleCells:e=>{if(!u||f)return;q();const{overscanRowStartIndex:t,overscanRowStopIndex:r}=u.current,n=Math.min(r,b.qHyperCube.qSize.qcy-1);for(let r=t;r<=n;r++){var o;const t=null!==(o=e[r])&&void 0!==o?o:{};Object.values(t).forEach((e=>{var t;"object"==typeof e&&_(null!==(t=e.representation.text)&&void 0!==t?t:"",r,e.pageColIdx,e.isNumeric)}))}},resizeAllCells:F,resetRowMeta:q,maxImageHeight:L}};var bL;!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(bL||(bL={}));const vL=({layout:e,loadRows:t,loadColumns:r,rowCount:n,pageInfo:o,gridState:i,viewService:a})=>O((({overscanColumnStartIndex:l,overscanColumnStopIndex:s,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:m})=>{const{verticalScrollDirection:h,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o=bL.None,i=bL.None;return o=n>t?bL.Down:n<t?bL.Up:bL.None,i=r>e?bL.Right:r<e?bL.Left:bL.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(i.current,l,u);if(i.current.overscanColumnStartIndex=l,i.current.overscanColumnStopIndex=s,i.current.overscanRowStartIndex=u,i.current.overscanRowStopIndex=c,u>n)return;const b=l,v=u+o.page*o.rowsPerPage,y=s-l+1,x=c-u+1;if(a.visibleLeft=d,a.visibleWidth=p-d+1,a.visibleTop=f+o.page*o.rowsPerPage,a.visibleHeight=m-f+1,a.page=o.page,a.rowsPerPage=o.rowsPerPage,h===bL.Down){const e=x+25;t(b,v,y,u+e>n?n-u:e)}else if(h===bL.Up){const e=x+25,r=o.page*o.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(g===bL.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(g===bL.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]),yL={enabled:!1},xL=()=>{},SL={current:null};const EL=(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)),l=E((()=>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:l}},CL=({columnIndex:e,data:t,rowIndex:r})=>{var n,o;const i=null===(n=t.rowsInPage[r])||void 0===n?void 0:n[e];return null!==(o=null==i?void 0:i.id)&&void 0!==o?o:`${r}-${e}`},wL={overflow:"hidden",willChange:"auto"},RL=k(((e,t)=>{var r;const{rect:n,columns:o,innerForwardRef:i,pageInfo:a,rowHeight:l,headerAndTotalsHeight:s,syncHeight:u}=e,{flags:c}=ZR(YR,(e=>e.env)),{layout:d,model:p,theme:f,viewService:m,styleService:h}=ZR(YR,(e=>e.baseProps)),g=ZR(YR,(e=>e.columnWidths)),b=ZR(YR,(e=>e.initialDataPages)),{maxNbrLines:v,isStaticNbrOfLines:y}=ZI({viewService:m,styleService:h,isImagesEnabled:c.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")}),x=M(null),S=M({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),w=!(null===(r=OR(d))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect),{rowCount:R,visibleRowCount:A,visibleColumnCount:I}=EL(d,a,n,g,l),{setCellSize:D,getRowHeight:P,rowMeta:L,estimatedRowHeight:O,maxLineCount:k,resizeVisibleCells:_,maxImageHeight:q}=gL({pageInfo:a,style:h.dimension.values,numericStyle:h.measure.values,rowHeight:l,columnWidths:g,columns:o,gridRef:x,rowCount:R,gridState:S,isSnapshot:!!d.snapshotData,viewService:m,maxNbrLines:v,isStaticNbrOfLines:y}),{rowsInPage:F,loadRows:z,loadColumns:j}=hL({layout:d,model:p,theme:f,initialDataPages:b,pageInfo:a,rowCount:R,visibleRowCount:A,visibleColumnCount:I,columns:o,setCellSize:D,gridState:S}),$=vL({layout:d,loadRows:z,loadColumns:j,rowCount:R,pageInfo:a,gridState:S,viewService:m}),B=E((()=>({rowsInPage:F,columns:o,isHoverEnabled:w,maxLineCount:k,maxImageHeight:q})),[F,o,w,k,q]),H=((e,t,r,n)=>{let{height:o}=e;return o-=t,r*n<o&&(o=Math.min(r*n,o)),o})(n,s,R,O);return T((()=>{var e,t;u(null!==(e=null===(t=i.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0,!0)}),[R,u,i]),T((()=>{var e,t,r;(u(null!==(e=null===(t=i.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0,!1),1===L.current.lastScrollToRatio)&&(null===(r=x.current)||void 0===r||r.scrollToItem({rowIndex:R-1,align:"start"}))})),function(e){const{selectionsAPI:t}=ZR(YR,(e=>e.baseProps)),r=ZR(YR,(e=>e.selectionDispatch));C((()=>{r({type:ME.UPDATE_PAGE_ROWS,payload:{pageRows:e}})}),[r,e]),zD({selectionsAPI:t,selectionDispatch:r,setShouldRefocus:xL,keyboard:yL,tableWrapperRef:SL})}(F),th((()=>{var e;null===(e=x.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[d,a,f,n.width,g]),N(t,(()=>({interpolatedScrollTo:(e,t)=>{var r,n;const o=(null!==(r=null===(n=i.current)||void 0===n?void 0:n.clientHeight)&&void 0!==r?r:H)-H,a=Math.round(o*e);var l,s,u;(L.current.lastScrollToRatio=e,1===L.current.lastScrollToRatio)?(null===(l=x.current)||void 0===l||l.scrollToItem({rowIndex:R-1,align:"start"}),null===(s=x.current)||void 0===s||s.scrollTo({scrollLeft:t})):null===(u=x.current)||void 0===u||u.scrollTo({scrollTop:a,scrollLeft:t})},resizeCells:()=>{var e;null===(e=x.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),_(F)}})),[i,H,L,R,_,F]),ea.jsx(WP,{"data-key":"body",ref:x,innerRef:i,style:wL,columnCount:d.qHyperCube.qSize.qcx,columnWidth:e=>g[e],height:H,rowCount:R,rowHeight:P,estimatedRowHeight:O,width:n.width,itemData:B,onItemsRendered:$,itemKey:CL,className:"sn-table-body",children:uL})}));var AL=_(RL);const IL=({width:e,height:t,children:r})=>ea.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),DL=uE("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e})((({interactions:e,hoverBackground:t,background:r,applicableStyle:n})=>({...n,background:r,"&&:hover":{background:e.active?t:void 0}}))),PL=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,allColumnsIconVisibilityStatusRef:i}=r,{interactions:a,styleService:l}=ZR(YR,(e=>e.baseProps)),s=ZR(YR,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),u=ZR(YR,(e=>e.showRightBorder)),c=ZR(YR,(e=>e.tableData.totalsPosition)),d=!!a.active&&!s,{open:p,setOpen:f,handleOpenMenu:m,setIsAdjustingWidth:h}=mP({isInteractionEnabled:d,columnsData:n}),g=n[e],b=n.length-1===e,v="right"===g.headTextAlign?"row-reverse":"row";return ea.jsxs(DL,{className:`sn-table-cell ${uh}`,title:a.passive?g.label:void 0,onClick:m,applicableStyle:{...l.header,...KD(l,c,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderWidth:b&&!u?"0px 0px 1px 0px":"0px 1px 1px 0px",padding:"4px",justifyContent:g.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:v,userSelect:"none"},interactions:a,hoverBackground:l.headerMenuHoverBackground,background:p?l.headerMenuActiveBackground:l.header.background,children:[ea.jsx(fP,{column:g,isInteractionEnabled:d,open:p,setOpen:f,allColumnsIconVisibilityStatusRef:i}),ea.jsx(eP,{column:g,isLastColumn:b,onColumnResize:o,setIsAdjustingWidth:h})]})},LL=(e,t,r,n,o)=>{T((()=>{var t;null==e||null===(t=e.current)||void 0===t||t.resetAfterIndex(0,!0)}),[t,r,e,n,o])},ML={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},OL=e=>{const{rect:t,forwardRef:r,columns:n,pageInfo:o,rowHeight:i,columResizeHandler:a,allColumnsIconVisibilityStatusRef:l}=e,{layout:s,theme:u}=ZR(YR,(e=>e.baseProps)),c=ZR(YR,(e=>e.columnWidths));return LL(r,s,o,c,u),ea.jsx(QP,{ref:r,layout:"horizontal",style:ML,itemCount:s.qHyperCube.qSize.qcx,itemSize:e=>c[e],height:i,width:t.width,itemData:{columns:n,columResizeHandler:a,allColumnsIconVisibilityStatusRef:l},children:PL})};var kL=_(OL);const _L=x.forwardRef(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a}=ZR(YR,(e=>e.baseProps));return ea.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.active?"auto":"hidden",width:n,height:o},onScroll:i,children:r})})),TL=({children:e,rect:t})=>ea.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"0px",width:t.width,height:t.height},children:e}),qL=({index:e,style:t,data:r})=>{const{layout:n,interactions:o,styleService:i}=ZR(YR,(e=>e.baseProps)),a=ZR(YR,(e=>e.showRightBorder)),{columns:l,totals:s}=r,u=l[e].totalInfo,{totalsTextAlign:c,isTotalNumeric:d}=l[e],p=n.qHyperCube.qSize.qcx-1===e;return ea.jsx("div",{className:`sn-table-cell ${uh}`,title:o.passive?u:void 0,style:{...t,...i.totalRow,...KD(i,s,!1),background:i.totalRow.background,display:"flex",alignItems:s.atTop?"end":"start",borderStyle:"solid",borderLeftWidth:"0px",borderRightWidth:p&&!a?"0px":"1px",borderTopWidth:s.atBottom?"1px":"0px",borderBottomWidth:s.atTop?"1px":"0px",padding:"4px 12px",justifyContent:c,boxSizing:"border-box",cursor:"default"},children:ea.jsx(QI,{wordBreak:!d,lines:3,virtualizedCell:!0,children:u})})},NL=e=>{const{rect:t,forwardRef:r,pageInfo:n,totals:o,rowHeight:i,columns:a}=e,{layout:l,theme:s}=ZR(YR,(e=>e.baseProps)),u=ZR(YR,(e=>e.columnWidths));return LL(r,l,n,u,s),ea.jsx(QP,{ref:r,layout:"horizontal",style:ML,itemCount:l.qHyperCube.qSize.qcx,itemSize:e=>u[e],height:i,width:t.width,itemData:{columns:a,totals:o},children:qL})};var FL=_(NL);const zL=({columns:e,columnWidths:t,pageInfo:r,headerRef:n,totalsRef:o,totalsPosition:i,isSnapshot:a,viewService:l,allColumnsIconVisibilityStatus:s})=>{const{styleService:u}=ZR(YR,(e=>e.baseProps)),c=gL({style:u.header,columnWidths:t,lineRef:n,rowCount:1,pageInfo:r,columns:e,isSnapshot:a,viewService:l,allColumnsIconVisibilityStatus:s}),d=gL({style:u.totalRow,columnWidths:t,lineRef:o,rowCount:1,pageInfo:r,isSnapshot:a,viewService:l});e.forEach(((e,t)=>{c.setCellSize(e.label,0,t),d.setCellSize(e.totalInfo,0,t,Yv(e.totalInfo))}));const p=c.getRowHeight(0)+8,f=d.getRowHeight(0);return{headerRowHeight:p,totalsRowHeight:f,bodyRowHeight:a?l.estimatedRowHeight:(({fontSize:e=dR.fontSize})=>Math.max(24,IR(e)))(u.dimension.values),headerAndTotalsHeight:i.atTop||i.atBottom?p+f:p,resizeAllHeaderCells:c.resizeAllCells,resizeAllTotalCells:d.resizeAllCells}},jL=e=>{var t;const{pageInfo:r}=e,{totalsPosition:n,columns:o,paginationNeeded:i}=ZR(YR,(e=>e.tableData)),{layout:a,theme:l,rect:s,viewService:u}=ZR(YR,(e=>e.baseProps)),c=ZR(YR,(e=>e.columnWidths)),d=ZR(YR,(e=>e.setYScrollbarWidth)),p=M(null),f=M(null),m=M(null),h=M(null),g=M(),{xScrollbarWidth:b,yScrollbarWidth:v}=WI(p),y=M([]),{headerRowHeight:x,totalsRowHeight:C,bodyRowHeight:w,headerAndTotalsHeight:R,resizeAllHeaderCells:A,resizeAllTotalCells:I}=zL({columns:o,columnWidths:c,pageInfo:r,totalsPosition:n,headerRef:f,totalsRef:m,isSnapshot:!!a.snapshotData,viewService:u,allColumnsIconVisibilityStatus:y.current}),D=E((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(s,i)),[s,i]),P=E((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(D,b,v)),[D,b,v]),{rowCount:L}=EL(a,r,P,c,w),[k,_]=S(L*w+R),q=c.reduce(((e,t)=>e+t),0),N=((e,t,r,n)=>O((o=>{var i,a,l;const{scrollHeight:s,clientHeight:u,scrollTop:c,scrollLeft:d}=o.currentTarget,p=Math.max(0,Math.min(1,c/(s-u)));n.scrollTopRatio=p,n.scrollLeft=d,null===(i=r.current)||void 0===i||i.interpolatedScrollTo(Number.isNaN(p)?0:p,d),null===(a=e.current)||void 0===a||a.scrollTo(d),null===(l=t.current)||void 0===l||l.scrollTo(d)}),[n,r,e,t]))(f,m,h,u),F=O(((e,t=!1)=>{const r=e+R;(k<P.height&&r>P.height||t)&&_(r)}),[k,R,P.height]),z=O((()=>{var e;p.current&&(p.current.scrollTop=0),null===(e=h.current)||void 0===e||e.resizeCells(),A(),I()}),[p,A,I]);T((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[o.length]),T((()=>{p.current&&(p.current.scrollTop=0)}),[r,L,l]),MI((()=>{d(v)}),[v]);const j=ea.jsx(FL,{rect:P,pageInfo:r,columns:o,forwardRef:m,totals:n,rowHeight:C});return ea.jsx(_L,{ref:p,width:D.width,height:D.height,onScroll:N,children:ea.jsx(IL,{width:q,height:k,children:ea.jsxs(TL,{rect:P,children:[null!==(t=u.viewState)&&void 0!==t&&t.skipHeader?null:ea.jsx(kL,{rect:P,pageInfo:r,columns:o,forwardRef:f,rowHeight:x,columResizeHandler:z,allColumnsIconVisibilityStatusRef:y}),n.atTop?j:null,ea.jsx(AL,{ref:h,innerForwardRef:g,rect:P,pageInfo:r,columns:o,rowHeight:w,headerAndTotalsHeight:R,syncHeight:F}),n.atBottom?j:null]})})})};var $L=_(jL);const BL=()=>{const{theme:e,keyboard:t,translator:r,interactions:n,rect:o,layout:i}=ZR(YR,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:l,totalColumnCount:s,totalPages:u}=ZR(YR,(e=>e.tableData)),c=ZR(YR,(e=>e.pageInfo)),d=ZR(YR,(e=>e.setPage));return ea.jsxs(DI,{"data-testid":"sn-table",background:e.background,dir:"ltr",children:[ea.jsx($L,{pageInfo:c}),ea.jsx(II,{paginationNeeded:a,handleChangePage:e=>d(e),pageInfo:c,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:t,translator:r,theme:e,interactions:n,rect:o,layout:i})]})};var HL=_(BL);var VL,WL={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":"已依遞減順序排序。"}}};!function(e){e.FIRST="first-announcer-element",e.SECOND="second-announcer-element"}(VL||(VL={}));const GL=(e,t)=>n((()=>(function(e){if(e&&e.get&&e.add){const t="SNTable.Accessibility.RowsAndColumns";if(e.get(t)!==t)return;Object.keys(WL).forEach((t=>{e.add(WL[t])}))}}(t),((e,t,r)=>{let n=r||null;return({keys:r,shouldBeAtomic:o=!0,politeness:i="polite"})=>{const a=r.map((e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)})).join(" "),l=e.querySelector(".sn-table-announcer-1"),s=e.querySelector(".sn-table-announcer-2");let u;n===VL.FIRST?(u=s,n=VL.SECOND):(u=l,n=VL.FIRST),u.innerHTML=u.innerHTML.endsWith(" ­")?a:`${a} ­`,u.setAttribute("aria-atomic",o.toString()),u.setAttribute("aria-live",i)}})(e,t))),[e,t.language()]),UL={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},YL=({app:r,model:n,rootElement:o,layout:l,interactions:s,translator:u,selectionsAPI:c,theme:d,changeSortOrder:p,keyboard:f,rect:m,embed:h,reactRoot:g,applyColumnWidths:b,isFontLoaded:v,viewService:y,env:x})=>{const{direction:S,footerContainer:E}=i(),C=oy(l,y),w=iy(l,y),R=GL(o,u),A=C?{page:y.page||UL.page,rowsPerPage:y.rowsPerPage||UL.rowsPerPage,rowsPerPageOptions:UL.rowsPerPageOptions}:UL,[I,D]=e(A),[P]=a((async()=>w?async function(e,t,r,n,o,i){var a,l;const{page:s,rowsPerPage:u,rowsPerPageOptions:c}=r,d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/u),m=null!==(a=o.visibleTop)&&void 0!==a?a:s*u,h=null!==(l=o.visibleHeight)&&void 0!==l?l:Math.min(u,p-m);if(s>0&&m>=p)return n({...r,page:0}),null;if(h*d>Xv)return n({...r,rowsPerPage:Jv(d,c),page:0}),null;const g=p>10,b=Zv(t,o),v=ny(t),y=!!t.snapshotData,x=y?t.qHyperCube.qDataPages:await e.getHyperCubeData("/qHyperCubeDef",[{qTop:m,qLeft:0,qHeight:h,qWidth:d}]);o&&!y&&(o.qTop=m,o.qHeight=h,o.rowsPerPage=r.rowsPerPage,o.page=r.page);const S=(null==x?void 0:x[0].qMatrix.map(((e,t)=>{const r=[];return v.forEach(((n,o)=>{r[o]={id:Gb(),...e[o],align:ry(e[o],n.bodyTextAlign),rowIdx:t+m,colIdx:n.colIdx,pageRowIdx:t,pageColIdx:o,selectionColIdx:n.selectionColIdx,isSelectable:n.isDim&&!n.isLocked,isLastRow:t===h-1,isNumeric:Kv(e[o]),isNull:Uv(e[o],n.isDim),representation:Gv(e[o],n.representation,n.qAttrExprInfoIndex,i)}})),r})))||[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(n,l,I,D,y,x):null),[l,I,n,s,w]);t((()=>{!!(w&&g&&n&&(l.snapshotData||r)&&l&&P&&p&&d&&c&&v&&h)&&function(e,t){const{app:r,model:n,direction:o,selectionsAPI:i,layout:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,tableData:h,rect:g,viewService:b,env:v,...y}=e,x=QR(o);null==t||t.render(ea.jsx(on,{stylisPlugins:"rtl"===o?[aC]:void 0,children:ea.jsx(dE,{theme:x,children:ea.jsx(JR,{app:r,model:n,tableData:h,selectionsAPI:i,layout:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,rect:g,viewService:b,env:v,children:ea.jsx(yP,{...y,direction:o})})})}))}({app:r,model:n,rootElement:o,layout:l,tableData:P,direction:S,pageInfo:I,setPageInfo:D,interactions:s,translator:u,selectionsAPI:c,theme:d,changeSortOrder:p,keyboard:f,rect:m,footerContainer:E,announce:R,embed:h,applyColumnWidths:b,viewService:y,env:x},g)}),[r,n,g,P,s,S,d,f.active,R,p,b,w,l,c,h,o,I,D,u,m,E,v,x])};const KL=({model:e,layout:t,shouldRender:r,page:n})=>{const[o]=a((async()=>{if(r&&e)return(async(e,t,r)=>{let{qDataPages:n}=t.qHyperCube;if(0!==r||void 0===n||0===n.length){const o=r*Math.min(fR,t.qHyperCube.qSize.qcy);n=await e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:o,qWidth:50,qHeight:100}])}return{initialDataPages:n,derivedFrom:{layout:t,page:r}}})(e,t,n)}),[e,t,n]),i=(null==o?void 0:o.derivedFrom.layout)!==t||(null==o?void 0:o.derivedFrom.page)!==n;return{initialDataPages:null==o?void 0:o.initialDataPages,isLoading:i}},XL=({app:r,layout:o,model:i,rect:a,theme:l,keyboard:s,translator:u,interactions:c,selectionsAPI:d,changeSortOrder:p,rootElement:f,embed:m,reactRoot:h,applyColumnWidths:g,isFontLoaded:b,viewService:v,env:y})=>{const S=!iy(o,v),E=n((()=>function(e,t,r){const n=Zv(e,r),o=ny(e),i=e.qHyperCube.qSize.qcy,a=Math.min(fR,i),l=i>fR&&!!t.active;return{totalsPosition:n,columns:o,rows:[],totalRowCount:i,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(i/a),paginationNeeded:l}}(o,c,v)),[o,c,v]),{pageInfo:C,setPage:w}=((t,r)=>{const[o,i]=e(0),a=Math.min(fR,t.qHyperCube.qSize.qcy),l=n((()=>({page:o,rowsPerPage:a,rowsPerPageOptions:[]})),[a,o]);if(r){const e=Math.floor(t.qHyperCube.qSize.qcy/fR);e<o&&i(e)}return{pageInfo:l,setPage:i}})(o,S),{initialDataPages:R,isLoading:A}=KL({model:i,layout:o,page:C.page,shouldRender:S});t((()=>{var e;S&&s.active&&(null===(e=s.blur)||void 0===e||e.call(s,!1))}),[s.active]),t((()=>{S&&i&&p&&R&&!A&&b&&function(e,t){const{app:r,selectionsAPI:n,layout:o,model:i,translator:a,interactions:l,theme:s,keyboard:u,rect:c,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,env:S}=e,E=QR("ltr");t.render(ea.jsx(x.StrictMode,{children:ea.jsx(dE,{theme:E,children:ea.jsx(JR,{app:r,selectionsAPI:n,layout:o,model:i,translator:a,interactions:l,theme:s,keyboard:u,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,rect:c,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,env:S,children:ea.jsx(HL,{})})})}))}({app:r,layout:o,model:i,rect:a,theme:l,keyboard:s,translator:u,interactions:c,selectionsAPI:d,rootElement:f,embed:m,changeSortOrder:p,tableData:E,applyColumnWidths:g,setPage:w,pageInfo:C,initialDataPages:R,viewService:v,env:y},h)}),[r,o,i,a,l,s.active,u,c,d,p,S,f,m,h,E,g,w,C,A,R,b,y])},JL={version:JSON.stringify("3.10.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals",label:"Totals"},usePagination:!1,components:[]};function ZL(e,t){const r=e.getElementsByClassName("sn-table-container")[0];if(!r)return{};const n=(null==r?void 0:r.getBoundingClientRect())||{},o=e.getElementsByClassName("sn-table-head-row")[0],i=(null==o?void 0:o.getBoundingClientRect())||{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],l=(null==a?void 0:a.getBoundingClientRect())||{height:0},s=e.getElementsByClassName("sn-table-data-row"),u={top:n.y+i.height+(t.atTop?l.height:0),bottom:n.y+n.height-(t.atBottom?l.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})(s,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})(s,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)})(s,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const QL=(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]}},eM=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const tM=(e,t,r,n)=>{var o;if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||UL.rowsPerPage,l=null!==(o=n.viewState)&&void 0!==o&&o.isMultiPage?0:3;return Math.min(i,a,e-t+1+l)},rM=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=Zv(e,t);if(iy(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=ZL(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:tM(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=null==r?void 0:r.getBoundingClientRect(),o=null==r?void 0:r.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:l=0,page:s=0,rowsPerPage:u=0}=t,c=s*u,d=a-c,p=d+l-1,f=QL(d,o),m=null==f?void 0:f.getBoundingClientRect();if(!f||!m)return{};const h=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(m.y>=h-4?0:1)+c,visibleRowEndIndex:p+c};const g=n.y+n.height,b=(eM(m,h,g)?d:d+1)+c;let v=p+c;const y=QL(p,o),x=null==y?void 0:y.getBoundingClientRect();return y&&x&&(eM(x,h,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:tM(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},nM=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),oM=e=>e.getStyle("object","straightTableV2","backgroundColor");function iM(e){return{qae:{properties:{initial:JL},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:Bg,exportProperties:jg,exploration:Hg},ext:Nb(e),component(){var r;const y=u(),x=(e=>{const r=n((()=>Qm(e)),[e]);return t((()=>()=>r.unmount()),[r]),r})(y),S=c(),E=d(),C=p(),w=f(),R=m(),A=h(),I=g(),{freeResize:D}=i(),P=b(),L=null!=S&&null!==(r=S.snapshotData)&&void 0!==r&&r.content&&!D?{...P,...S.snapshotData.content.size}:P,M=(e=>{const{viewState:t}=i();return n((()=>((e,t)=>{var r,n,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v;return{qTop:0,qHeight:0,rowPartialHeight:null!==(r=null==t||null===(n=t.content)||void 0===n?void 0:n.rowPartialHeight)&&void 0!==r?r:0,visibleTop:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.visibleTop)&&void 0!==o?o:null==e?void 0:e.visibleTop,visibleHeight:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.visibleHeight)&&void 0!==a?a:null==e?void 0:e.visibleHeight,scrollLeft:null!==(s=null!==(u=null==t||null===(c=t.content)||void 0===c?void 0:c.scrollLeft)&&void 0!==u?u:null==e?void 0:e.scrollLeft)&&void 0!==s?s:0,scrollTopRatio:null!==(d=null==t||null===(p=t.content)||void 0===p?void 0:p.scrollTopRatio)&&void 0!==d?d:null==e?void 0:e.scrollTopRatio,rowsPerPage:null!==(f=null==t||null===(m=t.content)||void 0===m?void 0:m.rowsPerPage)&&void 0!==f?f:null==e?void 0:e.rowsPerPage,page:null!==(h=null==t||null===(g=t.content)||void 0===g?void 0:g.page)&&void 0!==h?h:null==e?void 0:e.page,viewState:e,estimatedRowHeight:null!==(b=null==t||null===(v=t.content)||void 0===v?void 0:v.estimatedRowHeight)&&void 0!==b?b:0}})(t,e.snapshotData)),[t,e.snapshotData,e.usePagination])})(S),O=v(),k=_f(S,y,nM,oM),_=((e,t)=>n((()=>((e,t)=>{if(t)return async(r,n)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:l,isActivelySorted:s}=r,u=o?i:i-e,c=(await t.getEffectiveProperties()).qHyperCubeDef.qInterColumnSortOrder,d=[],p=n!==l||s;s||(c.splice(c.indexOf(i),1),c.unshift(i),d.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${c.join(",")}]`})),p&&d.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),t.applyPatches(d,!0)}})(e.qDimensionInfo.length,t)),[e.qDimensionInfo.length,t]))(S.qHyperCube,C),T=Fb(S.qHyperCube,C),q=((e,t)=>{const{fontSize:r,fontFamily:n}=_R(t,e,!1),{fontSize:o,fontFamily:i}=TR(t,e),[l,s]=a((async()=>(await document.fonts.load(`600 ${r} ${n}`),await document.fonts.load(`${o} ${i}`),!0)),[r,n,o,i]);return s?(console.warn("Failed to load font:",s),!0):!!l})(k,S);null==o||o(((e,t)=>{const r=t.target,n=null==r?void 0:r.closest(`.${uh}`);null!=n&&n.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{bh(n)}})})),(({layout:e,viewService:t,model:r,rootElement:n,contentRect:o})=>{l((async i=>{if(!i.snapshotData||!r||i.snapshotData.content)return i;if(r.getHyperCubeData){i.qHyperCube||(i.qHyperCube={});const{rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m}=rM(e,t,n);i.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:null!=d?d:0,qWidth:e.qHyperCube.qSize.qcx,qHeight:null!=p?p:0}]),i.snapshotData.content={rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m,size:{width:o.width,height:o.height},estimatedRowHeight:t.estimatedRowHeight}}return i})),s((()=>({getViewState:()=>rM(e,t,n)})),[e,t,n])})({layout:S,viewService:M,model:C,rootElement:y,contentRect:P}),XL({app:E,layout:S,model:C,rect:L,theme:k,keyboard:I,translator:R,interactions:w,selectionsAPI:A,changeSortOrder:_,rootElement:y,embed:O,reactRoot:x,applyColumnWidths:T,isFontLoaded:q,viewService:M,env:e}),YL({app:E,model:C,rootElement:y,layout:S,interactions:w,translator:R,selectionsAPI:A,theme:k,changeSortOrder:_,keyboard:I,rect:L,embed:O,reactRoot:x,applyColumnWidths:T,isFontLoaded:q,viewService:M,env:e})}}}export{iM as default};
193
+ `),Jw.rippleVisible,oC,550,(({theme:e})=>e.transitions.easing.easeInOut),Jw.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Jw.child,Jw.childLeaving,iC,550,(({theme:e})=>e.transitions.easing.easeInOut),Jw.childPulsate,aC,(({theme:e})=>e.transitions.easing.easeInOut));var uC=y.forwardRef((function(e,t){const r=Xw({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=K(r,Zw),[l,s]=y.useState([]),u=y.useRef(0),c=y.useRef(null);y.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=y.useRef(!1),p=yo(),f=y.useRef(null),m=y.useRef(null),h=y.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;s((e=>[...e,ea.jsx(sC,{classes:{ripple:jo(o.ripple,Jw.ripple),rippleVisible:jo(o.rippleVisible,Jw.rippleVisible),ripplePulsate:jo(o.ripplePulsate,Jw.ripplePulsate),child:jo(o.child,Jw.child),childLeaving:jo(o.childLeaving,Jw.childLeaving),childPulsate:jo(o.childPulsate,Jw.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 l=a?null:m.current,s=l?l.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(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(r-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:r})}),[n,h,p]),b=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,s((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]),ea.jsx(lC,z({className:jo(Jw.root,o.root,i),ref:m},a,{children:ea.jsx(us,{component:null,exit:!0,children:l})}))}));function cC(e){return _o("MuiButtonBase",e)}var dC=To("MuiButtonBase",["root","disabled","focusVisible"]);const pC=["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"],fC=IE("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"},[`&.${dC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),mC=y.forwardRef((function(e,t){const r=Xw({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:x,onKeyUp:S,onMouseDown:E,onMouseLeave:w,onMouseUp:C,onTouchEnd:R,onTouchMove:A,onTouchStart:I,tabIndex:D=0,TouchRippleProps:P,touchRippleRef:L,type:M}=r,k=K(r,pC),O=y.useRef(null),_=y.useRef(null),T=ho(_,L),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=Do(),[$,B]=y.useState(!1);s&&$&&B(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{B(!0),O.current.focus()}})),[]);const[H,V]=y.useState(!1);y.useEffect((()=>{V(!0)}),[]);const W=H&&!u&&!s;function G(e,t,r=c){return mo((n=>{t&&t(n);return!r&&_.current&&_.current[e](n),!0}))}y.useEffect((()=>{$&&d&&!u&&H&&_.current.pulsate()}),[u,d,$,H]);const U=G("start",E),Y=G("stop",h),X=G("stop",g),J=G("stop",C),Z=G("stop",(e=>{$&&e.preventDefault(),w&&w(e)})),Q=G("start",I),ee=G("stop",R),te=G("stop",A),re=G("stop",(e=>{F(e),!1===q.current&&B(!1),f&&f(e)}),!1),ne=mo((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&(B(!0),v&&v(e)),b&&b(e)})),oe=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ie=y.useRef(!1),ae=mo((e=>{d&&!ie.current&&$&&_.current&&" "===e.key&&(ie.current=!0,_.current.stop(e,(()=>{_.current.start(e)}))),e.target===e.currentTarget&&oe()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&oe()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),le=mo((e=>{d&&" "===e.key&&_.current&&$&&!e.defaultPrevented&&(ie.current=!1,_.current.stop(e,(()=>{_.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&oe()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let se=l;"button"===se&&(k.href||k.to)&&(se=p);const ue={};"button"===se?(ue.type=void 0===M?"button":M,ue.disabled=s):(k.href||k.to||(ue.role="button"),s&&(ue["aria-disabled"]=s));const ce=ho(t,j,O),de=z({},r,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:D,focusVisible:$}),pe=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Lo({root:["root",t&&"disabled",r&&"focusVisible"]},cC,o);return r&&n&&(i.root+=` ${n}`),i})(de);return ea.jsxs(fC,z({as:se,className:jo(pe.root,a),ownerState:de,onBlur:re,onClick:m,onContextMenu:Y,onFocus:ne,onKeyDown:ae,onKeyUp:le,onMouseDown:U,onMouseLeave:Z,onMouseUp:J,onDragLeave:X,onTouchEnd:ee,onTouchMove:te,onTouchStart:Q,ref:ce,tabIndex:s?-1:D,type:M},ue,k,{children:[i,W?ea.jsx(uC,z({ref:T,center:o},P)):null]}))}));var hC=mC;var gC=To("MuiBox",["root"]);const bC=KS(),vC=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=Pn("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Rx),a=y.forwardRef((function(e,a){const l=function(e=Mx){return Lx(e)}(r),s=_x(e),{className:u,component:c="div"}=s,d=K(s,qx);return ea.jsx(i,z({as:c,ref:a,className:jo(u,o?o(n):n),theme:t&&l[t]||l},d))}));return a}({themeId:Cy,defaultTheme:bC,defaultClassName:gC.root,generateClassName:ko.generate});var yC=vC;var xC=To("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var SC=y.createContext({});function EC(e){return _o("MuiListItemIcon",e)}var wC=To("MuiListItemIcon",["root","alignItemsFlexStart"]);const CC=["className"],RC=IE("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})=>z({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var AC=y.forwardRef((function(e,t){const r=Xw({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=K(r,CC),i=z({},r,{alignItems:y.useContext(SC).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Lo({root:["root","flex-start"===t&&"alignItemsFlexStart"]},EC,r)})(i);return ea.jsx(RC,z({className:jo(a.root,n),ownerState:i,ref:t},o))}));var IC=To("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function DC(e){return _o("MuiMenuItem",e)}var PC=To("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const LC=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],MC=IE(hC,{shouldForwardProp:e=>AE(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})=>z({},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"}},[`&.${PC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:iS(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${PC.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:iS(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${PC.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:iS(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})`:iS(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${PC.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${PC.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${xC.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${xC.inset}`]:{marginLeft:52},[`& .${IC.root}`]:{marginTop:0,marginBottom:0},[`& .${IC.inset}`]:{paddingLeft:36},[`& .${wC.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&z({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${wC.root} svg`]:{fontSize:"1.25rem"}}))));var kC=y.forwardRef((function(e,t){const r=Xw({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=r,p=K(r,LC),f=y.useContext(SC),m=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=y.useRef(null);fo((()=>{n&&h.current&&h.current.focus()}),[n]);const g=z({},r,{dense:m.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return z({},a,Lo({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},DC,a))})(r),v=ho(h,t);let x;return r.disabled||(x=void 0!==c?c:-1),ea.jsx(SC.Provider,{value:m,children:ea.jsx(MC,z({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:jo(b.focusVisible,s),className:jo(b.root,d)},p,{ownerState:g,classes:b}))})}));var OC=y.createContext();function _C(e){return _o("MuiTable",e)}To("MuiTable",["root","stickyHeader"]);const TC=["className","component","padding","size","stickyHeader"],qC=IE("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>z({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":z({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),NC="table",FC=y.forwardRef((function(e,t){const r=Xw({props:e,name:"MuiTable"}),{className:n,component:o=NC,padding:i="normal",size:a="medium",stickyHeader:l=!1}=r,s=K(r,TC),u=z({},r,{component:o,padding:i,size:a,stickyHeader:l}),c=(e=>{const{classes:t,stickyHeader:r}=e;return Lo({root:["root",r&&"stickyHeader"]},_C,t)})(u),d=y.useMemo((()=>({padding:i,size:a,stickyHeader:l})),[i,a,l]);return ea.jsx(OC.Provider,{value:d,children:ea.jsx(qC,z({as:o,role:o===NC?null:"table",ref:t,className:jo(c.root,n),ownerState:u},s))})}));var jC=FC;var zC=y.createContext();function $C(e){return _o("MuiTableBody",e)}To("MuiTableBody",["root"]);const BC=["className","component"],HC=IE("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),VC={variant:"body"},WC="tbody";var GC=y.forwardRef((function(e,t){const r=Xw({props:e,name:"MuiTableBody"}),{className:n,component:o=WC}=r,i=K(r,BC),a=z({},r,{component:o}),l=(e=>{const{classes:t}=e;return Lo({root:["root"]},$C,t)})(a);return ea.jsx(zC.Provider,{value:VC,children:ea.jsx(HC,z({className:jo(l.root,n),as:o,ref:t,role:o===WC?null:"rowgroup",ownerState:a},i))})}));function UC(e){return _o("MuiTableCell",e)}var YC=To("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const KC=["align","className","component","padding","scope","size","sortDirection","variant"],XC=IE("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ao(r.size)}`],"normal"!==r.padding&&t[`padding${ao(r.padding)}`],"inherit"!==r.align&&t[`align${ao(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>z({},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?sS(iS(e.palette.divider,1),.88):aS(iS(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",[`&.${YC.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}))),JC=y.forwardRef((function(e,t){const r=Xw({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:l,size:s,sortDirection:u,variant:c}=r,d=K(r,KC),p=y.useContext(OC),f=y.useContext(zC),m=f&&"head"===f.variant;let h;h=i||(m?"th":"td");let g=l;"td"===h?g=void 0:!g&&m&&(g="col");const b=c||f&&f.variant,v=z({},r,{align:n,component:h,padding:a||(p&&p.padding?p.padding:"normal"),size:s||(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 Lo({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${ao(n)}`,"normal"!==o&&`padding${ao(o)}`,`size${ao(i)}`]},UC,t)})(v);let S=null;return u&&(S="asc"===u?"ascending":"descending"),ea.jsx(XC,z({as:h,ref:t,className:jo(x.root,o),"aria-sort":S,scope:g,ownerState:v},d))}));var ZC=JC;function QC(e){return _o("MuiTableContainer",e)}To("MuiTableContainer",["root"]);const eR=["className","component"],tR=IE("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var rR=y.forwardRef((function(e,t){const r=Xw({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=K(r,eR),a=z({},r,{component:o}),l=(e=>{const{classes:t}=e;return Lo({root:["root"]},QC,t)})(a);return ea.jsx(tR,z({ref:t,as:o,className:jo(l.root,n),ownerState:a},i))}));function nR(e){return _o("MuiTableHead",e)}To("MuiTableHead",["root"]);const oR=["className","component"],iR=IE("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),aR={variant:"head"},lR="thead";var sR=y.forwardRef((function(e,t){const r=Xw({props:e,name:"MuiTableHead"}),{className:n,component:o=lR}=r,i=K(r,oR),a=z({},r,{component:o}),l=(e=>{const{classes:t}=e;return Lo({root:["root"]},nR,t)})(a);return ea.jsx(zC.Provider,{value:aR,children:ea.jsx(iR,z({as:o,className:jo(l.root,n),ref:t,role:o===lR?null:"rowgroup",ownerState:a},i))})}));function uR(e){return _o("MuiTableRow",e)}var cR=To("MuiTableRow",["root","selected","hover","head","footer"]);const dR=["className","component","hover","selected"],pR=IE("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,[`&.${cR.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${cR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:iS(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}))`:iS(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),fR="tr",mR=y.forwardRef((function(e,t){const r=Xw({props:e,name:"MuiTableRow"}),{className:n,component:o=fR,hover:i=!1,selected:a=!1}=r,l=K(r,dR),s=y.useContext(zC),u=z({},r,{component:o,hover:i,selected:a,head:s&&"head"===s.variant,footer:s&&"footer"===s.variant}),c=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:i}=e;return Lo({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},uR,t)})(u);return ea.jsx(pR,z({as:o,ref:t,className:jo(c.root,n),role:o===fR?null:"row",ownerState:u},l))}));var hR=mR,gR=(e={})=>x.createElement(Vw,{...e},x.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},x.createElement("rect",{stroke:Iw.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const bR={MuiAccordion:{styleOverrides:{root:{backgroundColor:Iw.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Iw.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:x.createElement($w,{"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 ${Iw.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Iw.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Iw.MISC_FOCUS_BORDER}`,borderRadius:kw,backgroundColor:Iw.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 ${Iw.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Iw.WHITE,color:Iw.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:kw},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Iw.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Iw.GREYSCALE_0_15,backgroundColor:Iw.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Iw.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Iw.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Iw.GREEN_PALE},"&:active":{backgroundColor:Iw.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Iw.GREEN_PALE,boxShadow:`0 0 0 3px ${Fx(Iw.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Iw.BLUE_PALE},"&:active":{backgroundColor:Iw.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Iw.BLUE_PALE,boxShadow:`0 0 0 3px ${Fx(Iw.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:kw,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Iw.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Iw.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Iw.GREYSCALE_0_15,backgroundColor:Iw.GREYSCALE_100_60,"&:active":{backgroundColor:Iw.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Iw.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Iw.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Iw.PURPLE,"&.Mui-focusVisible":{borderColor:Iw.PURPLE,boxShadow:`0 0 0 3px ${Fx(Iw.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Iw.GREEN,"&.Mui-focusVisible":{borderColor:Iw.GREEN,boxShadow:`0 0 0 3px ${Fx(Iw.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Iw.BLUE,"&.Mui-focusVisible":{borderColor:Iw.BLUE,boxShadow:`0 0 0 3px ${Fx(Iw.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Iw.ORANGE,"&.Mui-focusVisible":{borderColor:Iw.ORANGE,boxShadow:`0 0 0 3px ${Fx(Iw.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Iw.RED,"&.Mui-focusVisible":{borderColor:Iw.RED,boxShadow:`0 0 0 3px ${Fx(Iw.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Iw.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Iw.PURPLE_PALE},"&:active":{backgroundColor:Iw.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Iw.PURPLE_PALE,boxShadow:`0 0 0 3px ${Fx(Iw.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Iw.GREEN_PALE},"&:active":{backgroundColor:Iw.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Iw.GREEN_PALE,boxShadow:`0 0 0 3px ${Fx(Iw.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Iw.BLUE_PALE},"&:active":{backgroundColor:Iw.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Iw.BLUE_PALE,boxShadow:`0 0 0 3px ${Fx(Iw.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Iw.ORANGE_PALE},"&:active":{backgroundColor:Iw.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Iw.ORANGE_PALE,boxShadow:`0 0 0 3px ${Fx(Iw.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Iw.RED_PALE},"&:active":{backgroundColor:Iw.RED_DARK},"&.Mui-focusVisible":{borderColor:Iw.RED_PALE,boxShadow:`0 0 0 3px ${Fx(Iw.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:Iw.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Iw.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:kw,boxShadow:`inset 0 0 0 2px ${Iw.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:x.createElement(Hw,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Dw,borderRadius:kw,color:Iw.TEXT_PRIMARY,backgroundColor:Iw.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Iw.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Iw.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Iw.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Iw.GREYSCALE_0_05,color:Iw.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Iw.GREEN,borderColor:Iw.GREEN},"&.MuiChip-outlinedInfo":{color:Iw.BLUE,borderColor:Iw.BLUE},"&.MuiChip-outlinedWarning":{color:Iw.ORANGE,borderColor:Iw.ORANGE},"&.MuiChip-outlinedError":{color:Iw.RED,borderColor:Iw.RED}},outlined:{border:`solid 1px ${Iw.GREYSCALE_0_15}`,backgroundColor:Iw.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:kw,boxShadow:"none",backgroundColor:Iw.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Iw.GREEN,borderColor:Iw.GREEN},outlinedSecondary:{color:Iw.BLUE,borderColor:Iw.BLUE},label:{fontFamily:Nw.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:x.createElement(Hw,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:x.createElement($w,{"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:kw},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:kw,fontSize:Pw,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Iw.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Iw.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Iw.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Iw.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Iw.GREYSCALE_0_05}}},popupIndicator:{borderRadius:kw,border:`solid 1px ${Iw.GREYSCALE_0_15}`,color:Iw.GREYSCALE_0_60,marginRight:0,width:Mw,height:Mw},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Iw.GREYSCALE_0_15}`},clearIndicator:{borderRadius:kw,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Iw.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Pw}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Dw,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Iw.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Iw.GREYSCALE_25,fontSize:Dw,fontFamily:Nw.FONT_FAMILY,fontWeight:Tw,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Iw.TEXT_PRIMARY},"&.Mui-error":{color:Iw.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Iw.TEXT_SECONDARY,content:"'(optional)'",fontWeight:_w,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Iw.TEXT_SECONDARY,content:"'(required)'",fontWeight:_w,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Pw,lineHeight:"16px",backgroundColor:Iw.WHITE,borderRadius:kw,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Iw.GREYSCALE_0_05}`,borderColor:Iw.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Iw.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Iw.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Iw.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Iw.RED}`,boxShadow:`0px 0px 0px 1px ${Iw.RED}, inset 0 2px 0 0 ${Iw.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Iw.GREYSCALE_0_10}`,borderColor:Iw.GREYSCALE_0_10,backgroundColor:Iw.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Iw.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Iw.GREYSCALE_0_15,borderRadius:kw,boxShadow:`inset 0 2px 0 0 ${Iw.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>x.createElement($w,{...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:Iw.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Iw.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Iw.GREYSCALE_0_03},"&:active":{backgroundColor:Iw.GREYSCALE_0_10},"&:focus":{backgroundColor:Iw.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Iw.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Iw.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Iw.GREYSCALE_0_30,"&:hover":{backgroundColor:Iw.GREYSCALE_0_0,borderColor:Iw.GREYSCALE_0_15},"& ~svg":{color:Iw.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Iw.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:kw}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Iw.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Iw.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Iw.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Pw,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Dw,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Dw,fontWeight:Tw,color:Iw.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Tw}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Iw.GREYSCALE_0_15}, 0px 0px 0px 1px ${Iw.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:x.createElement(Uw,null),checkedIcon:x.createElement(Yw,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Iw.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Iw.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Iw.GREEN_PALE,boxShadow:`0 0 0 3px ${Fx(Iw.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Iw.BLUE_PALE,boxShadow:`0 0 0 3px ${Fx(Iw.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Iw.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Iw.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:x.createElement(gR,null),checkedIcon:x.createElement(Ww,null),indeterminateIcon:x.createElement(Gw,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:kw,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Iw.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Iw.GREYSCALE_0_55,color:Iw.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:Iw.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Iw.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Iw.GREYSCALE_0_55,"&:hover":{color:Iw.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:Iw.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Iw.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Pw,color:Iw.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Tw},secondary:{fontSize:Dw,color:Iw.GREYSCALE_45,fontWeight:_w,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Pw,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:Iw.GREYSCALE_0_03},"&:active":{backgroundColor:Iw.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Pw,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Iw.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Dw,borderBottom:`solid 1px ${Iw.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Pw,color:Iw.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Iw.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Iw.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Iw.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Iw.RED}}},"&.Mui-focusVisible":{backgroundColor:Iw.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:Iw.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:Iw.GREEN,height:"24px","&.Mui-disabled":{color:Iw.GREYSCALE_0_15}},rail:{backgroundColor:Iw.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Iw.GREYSCALE_0_05}`,borderRadius:kw,boxShadow:`inset 0px 0px 0px 1px ${Iw.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Iw.GREYSCALE_0_05}`,borderRadius:kw},thumb:{height:"16px",width:"16px",borderRadius:kw,backgroundColor:Iw.WHITE,boxShadow:`0px 1px 2px 0px ${Iw.GREYSCALE_0_15}, 0px 0px 0px 1px ${Iw.GREYSCALE_0_05}`,"&:hover":{borderRadius:kw,boxShadow:`0 2px 4px 0 ${Iw.GREYSCALE_0_30}, 0 0 0 1px ${Iw.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Iw.GREYSCALE_0_15}, 0 0 0 1px ${Iw.GREYSCALE_0_06}, 0 0 0 2px ${Iw.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Iw.GREYSCALE_0_15}, 0 0 0 1px ${Iw.GREYSCALE_0_06}, 0 0 0 2px ${Iw.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Iw.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Iw.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Iw.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Iw.GREYSCALE_0_15},markLabel:{color:Iw.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Iw.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Iw.WHITE,color:Iw.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:Iw.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:Iw.GREEN_PALE,boxShadow:`0 0 0 3px ${Fx(Iw.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Iw.BLUE_PALE,boxShadow:`0 0 0 3px ${Fx(Iw.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Iw.GREYSCALE_0_15,borderRadius:kw},thumb:{height:"16px",width:"16px",borderRadius:kw,backgroundColor:Iw.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:Pw,fontWeight:Tw,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Iw.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Iw.MISC_FOCUS_BORDER}`,backgroundColor:Iw.GREYSCALE_0_03,borderRadius:kw},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Iw.GREYSCALE_25,"&.Mui-selected":{color:Iw.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Pw,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:kw,"&:hover":{backgroundColor:`${Iw.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 ${Iw.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Iw.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:kw,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Iw.GREYSCALE_0_05},"&:hover":{backgroundColor:`${Iw.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Iw.GREYSCALE_85}`,borderRight:`1px solid ${Iw.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Tw,backgroundColor:Iw.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:Iw.GREYSCALE_98,borderBottom:`1px solid ${Iw.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Iw.GREYSCALE_85}`,borderTop:`1px solid ${Iw.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Iw.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Iw.GREYSCALE_0_05,"&:hover":{backgroundColor:Iw.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Iw.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>x.createElement(Kw,{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 ${Iw.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Pw,borderRadius:kw,padding:"7px 16px",border:`1px solid ${Iw.GREYSCALE_0_15}`,backgroundColor:Iw.GREYSCALE_100_60,color:Iw.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Iw.GREYSCALE_0_10,border:`1px solid ${Iw.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Iw.GREYSCALE_0_03,border:`1px solid ${Iw.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Iw.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Iw.MISC_FOCUS_BORDER}`,border:`1px solid ${Iw.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Iw.GREYSCALE_25,backgroundColor:Iw.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Iw.GREYSCALE_0_10,border:`1px solid ${Iw.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Dw,height:24,width:24,padding:7},sizeLarge:{fontSize:Lw,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Pw,borderRadius:kw}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:Iw.GREYSCALE_20},tooltip:{backgroundColor:Iw.GREYSCALE_20,fontSize:Dw,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var vR=e=>bR;const yR={mode:"light",primary:{ultraLight:Iw.GREEN_ULTRA_LIGHT,light:Iw.GREEN_PALE,main:Iw.GREEN,dark:Iw.GREEN_DARK,extraDark:Iw.GREEN_EXTRA_DARK,contrastText:Iw.WHITE},secondary:{ultraLight:Iw.BLUE_ULTRA_LIGHT,light:Iw.BLUE_PALE,main:Iw.BLUE,dark:Iw.BLUE_DARK,extraDark:Iw.BLUE_EXTRA_DARK,contrastText:Iw.WHITE},error:{ultraLight:Iw.RED_ULTRA_LIGHT,light:Iw.RED_PALE,main:Iw.RED,dark:Iw.RED_DARK,extraDark:Iw.RED_EXTRA_DARK,contrastText:Iw.WHITE},warning:{ultraLight:Iw.ORANGE_ULTRA_LIGHT,light:Iw.ORANGE_PALE,main:Iw.ORANGE,dark:Iw.ORANGE_DARK,extraDark:Iw.ORANGE_EXTRA_DARK,contrastText:Iw.WHITE},success:{ultraLight:Iw.GREEN_ULTRA_LIGHT,light:Iw.GREEN_PALE,main:Iw.GREEN,dark:Iw.GREEN_DARK,extraDark:Iw.GREEN_EXTRA_DARK,contrastText:Iw.WHITE},info:{ultraLight:Iw.BLUE_ULTRA_LIGHT,light:Iw.BLUE_PALE,main:Iw.BLUE,dark:Iw.BLUE_DARK,extraDark:Iw.BLUE_EXTRA_DARK,contrastText:Iw.WHITE},text:{primary:Iw.TEXT_PRIMARY,secondary:Iw.TEXT_SECONDARY,disabled:Iw.GREYSCALE_0_30},action:{hover:Iw.GREYSCALE_0_03,hoverOpacity:.03,selected:Iw.GREYSCALE_0_05,selectedOpacity:.05,focus:Iw.MISC_FOCUS_BORDER},amethyst:{ultraLight:Iw.WHITE,main:Iw.PURPLE,light:Iw.PURPLE_PALE,dark:Iw.PURPLE_DARK,extraDark:Iw.GREYSCALE_0_0,contrastText:Iw.WHITE},background:{paper:Iw.WHITE,default:Iw.GREYSCALE_95},divider:Iw.GREYSCALE_0_15},xR=e=>({components:vR(),palette:yR,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:Pw,fontWeightLight:Ow,fontWeightRegular:_w,fontWeightMedium:Tw,fontWeightBold:qw,htmlFontSize:Pw,fontFamily:Nw.FONT_FAMILY,button:{fontWeight:Tw,fontSize:Pw,textTransform:"none"},body1:{fontSize:Lw,lineHeight:"24px"},body2:{fontSize:Pw,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Mw,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Lw,fontWeight:Tw,lineHeight:"16px"},h6:{fontSize:Pw,fontWeight:Tw,lineHeight:"16px"},caption:{color:Iw.TEXT_SECONDARY},subtitle1:{fontSize:Pw,color:Iw.TEXT_SECONDARY},subtitle2:{fontSize:Dw,color:Iw.TEXT_SECONDARY}},shape:{borderRadius:kw}}),SR={...Aw,MISC_FOCUS_BORDER:Iw.MISC_FOCUS_BORDER},ER=(e="light")=>xR(),wR=ER().palette,CR={SELECTED:{color:SR.GREYSCALE_100,background:wR.primary.light,selectedCellClass:YE.Selected},DISABLED_BACKGROUND:"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)"},RR=4/3,AR="12px",IR="600",DR="Source Sans Pro, sans-serif",PR={height:"auto",fontSize:AR,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"}},LR={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:IR},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},MR=25e4,kR=(e,t,r)=>{if(null==e||!e.length)return[];const n=[],o=[];let i=t;if(e.forEach(((e,a)=>{var l;if(e.columnWidth){const{columnWidth:{type:s,pixels:u,percentage:c},label:d,qApprMaxGlyphCount:p,totalInfo:f}=e;let m=0;const h=()=>{n[a]=Math.min(Lh.PixelsMax,Math.max(Lh.PixelsMin,m)),i-=n[a]};switch(s){case Mh.Pixels:m=u||Lh.PixelsDefault,h();break;case Mh.Percentage:m=(c||Lh.PercentageDefault)/100*t,h();break;case Mh.FitToContent:(null===(l=e.representation)||void 0===l?void 0:l.type)===gb.Image?o.push(a):(m=r(d,f,p,e.isLocked,e.isActivelySorted,e.isDim),h());break;case Mh.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}}else o.push(a)})),o.length){const e=i/o.length;o.forEach((t=>{n[t]=Math.max(Lh.AutoMinTable,e)}))}return n},OR=e=>e.ctrlKey||e.metaKey,_R=e=>e.shiftKey&&OR(e),TR=e=>[XE.LEFT,XE.RIGHT,XE.UP,XE.DOWN].includes(e),qR=e=>TR(e)||[XE.HOME,XE.END,XE.PAGE_UP,XE.PAGE_DOWN].includes(e),NR=e=>e.shiftKey&&TR(e.key),FR=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=YE.Inactive;return null!=o&&o.isModal()&&(i=r!==e.selectionColIdx?YE.Disabled:void 0!==n[e.qElemNumber]?YE.Selected:YE.Possible),i},jR=(e,t,r)=>{const n=Object.keys(r).length,o=n>=Object.keys(t).length;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"]})},zR=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:l}=t;let s={};if(-1===o)null==r||r.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;s={...n}}return s=((e,t,r)=>{const{qElemNumber:n,rowIdx:o}=t;return r.ctrlKey||r.metaKey?{[n]:o}:(void 0!==e[n]?delete e[n]:e[n]=o,{...e})})(s,i,l),jR(a,n,s),Object.keys(s).length?(null==r||r.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(s),[i.selectionColIdx]]}),{...e,rows:s,colIdx:i.selectionColIdx}):(null==r||r.cancel(),{...e,rows:s,colIdx:-1})},$R=(e,t)=>{var r;const{api:n,rows:o,colIdx:i,pageRows:a,firstCell:l}=e,{cell:s,announce:u,evt:c}=t;let d={};return l||"key"in c&&NR(c)?(-1===i?null==n||n.begin(["/qHyperCubeDef"]):d={...o},d=((e,t,r,n,o)=>{const i={...t};if("key"in n&&NR(n)){i[r.qElemNumber]=r.rowIdx;const t=n.key===XE.DOWN?1:-1;return i[e[r.pageRowIdx+t][r.pageColIdx].qElemNumber]=r.rowIdx+t,i}if(!o)return t;const a=Math.min(o.pageRowIdx,r.pageRowIdx),l=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=l;t++){const r=e[t][o.pageColIdx];i[r.qElemNumber]=r.rowIdx}return i})(a,d,s,c,l),jR(u,o,d),{...e,rows:d,colIdx:null!==(r=null==l?void 0:l.selectionColIdx)&&void 0!==r?r:s.selectionColIdx,isSelectMultiValues:!0}):e},BR=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&(null==t||t.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(r),[n]]})),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},HR=(e,t)=>{var r;switch(t.type){case KE.SELECT:return zR(e,t.payload);case KE.SELECT_MOUSE_DOWN: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 KE.SELECT_MOUSE_UP:return((e,t)=>BR(e.isSelectMultiValues||e.firstCell!==t.cell?e:zR(e,t)))(e,t.payload);case KE.SELECT_MULTI_ADD:return $R(e,t.payload);case KE.SELECT_MULTI_END:return BR(e);case KE.RESET:return null!==(r=e.api)&&void 0!==r&&r.isModal()?e:{...e,rows:{},colIdx:-1};case KE.CLEAR:return Object.keys(e.rows).length?{...e,rows:{}}:e;case KE.UPDATE_PAGE_ROWS:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},VR=4/3,WR=e=>parseInt(e,10)*VR+8+1,GR=e=>!(null==e||!e.color)||"number"==typeof(null==e?void 0:e.index)&&e.index>-1;function UR(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const YR=e=>th(e)?vp.WHITE:vp.TEXT,KR=(e,t)=>e?{borderBottomColor:vp.DARK_MODE_BORDER,borderRightColor:vp.DARK_MODE_BORDER,borderLeftColor:vp.DARK_MODE_BORDER,borderTopColor:vp.DARK_MODE_BORDER}:{borderLeftColor:vp.BORDER_MEDIUM,borderRightColor:vp.BORDER_MEDIUM,borderTopColor:vp.BORDER_HEAVY,borderBottomColor:t?vp.BORDER_HEAVY:vp.BORDER_LIGHT},XR=e=>{var t;return null===(t=e.components)||void 0===t?void 0:t.find((e=>"theme"===e.key))},JR=(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"),l={fontFamily:o,color:GR(null==r?void 0:r.fontColor)?UR(vp.TEXT,t,null==r?void 0:r.fontColor):i||vp.TEXT,fontSize:(null==r?void 0:r.fontSize)&&`${r.fontSize}px`||a,padding:r&&"padding"in r?null==r?void 0:r.padding:void 0,...KR(t.background.isDark,n)};return Object.keys(l).forEach((e=>{const t=e;null==l[t]&&delete l[t]})),l};function ZR(e,t,r){var n,o,i;const a=null===(n=XR(e))||void 0===n?void 0:n.header,l=JR("header",t,a,r);return l.background=ah(t.background.headerColor),l.hoverBackground=yf(null!==(o=l.background)&&void 0!==o?o:vp.WHITE,kh.hover),l.activeBackground=yf(null!==(i=l.background)&&void 0!==i?i:vp.WHITE,kh.active),l}function QR(e,t,r,n){var o;const i=null===(o=XR(e))||void 0===o?void 0:o.content,a=JR("content",t,i);a.background=t.background.color;const l=((e,t,r)=>{if(e&&t&&r)return WR(e)*(t+2)<r.clientHeight-40?"1px":"0px";return"0px"})(null==a?void 0:a.fontSize,r,n),s=null==i?void 0:i.hoverColor,u=null==i?void 0:i.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),d=t.getStyle("object","","straightTableV2.content.hover.color"),p=GR(u)||!!d,f=GR(s)||!!c,m=p||f;let h;h=GR(s)?UR(vp.HOVER,t,s):c||(p?"":vp.HOVER);const g=m?UR(YR(h),t,u):"";return{...a,lastRowBottomBorder:l,hoverColors:{background:h,color:g}}}const eA=(e,t)=>{var r;const n=null!==(r=e.toLowerCase().match(/<[^>]+>/g))&&void 0!==r?r:[];return n.forEach((e=>e in LR&&Object.assign(t,LR[e]))),t};function tA(e,t,r,n){var o;const i={};let a={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return null==t||null===(o=t.qValues)||void 0===o||o.forEach(((e,t)=>{const o=e.qText,l=o&&ih(o);l&&"none"!==l&&(i[r[t]]=l),n.isEnabled("CLIENT_IM_6573_TEXT_STYLE")&&o&&(a=eA(o,a))})),i.cellBackgroundColor&&!i.cellForegroundColor&&(i.cellForegroundColor=YR(i.cellBackgroundColor)),{...e,...i,color:i.cellForegroundColor||e.color,background:i.cellBackgroundColor||e.background,fontStyle:a.fontStyle,fontWeight:a.fontWeight,textDecoration:a.textDecoration}}const rA=e=>parseInt(e||AR,10),nA=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return AR}},oA=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",iA=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",aA=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?IR:"normal",lA=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},sA=(e,t,r,n)=>{var o,i;const{objectColorFromCSS:a,sheetColorFromCSS:l}=t.background,s=lA(t,null==r?void 0:r.background),u=t.getStyle("","",n);return null!==(o=null!==(i=ch(s,s||a||u,l))&&void 0!==i?i:e)&&void 0!==o?o:vp.WHITE},uA=(e,t,r,n)=>{var o,i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,w,C,R,A,I,D,P,L,M,k,O,_,T,q,N,F,j,z,$,B,H,V,W,G,U,Y,K,X,J,Z,Q,ee,te,re,ne,oe,ie,ae,le,se,ue,ce,de;if(!e.flags.isEnabled("CLIENT_IM_6221_TABLE_STYLING"))return((e,t,r)=>{var n,o,i;return{header:{fontFamily:t.head.fontFamily,fontSize:t.head.fontSize,fontStyle:"normal",fontWeight:IR,textDecoration:"none",color:t.head.color,background:t.head.background},dimension:{values:{fontFamily:t.body.fontFamily,fontSize:t.body.fontSize,fontStyle:"normal",fontWeight:"normal",textDecoration:"none",color:t.body.color,background:t.body.background}},measure:{values:{fontFamily:t.body.fontFamily,fontSize:t.body.fontSize,fontStyle:"normal",fontWeight:"normal",textDecoration:"none",color:t.body.color,background:t.body.background}},totalRow:{fontFamily:t.totals.fontFamily,fontSize:t.totals.fontSize,fontStyle:"normal",fontWeight:IR,textDecoration:"none",color:t.totals.color,background:t.totals.background},nullValues:{fontStyle:"",fontWeight:"",textDecoration:"",color:"",background:"#F2F2F2"},grid:{lineClamp:null===(n=XR(e))||void 0===n||null===(n=n.content)||void 0===n?void 0:n.rowHeight,border:r.background.isDark?vp.DARK_MODE_BORDER:vp.BORDER_MEDIUM,divider:vp.BORDER_HEAVY,hoverColors:{color:null===(o=t.body.hoverColors)||void 0===o?void 0:o.color,background:null===(i=t.body.hoverColors)||void 0===i?void 0:i.background},lastRowBottomBorder:t.body.lastRowBottomBorder},selectedColors:{background:vp.SELECTED,color:vp.WHITE},headerMenuHoverBackground:t.head.hoverBackground,headerMenuActiveBackground:t.head.activeBackground}})(t,r,n);const{header:pe,dimensionValues:fe,measureValues:me,totalValues:he,nullValues:ge,grid:be,content:ve}=null!==(o=XR(t))&&void 0!==o?o:{},ye=sA(r.head.background,n,pe,"object.straightTableV2.dimension.label.name.backgroundColor"),xe=null!==(i=null!==(a=null!==(l=null!==(s=lA(n,null==fe?void 0:fe.fontColor))&&void 0!==s?s:lA(n,null==ve?void 0:ve.fontColor))&&void 0!==l?l:n.getStyle("object.straightTableV2.dimension","label.value","color"))&&void 0!==a?a:r.body.color)&&void 0!==i?i:vp.TEXT;return{header:{fontFamily:null!==(u=null!==(c=null!==(d=null==pe?void 0:pe.fontFamily)&&void 0!==d?d:n.getStyle("object.straightTableV2.dimension","label.name","fontFamily"))&&void 0!==c?c:r.head.fontFamily)&&void 0!==u?u:DR,fontSize:nA(null!==(p=null!==(f=null==pe?void 0:pe.fontSize)&&void 0!==f?f:n.getStyle("object.straightTableV2.dimension","label.name","fontSize"))&&void 0!==p?p:r.head.fontSize),fontStyle:oA(null==pe?void 0:pe.fontStyle),fontWeight:aA(null==pe?void 0:pe.fontStyle,IR),textDecoration:iA(null==pe?void 0:pe.fontStyle),color:null!==(m=null!==(h=null!==(g=lA(n,null==pe?void 0:pe.fontColor))&&void 0!==g?g:n.getStyle("object.straightTableV2.dimension","label.name","color"))&&void 0!==h?h:r.head.color)&&void 0!==m?m:vp.TEXT,background:ye},headerMenuHoverBackground:yf(ye,kh.hover),headerMenuActiveBackground:yf(ye,kh.active),dimension:{values:{fontFamily:null!==(b=null!==(v=null!==(y=null==fe?void 0:fe.fontFamily)&&void 0!==y?y:n.getStyle("object.straightTableV2.dimension","label.value","fontFamily"))&&void 0!==v?v:r.body.fontFamily)&&void 0!==b?b:DR,fontSize:nA(null!==(x=null!==(S=null!==(E=null==fe?void 0:fe.fontSize)&&void 0!==E?E:null==ve?void 0:ve.fontSize)&&void 0!==S?S:n.getStyle("object.straightTableV2.dimension","label.value","fontSize"))&&void 0!==x?x:r.body.fontSize),fontStyle:oA(null==fe?void 0:fe.fontStyle),fontWeight:aA(null==fe?void 0:fe.fontStyle,"normal"),textDecoration:iA(null==fe?void 0:fe.fontStyle),color:xe,background:null!==(w=null!==(C=null!==(R=lA(n,null==fe?void 0:fe.background))&&void 0!==R?R:n.getStyle("object.straightTableV2.dimension","label.value","backgroundColor"))&&void 0!==C?C:r.body.background)&&void 0!==w?w:vp.TRANSPARENT}},measure:{values:{fontFamily:null!==(A=null!==(I=null!==(D=null==me?void 0:me.fontFamily)&&void 0!==D?D:n.getStyle("object.straightTableV2.measure","label.value","fontFamily"))&&void 0!==I?I:r.body.fontFamily)&&void 0!==A?A:DR,fontSize:nA(null!==(P=null!==(L=null!==(M=null==me?void 0:me.fontSize)&&void 0!==M?M:null==ve?void 0:ve.fontSize)&&void 0!==L?L:n.getStyle("object.straightTableV2.measure","label.value","fontSize"))&&void 0!==P?P:r.body.fontSize),fontStyle:oA(null==me?void 0:me.fontStyle),fontWeight:aA(null==me?void 0:me.fontStyle,"normal"),textDecoration:iA(null==me?void 0:me.fontStyle),color:null!==(k=null!==(O=null!==(_=null!==(T=lA(n,null==me?void 0:me.fontColor))&&void 0!==T?T:lA(n,null==ve?void 0:ve.fontColor))&&void 0!==_?_:n.getStyle("object.straightTableV2.measure","label.value","color"))&&void 0!==O?O:r.body.color)&&void 0!==k?k:vp.TEXT,background:null!==(q=null!==(N=null!==(F=lA(n,null==me?void 0:me.background))&&void 0!==F?F:n.getStyle("object.straightTableV2.measure","label.value","backgroundColor"))&&void 0!==N?N:r.body.background)&&void 0!==q?q:vp.TRANSPARENT}},totalRow:{fontFamily:null!==(j=null!==(z=null!==($=null==he?void 0:he.fontFamily)&&void 0!==$?$:n.getStyle("object.straightTableV2.total","label.value","fontFamily"))&&void 0!==z?z:r.totals.fontFamily)&&void 0!==j?j:DR,fontSize:nA(null!==(B=null!==(H=null!==(V=null==he?void 0:he.fontSize)&&void 0!==V?V:null==ve?void 0:ve.fontSize)&&void 0!==H?H:n.getStyle("object.straightTableV2.total","label.value","fontSize"))&&void 0!==B?B:r.totals.fontSize),fontStyle:oA(null==he?void 0:he.fontStyle),fontWeight:aA(null==he?void 0:he.fontStyle,IR),textDecoration:iA(null==he?void 0:he.fontStyle),color:null!==(W=null!==(G=null!==(U=null!==(Y=lA(n,null==he?void 0:he.fontColor))&&void 0!==Y?Y:lA(n,null==ve?void 0:ve.fontColor))&&void 0!==U?U:n.getStyle("object.straightTableV2.total","label.value","color"))&&void 0!==G?G:r.totals.color)&&void 0!==W?W:vp.TEXT,background:sA(r.totals.background,n,he,"object.straightTableV2.total.label.value.backgroundColor")},nullValues:{fontStyle:oA(null==ge?void 0:ge.fontStyle),fontWeight:aA(null==ge?void 0:ge.fontStyle,"normal"),textDecoration:iA(null==ge?void 0:ge.fontStyle),color:null!==(K=null!==(X=null!==(J=null!==(Z=lA(n,null==ge?void 0:ge.fontColor))&&void 0!==Z?Z:lA(n,null==ve?void 0:ve.fontColor))&&void 0!==J?J:n.getStyle("object.straightTableV2.null","label.value","color"))&&void 0!==X?X:r.body.color)&&void 0!==K?K:vp.TEXT,background:null!==(Q=null!==(ee=lA(n,null==ge?void 0:ge.background))&&void 0!==ee?ee:n.getStyle("object.straightTableV2.null","label.value","backgroundColor"))&&void 0!==Q?Q:vp.NULL_VALUE_BACKGROUND},grid:{lineClamp:null!==(te=null==ve?void 0:ve.rowHeight)&&void 0!==te?te:n.getStyle("object.straightTableV2","grid","lineClamp"),border:null!==(re=null!==(ne=lA(n,null==be?void 0:be.border))&&void 0!==ne?ne:n.getStyle("object.straightTableV2","grid","borderColor"))&&void 0!==re?re:n.background.isDark?vp.DARK_MODE_BORDER:vp.BORDER_MEDIUM,divider:null!==(oe=null!==(ie=lA(n,null==be?void 0:be.divider))&&void 0!==ie?ie:n.getStyle("object.straightTableV2.grid","","divider.borderColor"))&&void 0!==oe?oe:vp.BORDER_HEAVY,hoverColors:{color:null!==(ae=null!==(le=lA(n,null==ve?void 0:ve.hoverFontColor))&&void 0!==le?le:n.getStyle("object.straightTableV2","","grid.hover.color"))&&void 0!==ae?ae:null===(se=r.body.hoverColors)||void 0===se?void 0:se.color,background:null!==(ue=null!==(ce=lA(n,null==ve?void 0:ve.hoverColor))&&void 0!==ce?ce:n.getStyle("object.straightTableV2","","grid.hover.backgroundColor"))&&void 0!==ue?ue:null===(de=r.body.hoverColors)||void 0===de?void 0:de.background},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:eh({desiredColor:xe,theme:n,flags:e.flags})}},cA=(e,t,r,n)=>{const o=E((()=>{const o=r.totalsPosition.atTop,i=QR(e,t,r.rows.length,n),a=ZR(e,t,!o),l=function(e,t,r){var n;const o=null===(n=XR(e))||void 0===n?void 0:n.content,i=JR("content",t,o),{borderBottomColor:a,borderTopColor:l,background:s}=ZR(e,t,r);return{...i,borderBottomColor:a,background:s,borderTopColor:l}}(e,t,o);return{body:i,head:a,totals:l}}),[e,t,r,n]);return o},dA=new Map;const pA=L({}),fA=function(e){const t=L([()=>{},new Set]);return dA.set(e,t),({children:r,value:n})=>{const o=M(n),i=M(new Set);w((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=k((()=>o.current),[o]),l=E((()=>[a,i.current]),[a]);return ea.jsx(e.Provider,{value:n,children:ea.jsx(t.Provider,{value:l,children:r})})}}(pA),mA={rows:[],columns:[],totalsPosition:{}},hA=({app:e,children:t,tableData:r=mA,selectionsAPI:n,cellCoordMock:o,layout:i,model:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,setPage:h,pageInfo:g,initialDataPages:b,rect:v,viewService:y,env:x})=>{const[w,C]=S(0),[R,A]=S(o||Rw),[I,D]=((e,t)=>{const[r,n]=P(HR,{pageRows:e,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(r.rows,n),[L,M]=S(-1),k=cA(i,u,r,d),O=((e,t,r,n)=>E((()=>uA(e,t,r,n)),[t,r,e,n]))(x,i,k,u),[_,T,q,N]=((e,t,r,n)=>{const o=t.atBottom||t.atTop,i=gh({...n.header,fontWeight:IR},{maxNbrLinesOfText:3}).measureText,a=gh({...n.totalRow,fontWeight:IR},{maxNbrLinesOfText:3}).measureText,{estimateWidth:l}=gh(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:s}=gh(n.measure.values,{maxNbrLinesOfText:3}),u=E((()=>(e,t,r,n,u,c)=>{let d=25;d+=28,n&&(d+=24),u&&(d+=20);const p=c?l:s;return Math.max(i(e)+d,o?a(t)+24+1:0,p(r))}),[l,s,i,a,o]),[c,d]=S(0),[p,f]=S((()=>kR(e,r,u)));yh((()=>{f(kR(e,r-c,u))}),[e,r,c,u]);const m=E((()=>((e,t,r)=>!!(e&&e.length>0)&&e.reduce(((e,t)=>e+t))+t<r)(p,c,r)),[p,c,r]);return[p,f,d,m]})(r.columns,r.totalsPosition,v.width,O),F=E((()=>({app:e,selectionsAPI:n,layout:i,model:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,rect:v,viewService:y,styleService:O})),[e,n,i,a,l,s,u,c.active,d,p,f,m,v,y,O]);return ea.jsx(fA,{value:{headRowHeight:w,setHeadRowHeight:C,focusedCellCoord:R,setFocusedCellCoord:A,selectionState:I,selectionDispatch:D,hoverIndex:L,setHoverIndex:M,columnWidths:_,setColumnWidths:T,baseProps:F,tableData:r,setYScrollbarWidth:q,setPage:h,pageInfo:g,initialDataPages:b,showRightBorder:N,env:x},children:t})};function gA(e,t){const r=function(e){return dA.get(e)}(e),[n,o]=C(r),[,i]=P((e=>e+1),0),a=M(t),l=M(),s=n();if(void 0===s)throw new Error("You must call useContextSelector inside a valid context.");const u=E((()=>t(s)),[s,t]);return w((()=>{a.current=t,l.current=u}),[s,u,t]),w((()=>{const e=e=>{(a.current&&a.current(e))!==l.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function bA(e){var t;const r=ER();return null!=r&&null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),KS({...r,direction:e})}const vA={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},yA={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},xA=El("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",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":{...vA},"&::-moz-range-track":{...vA},"&::-ms-track":{...vA},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...yA},"&::-moz-range-thumb":{...yA},"&::-ms-thumb":{...yA},"&: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"}}))),SA=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u,accessibilityRelatedArgs:c})=>{const d=Sh({translator:c.translator}),p=M({initWidth:e,columnWidth:e,initX:0}),f=r?0:1,m=n&&!u,h={left:m?p.current.columnWidth-f:"100%"},g=t=>{p.current={initWidth:e,columnWidth:e,initX:null!=t?t:p.current.initX}};yh((()=>m&&g()),[e]);const b=e=>{const t=Math.max(e,Lh.PixelsMin);p.current.columnWidth=t,i(t)},v=()=>{if(p.current.columnWidth!==p.current.initWidth){const e={type:Mh.Pixels,pixels:p.current.columnWidth};a(e)}else null==s||s(!1)},y=e=>{const t=p.current.initWidth+e.clientX-p.current.initX;b(t)},S=e=>{sh(e),document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",S),v()},E=e=>{const t=p.current.initWidth+e.touches[0].clientX-p.current.initX;b(t)},w=e=>{sh(e),document.removeEventListener("touchmove",E),document.removeEventListener("touchend",w),v()},C=!n&&l?e=>{if(e.key===Dh.LEFT||e.key===Dh.RIGHT){sh(e);const t=5,r=e.key===Dh.LEFT?-t:t;b(p.current.columnWidth+r)}else e.key===Dh.SPACE||e.key===Dh.ENTER?(sh(e),l(e),v()):e.key===Dh.ESC&&(sh(e),l(e),b(p.current.initWidth))}:void 0,R=d.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return x.createElement(xA,{style:h,key:t,hoverColor:o,isLastColumn:r,className:Ph,"data-testid":Ph,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",y),document.addEventListener("mouseup",S),null==s||s(!0),g(e.clientX)},onDoubleClick:()=>a({type:Mh.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",E),document.addEventListener("touchend",w),null==s||s(!0),g(e.touches[0].clientX))},onKeyDown:C,onBlur:l,onFocus:()=>g(),type:"range",tabIndex:"-1",max:Lh.PixelsMax,"aria-label":R,"aria-valuemin":Lh.PixelsMin,"aria-valuemax":Lh.PixelsMax,"aria-valuenow":Number(e.toFixed(1))})};function EA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const wA=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){EA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"}))));function CA(){return CA=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},CA.apply(null,arguments)}const RA=El(Wu,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),AA=El(wA,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),IA=El(Ed)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),DA=El(hc)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),PA=El(Id)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),LA=El(Id,{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")}))),MA=El("div")((({theme:e})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),kA=El("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),OA=El(Gs)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),_A=El(Kc)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function TA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const qA=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){TA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"}))));let NA={};const FA=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=S(!1),p=M(null),f=k((e=>{e.stopPropagation(),d(!1)}),[d]);return x.createElement(x.Fragment,null,x.createElement(LA,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),NA={}),null!=a&&a.length&&(d(!0),NA[n]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&x.createElement(MA,null),x.createElement(kA,null,x.createElement(_A,null,x.createElement(o,null)),x.createElement(OA,{variant:"body2"},n)),null!=a&&a.length?x.createElement(qA,null):null),(null==a?void 0:a.length)&&x.createElement($A,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=NA,m.map((e=>e.map((e=>{var t;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(t=e.items)||void 0===t?void 0:t.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(h).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var m,h},jA=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map((e=>{var n;return[[e.groupHeading&&x.createElement(PA,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(n=e.items)||void 0===n?void 0:n.map((e=>x.createElement(FA,CA({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:r}))))].filter(Boolean)]})),zA={appear:200,enter:200,exit:100},$A=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:l})=>n.length?x.createElement(IA,CA({className:Rh,open:t,anchorEl:e,onClose:r,transitionDuration:zA,MenuListProps:{id:Ah}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map(((n,o)=>[jA({menuGroup:n,isSubMenu:t,handleHeadCellMenuKeyDown:r}),o<e.length-1?x.createElement(DA,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:n,isSubMenu:a,handleHeadCellMenuKeyDown:l})):null,BA={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},HA=(e,t)=>e.some((e=>t[e]>0));function VA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const WA=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){VA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function GA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const UA=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){GA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function YA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const KA=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){YA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function XA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const JA=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){XA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function ZA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const QA=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ZA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function eI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const tI=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){eI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function rI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const nI=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){rI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function oI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const iI=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){oI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function aI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const lI=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){aI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function sI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const uI=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){sI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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 cI=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const dI=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,setFocusOnColumnAdjuster:c})=>{const d=[];if(r[cI.SORTING]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({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);d.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"A")),n(!1)},icon:WA,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"D")),n(!1)},icon:JA,enabled:l,isActive:!!r&&"D"===i,autoFocus:!a&&l}]}])}if(e.isDim&&null!=i&&i.select){const e=[];r[cI.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:QA,enabled:!0}]}]),r[cI.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:uI,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectAll())},icon:tI,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectPossible())},icon:lI,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectAlternative())},icon:nI,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectExcluded())},icon:iI,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.clear())},icon:UA,enabled:s.canClearSelections}]}]]}]}]),e.length>0&&d.push(...e)}return r[cI.ADJUST_HEADER_SIZE]&&d.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),null==c||c(u)},icon:KA,enabled:!0}]}]),d},pI=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const m=Sh({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:b}=n,{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:E,updateSelectionActionsEnabledStatus:C}=(({headerData:e,app:t})=>{const[r,n]=S(null),[o,i]=S(BA);return w((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(n).catch(console.error)}),[t,e]),{fieldInstance:r,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:k((()=>i(BA)),[]),updateSelectionActionsEnabledStatus:k((t=>{const r=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));r&&i({canSelectAll:HA(["qOption","qAlternative","qExcluded","qDeselected"],r.qStateCounts),canClearSelections:HA(["qSelected"],r.qStateCounts),canSelectPossible:HA(["qOption"],r.qStateCounts),canSelectAlternative:HA(["qAlternative"],r.qStateCounts),canSelectExcluded:HA(["qAlternative","qExcluded"],r.qStateCounts)})}),[e.label,i])}})({headerData:n,app:null==d?void 0:d.app}),R=k((()=>{const e=g?{qLibraryId:g,type:"dimension"}:b;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:r}=c;t.__DO_NOT_USE__.popover(r.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},sortCriteria:c.sortCriteria})}}),[c,b,g]);w((()=>{e||(E(),null!=d&&d.model&&d.model.getLayout().then((e=>{C(e)})).catch((e=>console.error(e))))}),[e,E,C,null==d?void 0:d.model]);const A=k((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?x.createElement(RA,{rightAligned:"right"===h,shouldShowMenuIcon:s,className:Ch},s&&x.createElement(AA,{height:Eh,className:wh,"data-testid":wh,isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},x.createElement(wA,null)),x.createElement($A,{open:e,anchorEl:r.current,onClose:A,menuGroups:dI({headerData:n,translator:m,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:R,interactions:i,fieldInstance:v,selectionActionsEnabledStatus:y,anchorRef:r,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),handleHeadCellMenuKeyDown:a})):null},fI=e=>e.isDark?{background:e.color,borderColor:vp.DARK_MODE_BORDER,color:vp.DARK_MODE_TEXT,disabledColor:vp.DARK_MODE_DISABLED,iconColor:vp.DARK_MODE_TEXT}:{background:e.color,borderColor:vp.BORDER_MEDIUM,color:vp.TEXT,disabledColor:vp.DISABLED},mI=El(Wu,{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}`}))),hI=El(dp,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),gI=El(rc,{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)}))),bI=El(Gs)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),vI=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=E((()=>fI(n.background)),[n]);if(!r.active)return null;const a=o?x.createElement(mI,{footerStyle:i},e):null;return t?j.createPortal(e,t):a},yI=L({}),xI=()=>C(yI),SI=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=E((()=>fI(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=Sh({translator:d}),S=E((()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:m,layout:h,footerStyle:b,tabIndex:g,width:v})),[t,r,n,o,i,a,l,s,u,c,y,p,f,m,h,b,g,v]);return x.createElement(yI.Provider,{value:S},e)};let EI=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),wI=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});function CI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const RI=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){CI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"}))));function AI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const II=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){AI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"}))));function DI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const PI=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){DI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})))),LI={FirstPage:II,PreviousPage:RI,NextPage:qA,LastPage:PI,FirstPageRTL:PI,PreviousPageRTL:qA,NextPageRTL:RI,LastPageRTL:II},MI=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=xI(),u=LI[`${r}${"rtl"===n?"RTL":""}`];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:l.passive?a.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},kI=()=>{const{pageInfo:e,width:t}=xI(),r=0===e.page,{IconComponent:n,styledProps:o}=MI({type:EI.FirstPage,disabledCondition:r,pageNumber:0});return t<=wI.FirstPage?null:x.createElement(gI,o,x.createElement(n,{height:Eh}))},OI=(e,t,r=!1)=>{r&&e.key===Dh.TAB&&!e.shiftKey&&(sh(e),lh(e.target,t,!1))},_I=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=xI(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=MI({type:EI.LastPage,disabledCondition:i,pageNumber:r-1}),s=t.enabled?e=>OI(e,t,n):null;return o<=wI.LastPage?null:x.createElement(gI,CA({},l,{onKeyDown:s}),x.createElement(a,{height:Eh}))},TI=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=xI(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=MI({type:EI.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>wI.FirstPage&&o>wI.LastPage)&&t.enabled?e=>OI(e,t,n):null;return x.createElement(gI,CA({},l,{onKeyDown:s}),x.createElement(a,{height:Eh}))},qI=()=>{const{pageInfo:e}=xI(),t=0===e.page,{IconComponent:r,styledProps:n}=MI({type:EI.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return x.createElement(gI,n,x.createElement(r,{height:Eh}))},NI=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=xI(),{page:o,rowsPerPage:i}=r;if(t<=wI.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return x.createElement(bI,{variant:"caption"},a)},FI=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=xI(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return x.createElement(x.Fragment,null,x.createElement(bI,{variant:"caption",id:d},u,":"),x.createElement(hI,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:p},r))},jI=()=>{var e;const{pageInfo:t,isSelectionMode:r,totalColumnCount:n,width:o,handleChangeRowsPerPage:i}=xI();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!r&&o>wI.RowsPerPage&&n<=100)||void 0===t.rowsPerPageOptions)return null;const a=x.createElement(x.Fragment,null,t.rowsPerPageOptions.map((e=>x.createElement("option",{key:e,value:e},e))));return x.createElement(FI,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},zI=1e3,$I="…",BI=({totalPages:e,page:t})=>{const r=Math.min(e,zI),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-zI):0,a=Array.from(Array(r).keys()).map((e=>{const t=e+i;return x.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(x.createElement("option",{key:"startMoreOptions",value:$I,disabled:!0},$I)),o<e-1&&a.push(x.createElement("option",{key:"endMoreOptions",value:$I,disabled:!0},$I)),x.createElement(x.Fragment,null,a)},HI=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=xI(),{page:o}=e;if(t<=wI.SelectPage)return null;const i=x.createElement(BI,{totalPages:r,page:o});return x.createElement(FI,{name:"SelectPage",value:o,options:i,handleChange:e=>n(+e.target.value)})};var VI=_((e=>x.createElement(SI,e,x.createElement(jI,null),x.createElement(HI,null),x.createElement(NI,null),x.createElement(kI,null),x.createElement(qI,null),x.createElement(TI,null),x.createElement(_I,null))));const WI=e=>x.createElement(vI,e,x.createElement(VI,e)),GI=IE(yC,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.color}))),UI=IE(yC,{shouldForwardProp:e=>"lines"!==e&&"allIconsDisabled"!==e&&"headCell"!==e&&"isPagination"!==e&&"wordBreak"!==e&&"virtualizedCell"!==e})((({lines:e,wordBreak:t,allIconsDisabled:r=!1,headCell:n=!1,isPagination:o=!1,virtualizedCell:i=!1})=>({lineHeight:"calc(4/3)",fontSize:"inherit",...(n||t||1===e)&&{height:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:n&&o?"break-word":"break-all",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",...n&&{whiteSpace:r||i?"normal":"nowrap"}}}))),YI=IE(yC)({overflow:"hidden",textOverflow:"ellipsis"});function KI(e,t){const r=M(!1);w((()=>{r.current?e():r.current=!0}),t)}const XI=(e,t)=>{var r;return null===(r=e.getElementsByClassName("sn-table-row")[t[0]])||void 0===r?void 0:r.getElementsByClassName("sn-table-cell")[t[1]]},JI=e=>e.querySelector("td[tabindex='0'], th[tabindex='0']"),ZI=e=>{const t=e.nextElementSibling;var r;return t?"HR"===t.tagName?ZI(t):t:null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[0]},QI=e=>{const t=e.previousElementSibling;if(!t){var r,n;const t=null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r.length;return null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[t-1]}return"HR"===t.tagName?QI(t):t},eD=e=>{setTimeout((()=>{var t;const r=null===(t=e.current)||void 0===t||null===(t=t.closest(".sn-table-cell"))||void 0===t?void 0:t.querySelector(`.${Ph}`);null==r||r.setAttribute("tabIndex","0"),null==r||r.focus()}),0)},tD=({focusType:e,cell:t})=>{if(t)switch(e){case JE.FOCUS:t.focus(),t.setAttribute("tabIndex","0");break;case JE.FOCUS_BUTTON:const e=t.querySelector(".sn-table-head-label");null==e||e.focus();break;case JE.BLUR:t.blur(),t.setAttribute("tabIndex","-1");break;case JE.ADD_TAB:t.setAttribute("tabIndex","0");break;case JE.REMOVE_TAB:t.setAttribute("tabIndex","-1")}},rD=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o})=>{tD({focusType:JE.REMOVE_TAB,cell:e.currentTarget});const i=((e,t,r,n={top:0,bottom:0})=>{const o=n.top>0,i=n.top,a=t.getElementsByClassName("sn-table-row").length-1-n.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[s,u]=r;switch(e.key){case XE.DOWN:s<a&&s++;break;case XE.UP:s>i&&s--;break;case XE.RIGHT:if(o)break;u<l?u++:s<a&&(s++,u=0);break;case XE.LEFT:if(o)break;u>0?u--:s>0&&(s--,u=l);break;case XE.HOME:(OR(e)||o)&&(s=i),o||(u=0);break;case XE.END:(OR(e)||o)&&(s=a),o||(u=l);break;case XE.PAGE_DOWN:s=Math.min(a,s+10);break;case XE.PAGE_UP:s=Math.max(i,s-10)}return[s,u]})(e,t,r,o),a=XI(t,i);return tD({focusType:JE.FOCUS,cell:a}),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(null==r||!r.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{var i;const e=t.getElementsByClassName("sn-table-head-cell")[0],a=null===(i=t.getElementsByClassName("sn-table-row")[n])||void 0===i?void 0:i.getElementsByClassName("sn-table-cell")[o];if(!a||!e)return;if(a.offsetTop-e.offsetHeight<r.scrollTop){const t=r.scrollTop-a.offsetHeight-e.offsetHeight;r.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(i,t),n(i),{nextCell:a,nextCellCoord:i}},nD=(e,t,r,n)=>{var o;(tD({focusType:JE.REMOVE_TAB,cell:JI(t)}),r(e),n.enabled&&!n.active)?null===(o=n.focus)||void 0===o||o.call(n):tD({focusType:JE.ADD_TAB,cell:XI(t,e)})},oD=(e,t,r)=>{w((()=>{const n=e.current;if(!n)return;const o=e=>((e,t,r)=>{const n=e.currentTarget,o=e.relatedTarget,i=!(null==n||!n.contains(o)),a=null==o?void 0:o.closest(`.${Rh}`);if(r.enabled&&!i&&!a&&!t.current&&n){var l;const e=n.querySelector(".sn-table-announcer-1"),t=n.querySelector(".sn-table-announcer-2");e&&t&&(e.innerHTML="",t.innerHTML=""),null===(l=r.blur)||void 0===l||l.call(r,!1)}})(e,t,r);return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}}),[e,t,r])},iD=(e,t,r)=>{w((()=>{const n=e.current;if(!n)return;const o=e=>((e,t,r)=>{if(0===e.deltaX)return;e.stopPropagation();const n=r.scrollWidth-r.offsetWidth;let{scrollLeft:o}=r,i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(n,i)):Math.max(0,Math.min(n,i)))})(e,"rtl"===t,n),i=e=>{var t;r.scrollLeft=(null===(t=e.currentTarget)||void 0===t?void 0:t.scrollLeft)||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}}),[e,t,r])},aD=(e,t=!1)=>e.key===XE.ESC&&!t||(e.key===XE.LEFT||e.key===XE.RIGHT)&&_R(e),lD=e=>{var t;const{key:r,currentTarget:n}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:n;if(r===XE.DOWN||r===XE.UP){const t=e=>r===XE.DOWN?ZI(e):QI(e);sh(e);let n=t(o);for(;n;){if("true"!==n.ariaDisabled){n.focus();break}n=t(n)}}},sD=({evt:e,rootElement:t,cell:r,selectionDispatch:n,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,keyboard:l,paginationNeeded:s,totalsPosition:u,selectionsAPI:c})=>{if(e.currentTarget.classList.contains(YE.Disabled))return void sh(e);const d=null==c?void 0:c.isModal();if(!aD(e,d))switch(e.key){case XE.SPACE:sh(e),r.isSelectable&&o&&n({type:KE.SELECT,payload:{cell:r,evt:e,announce:a}});break;case XE.ENTER:sh(e),d&&(null==c||c.confirm(),a({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case XE.ESC:sh(e),null==c||c.cancel(),a({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case XE.TAB:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{(null==t?void 0:t.enabled)&&r&&(e.shiftKey||!e.shiftKey&&!n)&&(sh(e),lh(e.currentTarget,t,e.shiftKey))})({evt:e,keyboard:l,isSelectionMode:d,paginationNeeded:s});break;case XE.C:sh(e),OR(e)&&Th(e.currentTarget);break;default:qR(e.key)&&(sh(e),(({evt:e,rootElement:t,cell:r,selectionDispatch:n,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:l,isSelectionMode:s})=>{const u=l.atTop?2:1,c=[r.pageRowIdx+u,r.pageColIdx],d={top:s?u:0,bottom:s&&l.atBottom?1:0},{nextCell:p,nextCellCoord:f}=rD({evt:e,rootElement:t,cellCoord:c,setFocusedCellCoord:i,allowedRows:d});f[0]!==c[0]&&(((e,t,r)=>t.shiftKey&&e&&r.isSelectable)(o,e,r)?n({type:KE.SELECT_MULTI_ADD,payload:{cell:r,evt:e,announce:a}}):((e,t,r=!1)=>{r&&t&&e(t.classList.contains("selected")?{keys:["SNTable.SelectionLabel.SelectedValue"]}:{keys:["SNTable.SelectionLabel.NotSelectedValue"]})})(a,p,s))})({evt:e,rootElement:t,cell:r,selectionDispatch:n,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:u,isSelectionMode:d}))}},uD=e=>{const{layout:t,rect:r,theme:n}=gA(pA,(e=>e.baseProps)),[o,i]=S(0),[a,l]=S(0);return T((()=>{if(e.current){var t;const{offsetWidth:r=0,offsetHeight:n=0,clientWidth:o=0,clientHeight:a=0}=null!==(t=e.current)&&void 0!==t?t:{},s=n-a;l(r-o),i(s)}}),[e,t,r,n]),{xScrollbarWidth:o,yScrollbarWidth:a}},cD=IE("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),dD=IE(rR,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.active?"auto":"hidden",border:"none"}))),pD=IE(jC,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),fD=()=>ea.jsxs(ea.Fragment,{children:[ea.jsx(cD,{className:"sn-table-announcer-1","aria-live":"polite","aria-atomic":"true"}),ea.jsx(cD,{className:"sn-table-announcer-2","aria-live":"polite","aria-atomic":"true"})]}),mD=e=>e.stopPropagation(),hD=({href:e,text:t,interactions:r,color:n})=>x.createElement(jc,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:mD,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}},t),gD=({viewService:e,isImagesEnabled:t,styleService:r})=>{var n,o;let i=null===(n=e.viewState)||void 0===n?void 0:n.maxLineCount;var a;t&&(i=null!==(a=i)&&void 0!==a?a:r.grid.lineClamp);return{maxNbrLines:null!==(o=i)&&void 0!==o?o:3,isStaticNbrOfLines:void 0!==i}},bD=({children:e,fontSize:t="",wordBreak:r=!1,isPagination:n=!1,virtualizedCell:o=!1,lines:i=3,headCell:a=!1,allIconsDisabled:l=!1,indicatorColor:s=""})=>{if(a)return ea.jsx(UI,{component:"span",className:"sn-table-cell-text",lines:i,isPagination:n,headCell:!0,allIconsDisabled:l,children:e});const u=rA(t),c=ea.jsx(UI,{component:"span",className:"sn-table-cell-text",wordBreak:r,lines:i,virtualizedCell:o,children:e});return r?c:ea.jsx(YI,{color:s,minHeight:u*RR,maxHeight:u*RR*i,children:c})},vD=e=>{let t="center",r="center";return"flex-start"===(null==e?void 0:e.vertical)?t="top":"flex-end"===(null==e?void 0:e.vertical)&&(t="bottom"),"flex-start"===(null==e?void 0:e.horizontal)?r="left":"flex-end"===(null==e?void 0:e.horizontal)&&(r="right"),`${r} ${t}`},yD=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},xD=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{url:o,text:i,imageSize:a,resolvedImagePosition:l}=e,s="fitHeight"===a,u=ea.jsx("img",{src:o,alt:i,style:{...t,width:s?"auto":"100%",height:"100%",maxHeight:r,objectFit:yD(a),objectPosition:vD(l),overflow:"hidden"}});var c;return n?ea.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:s?r:"100%",overflow:"hidden",display:"flex",justifyContent:s?null==e||null===(c=e.resolvedImagePosition)||void 0===c?void 0:c.horizontal:void 0},children:u}):u};function SD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ED=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){SD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M9 7V2H7v5H2v2h5v5h2V9h5V7z"}))));function wD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const CD=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){wD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m8 0 7 4-7 4-7-4zm1 16v-6l6-3.5V13zm-8-3V6.5L7.1 10v6z"}))));function RD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const AD=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){RD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function ID(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const DD=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ID(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}),x.createElement("use",{fillRule:"evenodd"}))));function PD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const LD=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){PD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function MD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const kD=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){MD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function OD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const _D=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){OD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function TD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const qD=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){TD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M2 7h12v2H2z"}))));function ND(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const FD=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ND(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function jD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const zD=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){jD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function $D(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const BD=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){$D(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function HD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const VD=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){HD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"}))));function WD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const GD=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){WD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function UD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const YD=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){UD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function KD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const XD=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){KD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function JD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZD(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const QD={m:VD,"ï":BD,R:O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){JD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M13.6 11H2.4a.2.2 0 0 1-.16-.32l5.6-7.467a.2.2 0 0 1 .32 0l5.6 7.467a.2.2 0 0 1-.16.32"})))),S:GD,T:YD,U:XD,P:zD,Q:_D,"è":O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){ZD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M15.738 13.5c.5.8.1 1.5-.8 1.5h-13.9c-1 0-1.3-.7-.8-1.5l6.8-11.9c.5-.8 1.3-.8 1.8 0zm-6.8-2c0-.3-.2-.5-.5-.5h-1c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5zm0-6c0-.3-.2-.5-.5-.5h-1c-.3 0-.5.2-.5.5v4c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5z"})))),"¢":LD,"©":DD,"23F4":kD,2013:CD,"&":FD,add:ED,"minus-2":qD,dot:AD},eP=({size:e,iconKey:t,color:r})=>{const n=t&&QD[t]||void 0;return n&&ea.jsx(n,{style:{color:r,height:e}})},tP=({representation:e})=>{var t;const{text:r,indicator:n}=e,{showTextValues:o,position:i,applySegmentColors:a}=null!=n?n:{},l=null==e||null===(t=e.indicatorConditionalColoring)||void 0===t?void 0:t.segments.paletteColors[0].icon,{styleService:s,theme:u}=gA(pA,(e=>e.baseProps)),c=rA(s.measure.values.fontSize),d=((e,t)=>{var r;const n=null==e||null===(r=e.indicatorConditionalColoring)||void 0===r?void 0:r.segments.paletteColors[0],{color:o,index:i}=n||{index:6};return UR("",t,{color:o,index:i})})(e,u);return o?ea.jsxs("div",{"data-key":"representation-indicator",style:{display:"grid",gridTemplateColumns:"1fr auto",gap:"2px",alignItems:"center"},children:["left"===i&&eP({size:c,iconKey:l,color:d}),ea.jsx(bD,{indicatorColor:a?d:void 0,children:r}),"right"===i&&eP({size:c,iconKey:l,color:d})]}):eP({size:c,iconKey:l,color:d})},rP=({cell:e,style:t,maxImageHeight:r,virtualizedCell:n})=>{const{flags:o}=gA(pA,(e=>e.env)),{interactions:i,viewService:a,styleService:l}=gA(pA,(e=>e.baseProps)),s=gA(pA,(e=>{var t;return null===(t=e.selectionState.api)||void 0===t?void 0:t.isActive()})),{maxNbrLines:u}=gD({viewService:a,styleService:l,isImagesEnabled:o.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")});let c=e.representation.text;return e.representation.type!==gb.Link||s||(c=ea.jsx(hD,{href:e.representation.url,text:e.representation.text,interactions:i,color:t.cellForegroundColor})),e.representation.type===gb.Image?ea.jsx(xD,{representation:e.representation,textStyle:t,maxImageHeight:r,wrapInContainer:!n}):e.isNull||e.representation.type!==gb.Indicator?ea.jsx(bD,{wordBreak:!e.isNumeric,fontSize:t.fontSize,lines:u,virtualizedCell:n,children:c}):ea.jsx(tP,{representation:e.representation})},nP=({selectionsAPI:e,selectionDispatch:t,setShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{w((()=>{const i=()=>{t({type:KE.RESET})},a=()=>{t({type:KE.CLEAR})},l=()=>{var e;if(null!==(e=o.current)&&void 0!==e&&e.contains(document.activeElement))r();else if(n.enabled){var t;null===(t=n.blur)||void 0===t||t.call(n,!0)}i()};return null==e||e.on("deactivated",i),null==e||e.on("canceled",i),null==e||e.on("confirmed",l),null==e||e.on("cleared",a),()=>{null==e||e.removeListener("deactivated",i),null==e||e.removeListener("canceled",i),null==e||e.removeListener("confirmed",l),null==e||e.removeListener("cleared",a)}}),[e,n,t,r,o])},oP=e=>parseInt(null!=e?e:PR.fontSize,10)*RR,iP=({maxNbrLines:e,isStaticNbrOfLines:t,lineHeight:r})=>t?r*e+8+1:void 0,aP=(e,t,r,n)=>({handleMouseDown:n=>{null==e||e(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>r({type:KE.SELECT_MULTI_END});r({type:KE.SELECT_MOUSE_DOWN,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:KE.SELECT_MULTI_ADD,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:KE.SELECT_MOUSE_UP,payload:{cell:t,evt:e,announce:n}})}}),lP=IE(GC,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),sP=IE(hR,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e})((({hover:e,hoverColors:t})=>({"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}}))),uP=IE(ZC,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...PR,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}))),cP=IE(ZC,{shouldForwardProp:e=>"atTop"!==e&&"headRowHeight"!==e&&"totalsStyle"!==e})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...PR,...e,fontWeight:IR,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t&&r,bottom:!t&&0,verticalAlign:t?"bottom":"top"})));function dP(e){return t=>{const{cell:r,styling:n,announce:o,onMouseDown:i}=t,{styleService:a}=gA(pA,(e=>e.baseProps)),l=gA(pA,(e=>FR(r,e.selectionState))),s=gA(pA,(e=>e.selectionDispatch)),{handleMouseDown:u,handleMouseOver:c,handleMouseUp:d}=aP(i,r,s,o),p=function(e,t,r){return t===YE.Selected?{...e,...r}:t===YE.Disabled?{...e,background:`${CR.DISABLED_BACKGROUND}, ${e.background}`}:e}(n,l,a.selectedColors);return ea.jsx(e,{...t,styling:p,onMouseUp:d,onMouseDown:u,onMouseOver:c,cellSelectionState:l})}}function pP(e,t,r){let n=(o=uP,e=>{const{styling:{selectedCellClass:t,...r},component:n,align:i,children:a,scope:l,tabIndex:s,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,title:m,cellSelectionState:h}=e;return ea.jsx(o,{cellStyle:r,component:n,scope:l,align:i,tabIndex:s,className:`sn-table-cell ${h} ${Ih}`,title:m,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,children:a})});var o;return t&&(n=dP(n)),e&&(n=function(e,t){return r=>{const{cell:n,column:o,styling:i}=r,a=E((()=>tA(i,n.qAttrExps,o.qAttrExprInfoIDs,t)),[i,n.qAttrExps,o.qAttrExprInfoIDs]);return ea.jsx(e,{...r,styling:a})}}(n,r)),n}const fP=(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}),mP=()=>{const{columns:e,totalsPosition:t,rows:r}=gA(pA,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,styleService:a,interactions:l}=gA(pA,(e=>e.baseProps)),s=gA(pA,(e=>e.headRowHeight)),u=gA(pA,(e=>e.setFocusedCellCoord));return ea.jsx(hR,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,c)=>{const d=[t.atTop?1:r.length+1,c];return ea.jsx(cP,{totalsStyle:{...a.totalRow,...fP(a,t,!1)},headRowHeight:s,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${Ih}`,tabIndex:-1,title:l.passive?e.totalInfo:void 0,onKeyDown:e=>{((e,t,r,n,o=!1)=>{if(o)sh(e);else if(!aD(e))switch(e.key){case XE.C:sh(e),OR(e)&&Th(e.currentTarget);break;case XE.SPACE:e.preventDefault();break;default:qR(e.key)&&(sh(e),rD({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n}))}})(e,n,d,u,null==o?void 0:o.isModal())},onMouseDown:()=>{nD(d,n,u,i)},children:ea.jsx(bD,{wordBreak:!e.isTotalNumeric,fontSize:a.totalRow.fontSize,children:e.totalInfo})},e.id)}))})};var hP=_(mP);const gP=({setShouldRefocus:e,tableWrapperRef:t,announce:r})=>{var n;const{rows:o,columns:i,paginationNeeded:a,totalsPosition:l}=gA(pA,(e=>e.tableData)),{selectionsAPI:s,rootElement:u,keyboard:c,layout:d,interactions:p,styleService:f,viewService:m}=gA(pA,(e=>e.baseProps)),h=gA(pA,(e=>e.setFocusedCellCoord)),g=gA(pA,(e=>e.selectionDispatch)),{flags:b}=gA(pA,(e=>e.env)),v=!!p.active&&!!p.select,y=JSON.stringify(i.map((e=>e.qAttrExprInfoIDs))),x=E((()=>JSON.parse(y).map((e=>pP(e.some((e=>["cellBackgroundColor","cellForegroundColor",b.isEnabled("CLIENT_IM_6573_TEXT_STYLE")&&"textStyleExpression"].includes(e))),v,b)))),[y,v,b]),S=!(null===(n=XR(d))||void 0===n||null===(n=n.content)||void 0===n||!n.hoverEffect),{maxNbrLines:w,isStaticNbrOfLines:C}=gD({viewService:m,styleService:f,isImagesEnabled:b.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")}),R=oP(f.dimension.values.fontSize),A=oP(f.measure.values.fontSize),I=Math.max(R,A),D=iP({maxNbrLines:w,isStaticNbrOfLines:C,lineHeight:I});return nP({keyboard:c,selectionDispatch:g,selectionsAPI:s,setShouldRefocus:e,tableWrapperRef:t}),ea.jsxs(lP,{lastRowBottomBorder:f.grid.lastRowBottomBorder,children:[l.atTop?ea.jsx(hP,{}):void 0,o.map(((e,t)=>ea.jsx(sP,{hoverColors:f.grid.hoverColors,hover:S,tabIndex:-1,className:"sn-table-row sn-table-data-row",rowindex:t,height:D,children:i.map(((t,n)=>{const{id:o}=t,i=e[n],d=x[n];let m=t.isDim?f.dimension.values:f.measure.values;i.isNull&&(m={...m,...f.nullValues}),!b.isEnabled("CLIENT_IM_6696_INDICATORS")||t.isDim||i.isNull||(i.representation.indicatorConditionalColoring=t.conditionalColoring);const y=tA(m,i.qAttrExps,t.qAttrExprInfoIDs,b);return d&&ea.jsx(d,{scope:0===n?"row":void 0,component:0===n?"th":void 0,cell:i,column:t,align:i.align,styling:{...m,borderColor:f.grid.border},tabIndex:-1,announce:r,title:p.passive?i.representation.text:void 0,onKeyDown:e=>{sD({evt:e,rootElement:u,selectionsAPI:s,cell:i,selectionDispatch:g,isSelectionsEnabled:v,setFocusedCellCoord:h,announce:r,keyboard:c,paginationNeeded:a,totalsPosition:l})},onKeyUp:e=>((e,t)=>{e.key===XE.SHIFT&&t({type:KE.SELECT_MULTI_END})})(e,g),onMouseDown:()=>((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,l=o.atTop?i+2:i+1;nD([l,a],t,r,n)})(i,u,h,c,l),children:ea.jsx(rP,{cell:i,style:y,maxImageHeight:C?I*w:I})},o)}))},`row-${t}`))),l.atBottom?ea.jsx(hP,{}):void 0]})};var bP=_(gP);const vP=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:l,translator:s}=gA(pA,(e=>e.baseProps)),u=gA(pA,(e=>e.columnWidths)),c=gA(pA,(e=>e.setColumnWidths));if(!l.active)return null;return ea.jsx(SA,{columnWidth:u[o],isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{null==r||r();const t=[...u];t[o]=e,c(t)},confirmWidthCallback:t=>{a(t,e)},handleBlur:e=>(e=>{e.setAttribute("tabIndex","-1");const t=e.closest(".sn-table-cell");tD({focusType:JE.FOCUS,cell:t})})(e.currentTarget),setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:s,columnLabel:i}})};function yP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const xP=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){yP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function SP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const EP=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){SP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("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"}))));function wP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const CP=O(((e,t)=>x.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){wP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),x.createElement("use",{fillRule:"evenodd"})))),RP=IE("div")({position:"absolute",left:0,bottom:0}),AP=IE(yC,{shouldForwardProp:e=>!["textAlign"].includes(e)})((({textAlign:e,theme:t})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center"})));IE("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1});const IP=IE(yC,{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},[`& .${Ch}`]:{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:2},[`& .${Ch}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),DP=IE(yC,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})));IE(yC,{shouldForwardProp:e=>"isVisible"!==e&&"rightAligned"!==e})((({rightAligned:e})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:"24px",display:"flex"}))),IE(kC)((({theme:e})=>({borderRadius:"4px",margin:e.spacing(0,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"}}))),IE("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),IE(AC)((({theme:e})=>({marginRight:e.spacing(1.5),lineHeight:0}))),IE("div")((({theme:e})=>({height:"350px",boxSizing:"border-box",background:e.palette.common.white})));const PP=IE(ZC,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...PR,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom","&&:focus-visible, &&:hover":{background:t.active?r:n}})));IE("div")({display:"flex",alignItems:"center"});const LP=IE("span",{shouldForwardProp:e=>"align"!==e})((({align:e})=>({minWidth:AR,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),MP=({column:e,isInteractionEnabled:t,open:r,setOpen:n,allColumnsIconVisibilityStatusRef:o,isPagination:i})=>{const{translator:a,changeSortOrder:l,interactions:s,embed:u,app:c,model:d,styleService:p}=gA(pA,(e=>e.baseProps)),f=gA(pA,(t=>t.columnWidths[e.pageColIdx])),m=M(null),h=M(null),{getHeadCellsIconsVisibilityStatus:g,allIconsDisabled:b}=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=gh({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:IR}),o=k((()=>{let e=!1,o=!1,i=!1;const a=t.isLocked,l=t.isActivelySorted,s=r-25,u=a?20:0,c=l?20:0;let d=n(t.label);return a&&d+u<=s&&(i=!0,d+=u,l&&d+c<=s&&(o=!0,d+=c)),!a&&l&&d+c<=s&&(o=!0,d+=c),d+24<=s&&(e=!0,d+=24),{shouldShowMenuIcon:e,shouldShowSortIcon:o,shouldShowLockIcon:i}}),[t.isLocked,t.label,t.isActivelySorted,r,n]);return{getHeadCellsIconsVisibilityStatus:o,allIconsDisabled:Object.values(o()).every((e=>!1===e))}})({styleService:p,column:e,columnWidth:f}),v=g(),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n})=>{const o="A"===e?ea.jsx(xP,{height:AR,"data-testid":"head-cell-sort-ascending-icon"}):ea.jsx(EP,{height:AR,"data-testid":"head-cell-sort-descending-icon"}),i=r?ea.jsx(LP,{align:t,children:o}):void 0,a=n?ea.jsx(DP,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:ea.jsx(CP,{height:AR,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:i,LockIcon:a}:{EndIcon:i,LockIcon:a}})(e,v);o&&(o.current[e.pageColIdx]=v);return ea.jsxs(IP,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:e.headTextAlign,children:[S,ea.jsxs(AP,{className:"sn-table-head-label",textAlign:e.headTextAlign,children:[y,ea.jsx(bD,{allIconsDisabled:b,isPagination:i,virtualizedCell:!i,headCell:!0,children:e.label}),x]}),t&&ea.jsxs(ea.Fragment,{children:[ea.jsx(pI,{headerData:e,translator:a,anchorRef:m,handleHeadCellMenuKeyDown:lD,menuAvailabilityFlags:{[cI.SORTING]:!0,[cI.SEARCHING]:!0,[cI.SELECTIONS]:!0,[cI.ADJUST_HEADER_SIZE]:!0},open:r,setOpen:n,interactions:s,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),l(e,r))},searchRelatedArgs:{embed:u,listboxRef:h},selectionRelatedArgs:{app:c,model:d},adjustHeaderSizeRelatedArgs:{setFocusOnColumnAdjuster:eD},shouldShowMenuIcon:v.shouldShowMenuIcon}),ea.jsx(RP,{ref:h}),ea.jsx(RP,{ref:m})]})]})},kP=({isInteractionEnabled:e,columnsData:t})=>{const[r,n]=S(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=(e=>{const[t,r]=S(!1);return yh((()=>{r(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:r}})([t]);return{open:r,setOpen:n,handleOpenMenu:t=>e&&!(e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(Ph)})(t)&&!o&&n(!0),setIsAdjustingWidth:i}},OP=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a}=gA(pA,(e=>e.baseProps)),{columns:l,totalsPosition:s}=gA(pA,(e=>e.tableData)),u=gA(pA,(e=>e.columnWidths[t])),c=gA(pA,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),d=gA(pA,(e=>e.setFocusedCellCoord)),p=gA(pA,(({focusedCellCoord:[e,r]})=>0===e&&r===t)),f=!!n.active&&!c,{open:m,setOpen:h,handleOpenMenu:g,setIsAdjustingWidth:b}=kP({isInteractionEnabled:f,columnsData:l}),v=e.isActivelySorted?ZE[e.sortDirection]:void 0,y=m?Ah:void 0,x=m?"true":void 0,S=t===r-1,E=[0,e.pageColIdx],w={width:u-(S?8:9),zIndex:l.length-t},C=p&&0===t&&!i.enabled&&f?0:-1;return ea.jsxs(PP,{headerStyle:{...a.header,...fP(a,s,!0)},background:m?a.headerMenuActiveBackground:a.header.background,hoverBackground:a.headerMenuHoverBackground,interactions:n,style:w,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${Ih}`,tabIndex:C,title:n.passive?e.label:void 0,onKeyDown:e=>(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,isInteractionEnabled:o,handleOpenMenu:i})=>{if(o){if(!aD(e))switch(e.key){case XE.C:sh(e),OR(e)&&Th(e.currentTarget);break;case XE.ENTER:case XE.SPACE:i&&i(e);break;default:qR(e.key)&&(sh(e),rD({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n}))}}else sh(e)})({evt:e,rootElement:o,cellCoord:E,setFocusedCellCoord:d,isInteractionEnabled:f,handleOpenMenu:g}),onMouseDown:e=>(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{var a;e.preventDefault(),i&&(n(r),o.enabled&&!o.active?null===(a=o.focus)||void 0===a||a.call(o):tD({focusType:JE.FOCUS,cell:XI(t,r)}))})({evt:e,rootElement:o,cellCoord:E,setFocusedCellCoord:d,keyboard:i,isInteractionEnabled:f}),onClick:g,"aria-sort":v,"aria-controls":y,"aria-expanded":x,"aria-haspopup":"true",children:[ea.jsx(MP,{column:e,isInteractionEnabled:f,open:m,setOpen:h,isPagination:!0}),ea.jsx(vP,{column:e,isLastColumn:S,setIsAdjustingWidth:b})]},e.id)},_P=()=>{var e;const{columns:t}=gA(pA,(e=>e.tableData)),{styleService:r,viewService:n}=gA(pA,(e=>e.baseProps)),o=gA(pA,(e=>e.setHeadRowHeight)),i=gA(pA,(e=>e.columnWidths)),a=M(null);return w((()=>{a.current&&o(a.current.clientHeight)}),[r.header.fontSize,i,o]),null!==(e=n.viewState)&&void 0!==e&&e.skipHeader?null:ea.jsx(sR,{children:ea.jsx(hR,{ref:a,className:"sn-table-row sn-table-head-row",children:t.map(((e,r)=>ea.jsx(OP,{column:e,columnIndex:r,columnsLength:t.length},e.id)))})})};var TP=_(_P);const qP=e=>{var t,r;const{pageInfo:n,setPageInfo:o,direction:i,footerContainer:a,announce:l}=e,{page:s,rowsPerPage:u}=n,{totalColumnCount:c,totalRowCount:d,totalPages:p,paginationNeeded:f,rows:m,columns:h,totalsPosition:g}=gA(pA,(e=>e.tableData)),{rootElement:b,keyboard:v,translator:y,theme:x,interactions:S,styleService:E,viewService:C,layout:R,rect:A}=gA(pA,(e=>e.baseProps)),I=gA(pA,(e=>e.focusedCellCoord)),D=gA(pA,(e=>e.setFocusedCellCoord)),P=gA(pA,(e=>e.setYScrollbarWidth)),L=gA(pA,(e=>e.showRightBorder)),O=gA(pA,(e=>e.selectionDispatch)),_=gA(pA,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),T=M(!1),q=M(null),N=M(null),{yScrollbarWidth:F}=uD(q),j=`${y.get("SNTable.Accessibility.RowsAndColumns",[String(m.length),String(h.length)])} ${y.get("SNTable.Accessibility.NavigationInstructions")}`,z=Ey(R,C),$=z&&null!==(t=C.scrollLeft)&&void 0!==t?t:0,B=z&&null!==(r=C.rowPartialHeight)&&void 0!==r?r:0,H=k((()=>{T.current=b.getElementsByTagName("table")[0].contains(document.activeElement)}),[b]),V=k((e=>{o({...n,page:e}),l({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),p.toString()]],politeness:"assertive"})}),[n,o,p,l]),W=k((e=>{o({...n,page:0,rowsPerPage:e}),l({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[l,n,o]);return oD(N,T,v),iD(q,i,C),(()=>{const{rootElement:e,keyboard:t}=gA(pA,(e=>e.baseProps)),r=gA(pA,(e=>e.focusedCellCoord));yh((()=>{const n=t.active?JE.FOCUS:JE.BLUR,o=t.active?XI(e,r):JI(e);tD({focusType:n,cell:o})}),[t.active,e])})(),w((()=>{const e=q.current;e&&(e.scrollLeft=$,e.scrollTop=B)}),[n,d,$,B]),KI((()=>{(({focusedCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a,totalsPosition:l})=>{tD({focusType:JE.REMOVE_TAB,cell:JI(t)});const s=[l.atTop?2:1,e[1]],u=n?s:Rw;if(o(u),!(e=>!e.enabled||e.active)(i))return;const c=r.current?JE.FOCUS:JE.ADD_TAB;r.current=!1;const d=XI(t,u);if(tD({focusType:c,cell:d}),n){var p;const e=null==d||null===(p=d.classList)||void 0===p?void 0:p.contains("selected");a({keys:[`${null==d?void 0:d.textContent},`,e?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.NotSelectedValue"]})}})({focusedCellCoord:I,rootElement:b,shouldRefocus:T,setFocusedCellCoord:D,isSelectionMode:_,keyboard:v,announce:l,totalsPosition:g})}),[m.length,d,c,s]),KI((()=>{P(F)}),[F]),KI((()=>{O({type:KE.UPDATE_PAGE_ROWS,payload:{pageRows:m}})}),[m]),ea.jsxs(GI,{ref:N,background:x.background,dir:i,onKeyDown:e=>{(({evt:e,totalRowCount:t,page:r,rowsPerPage:n,handleChangePage:o,setShouldRefocus:i,keyboard:a,isSelectionMode:l})=>{if(_R(e)){sh(e);const a=Math.ceil(t/n)-1;e.key===XE.RIGHT&&r<a?(i(),o(r+1)):e.key===XE.LEFT&&r>0&&(i(),o(r-1))}else if(e.key===XE.ESC&&a.enabled&&!l){var s;sh(e),null===(s=a.blur)||void 0===s||s.call(a,!0)}else TR(e.key)&&sh(e)})({evt:e,totalRowCount:d,page:s,rowsPerPage:u,handleChangePage:V,setShouldRefocus:H,keyboard:v,isSelectionMode:_})},"data-testid":"sn-table",children:[ea.jsx(fD,{}),ea.jsx(dD,{ref:q,className:"sn-table-container",fullHeight:a||!S.active||!f,interactions:S,tabIndex:-1,role:"application","data-testid":"table-container",children:ea.jsxs(pD,{stickyHeader:!0,"aria-label":j,borderRight:L?`1px solid ${E.grid.border}`:void 0,children:[ea.jsx(TP,{}),ea.jsx(bP,{...e,setShouldRefocus:H,tableWrapperRef:N})]})}),ea.jsx(WI,{footerContainer:a,pageInfo:n,paginationNeeded:f,theme:x,totalRowCount:d,totalColumnCount:c,totalPages:p,keyboard:v,translator:y,interactions:S,rect:A,layout:R,handleChangePage:V,handleChangeRowsPerPage:W,isSelectionMode:_})]})};var NP=_(qP);function FP(){return FP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},FP.apply(this,arguments)}function jP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zP(e,t){return zP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zP(e,t)}function $P(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zP(e,t)}var BP=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function HP(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||BP(n)&&BP(o)))return!1;var n,o;return!0}function VP(e,t){var r;void 0===t&&(t=HP);var n,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}function WP(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}var GP="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function UP(e){cancelAnimationFrame(e.id)}function YP(e,t){var r=GP();var n={id:requestAnimationFrame((function o(){GP()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var KP=-1;function XP(e){if(void 0===e&&(e=!1),-1===KP||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),KP=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return KP}var JP=null;function ZP(e){if(void 0===e&&(e=!1),null===JP||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?JP="positive-descending":(t.scrollLeft=1,JP=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),JP}return JP}var QP=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function eL(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=m(n.props,jP(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:jP(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=VP((function(e,t,r,o,i,a,l,s){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),n._callOnScroll=void 0,n._callOnScroll=VP((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,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=n._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=r(n.props,t,n._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(n.props,e,n._instanceProps),height:c(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=VP((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,l=t.scrollHeight,s=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(ZP()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-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&&UP(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=YP(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}$P(t,e),t.getDerivedStateFromProps=function(e,t){return tL(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=XP();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=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?s(this.props,n,r,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(ZP()){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&&UP(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?QP:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],w=S[1],C=this._getVerticalRangeToRender(),A=C[0],I=C[1],D=[];if(n>0&&g)for(var P=A;P<=I;P++)for(var L=E;L<=w;L++)D.push(R(t,{columnIndex:L,data:d,isScrolling:v?x:void 0,key:f({columnIndex:L,data:d,rowIndex:P}),rowIndex:P,style:this._getItemStyle(P,L)}));var M=a(this.props,this._instanceProps),k=l(this.props,this._instanceProps);return R(m||h||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:FP({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},R(u||c||"div",{children:D,ref:s,style:{height:M,pointerEvents:x?"none":void 0,width:k}}))},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],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof n){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=r||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var tL=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},rL=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 l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},nL=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 l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},oL=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 l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=r;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},iL=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?aL(e,t,r,i,0,n):lL(e,t,r,Math.max(0,i),n)},aL=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),l=oL(e,t,a,r).offset;if(l===i)return a;l<i?o=a+1:l>i&&(n=a-1)}return o>0?o-1:0},lL=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&oL(e,t,n,r).offset<o;)n+=a,a*=2;return aL(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},sL=function(e,t,r,n,o,i,a){var l="column"===e?t.width:t.height,s=oL(e,t,r,i),u="column"===e?nL(t,i):rL(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===n&&(n=o>=d-l&&o<=c+l?"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}},uL=eL({getColumnOffset:function(e,t,r){return oL("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return iL("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=oL("column",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=oL("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:rL,getEstimatedTotalWidth:nL,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return sL("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return sL("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return oL("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return iL("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=oL("row",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=oL("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}}),cL=function(e,t){return e};function dL(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=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=s(n.props,jP(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:jP(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=VP((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=VP((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,l=i.itemSize,s=i.layout,c=n._getItemStyleCache(u&&l,u&&s,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"===s,m="rtl"===a,h=f?d:0;c[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},n._getItemStyleCache=void 0,n._getItemStyleCache=VP((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(ZP()){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&&UP(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=YP(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}$P(t,e),t.getDerivedStateFromProps=function(e,t){return pL(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 l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?XP():0:s.scrollHeight>s.clientHeight?XP():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},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(ZP()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&UP(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?cL:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),w=E[0],C=E[1],A=[];if(u>0)for(var I=w;I<=C;I++)A.push(R(t,{data:c,key:p(I,c),index:I,isScrolling:b?y:void 0,style:this._getItemStyle(I)}));var D=n(this.props,this._instanceProps);return R(m||h||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:FP({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},R(l||s||"div",{children:A,ref:a,style:{height:x?"100%":D,pointerEvents:y?"none":void 0,width:x?D:"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,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,s=n.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var pL=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},fL=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=n(s);o[s]={offset:a,size:u},a+=u}r.lastMeasuredIndex=t}return o[t]},mL=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=fL(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},hL=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&fL(e,r,t).offset<n;)r+=i,i*=2;return mL(e,t,Math.min(r,o-1),Math.floor(r/2),n)},gL=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 l=n[i];a=l.offset+l.size}return a+(r-i-1)*o},bL=dL({getItemOffset:function(e,t,r){return fL(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:gL,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=fL(e,t,o),p=gL(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===r&&(r=n>=m-c&&n<=f+c?"auto":"center"),r){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return n>=m&&n<=f?n:n<m?m:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?mL(e,t,o,0,r):hL(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,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=fL(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=fL(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 vL(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 yL=["style"],xL=["style"];function SL(e,t){var r=e.style,n=WP(e,yL),o=t.style,i=WP(t,xL);return!vL(r,o)&&!vL(n,i)}const EL=({style:e})=>ea.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var wL=x.memo(EL,SL);const CL=()=>{},RL=e=>e.preventDefault();const AL=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o,i;const{rowsInPage:a,columns:l,isHoverEnabled:s,maxImageHeight:u}=n,{flags:c}=gA(pA,(e=>e.env)),d=gA(pA,(e=>e.hoverIndex===t)),p=gA(pA,(e=>e.setHoverIndex)),{interactions:f,styleService:m}=gA(pA,(e=>e.baseProps)),h=gA(pA,(e=>e.showRightBorder)),g=null===(o=a[t])||void 0===o?void 0:o[e],{handleMouseDown:b,handleMouseOver:v,handleMouseUp:y,cellSelectionState:x}=function(e){const{interactions:t}=gA(pA,(e=>e.baseProps)),r=gA(pA,(e=>e.selectionDispatch)),n="object"==typeof e,o=gA(pA,(t=>n?FR(e,t.selectionState):YE.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=aP(RL,e,r,CL);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g);let S={borderColor:m.grid.border,...m.measure.values};if(null!==(i=l[e])&&void 0!==i&&i.isDim&&(S={borderColor:m.grid.border,...m.dimension.values}),null!=g&&g.isNull&&(S={...S,...m.nullValues}),"object"==typeof g){var E;!c.isEnabled("CLIENT_IM_6696_INDICATORS")||l[e].isDim||g.isNull||(g.representation.indicatorConditionalColoring=n.columns[e].conditionalColoring);const o=((e,t,r,n,o,i,a)=>{const l=t.qAttrExprInfoIDs.length?tA(o,e.qAttrExps,t.qAttrExprInfoIDs,a):o;return n===YE.Selected?{...l,...i.selectedColors}:n===YE.Disabled?{...l,color:r?null===(s=i.grid.hoverColors)||void 0===s?void 0:s.color:l.color,background:`${CR.DISABLED_BACKGROUND}, ${r?null===(u=i.grid.hoverColors)||void 0===u?void 0:u.background:l.background}`}:r?{...l,...i.grid.hoverColors}:l;var s,u})(g,l[e],s&&d,x,S,m,c),i={rowindex:t,columnindex:e};return ea.jsx("div",{className:`sn-table-cell ${x} ${Ih}`,style:{...r,...o,display:"flex",alignItems:"start",borderWidth:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:g.isLastColumn&&!h?"0px":"1px",borderStyle:"solid",justifyContent:g.representation.type===gb.Image&&"fitHeight"===g.representation.imageSize?null===(E=g.representation)||void 0===E||null===(E=E.resolvedImagePosition)||void 0===E?void 0:E.horizontal:g.align,padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden"},onMouseDown:b,onMouseUp:y,onMouseOver:v,onMouseEnter:s?()=>p(t):void 0,onMouseLeave:s?()=>p(-1):void 0,title:f.passive?g.representation.text:void 0,...i,children:ea.jsx(rP,{cell:g,style:o,maxImageHeight:u,virtualizedCell:!0})})}return ea.jsx(wL,{style:{...r,...S,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var IL=x.memo(AL,SL);const DL=e=>{const t=M(e);return t.current=e,t},PL=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,LL=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if((null==t?void 0:t.rowIdx)!==o)return!0}return!1},ML=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!(null!=e&&e[t])))},kL=(e,t,r,n,o,i,a)=>{e.forEach((e=>{e.qMatrix.forEach(((l,s)=>{const u=e.qArea.qTop-t.page*t.rowsPerPage,{row:c,pageRowIdx:d}=((e,t,r,n,o,i,a,l,s)=>{var u;const{qSize:c}=a.qHyperCube,d=n.qTop+r,p=o+r,f=null!==(u=e[p])&&void 0!==u?u:[];return t.forEach(((e,t)=>{var r,o;const a=t+n.qLeft,{colIdx:u,isDim:m,isLocked:h,bodyTextAlign:g,selectionColIdx:b,qAttrExprInfoIndex:v,representation:y}=i[a],x=fy(e);f[a]=null!==(r=f[a])&&void 0!==r?r:{id:cv(),...e,align:xy(e,g),rowIdx:d,colIdx:u,isSelectable:m&&!h,pageRowIdx:p,pageColIdx:a,selectionColIdx:b,isLastRow:d===c.qcy-1,isLastColumn:a===c.qcx-1,isNumeric:x,isNull:dy(e,m),representation:cy(e,y,v,s)},l(null!==(o=f[a].representation.text)&&void 0!==o?o:"",p,a,x)})),{row:f,pageRowIdx:p}})(r,l,s,e.qArea,u,n,o,i,a);r[d]=c}))}))},OL=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:l,columns:s,setCellSize:u,gridState:c})=>{const d=gA(pA,(e=>e.env)),p=M([]),f=DL(u),m=k(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return kL(t,o,n,s,e,f.current,d),p.current=n,n}),[i,o,s,e,f,d]),[h,g]=S((()=>m(null!=n?n:[])));yh((()=>{g(m(null!=n?n:[]))}),[n]);const b=((e,t)=>{const r=M(new Set),n=M(new Set),o=M(new Set),i=DL(e),a=DL(t),l=E((()=>({enqueue:e=>{const t=PL(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(PL(e))}))}finally{n.current.delete(e)}}}),75))},clear:()=>{r.current.clear(),n.current.clear(),o.current.clear()}})),[i,a]);return l})((e=>t.getHyperCubeData("/qHyperCubeDef",e)),(e=>g((t=>m(e,t))))),v=k(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(ML(p.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}}),[p,b]),y=k(((e,t,r,n)=>{for(let i=t;i<t+n;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(LL(p.current,e,t,r,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:r};b.enqueue(t)}}}),[p,b,o]);return w((()=>{const{qcx:t,qcy:r}=e.qHyperCube.qSize,n=c.current.overscanRowStartIndex,i=c.current.overscanColumnStartIndex,s=n+o.page*o.rowsPerPage,u=t-i,d=o.rowsPerPage-n,p=Math.min(100,u,t,l+5),f=Math.min(100,d,r,a+25);return y(i,s,p,f),()=>{b.clear()}}),[e,a,l,o,b,y,c,r]),{rowsInPage:h,loadRows:y,loadColumns:v}},_L=({style:e,numericStyle:t,columnWidths:r,rowHeight:n,pageInfo:o,rowCount:i,gridRef:a,lineRef:l,columns:s,gridState:u,isSnapshot:c,viewService:d,maxNbrLines:p=3,isStaticNbrOfLines:f,allColumnsIconVisibilityStatus:m})=>{var h;const g=M({lastScrollToRatio:0,resetAfterRowIndex:0,heights:[],totalHeight:0,count:0,measuredCells:new Map}),{layout:b,rect:v}=gA(pA,(e=>e.baseProps)),[y,x]=S(n||24),{measureText:E,estimateLineCount:w}=gh(e,{maxNbrLinesOfText:p}),C=oP(e.fontSize),R=oP(null!==(h=null==t?void 0:t.fontSize)&&void 0!==h?h:e.fontSize),A=Math.max(C,R),I=8e6/i-8-1,D=Math.max(0,Math.min(p,Math.round(I/A))),P=iP({maxNbrLines:D,isStaticNbrOfLines:f,lineHeight:A}),L=f?D*A:A,O=k(((e,t,n)=>{var o;const i=s?(({width:e,columnIconsVisibilityStatus:t})=>{let r=0,n=0,o=0,i=0;if(t){const{shouldShowLockIcon:e,shouldShowSortIcon:r,shouldShowMenuIcon:a}=t;n=e?20:0,o=r?20:0,i=a?24:0}return r=e-25-n-o-i,Math.max(0,r)})({width:r[t],columnIconsVisibilityStatus:null==m?void 0:m[t]}):(e=>Math.max(0,e-24-1))(r[t]),a=Math.min(D,w({text:e.trim(),maxWidth:i,isNumeric:n})),l=null!=s&&null!==(o=s[t])&&void 0!==o&&o.isDim?A:R;return Math.max(1,a)*l+8+1}),[r,A,R,D,s,w,m]),_=k(((e,t,r,o=!1,i=!1)=>{const a=`${t}-${r}`;if(g.current.measuredCells.has(a))return;if(f)return g.current.measuredCells.set(a,[e,t,r,o]),void x(P);g.current.measuredCells.set(a,[e,t,r,o]);const l=n||24,d=((e,t,r)=>{var n;return(null==t||null===(n=t[e].representation)||void 0===n?void 0:n.type)===gb.Image&&r})(r,s,u)?l:O(e,r,o),p=g.current.heights[t],m=d-p;m>0?(g.current.totalHeight+=m,g.current.heights[t]=d):void 0===p&&(g.current.count+=1,g.current.totalHeight+=d,g.current.heights[t]=d),i||c||x(g.current.totalHeight/g.current.count)}),[O,c,f,P,s,n,u]),T=k((e=>{var t;return null!==(t=g.current.heights[e])&&void 0!==t?t:y}),[g,y]),q=k((()=>{g.current.lastScrollToRatio=0,g.current.resetAfterRowIndex=0,g.current.heights=[],g.current.totalHeight=0,g.current.count=0,g.current.measuredCells.clear()}),[g]),N=DL(_),F=k((()=>{if(f)return void q();const e=new Map(g.current.measuredCells);q(),e.forEach((([e,t,r,n])=>{N.current(e,t,r,n,!0)})),c||x(g.current.totalHeight/g.current.count)}),[q,c,N,f]);yh((()=>{q()}),[b,o]),yh((()=>{F()}),[E,v.width]);return null!=a&&a.current?a.current.resetAfterRowIndex(g.current.resetAfterRowIndex,!1):null!=l&&l.current&&l.current.resetAfterIndex(g.current.resetAfterRowIndex,!1),d.estimatedRowHeight=y,{setCellSize:_,getRowHeight:T,rowMeta:g,estimatedRowHeight:y,maxLineCount:D,resizeVisibleCells:e=>{if(!u||f)return;q();const{overscanRowStartIndex:t,overscanRowStopIndex:r}=u.current,n=Math.min(r,b.qHyperCube.qSize.qcy-1);for(let r=t;r<=n;r++){var o;const t=null!==(o=e[r])&&void 0!==o?o:{};Object.values(t).forEach((e=>{var t;"object"==typeof e&&_(null!==(t=e.representation.text)&&void 0!==t?t:"",r,e.pageColIdx,e.isNumeric)}))}},resizeAllCells:F,resetRowMeta:q,maxImageHeight:L}};var TL;!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(TL||(TL={}));const qL=({layout:e,loadRows:t,loadColumns:r,rowCount:n,pageInfo:o,gridState:i,viewService:a})=>k((({overscanColumnStartIndex:l,overscanColumnStopIndex:s,overscanRowStartIndex:u,overscanRowStopIndex:c,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:m})=>{const{verticalScrollDirection:h,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o=TL.None,i=TL.None;return o=n>t?TL.Down:n<t?TL.Up:TL.None,i=r>e?TL.Right:r<e?TL.Left:TL.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(i.current,l,u);if(i.current.overscanColumnStartIndex=l,i.current.overscanColumnStopIndex=s,i.current.overscanRowStartIndex=u,i.current.overscanRowStopIndex=c,u>n)return;const b=l,v=u+o.page*o.rowsPerPage,y=s-l+1,x=c-u+1;if(a.visibleLeft=d,a.visibleWidth=p-d+1,a.visibleTop=f+o.page*o.rowsPerPage,a.visibleHeight=m-f+1,a.page=o.page,a.rowsPerPage=o.rowsPerPage,h===TL.Down){const e=x+25;t(b,v,y,u+e>n?n-u:e)}else if(h===TL.Up){const e=x+25,r=o.page*o.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(g===TL.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(g===TL.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]),NL={enabled:!1},FL=()=>{},jL={current:null};const zL=(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)),l=E((()=>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:l}},$L=({columnIndex:e,data:t,rowIndex:r})=>{var n,o;const i=null===(n=t.rowsInPage[r])||void 0===n?void 0:n[e];return null!==(o=null==i?void 0:i.id)&&void 0!==o?o:`${r}-${e}`},BL={overflow:"hidden",willChange:"auto"},HL=O(((e,t)=>{var r;const{rect:n,columns:o,innerForwardRef:i,pageInfo:a,rowHeight:l,headerAndTotalsHeight:s,syncHeight:u}=e,{flags:c}=gA(pA,(e=>e.env)),{layout:d,model:p,theme:f,viewService:m,styleService:h}=gA(pA,(e=>e.baseProps)),g=gA(pA,(e=>e.columnWidths)),b=gA(pA,(e=>e.initialDataPages)),{maxNbrLines:v,isStaticNbrOfLines:y}=gD({viewService:m,styleService:h,isImagesEnabled:c.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")}),x=M(null),S=M({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),C=!(null===(r=XR(d))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect),{rowCount:R,visibleRowCount:A,visibleColumnCount:I}=zL(d,a,n,g,l),{setCellSize:D,getRowHeight:P,rowMeta:L,estimatedRowHeight:k,maxLineCount:O,resizeVisibleCells:_,maxImageHeight:q}=_L({pageInfo:a,style:h.dimension.values,numericStyle:h.measure.values,rowHeight:l,columnWidths:g,columns:o,gridRef:x,rowCount:R,gridState:S,isSnapshot:!!d.snapshotData,viewService:m,maxNbrLines:v,isStaticNbrOfLines:y}),{rowsInPage:F,loadRows:j,loadColumns:z}=OL({layout:d,model:p,theme:f,initialDataPages:b,pageInfo:a,rowCount:R,visibleRowCount:A,visibleColumnCount:I,columns:o,setCellSize:D,gridState:S}),$=qL({layout:d,loadRows:j,loadColumns:z,rowCount:R,pageInfo:a,gridState:S,viewService:m}),B=E((()=>({rowsInPage:F,columns:o,isHoverEnabled:C,maxLineCount:O,maxImageHeight:q})),[F,o,C,O,q]),H=((e,t,r,n)=>{let{height:o}=e;return o-=t,r*n<o&&(o=Math.min(r*n,o)),o})(n,s,R,k);return T((()=>{var e,t;u(null!==(e=null===(t=i.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0,!0)}),[R,u,i]),T((()=>{var e,t,r;(u(null!==(e=null===(t=i.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0,!1),1===L.current.lastScrollToRatio)&&(null===(r=x.current)||void 0===r||r.scrollToItem({rowIndex:R-1,align:"start"}))})),function(e){const{selectionsAPI:t}=gA(pA,(e=>e.baseProps)),r=gA(pA,(e=>e.selectionDispatch));w((()=>{r({type:KE.UPDATE_PAGE_ROWS,payload:{pageRows:e}})}),[r,e]),nP({selectionsAPI:t,selectionDispatch:r,setShouldRefocus:FL,keyboard:NL,tableWrapperRef:jL})}(F),yh((()=>{var e;null===(e=x.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[d,a,f,n.width,g]),N(t,(()=>({interpolatedScrollTo:(e,t)=>{var r,n;const o=(null!==(r=null===(n=i.current)||void 0===n?void 0:n.clientHeight)&&void 0!==r?r:H)-H,a=Math.round(o*e);var l,s,u;(L.current.lastScrollToRatio=e,1===L.current.lastScrollToRatio)?(null===(l=x.current)||void 0===l||l.scrollToItem({rowIndex:R-1,align:"start"}),null===(s=x.current)||void 0===s||s.scrollTo({scrollLeft:t})):null===(u=x.current)||void 0===u||u.scrollTo({scrollTop:a,scrollLeft:t})},resizeCells:()=>{var e;null===(e=x.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),_(F)}})),[i,H,L,R,_,F]),ea.jsx(uL,{"data-key":"body",ref:x,innerRef:i,style:BL,columnCount:d.qHyperCube.qSize.qcx,columnWidth:e=>g[e],height:H,rowCount:R,rowHeight:P,estimatedRowHeight:k,width:n.width,itemData:B,onItemsRendered:$,itemKey:$L,className:"sn-table-body",children:IL})}));var VL=_(HL);const WL=({width:e,height:t,children:r})=>ea.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),GL=IE("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e})((({interactions:e,hoverBackground:t,background:r,applicableStyle:n})=>({...n,background:r,"&&:hover":{background:e.active?t:void 0}}))),UL=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,allColumnsIconVisibilityStatusRef:i}=r,{interactions:a,styleService:l}=gA(pA,(e=>e.baseProps)),s=gA(pA,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),u=gA(pA,(e=>e.showRightBorder)),c=gA(pA,(e=>e.tableData.totalsPosition)),d=!!a.active&&!s,{open:p,setOpen:f,handleOpenMenu:m,setIsAdjustingWidth:h}=kP({isInteractionEnabled:d,columnsData:n}),g=n[e],b=n.length-1===e,v="right"===g.headTextAlign?"row-reverse":"row";return ea.jsxs(GL,{className:`sn-table-cell ${Ih}`,title:a.passive?g.label:void 0,onClick:m,applicableStyle:{...l.header,...fP(l,c,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderWidth:b&&!u?"0px 0px 1px 0px":"0px 1px 1px 0px",padding:"4px",justifyContent:g.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:v,userSelect:"none"},interactions:a,hoverBackground:l.headerMenuHoverBackground,background:p?l.headerMenuActiveBackground:l.header.background,children:[ea.jsx(MP,{column:g,isInteractionEnabled:d,open:p,setOpen:f,allColumnsIconVisibilityStatusRef:i}),ea.jsx(vP,{column:g,isLastColumn:b,onColumnResize:o,setIsAdjustingWidth:h})]})},YL=(e,t,r,n,o)=>{T((()=>{var t;null==e||null===(t=e.current)||void 0===t||t.resetAfterIndex(0,!0)}),[t,r,e,n,o])},KL={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},XL=e=>{const{rect:t,forwardRef:r,columns:n,pageInfo:o,rowHeight:i,columResizeHandler:a,allColumnsIconVisibilityStatusRef:l}=e,{layout:s,theme:u}=gA(pA,(e=>e.baseProps)),c=gA(pA,(e=>e.columnWidths));return YL(r,s,o,c,u),ea.jsx(bL,{ref:r,layout:"horizontal",style:KL,itemCount:s.qHyperCube.qSize.qcx,itemSize:e=>c[e],height:i,width:t.width,itemData:{columns:n,columResizeHandler:a,allColumnsIconVisibilityStatusRef:l},children:UL})};var JL=_(XL);const ZL=x.forwardRef(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a}=gA(pA,(e=>e.baseProps));return ea.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.active?"auto":"hidden",width:n,height:o},onScroll:i,children:r})})),QL=({children:e,rect:t})=>ea.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"0px",width:t.width,height:t.height},children:e}),eM=({index:e,style:t,data:r})=>{const{layout:n,interactions:o,styleService:i}=gA(pA,(e=>e.baseProps)),a=gA(pA,(e=>e.showRightBorder)),{columns:l,totals:s}=r,u=l[e].totalInfo,{totalsTextAlign:c,isTotalNumeric:d}=l[e],p=n.qHyperCube.qSize.qcx-1===e;return ea.jsx("div",{className:`sn-table-cell ${Ih}`,title:o.passive?u:void 0,style:{...t,...i.totalRow,...fP(i,s,!1),background:i.totalRow.background,display:"flex",alignItems:s.atTop?"end":"start",borderStyle:"solid",borderLeftWidth:"0px",borderRightWidth:p&&!a?"0px":"1px",borderTopWidth:s.atBottom?"1px":"0px",borderBottomWidth:s.atTop?"1px":"0px",padding:"4px 12px",justifyContent:c,boxSizing:"border-box",cursor:"default"},children:ea.jsx(bD,{wordBreak:!d,lines:3,virtualizedCell:!0,children:u})})},tM=e=>{const{rect:t,forwardRef:r,pageInfo:n,totals:o,rowHeight:i,columns:a}=e,{layout:l,theme:s}=gA(pA,(e=>e.baseProps)),u=gA(pA,(e=>e.columnWidths));return YL(r,l,n,u,s),ea.jsx(bL,{ref:r,layout:"horizontal",style:KL,itemCount:l.qHyperCube.qSize.qcx,itemSize:e=>u[e],height:i,width:t.width,itemData:{columns:a,totals:o},children:eM})};var rM=_(tM);const nM=({columns:e,columnWidths:t,pageInfo:r,headerRef:n,totalsRef:o,totalsPosition:i,isSnapshot:a,viewService:l,allColumnsIconVisibilityStatus:s})=>{const{styleService:u}=gA(pA,(e=>e.baseProps)),c=_L({style:u.header,columnWidths:t,lineRef:n,rowCount:1,pageInfo:r,columns:e,isSnapshot:a,viewService:l,allColumnsIconVisibilityStatus:s}),d=_L({style:u.totalRow,columnWidths:t,lineRef:o,rowCount:1,pageInfo:r,isSnapshot:a,viewService:l});e.forEach(((e,t)=>{c.setCellSize(e.label,0,t),d.setCellSize(e.totalInfo,0,t,py(e.totalInfo))}));const p=c.getRowHeight(0)+8,f=d.getRowHeight(0);return{headerRowHeight:p,totalsRowHeight:f,bodyRowHeight:a?l.estimatedRowHeight:(({fontSize:e=PR.fontSize})=>Math.max(24,WR(e)))(u.dimension.values),headerAndTotalsHeight:i.atTop||i.atBottom?p+f:p,resizeAllHeaderCells:c.resizeAllCells,resizeAllTotalCells:d.resizeAllCells}},oM=e=>{var t;const{pageInfo:r}=e,{totalsPosition:n,columns:o,paginationNeeded:i}=gA(pA,(e=>e.tableData)),{layout:a,theme:l,rect:s,viewService:u}=gA(pA,(e=>e.baseProps)),c=gA(pA,(e=>e.columnWidths)),d=gA(pA,(e=>e.setYScrollbarWidth)),p=M(null),f=M(null),m=M(null),h=M(null),g=M(),{xScrollbarWidth:b,yScrollbarWidth:v}=uD(p),y=M([]),{headerRowHeight:x,totalsRowHeight:w,bodyRowHeight:C,headerAndTotalsHeight:R,resizeAllHeaderCells:A,resizeAllTotalCells:I}=nM({columns:o,columnWidths:c,pageInfo:r,totalsPosition:n,headerRef:f,totalsRef:m,isSnapshot:!!a.snapshotData,viewService:u,allColumnsIconVisibilityStatus:y.current}),D=E((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(s,i)),[s,i]),P=E((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(D,b,v)),[D,b,v]),{rowCount:L}=zL(a,r,P,c,C),[O,_]=S(L*C+R),q=c.reduce(((e,t)=>e+t),0),N=((e,t,r,n)=>k((o=>{var i,a,l;const{scrollHeight:s,clientHeight:u,scrollTop:c,scrollLeft:d}=o.currentTarget,p=Math.max(0,Math.min(1,c/(s-u)));n.scrollTopRatio=p,n.scrollLeft=d,null===(i=r.current)||void 0===i||i.interpolatedScrollTo(Number.isNaN(p)?0:p,d),null===(a=e.current)||void 0===a||a.scrollTo(d),null===(l=t.current)||void 0===l||l.scrollTo(d)}),[n,r,e,t]))(f,m,h,u),F=k(((e,t=!1)=>{const r=e+R;(O<P.height&&r>P.height||t)&&_(r)}),[O,R,P.height]),j=k((()=>{var e;p.current&&(p.current.scrollTop=0),null===(e=h.current)||void 0===e||e.resizeCells(),A(),I()}),[p,A,I]);T((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[o.length]),T((()=>{p.current&&(p.current.scrollTop=0)}),[r,L,l]),KI((()=>{d(v)}),[v]);const z=ea.jsx(rM,{rect:P,pageInfo:r,columns:o,forwardRef:m,totals:n,rowHeight:w});return ea.jsx(ZL,{ref:p,width:D.width,height:D.height,onScroll:N,children:ea.jsx(WL,{width:q,height:O,children:ea.jsxs(QL,{rect:P,children:[null!==(t=u.viewState)&&void 0!==t&&t.skipHeader?null:ea.jsx(JL,{rect:P,pageInfo:r,columns:o,forwardRef:f,rowHeight:x,columResizeHandler:j,allColumnsIconVisibilityStatusRef:y}),n.atTop?z:null,ea.jsx(VL,{ref:h,innerForwardRef:g,rect:P,pageInfo:r,columns:o,rowHeight:C,headerAndTotalsHeight:R,syncHeight:F}),n.atBottom?z:null]})})})};var iM=_(oM);const aM=()=>{const{theme:e,keyboard:t,translator:r,interactions:n,rect:o,layout:i}=gA(pA,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:l,totalColumnCount:s,totalPages:u}=gA(pA,(e=>e.tableData)),c=gA(pA,(e=>e.pageInfo)),d=gA(pA,(e=>e.setPage));return ea.jsxs(GI,{"data-testid":"sn-table",background:e.background,dir:"ltr",children:[ea.jsx(iM,{pageInfo:c}),ea.jsx(WI,{paginationNeeded:a,handleChangePage:e=>d(e),pageInfo:c,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:t,translator:r,theme:e,interactions:n,rect:o,layout:i})]})};var lM=_(aM);var sM,uM={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":"已依遞減順序排序。"}}};!function(e){e.FIRST="first-announcer-element",e.SECOND="second-announcer-element"}(sM||(sM={}));const cM=(e,t)=>n((()=>(function(e){if(e&&e.get&&e.add){const t="SNTable.Accessibility.RowsAndColumns";if(e.get(t)!==t)return;Object.keys(uM).forEach((t=>{e.add(uM[t])}))}}(t),((e,t,r)=>{let n=r||null;return({keys:r,shouldBeAtomic:o=!0,politeness:i="polite"})=>{const a=r.map((e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)})).join(" "),l=e.querySelector(".sn-table-announcer-1"),s=e.querySelector(".sn-table-announcer-2");let u;n===sM.FIRST?(u=s,n=sM.SECOND):(u=l,n=sM.FIRST),u.innerHTML=u.innerHTML.endsWith(" ­")?a:`${a} ­`,u.setAttribute("aria-atomic",o.toString()),u.setAttribute("aria-live",i)}})(e,t))),[e,t.language()]),dM={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},pM=({app:r,model:n,rootElement:o,layout:l,interactions:s,translator:u,selectionsAPI:c,theme:d,changeSortOrder:p,keyboard:f,rect:m,embed:h,reactRoot:g,applyColumnWidths:b,isFontLoaded:v,viewService:y,env:x})=>{const{direction:S,footerContainer:E}=i(),w=Ey(l,y),C=wy(l,y),R=cM(o,u),A=w?{page:y.page||dM.page,rowsPerPage:y.rowsPerPage||dM.rowsPerPage,rowsPerPageOptions:dM.rowsPerPageOptions}:dM,[I,D]=e(A),[P]=a((async()=>C?async function(e,t,r,n,o,i){var a,l;const{page:s,rowsPerPage:u,rowsPerPageOptions:c}=r,d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/u),m=null!==(a=o.visibleTop)&&void 0!==a?a:s*u,h=null!==(l=o.visibleHeight)&&void 0!==l?l:Math.min(u,p-m);if(s>0&&m>=p)return n({...r,page:0}),null;if(h*d>my)return n({...r,rowsPerPage:hy(d,c),page:0}),null;const g=p>10,b=gy(t,o),v=Sy(t),y=!!t.snapshotData,x=y?t.qHyperCube.qDataPages:await e.getHyperCubeData("/qHyperCubeDef",[{qTop:m,qLeft:0,qHeight:h,qWidth:d}]);o&&!y&&(o.qTop=m,o.qHeight=h,o.rowsPerPage=r.rowsPerPage,o.page=r.page);const S=(null==x?void 0:x[0].qMatrix.map(((e,t)=>{const r=[];return v.forEach(((n,o)=>{r[o]={id:cv(),...e[o],align:xy(e[o],n.bodyTextAlign),rowIdx:t+m,colIdx:n.colIdx,pageRowIdx:t,pageColIdx:o,selectionColIdx:n.selectionColIdx,isSelectable:n.isDim&&!n.isLocked,isLastRow:t===h-1,isNumeric:fy(e[o]),isNull:dy(e[o],n.isDim),representation:cy(e[o],n.representation,n.qAttrExprInfoIndex,i)}})),r})))||[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(n,l,I,D,y,x):null),[l,I,n,s,C]);t((()=>{!!(C&&g&&n&&(l.snapshotData||r)&&l&&P&&p&&d&&c&&v&&h)&&function(e,t){const{app:r,model:n,direction:o,selectionsAPI:i,layout:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,tableData:h,rect:g,viewService:b,env:v,...y}=e,x=bA(o);null==t||t.render(ea.jsx(on,{stylisPlugins:"rtl"===o?[Cw]:void 0,children:ea.jsx(PE,{theme:x,children:ea.jsx(hA,{app:r,model:n,tableData:h,selectionsAPI:i,layout:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,rect:g,viewService:b,env:v,children:ea.jsx(NP,{...y,direction:o})})})}))}({app:r,model:n,rootElement:o,layout:l,tableData:P,direction:S,pageInfo:I,setPageInfo:D,interactions:s,translator:u,selectionsAPI:c,theme:d,changeSortOrder:p,keyboard:f,rect:m,footerContainer:E,announce:R,embed:h,applyColumnWidths:b,viewService:y,env:x},g)}),[r,n,g,P,s,S,d,f.active,R,p,b,C,l,c,h,o,I,D,u,m,E,v,x])};const fM=({model:e,layout:t,shouldRender:r,page:n})=>{const[o]=a((async()=>{if(r&&e)return(async(e,t,r)=>{let{qDataPages:n}=t.qHyperCube;if(0!==r||void 0===n||0===n.length){const o=r*Math.min(MR,t.qHyperCube.qSize.qcy);n=await e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:o,qWidth:50,qHeight:100}])}return{initialDataPages:n,derivedFrom:{layout:t,page:r}}})(e,t,n)}),[e,t,n]),i=(null==o?void 0:o.derivedFrom.layout)!==t||(null==o?void 0:o.derivedFrom.page)!==n;return{initialDataPages:null==o?void 0:o.initialDataPages,isLoading:i}},mM=({app:r,layout:o,model:i,rect:a,theme:l,keyboard:s,translator:u,interactions:c,selectionsAPI:d,changeSortOrder:p,rootElement:f,embed:m,reactRoot:h,applyColumnWidths:g,isFontLoaded:b,viewService:v,env:y})=>{const S=!wy(o,v),E=n((()=>function(e,t,r){const n=gy(e,r),o=Sy(e),i=e.qHyperCube.qSize.qcy,a=Math.min(MR,i),l=i>MR&&!!t.active;return{totalsPosition:n,columns:o,rows:[],totalRowCount:i,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(i/a),paginationNeeded:l}}(o,c,v)),[o,c,v]),{pageInfo:w,setPage:C}=((t,r)=>{const[o,i]=e(0),a=Math.min(MR,t.qHyperCube.qSize.qcy),l=n((()=>({page:o,rowsPerPage:a,rowsPerPageOptions:[]})),[a,o]);if(r){const e=Math.floor(t.qHyperCube.qSize.qcy/MR);e<o&&i(e)}return{pageInfo:l,setPage:i}})(o,S),{initialDataPages:R,isLoading:A}=fM({model:i,layout:o,page:w.page,shouldRender:S});t((()=>{var e;S&&s.active&&(null===(e=s.blur)||void 0===e||e.call(s,!1))}),[s.active]),t((()=>{S&&i&&p&&R&&!A&&b&&function(e,t){const{app:r,selectionsAPI:n,layout:o,model:i,translator:a,interactions:l,theme:s,keyboard:u,rect:c,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,env:S}=e,E=bA("ltr");t.render(ea.jsx(x.StrictMode,{children:ea.jsx(PE,{theme:E,children:ea.jsx(hA,{app:r,selectionsAPI:n,layout:o,model:i,translator:a,interactions:l,theme:s,keyboard:u,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,rect:c,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,env:S,children:ea.jsx(lM,{})})})}))}({app:r,layout:o,model:i,rect:a,theme:l,keyboard:s,translator:u,interactions:c,selectionsAPI:d,rootElement:f,embed:m,changeSortOrder:p,tableData:E,applyColumnWidths:g,setPage:C,pageInfo:w,initialDataPages:R,viewService:v,env:y},h)}),[r,o,i,a,l,s.active,u,c,d,p,S,f,m,h,E,g,C,w,A,R,b,y])},hM={version:JSON.stringify("3.10.1"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals",label:"Totals"},usePagination:!1,components:[]};function gM(e,t){const r=e.getElementsByClassName("sn-table-container")[0];if(!r)return{};const n=(null==r?void 0:r.getBoundingClientRect())||{},o=e.getElementsByClassName("sn-table-head-row")[0],i=(null==o?void 0:o.getBoundingClientRect())||{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],l=(null==a?void 0:a.getBoundingClientRect())||{height:0},s=e.getElementsByClassName("sn-table-data-row"),u={top:n.y+i.height+(t.atTop?l.height:0),bottom:n.y+n.height-(t.atBottom?l.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})(s,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})(s,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)})(s,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const bM=(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]}},vM=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const yM=(e,t,r,n)=>{var o;if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||dM.rowsPerPage,l=null!==(o=n.viewState)&&void 0!==o&&o.isMultiPage?0:3;return Math.min(i,a,e-t+1+l)},xM=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=gy(e,t);if(wy(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=gM(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:yM(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=null==r?void 0:r.getBoundingClientRect(),o=null==r?void 0:r.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:l=0,page:s=0,rowsPerPage:u=0}=t,c=s*u,d=a-c,p=d+l-1,f=bM(d,o),m=null==f?void 0:f.getBoundingClientRect();if(!f||!m)return{};const h=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(m.y>=h-4?0:1)+c,visibleRowEndIndex:p+c};const g=n.y+n.height,b=(vM(m,h,g)?d:d+1)+c;let v=p+c;const y=bM(p,o),x=null==y?void 0:y.getBoundingClientRect();return y&&x&&(vM(x,h,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:yM(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},SM=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),EM=e=>e.getStyle("object","straightTableV2","backgroundColor");function wM(e){return{qae:{properties:{initial:hM},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:ab,exportProperties:ob,exploration:lb},ext:tv(e),component(){var r;const y=u(),x=(e=>{const r=n((()=>bh(e)),[e]);return t((()=>()=>r.unmount()),[r]),r})(y),S=c(),E=d(),w=p(),C=f(),R=m(),A=h(),I=g(),{freeResize:D}=i(),P=b(),L=null!=S&&null!==(r=S.snapshotData)&&void 0!==r&&r.content&&!D?{...P,...S.snapshotData.content.size}:P,M=(e=>{const{viewState:t}=i();return n((()=>((e,t)=>{var r,n,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v;return{qTop:0,qHeight:0,rowPartialHeight:null!==(r=null==t||null===(n=t.content)||void 0===n?void 0:n.rowPartialHeight)&&void 0!==r?r:0,visibleTop:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.visibleTop)&&void 0!==o?o:null==e?void 0:e.visibleTop,visibleHeight:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.visibleHeight)&&void 0!==a?a:null==e?void 0:e.visibleHeight,scrollLeft:null!==(s=null!==(u=null==t||null===(c=t.content)||void 0===c?void 0:c.scrollLeft)&&void 0!==u?u:null==e?void 0:e.scrollLeft)&&void 0!==s?s:0,scrollTopRatio:null!==(d=null==t||null===(p=t.content)||void 0===p?void 0:p.scrollTopRatio)&&void 0!==d?d:null==e?void 0:e.scrollTopRatio,rowsPerPage:null!==(f=null==t||null===(m=t.content)||void 0===m?void 0:m.rowsPerPage)&&void 0!==f?f:null==e?void 0:e.rowsPerPage,page:null!==(h=null==t||null===(g=t.content)||void 0===g?void 0:g.page)&&void 0!==h?h:null==e?void 0:e.page,viewState:e,estimatedRowHeight:null!==(b=null==t||null===(v=t.content)||void 0===v?void 0:v.estimatedRowHeight)&&void 0!==b?b:0}})(t,e.snapshotData)),[t,e.snapshotData,e.usePagination])})(S),k=v(),O=fh(S,y,SM,EM),_=((e,t)=>n((()=>((e,t)=>{if(t)return async(r,n)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:l,isActivelySorted:s}=r,u=o?i:i-e,c=(await t.getEffectiveProperties()).qHyperCubeDef.qInterColumnSortOrder,d=[],p=n!==l||s;s||(c.splice(c.indexOf(i),1),c.unshift(i),d.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${c.join(",")}]`})),p&&d.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${u}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),t.applyPatches(d,!0)}})(e.qDimensionInfo.length,t)),[e.qDimensionInfo.length,t]))(S.qHyperCube,w),T=rv(S.qHyperCube,w),q=((e,t)=>{const{fontSize:r,fontFamily:n}=ZR(t,e,!1),{fontSize:o,fontFamily:i}=QR(t,e),[l,s]=a((async()=>(await document.fonts.load(`600 ${r} ${n}`),await document.fonts.load(`${o} ${i}`),!0)),[r,n,o,i]);return s?(console.warn("Failed to load font:",s),!0):!!l})(O,S);null==o||o(((e,t)=>{const r=t.target,n=null==r?void 0:r.closest(`.${Ih}`);null!=n&&n.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{Th(n)}})})),(({layout:e,viewService:t,model:r,rootElement:n,contentRect:o})=>{l((async i=>{if(!i.snapshotData||!r||i.snapshotData.content)return i;if(r.getHyperCubeData){i.qHyperCube||(i.qHyperCube={});const{rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m}=xM(e,t,n);i.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:null!=d?d:0,qWidth:e.qHyperCube.qSize.qcx,qHeight:null!=p?p:0}]),i.snapshotData.content={rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m,size:{width:o.width,height:o.height},estimatedRowHeight:t.estimatedRowHeight}}return i})),s((()=>({getViewState:()=>xM(e,t,n)})),[e,t,n])})({layout:S,viewService:M,model:w,rootElement:y,contentRect:P}),mM({app:E,layout:S,model:w,rect:L,theme:O,keyboard:I,translator:R,interactions:C,selectionsAPI:A,changeSortOrder:_,rootElement:y,embed:k,reactRoot:x,applyColumnWidths:T,isFontLoaded:q,viewService:M,env:e}),pM({app:E,model:w,rootElement:y,layout:S,interactions:C,translator:R,selectionsAPI:A,theme:O,changeSortOrder:_,keyboard:I,rect:L,embed:k,reactRoot:x,applyColumnWidths:T,isFontLoaded:q,viewService:M,env:e})}}}export{wM as default};