@nebula.js/sn-table 3.12.2 → 3.13.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/api-specifications/properties.json +1 -1
- package/core/esm/index.js +16 -16
- package/core/package.json +2 -0
- package/dist/sn-table.js +63 -63
- package/dist/sn-table.systemjs.js +46 -46
- package/package.json +10 -8
- package/sn-table-ext/dist/sn-table.js +63 -63
- package/sn-table-ext/sn-table.qext +1 -1
package/core/esm/index.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-table v3.
|
|
2
|
+
* @nebula.js/sn-table v3.13.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 w,useContext as C,createElement as R,Children as A,isValidElement as P,cloneElement as I,useReducer as D,createContext as L,useRef as M,useCallback as k,forwardRef as O,memo as T,useLayoutEffect as _,PureComponent as q,startTransition as N,useImperativeHandle as F}from"react";import*as j from"react-dom";import z from"react-dom";function H(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $(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 B={exports:{}};function W(){}function V(){}V.resetWarningCache=W;B.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:V,resetWarningCache:W};return r.PropTypes=r,r}();var G=H(B.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)}const K={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"},X={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",...K,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)"},J=12,Z=14,Q=16,ee=24,te=3,re=300,ne=400,oe=600,ie=700,ae={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Y(X.GREYSCALE_0,.05),Y(X.GREEN_PALE,.5),Y(X.BLUE_PALE,.5),Y(X.GREEN_PALE,.5),Y(X.BLUE_PALE,.5),Y(X.GREEN_PALE,.5),Y(X.BLUE_PALE,.5);var le;function se(){return se=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},se.apply(this,arguments)}Y(X.GREEN_PALE,.5),Y(X.BLUE_PALE,.5),Y(X.GREEN_PALE,.5),Y(X.BLUE_PALE,.5);var ue,ce=function(e){return y.createElement("svg",se({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),le||(le=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};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)}var pe=function(e){return y.createElement("svg",de({xmlns:"http://www.w3.org/2000/svg",width:16,height:16},e),ue||(ue=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 fe({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 me=(e={})=>x.createElement(fe,{...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"}))),he=(e={})=>x.createElement(fe,{...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"})))),ge=(e={})=>x.createElement(fe,{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"})))),be=(e={})=>x.createElement(fe,{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"}))),ve=({className:e})=>x.createElement(fe,{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 ye={black:"#000",white:"#fff"};var xe={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 Se={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 Ee={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 we={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 Ce={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 Re={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 Ae={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 Pe(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 Ie="$$material";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)}function Le(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 Me(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 ke=Object.freeze({__proto__:null,default:Me}),Oe=function(){return Oe=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},Oe.apply(this,arguments)};function Te(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 _e=H((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})),qe="-ms-",Ne="-moz-",Fe="-webkit-",je="comm",ze="rule",He="decl",$e="@keyframes",Be=Math.abs,We=String.fromCharCode,Ve=Object.assign;function Ge(e){return e.trim()}function Ue(e,t){return(e=t.exec(e))?e[0]:e}function Ye(e,t,r){return e.replace(t,r)}function Ke(e,t,r){return e.indexOf(t,r)}function Xe(e,t){return 0|e.charCodeAt(t)}function Je(e,t,r){return e.slice(t,r)}function Ze(e){return e.length}function Qe(e){return e.length}function et(e,t){return t.push(e),e}function tt(e,t){return e.filter((function(e){return!Ue(e,t)}))}var rt=1,nt=1,ot=0,it=0,at=0,lt="";function st(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:rt,column:nt,length:a,return:"",siblings:l}}function ut(e,t){return Ve(st("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ct(e){for(;e.root;)e=ut(e.root,{children:[e]});et(e,e.siblings)}function dt(){return at=it<ot?Xe(lt,it++):0,nt++,10===at&&(nt=1,rt++),at}function pt(){return Xe(lt,it)}function ft(){return it}function mt(e,t){return Je(lt,e,t)}function ht(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 gt(e){return Ge(mt(it-1,yt(91===e?e+2:40===e?e+1:e)))}function bt(e){for(;(at=pt())&&at<33;)dt();return ht(e)>2||ht(at)>3?"":" "}function vt(e,t){for(;--t&&dt()&&!(at<48||at>102||at>57&&at<65||at>70&&at<97););return mt(e,ft()+(t<6&&32==pt()&&32==dt()))}function yt(e){for(;dt();)switch(at){case e:return it;case 34:case 39:34!==e&&39!==e&&yt(at);break;case 40:41===e&&yt(e);break;case 92:dt()}return it}function xt(e,t){for(;dt()&&e+at!==57&&(e+at!==84||47!==pt()););return"/*"+mt(t,it-1)+"*"+We(47===e?e:dt())}function St(e){for(;!ht(pt());)dt();return mt(e,it)}function Et(e){return function(e){return lt="",e}(wt("",null,null,null,[""],e=function(e){return rt=nt=1,ot=Ze(lt=e),it=0,[]}(e),0,[0],e))}function wt(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=dt()){case 40:if(108!=m&&58==Xe(w,d-1)){-1!=Ke(w+=Ye(gt(v),"&","&\f"),"&\f",Be(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:w+=gt(v);break;case 9:case 10:case 13:case 32:w+=bt(m);break;case 92:w+=vt(ft()-1,7);continue;case 47:switch(pt()){case 42:case 47:et(Rt(xt(dt(),ft()),t,r,s),s);break;default:w+="/"}break;case 123*h:l[u++]=Ze(w)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(w=Ye(w,/\f/g,"")),f>0&&Ze(w)-d&&et(f>32?At(w+";",n,r,d-1,s):At(Ye(w," ","")+";",n,r,d-2,s),s);break;case 59:w+=";";default:if(et(E=Ct(w,t,r,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)wt(w,t,E,E,x,i,d,l,S);else switch(99===p&&110===Xe(w,3)?100:p){case 100:case 108:case 109:case 115:wt(e,E,E,n&&et(Ct(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,n?x:S);break;default:wt(w,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=b=1,y=w="",d=a;break;case 58:d=1+Ze(w),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==(at=it>0?Xe(lt,--it):0,nt--,10===at&&(nt=1,rt--),at))continue;switch(w+=We(v),v*h){case 38:b=c>0?1:(w+="\f",-1);break;case 44:l[u++]=(Ze(w)-1)*b,b=1;break;case 64:45===pt()&&(w+=gt(dt())),p=pt(),c=d=Ze(y=w+=St(ft())),v++;break;case 45:45===m&&2==Ze(w)&&(h=0)}}return i}function Ct(e,t,r,n,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=Qe(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=Je(e,p+1,p=Be(g=a[h])),x=e;v<m;++v)(x=Ge(g>0?f[v]+" "+y:Ye(y,/&\f/g,f[v])))&&(s[b++]=x);return st(e,t,r,0===o?ze:l,s,u,c,d)}function Rt(e,t,r,n){return st(e,t,r,je,We(at),Je(e,2,-2),0,n)}function At(e,t,r,n,o){return st(e,t,r,He,Je(e,0,n),Je(e,n+1,-1),n,o)}function Pt(e,t,r){switch(function(e,t){return 45^Xe(e,0)?(((t<<2^Xe(e,0))<<2^Xe(e,1))<<2^Xe(e,2))<<2^Xe(e,3):0}(e,t)){case 5103:return Fe+"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 Fe+e+e;case 4789:return Ne+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Fe+e+Ne+e+qe+e+e;case 5936:switch(Xe(e,t+11)){case 114:return Fe+e+qe+Ye(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Fe+e+qe+Ye(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Fe+e+qe+Ye(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Fe+e+qe+e+e;case 6165:return Fe+e+qe+"flex-"+e+e;case 5187:return Fe+e+Ye(e,/(\w+).+(:[^]+)/,Fe+"box-$1$2"+qe+"flex-$1$2")+e;case 5443:return Fe+e+qe+"flex-item-"+Ye(e,/flex-|-self/g,"")+(Ue(e,/flex-|baseline/)?"":qe+"grid-row-"+Ye(e,/flex-|-self/g,""))+e;case 4675:return Fe+e+qe+"flex-line-pack"+Ye(e,/align-content|flex-|-self/g,"")+e;case 5548:return Fe+e+qe+Ye(e,"shrink","negative")+e;case 5292:return Fe+e+qe+Ye(e,"basis","preferred-size")+e;case 6060:return Fe+"box-"+Ye(e,"-grow","")+Fe+e+qe+Ye(e,"grow","positive")+e;case 4554:return Fe+Ye(e,/([^-])(transform)/g,"$1"+Fe+"$2")+e;case 6187:return Ye(Ye(Ye(e,/(zoom-|grab)/,Fe+"$1"),/(image-set)/,Fe+"$1"),e,"")+e;case 5495:case 3959:return Ye(e,/(image-set\([^]*)/,Fe+"$1$`$1");case 4968:return Ye(Ye(e,/(.+:)(flex-)?(.*)/,Fe+"box-pack:$3"+qe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Fe+e+e;case 4200:if(!Ue(e,/flex-|baseline/))return qe+"grid-column-align"+Je(e,t)+e;break;case 2592:case 3360:return qe+Ye(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,Ue(e.props,/grid-\w+-end/)}))?~Ke(e+(r=r[t].value),"span",0)?e:qe+Ye(e,"-start","")+e+qe+"grid-row-span:"+(~Ke(r,"span",0)?Ue(r,/\d+/):+Ue(r,/\d+/)-+Ue(e,/\d+/))+";":qe+Ye(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return Ue(e.props,/grid-\w+-start/)}))?e:qe+Ye(Ye(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ye(e,/(.+)-inline(.+)/,Fe+"$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(Ze(e)-1-t>6)switch(Xe(e,t+1)){case 109:if(45!==Xe(e,t+4))break;case 102:return Ye(e,/(.+:)(.+)-([^]+)/,"$1"+Fe+"$2-$3$1"+Ne+(108==Xe(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ke(e,"stretch",0)?Pt(Ye(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Ye(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,l){return qe+r+":"+n+l+(o?qe+r+"-span:"+(i?a:+a-+n)+l:"")+e}));case 4949:if(121===Xe(e,t+6))return Ye(e,":",":"+Fe)+e;break;case 6444:switch(Xe(e,45===Xe(e,14)?18:11)){case 120:return Ye(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Fe+(45===Xe(e,14)?"inline-":"")+"box$3$1"+Fe+"$2$3$1"+qe+"$2box$3")+e;case 100:return Ye(e,":",":"+qe)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ye(e,"scroll-","scroll-snap-")+e}return e}function It(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Dt(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case He:return e.return=e.return||e.value;case je:return"";case $e:return e.return=e.value+"{"+It(e.children,n)+"}";case ze:if(!Ze(e.value=e.props.join(",")))return""}return Ze(r=It(e.children,n))?e.return=e.value+"{"+r+"}":""}function Lt(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case He:return void(e.return=Pt(e.value,e.length,r));case $e:return It([ut(e,{value:Ye(e.value,"@","@"+Fe)})],n);case ze:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(Ue(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ct(ut(e,{props:[Ye(t,/:(read-\w+)/,":-moz-$1")]})),ct(ut(e,{props:[t]})),Ve(e,{props:tt(r,n)});break;case"::placeholder":ct(ut(e,{props:[Ye(t,/:(plac\w+)/,":"+Fe+"input-$1")]})),ct(ut(e,{props:[Ye(t,/:(plac\w+)/,":-moz-$1")]})),ct(ut(e,{props:[Ye(t,/:(plac\w+)/,qe+"input-$1")]})),ct(ut(e,{props:[t]})),Ve(e,{props:tt(r,n)})}return""}))}}var Mt={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},kt="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ot="active",Tt="data-styled-version",_t="6.1.13",qt="/*!sc*/\n",Nt="undefined"!=typeof window&&"HTMLElement"in window,Ft=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)),jt={},zt=Object.freeze([]),Ht=Object.freeze({});function $t(e,t,r){return void 0===r&&(r=Ht),e.theme!==r.theme&&e.theme||t||r.theme}var Bt=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"]),Wt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Vt=/(^-|-$)/g;function Gt(e){return e.replace(Wt,"-").replace(Vt,"")}var Ut=/(a)(d)/gi,Yt=function(e){return String.fromCharCode(e+(e>25?39:97))};function Kt(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Yt(t%52)+r;return(Yt(t%52)+r).replace(Ut,"$1-$2")}var Xt,Jt=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Zt=function(e){return Jt(5381,e)};function Qt(e){return Kt(Zt(e)>>>0)}function er(e){return"string"==typeof e&&!0}var tr="function"==typeof Symbol&&Symbol.for,rr=tr?Symbol.for("react.memo"):60115,nr=tr?Symbol.for("react.forward_ref"):60112,or={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ir={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ar={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},lr=((Xt={})[nr]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Xt[rr]=ar,Xt);function sr(e){return("type"in(t=e)&&t.type.$$typeof)===rr?ar:"$$typeof"in e?lr[e.$$typeof]:or;var t}var ur=Object.defineProperty,cr=Object.getOwnPropertyNames,dr=Object.getOwnPropertySymbols,pr=Object.getOwnPropertyDescriptor,fr=Object.getPrototypeOf,mr=Object.prototype;function hr(e,t,r){if("string"!=typeof t){if(mr){var n=fr(t);n&&n!==mr&&hr(e,n,r)}var o=cr(t);dr&&(o=o.concat(dr(t)));for(var i=sr(e),a=sr(t),l=0;l<o.length;++l){var s=o[l];if(!(s in ir||r&&r[s]||a&&s in a||i&&s in i)){var u=pr(t,s);try{ur(e,s,u)}catch(e){}}}}return e}function gr(e){return"function"==typeof e}function br(e){return"object"==typeof e&&"styledComponentId"in e}function vr(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function yr(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 xr(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Sr(e,t,r){if(void 0===r&&(r=!1),!r&&!xr(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Sr(e[n],t[n]);else if(xr(t))for(var n in t)e[n]=Sr(e[n],t[n]);return e}function Er(e,t){Object.defineProperty(e,"toString",{value:t})}function wr(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 Cr=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 wr(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(qt);return t},e}(),Rr=new Map,Ar=new Map,Pr=1,Ir=function(e){if(Rr.has(e))return Rr.get(e);for(;Ar.has(Pr);)Pr++;var t=Pr++;return Rr.set(e,t),Ar.set(t,e),t},Dr=function(e,t){Pr=t+1,Rr.set(e,t),Ar.set(t,e)},Lr="style[".concat(kt,"][").concat(Tt,'="').concat(_t,'"]'),Mr=new RegExp("^".concat(kt,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),kr=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)},Or=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(qt),o=[],i=0,a=n.length;i<a;i++){var l=n[i].trim();if(l){var s=l.match(Mr);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(Dr(c,u),kr(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},Tr=function(e){for(var t=document.querySelectorAll(Lr),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(kt)!==Ot&&(Or(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var _r=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(kt,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(kt,Ot),n.setAttribute(Tt,_t);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},qr=function(){function e(e){this.element=_r(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 wr(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}(),Nr=function(){function e(e){this.element=_r(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}(),Fr=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}(),jr=Nt,zr={isServer:!Nt,useCSSOMInjection:!Ft},Hr=function(){function e(e,t,r){void 0===e&&(e=Ht),void 0===t&&(t={});var n=this;this.options=Oe(Oe({},zr),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Nt&&jr&&(jr=!1,Tr(this)),Er(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return Ar.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(kt,".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(qt)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return Ir(e)},e.prototype.rehydrate=function(){!this.server&&Nt&&Tr(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(Oe(Oe({},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 Fr(r):t?new qr(r):new Nr(r)}(this.options),new Cr(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(Ir(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(Ir(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(Ir(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),$r=/&/g,Br=/^\s*\/\/.*$/gm;function Wr(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=Wr(e.children,t)),e}))}function Vr(e){var t,r,n,o=void 0===e?Ht:e,i=o.options,a=void 0===i?Ht:i,l=o.plugins,s=void 0===l?zt: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===ze&&e.value.includes("&")&&(e.props[0]=e.props[0].replace($r,r).replace(n,u))})),a.prefix&&c.push(Lt),c.push(Dt);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(Br,""),u=Et(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=Wr(u,a.namespace));var d,p=[];return It(u,function(e){var t=Qe(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||wr(15),Jt(e,t.name)}),5381).toString():"",d}var Gr=new Hr,Ur=Vr(),Yr=x.createContext({shouldForwardProp:void 0,styleSheet:Gr,stylis:Ur});Yr.Consumer;var Kr=x.createContext(void 0);function Xr(){return C(Yr)}function Jr(e){var t=S(e.stylisPlugins),r=t[0],n=t[1],o=Xr().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 Vr({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})}),[e.enableVendorPrefixes,e.namespace,r]);w((function(){_e(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(Yr.Provider,{value:l},x.createElement(Kr.Provider,{value:a},e.children))}var Zr=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Ur);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,Er(this,(function(){throw wr(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Ur),this.name+e.hash},e}(),Qr=function(e){return e>="A"&&e<="Z"};function en(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Qr(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var tn=function(e){return null==e||!1===e||""===e},rn=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!tn(i)&&(Array.isArray(i)&&i.isCss||gr(i)?n.push("".concat(en(o),":"),i,";"):xr(i)?n.push.apply(n,Te(Te(["".concat(o," {")],rn(i),!1),["}"],!1)):n.push("".concat(en(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in Mt||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function nn(e,t,r,n){return tn(e)?[]:br(e)?[".".concat(e.styledComponentId)]:gr(e)?!gr(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:nn(e(t),t,r,n):e instanceof Zr?r?(e.inject(r,n),[e.getName(n)]):[e]:xr(e)?rn(e):Array.isArray(e)?Array.prototype.concat.apply(zt,e.map((function(e){return nn(e,t,r,n)}))):[e.toString()];var o}function on(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(gr(r)&&!br(r))return!1}return!0}var an=Zt(_t),ln=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&on(e),this.componentId=t,this.baseHash=Jt(an,t),this.baseStyle=r,Hr.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=vr(n,this.staticRulesId);else{var o=yr(nn(this.rules,e,t,r)),i=Kt(Jt(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=vr(n,i),this.staticRulesId=i}else{for(var l=Jt(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=yr(nn(c,e,t,r));l=Jt(l,d+u),s+=d}}if(s){var p=Kt(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(s,".".concat(p),void 0,this.componentId)),n=vr(n,p)}}return n},e}(),sn=x.createContext(void 0);sn.Consumer;var un={};new Set;function cn(e,t,r){var n=br(e),o=e,i=!er(e),a=t.attrs,l=void 0===a?zt:a,s=t.componentId,u=void 0===s?function(e,t){var r="string"!=typeof e?"sc":Gt(e);un[r]=(un[r]||0)+1;var n="".concat(r,"-").concat(Qt(_t+r+un[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return er(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Gt(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 ln(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(sn),c=Xr(),d=e.shouldForwardProp||c.shouldForwardProp,p=$t(t,u,i)||Ht,f=function(e,t,r){for(var n,o=Oe(Oe({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=gr(n=e[i])?n(o):n;for(var l in a)o[l]="className"===l?vr(o[l],a[l]):"style"===l?Oe(Oe({},o[l]),a[l]):a[l]}return t.className&&(o.className=vr(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=Xr();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=vr(a,l);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),h[er(m)&&!Bt.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?vr(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++)Sr(e,o[n],!0);return e}({},o.defaultProps,e):e}}),Er(y,(function(){return".".concat(y.styledComponentId)})),i&&hr(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function dn(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 pn=function(e){return Object.assign(e,{isCss:!0})};function fn(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(gr(e)||xr(e))return pn(nn(dn(zt,Te([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?nn(n):pn(nn(dn(n,t)))}function mn(e,t,r){if(void 0===r&&(r=Ht),!t)throw wr(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,fn.apply(void 0,Te([n],o,!1)))};return n.attrs=function(n){return mn(e,t,Oe(Oe({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return mn(e,t,Oe(Oe({},r),n))},n}var hn=function(e){return mn(cn,e)},gn=hn;Bt.forEach((function(e){gn[e]=hn(e)}));var bn=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=on(e),Hr.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(yr(nn(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&&Hr.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function vn(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=yr(fn.apply(void 0,Te([e],t,!1))),o=Qt(n);return new Zr(o,n)}function yn(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}yn.propTypes={children:G.node,injectFirst:G.bool};const xn=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=fn.apply(void 0,Te([e],t,!1)),o="sc-global-".concat(Qt(JSON.stringify(n))),i=new bn(n,o),a=function(e){var t=Xr(),r=x.useContext(sn),n=x.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,jt,r,o);else{var l=Oe(Oe({},t),{theme:$t(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 Sn=xn;
|
|
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 M,useReducer as P,createContext as L,useRef as D,useCallback as k,forwardRef as O,memo as T,useLayoutEffect as _,PureComponent as q,startTransition as N,useImperativeHandle as F}from"react";import*as j from"react-dom";import z from"react-dom";import H from"picasso-plugin-q";import $ from"picasso.js";function B(e){return"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function W(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length&&B(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\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(l))?(n=parseInt(a[1],10),o=parseInt(a[2],10),i=parseInt(a[3],10)):(a=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(l))?(n=parseInt(a[1],16),o=parseInt(a[2],16),i=parseInt(a[3],16)):(a=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(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 G(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 V(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 U(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?V(Object(r),!0).forEach((function(t){G(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Y={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r: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}},K="qcm-color";function X(){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:K,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)===K){var v=r[0];m=v.r,h=v.g,g=v.b,b=v.a,f.invalid=r[0].invalid,f.spaces=U({},r[0].spaces)}else if(r.length<3)if("string"==typeof r[0]){var y,x=r[0];if(y=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10);else if(y=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x))m=parseInt(y[1],10),h=parseInt(y[2],10),g=parseInt(y[3],10),b=parseFloat(y[4]);else if(y=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))b=parseInt(y[1],10)/255,m=parseInt(y[2],10),h=parseInt(y[3],10),g=parseInt(y[4],10);else if(y=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(x))m=parseInt(y[1],16),h=parseInt(y[2],16),g=parseInt(y[3],16),b=1;else if(y=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(x))m=parseInt(y[1]+y[1],16),h=parseInt(y[2]+y[2],16),g=parseInt(y[3]+y[3],16),b=1;else if(y=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),i=parseFloat(y[3]),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*,\s*(\d(\.\d+)?)\s*\)$/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 C=[];switch(c=Math.floor(c)){case 0:C=[u,d,0];break;case 1:C=[d,u,0];break;case 2:C=[0,u,d];break;case 3:C=[0,d,u];break;case 4:C=[d,0,u];break;case 5:C=[u,0,d];break;default:C=[0,0,0]}p=s-u,m=C[0]+p,h=C[1]+p,g=C[2]+p,m=Math.round(255*m),h=Math.round(255*h),g=Math.round(255*g),b=1}else if(Y[x.toLowerCase()]){a=x.toLowerCase();var w=Y[a];m=w.r,h=w.g,g=w.b,b="number"==typeof Y[a].a?Y[a].a:1}else f.invalid=!0}else"number"==typeof r[0]&&r[0]>=0&&"argb"===r[1]?(b=(4278190080&r[0])>>>24,b/=255,m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):"number"==typeof r[0]&&r[0]>=0?(m=(16711680&r[0])>>16,h=(65280&r[0])>>8,g=255&r[0]):f.invalid=!0;else r.length>=3&&r.length<=4?(m=r[0],h=r[1],g=r[2],b=arguments.length>=4?r[3]:1):f.invalid=!0;return Number.isNaN(+m+h+g+b)&&(f.invalid=!0),f.r=Math.floor(m),f.g=Math.floor(h),f.b=Math.floor(g),f.a=b,f.l=l,f}function J(e){var t,r,n=0,o="string"==typeof e?X(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 Z(e){if(B(e))return"rgb(".concat([e.r,e.g,e.b].join(", "),")");var t="string"==typeof e?W(e):e,r=(65280&t)>>8,n=255&t;return"rgb(".concat((16711680&t)>>16,", ").concat(r,", ").concat(n,")")}function Q(e,t){return B(e)?"rgba(".concat([e.r,e.g,e.b,void 0!==t?t:e.a].join(", "),")"):Q(X(e),t)}function ee(e){return B(e)?1===e.a?Z(e):Q(e):ee(X(e))}var te=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function re(e){return.2126*te(e.r)+.7152*te(e.g)+.0722*te(e.b)}var ne=1/.7;function oe(){var e=X.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?X(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*,\s*(\d(\.\d+)?)\s*\)$/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,")")},o=function(e){return oe(Math.min(t.r*e,255),Math.min(t.g*e,255),Math.min(t.b*e,255),t.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:X(e);return r.r===t.r&&r.g===t.g&&r.b===t.b&&r.a===t.a},isDark:function(){return function(){var e=X.apply(void 0,arguments);return e.invalid||re(e)<.4}(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=Z(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=Q(t)),t.spaces.rgba},getString:function(){return t.spaces.string||(t.spaces.string=ee(t)),t.spaces.string},getHex:function(){return t.spaces.hex||(t.spaces.hex=function(e){var t,r,n;if(B(e))return t=e.r.toString(16),r=e.g.toString(16),n=e.b.toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat([t,r,n].join(""));var o="string"==typeof e?W(e):e;return t=((16711680&o)>>16).toString(16),r=((65280&o)>>8).toString(16),n=(255&o).toString(16),1===t.length&&(t="0".concat(t)),1===r.length&&(r="0".concat(r)),1===n.length&&(n="0".concat(n)),"#".concat(t).concat(r).concat(n)}(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=function(e){var t,r,n=0,o="string"==typeof e?X(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=J(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=J(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 oe(n(20*(o*i<220?.8+1/(o+1)*4:-(.8+o/255*1))*r))},getBrightenedColor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return o(Math.pow(ne,e))},getDarkenedColor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return o(Math.pow(.7,e))}}}function ie(e,t){if(e&&t){var r=re(e),n=re(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}}var ae,le,se=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],ue=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];function ce(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?ue:se}var de=function(){if(le)return ae;le=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return ae=function e(){var t,r,n,s,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(s=l(t,r))&&(m&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(m,c,s)})):void 0!==s&&a(d,{name:r,newValue:s}));return d},ae}();function pe(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function fe(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function me(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(de);var he=1/.7,ge="\\s*([+-]?\\d+)\\s*",be="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ve="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ye=/^#([0-9a-f]{3,8})$/,xe=new RegExp(`^rgb\\(${ge},${ge},${ge}\\)$`),Se=new RegExp(`^rgb\\(${ve},${ve},${ve}\\)$`),Ee=new RegExp(`^rgba\\(${ge},${ge},${ge},${be}\\)$`),Ce=new RegExp(`^rgba\\(${ve},${ve},${ve},${be}\\)$`),we=new RegExp(`^hsl\\(${be},${ve},${ve}\\)$`),Re=new RegExp(`^hsla\\(${be},${ve},${ve},${be}\\)$`),Ae={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 Ie(){return this.rgb().formatHex()}function Me(){return this.rgb().formatRgb()}function Pe(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ye.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Le(t):3===r?new Te(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?De(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?De(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=xe.exec(e))?new Te(t[1],t[2],t[3],1):(t=Se.exec(e))?new Te(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ee.exec(e))?De(t[1],t[2],t[3],t[4]):(t=Ce.exec(e))?De(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=we.exec(e))?ze(t[1],t[2]/100,t[3]/100,1):(t=Re.exec(e))?ze(t[1],t[2]/100,t[3]/100,t[4]):Ae.hasOwnProperty(e)?Le(Ae[e]):"transparent"===e?new Te(NaN,NaN,NaN,0):null}function Le(e){return new Te(e>>16&255,e>>8&255,255&e,1)}function De(e,t,r,n){return n<=0&&(e=t=r=NaN),new Te(e,t,r,n)}function ke(e){return e instanceof me||(e=Pe(e)),e?new Te((e=e.rgb()).r,e.g,e.b,e.opacity):new Te}function Oe(e,t,r,n){return 1===arguments.length?ke(e):new Te(e,t,r,null==n?1:n)}function Te(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function _e(){return`#${je(this.r)}${je(this.g)}${je(this.b)}`}function qe(){const e=Ne(this.opacity);return`${1===e?"rgb(":"rgba("}${Fe(this.r)}, ${Fe(this.g)}, ${Fe(this.b)}${1===e?")":`, ${e})`}`}function Ne(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Fe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function je(e){return((e=Fe(e))<16?"0":"")+e.toString(16)}function ze(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new $e(e,t,r,n)}function He(e){if(e instanceof $e)return new $e(e.h,e.s,e.l,e.opacity);if(e instanceof me||(e=Pe(e)),!e)return new $e;if(e instanceof $e)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 $e(a,l,s,e.opacity)}function $e(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Be(e){return(e=(e||0)%360)<0?e+360:e}function We(e){return Math.max(0,Math.min(1,e||0))}function Ge(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}pe(me,Pe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ie,formatHex:Ie,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return He(this).formatHsl()},formatRgb:Me,toString:Me}),pe(Te,Oe,fe(me,{brighter(e){return e=null==e?he:Math.pow(he,e),new Te(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Te(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Te(Fe(this.r),Fe(this.g),Fe(this.b),Ne(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:_e,formatHex:_e,formatHex8:function(){return`#${je(this.r)}${je(this.g)}${je(this.b)}${je(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:qe,toString:qe})),pe($e,(function(e,t,r,n){return 1===arguments.length?He(e):new $e(e,t,r,null==n?1:n)}),fe(me,{brighter(e){return e=null==e?he:Math.pow(he,e),new $e(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new $e(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Te(Ge(e>=240?e-240:e+120,o,n),Ge(e,o,n),Ge(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new $e(Be(this.h),We(this.s),We(this.l),Ne(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=Ne(this.opacity);return`${1===e?"hsl(":"hsla("}${Be(this.h)}, ${100*We(this.s)}%, ${100*We(this.l)}%${1===e?")":`, ${e})`}`}}));const Ve=Math.PI/180,Ue=180/Math.PI,Ye=4/29,Ke=6/29,Xe=3*Ke*Ke;function Je(e){if(e instanceof Ze)return new Ze(e.l,e.a,e.b,e.opacity);if(e instanceof nt)return ot(e);e instanceof Te||(e=ke(e));var t,r,n=rt(e.r),o=rt(e.g),i=rt(e.b),a=Qe((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=Qe((.4360747*n+.3850649*o+.1430804*i)/.96422),r=Qe((.0139322*n+.0971045*o+.7141733*i)/.82521)),new Ze(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Ze(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Qe(e){return e>.008856451679035631?Math.pow(e,1/3):e/Xe+Ye}function et(e){return e>Ke?e*e*e:Xe*(e-Ye)}function tt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function rt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function nt(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function ot(e){if(isNaN(e.h))return new Ze(e.l,0,0,e.opacity);var t=e.h*Ve;return new Ze(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}pe(Ze,(function(e,t,r,n){return 1===arguments.length?Je(e):new Ze(e,t,r,null==n?1:n)}),fe(me,{brighter(e){return new Ze(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Ze(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new Te(tt(3.1338561*(t=.96422*et(t))-1.6168667*(e=1*et(e))-.4906146*(r=.82521*et(r))),tt(-.9787684*t+1.9161415*e+.033454*r),tt(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),pe(nt,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof nt)return new nt(e.h,e.c,e.l,e.opacity);if(e instanceof Ze||(e=Je(e)),0===e.a&&0===e.b)return new nt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ue;return new nt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new nt(e,t,r,null==n?1:n)}),fe(me,{brighter(e){return new nt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new nt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ot(this).rgb()}}));var it=e=>()=>e;function at(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):it(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?at:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):it(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Oe(e)).r,(t=Oe(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=at(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);var lt,st="center",ut="bottom";function ct(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},r=function(){var e={};return{get:function(t){return e[t]},set:function(t,r){return e[t]=r,r},has:function(t){return t in e},remove:function(t){delete e[t]},empty:function(){e={}}}}();return function(n){var o=t(n);return r.has(o)?r.get(o):r.set(o,e(n))}}function dt(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function pt(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=mt)):void 0===t&&(t=ft);for(var r,n,o,i,a,l=new bt(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 bt(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(gt)}function ft(e){return e.children}function mt(e){return Array.isArray(e)?e[1]:null}function ht(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function gt(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function bt(e){this.data=e,this.depth=this.height=0,this.parent=null}function vt(){return vt=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},vt.apply(null,arguments)}function yt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function xt(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}[{key:"NoDataExist",alignment:st,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:st,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:st,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:st},{key:"DataRangeIncludingZero",alignment:ut},{key:"LimitedData",alignment:ut},{key:"NegativeOrZeroValues",alignment:ut}].reduce((function(e,t){return e[t.key]=t,e}),{}),bt.prototype=pt.prototype={constructor:bt,count:function(){return this.eachAfter(dt)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,i=this,a=[i],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 pt(this).eachBefore(ht)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)i.push(t[r])}while(i.length)}},lt=function(e){
|
|
8
|
+
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
9
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,i,a,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}},lt({exports:{}});var St={exports:{}};function Et(){}function Ct(){}Ct.resetWarningCache=Et;St.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:Ct,resetWarningCache:Et};return r.PropTypes=r,r}();var wt=yt(St.exports);function Rt(e){if(e.type)return e;if("#"===e.charAt(0))return Rt(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 At(e,t){return e=Rt(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 It(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 Mt(e,t){return Mt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Mt(e,t)}function Pt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Mt(e,t)}function Lt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}const Dt={GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF"},kt={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",...Dt,GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_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)"},Ot=12,Tt=14,_t=16,qt=24,Nt=3,Ft=300,jt=400,zt=600,Ht=700,$t={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};At(kt.GREYSCALE_0,.05),At(kt.GREEN_PALE,.5),At(kt.BLUE_PALE,.5),At(kt.GREEN_PALE,.5),At(kt.BLUE_PALE,.5),At(kt.GREEN_PALE,.5),At(kt.BLUE_PALE,.5);var Bt;function Wt(){return Wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wt.apply(null,arguments)}At(kt.GREEN_PALE,.5),At(kt.BLUE_PALE,.5),At(kt.GREEN_PALE,.5),At(kt.BLUE_PALE,.5);var Gt,Vt=function(e){return y.createElement("svg",Wt({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Bt||(Bt=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Ut(){return Ut=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},Ut.apply(null,arguments)}var Yt=function(e){return y.createElement("svg",Ut({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Gt||(Gt=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 Kt({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 Xt=(e={})=>x.createElement(Kt,{...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"}))),Jt=(e={})=>x.createElement(Kt,{...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"})))),Zt=(e={})=>x.createElement(Kt,{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"})))),Qt=(e={})=>x.createElement(Kt,{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"}))),er=({className:e})=>x.createElement(Kt,{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 tr={black:"#000",white:"#fff"};var rr={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 nr={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 or={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 ir={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 ar={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 lr={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 sr={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 ur(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 cr="$$material";function dr(){return dr=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},dr.apply(this,arguments)}function pr(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 fr(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 mr=Object.freeze({__proto__:null,default:fr}),hr=function(){return hr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},hr.apply(this,arguments)};function gr(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var br=yt((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})),vr="-ms-",yr="-moz-",xr="-webkit-",Sr="comm",Er="rule",Cr="decl",wr="@keyframes",Rr=Math.abs,Ar=String.fromCharCode,Ir=Object.assign;function Mr(e){return e.trim()}function Pr(e,t){return(e=t.exec(e))?e[0]:e}function Lr(e,t,r){return e.replace(t,r)}function Dr(e,t,r){return e.indexOf(t,r)}function kr(e,t){return 0|e.charCodeAt(t)}function Or(e,t,r){return e.slice(t,r)}function Tr(e){return e.length}function _r(e){return e.length}function qr(e,t){return t.push(e),e}function Nr(e,t){return e.filter((function(e){return!Pr(e,t)}))}var Fr=1,jr=1,zr=0,Hr=0,$r=0,Br="";function Wr(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Fr,column:jr,length:a,return:"",siblings:l}}function Gr(e,t){return Ir(Wr("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Vr(e){for(;e.root;)e=Gr(e.root,{children:[e]});qr(e,e.siblings)}function Ur(){return $r=Hr<zr?kr(Br,Hr++):0,jr++,10===$r&&(jr=1,Fr++),$r}function Yr(){return kr(Br,Hr)}function Kr(){return Hr}function Xr(e,t){return Or(Br,e,t)}function Jr(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 Zr(e){return Mr(Xr(Hr-1,tn(91===e?e+2:40===e?e+1:e)))}function Qr(e){for(;($r=Yr())&&$r<33;)Ur();return Jr(e)>2||Jr($r)>3?"":" "}function en(e,t){for(;--t&&Ur()&&!($r<48||$r>102||$r>57&&$r<65||$r>70&&$r<97););return Xr(e,Kr()+(t<6&&32==Yr()&&32==Ur()))}function tn(e){for(;Ur();)switch($r){case e:return Hr;case 34:case 39:34!==e&&39!==e&&tn($r);break;case 40:41===e&&tn(e);break;case 92:Ur()}return Hr}function rn(e,t){for(;Ur()&&e+$r!==57&&(e+$r!==84||47!==Yr()););return"/*"+Xr(t,Hr-1)+"*"+Ar(47===e?e:Ur())}function nn(e){for(;!Jr(Yr());)Ur();return Xr(e,Hr)}function on(e){return function(e){return Br="",e}(an("",null,null,null,[""],e=function(e){return Fr=jr=1,zr=Tr(Br=e),Hr=0,[]}(e),0,[0],e))}function an(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=Ur()){case 40:if(108!=m&&58==kr(C,d-1)){-1!=Dr(C+=Lr(Zr(v),"&","&\f"),"&\f",Rr(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=Zr(v);break;case 9:case 10:case 13:case 32:C+=Qr(m);break;case 92:C+=en(Kr()-1,7);continue;case 47:switch(Yr()){case 42:case 47:qr(sn(rn(Ur(),Kr()),t,r,s),s);break;default:C+="/"}break;case 123*h:l[u++]=Tr(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=Lr(C,/\f/g,"")),f>0&&Tr(C)-d&&qr(f>32?un(C+";",n,r,d-1,s):un(Lr(C," ","")+";",n,r,d-2,s),s);break;case 59:C+=";";default:if(qr(E=ln(C,t,r,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)an(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===kr(C,3)?100:p){case 100:case 108:case 109:case 115:an(e,E,E,n&&qr(ln(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,n?x:S);break;default:an(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+Tr(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==($r=Hr>0?kr(Br,--Hr):0,jr--,10===$r&&(jr=1,Fr--),$r))continue;switch(C+=Ar(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(Tr(C)-1)*b,b=1;break;case 64:45===Yr()&&(C+=Zr(Ur())),p=Yr(),c=d=Tr(y=C+=nn(Kr())),v++;break;case 45:45===m&&2==Tr(C)&&(h=0)}}return i}function ln(e,t,r,n,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=_r(f),h=0,g=0,b=0;h<n;++h)for(var v=0,y=Or(e,p+1,p=Rr(g=a[h])),x=e;v<m;++v)(x=Mr(g>0?f[v]+" "+y:Lr(y,/&\f/g,f[v])))&&(s[b++]=x);return Wr(e,t,r,0===o?Er:l,s,u,c,d)}function sn(e,t,r,n){return Wr(e,t,r,Sr,Ar($r),Or(e,2,-2),0,n)}function un(e,t,r,n,o){return Wr(e,t,r,Cr,Or(e,0,n),Or(e,n+1,-1),n,o)}function cn(e,t,r){switch(function(e,t){return 45^kr(e,0)?(((t<<2^kr(e,0))<<2^kr(e,1))<<2^kr(e,2))<<2^kr(e,3):0}(e,t)){case 5103:return xr+"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 xr+e+e;case 4789:return yr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return xr+e+yr+e+vr+e+e;case 5936:switch(kr(e,t+11)){case 114:return xr+e+vr+Lr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return xr+e+vr+Lr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return xr+e+vr+Lr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return xr+e+vr+e+e;case 6165:return xr+e+vr+"flex-"+e+e;case 5187:return xr+e+Lr(e,/(\w+).+(:[^]+)/,xr+"box-$1$2"+vr+"flex-$1$2")+e;case 5443:return xr+e+vr+"flex-item-"+Lr(e,/flex-|-self/g,"")+(Pr(e,/flex-|baseline/)?"":vr+"grid-row-"+Lr(e,/flex-|-self/g,""))+e;case 4675:return xr+e+vr+"flex-line-pack"+Lr(e,/align-content|flex-|-self/g,"")+e;case 5548:return xr+e+vr+Lr(e,"shrink","negative")+e;case 5292:return xr+e+vr+Lr(e,"basis","preferred-size")+e;case 6060:return xr+"box-"+Lr(e,"-grow","")+xr+e+vr+Lr(e,"grow","positive")+e;case 4554:return xr+Lr(e,/([^-])(transform)/g,"$1"+xr+"$2")+e;case 6187:return Lr(Lr(Lr(e,/(zoom-|grab)/,xr+"$1"),/(image-set)/,xr+"$1"),e,"")+e;case 5495:case 3959:return Lr(e,/(image-set\([^]*)/,xr+"$1$`$1");case 4968:return Lr(Lr(e,/(.+:)(flex-)?(.*)/,xr+"box-pack:$3"+vr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+xr+e+e;case 4200:if(!Pr(e,/flex-|baseline/))return vr+"grid-column-align"+Or(e,t)+e;break;case 2592:case 3360:return vr+Lr(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,Pr(e.props,/grid-\w+-end/)}))?~Dr(e+(r=r[t].value),"span",0)?e:vr+Lr(e,"-start","")+e+vr+"grid-row-span:"+(~Dr(r,"span",0)?Pr(r,/\d+/):+Pr(r,/\d+/)-+Pr(e,/\d+/))+";":vr+Lr(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return Pr(e.props,/grid-\w+-start/)}))?e:vr+Lr(Lr(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Lr(e,/(.+)-inline(.+)/,xr+"$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(Tr(e)-1-t>6)switch(kr(e,t+1)){case 109:if(45!==kr(e,t+4))break;case 102:return Lr(e,/(.+:)(.+)-([^]+)/,"$1"+xr+"$2-$3$1"+yr+(108==kr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Dr(e,"stretch",0)?cn(Lr(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Lr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,o,i,a,l){return vr+r+":"+n+l+(o?vr+r+"-span:"+(i?a:+a-+n)+l:"")+e}));case 4949:if(121===kr(e,t+6))return Lr(e,":",":"+xr)+e;break;case 6444:switch(kr(e,45===kr(e,14)?18:11)){case 120:return Lr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+xr+(45===kr(e,14)?"inline-":"")+"box$3$1"+xr+"$2$3$1"+vr+"$2box$3")+e;case 100:return Lr(e,":",":"+vr)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Lr(e,"scroll-","scroll-snap-")+e}return e}function dn(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function pn(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Cr:return e.return=e.return||e.value;case Sr:return"";case wr:return e.return=e.value+"{"+dn(e.children,n)+"}";case Er:if(!Tr(e.value=e.props.join(",")))return""}return Tr(r=dn(e.children,n))?e.return=e.value+"{"+r+"}":""}function fn(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Cr:return void(e.return=cn(e.value,e.length,r));case wr:return dn([Gr(e,{value:Lr(e.value,"@","@"+xr)})],n);case Er:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(Pr(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Vr(Gr(e,{props:[Lr(t,/:(read-\w+)/,":-moz-$1")]})),Vr(Gr(e,{props:[t]})),Ir(e,{props:Nr(r,n)});break;case"::placeholder":Vr(Gr(e,{props:[Lr(t,/:(plac\w+)/,":"+xr+"input-$1")]})),Vr(Gr(e,{props:[Lr(t,/:(plac\w+)/,":-moz-$1")]})),Vr(Gr(e,{props:[Lr(t,/:(plac\w+)/,vr+"input-$1")]})),Vr(Gr(e,{props:[t]})),Ir(e,{props:Nr(r,n)})}return""}))}}var mn={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hn="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",gn="active",bn="data-styled-version",vn="6.1.13",yn="/*!sc*/\n",xn="undefined"!=typeof window&&"HTMLElement"in window,Sn=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)),En={},Cn=Object.freeze([]),wn=Object.freeze({});function Rn(e,t,r){return void 0===r&&(r=wn),e.theme!==r.theme&&e.theme||t||r.theme}var An=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"]),In=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Mn=/(^-|-$)/g;function Pn(e){return e.replace(In,"-").replace(Mn,"")}var Ln=/(a)(d)/gi,Dn=function(e){return String.fromCharCode(e+(e>25?39:97))};function kn(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Dn(t%52)+r;return(Dn(t%52)+r).replace(Ln,"$1-$2")}var On,Tn=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},_n=function(e){return Tn(5381,e)};function qn(e){return kn(_n(e)>>>0)}function Nn(e){return"string"==typeof e&&!0}var Fn="function"==typeof Symbol&&Symbol.for,jn=Fn?Symbol.for("react.memo"):60115,zn=Fn?Symbol.for("react.forward_ref"):60112,Hn={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Bn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Wn=((On={})[zn]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},On[jn]=Bn,On);function Gn(e){return("type"in(t=e)&&t.type.$$typeof)===jn?Bn:"$$typeof"in e?Wn[e.$$typeof]:Hn;var t}var Vn=Object.defineProperty,Un=Object.getOwnPropertyNames,Yn=Object.getOwnPropertySymbols,Kn=Object.getOwnPropertyDescriptor,Xn=Object.getPrototypeOf,Jn=Object.prototype;function Zn(e,t,r){if("string"!=typeof t){if(Jn){var n=Xn(t);n&&n!==Jn&&Zn(e,n,r)}var o=Un(t);Yn&&(o=o.concat(Yn(t)));for(var i=Gn(e),a=Gn(t),l=0;l<o.length;++l){var s=o[l];if(!(s in $n||r&&r[s]||a&&s in a||i&&s in i)){var u=Kn(t,s);try{Vn(e,s,u)}catch(e){}}}}return e}function Qn(e){return"function"==typeof e}function eo(e){return"object"==typeof e&&"styledComponentId"in e}function to(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ro(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 no(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function oo(e,t,r){if(void 0===r&&(r=!1),!r&&!no(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=oo(e[n],t[n]);else if(no(t))for(var n in t)e[n]=oo(e[n],t[n]);return e}function io(e,t){Object.defineProperty(e,"toString",{value:t})}function ao(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var lo=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw ao(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(yn);return t},e}(),so=new Map,uo=new Map,co=1,po=function(e){if(so.has(e))return so.get(e);for(;uo.has(co);)co++;var t=co++;return so.set(e,t),uo.set(t,e),t},fo=function(e,t){co=t+1,so.set(e,t),uo.set(t,e)},mo="style[".concat(hn,"][").concat(bn,'="').concat(vn,'"]'),ho=new RegExp("^".concat(hn,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),go=function(e,t,r){for(var n,o=r.split(","),i=0,a=o.length;i<a;i++)(n=o[i])&&e.registerName(t,n)},bo=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(yn),o=[],i=0,a=n.length;i<a;i++){var l=n[i].trim();if(l){var s=l.match(ho);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(fo(c,u),go(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}},vo=function(e){for(var t=document.querySelectorAll(mo),r=0,n=t.length;r<n;r++){var o=t[r];o&&o.getAttribute(hn)!==gn&&(bo(e,o),o.parentNode&&o.parentNode.removeChild(o))}};var yo=function(e){var t=document.head,r=e||t,n=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(hn,"]")));return t[t.length-1]}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(hn,gn),n.setAttribute(bn,vn);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},xo=function(){function e(e){this.element=yo(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 ao(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}(),So=function(){function e(e){this.element=yo(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}(),Eo=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}(),Co=xn,wo={isServer:!xn,useCSSOMInjection:!Sn},Ro=function(){function e(e,t,r){void 0===e&&(e=wn),void 0===t&&(t={});var n=this;this.options=hr(hr({},wo),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&xn&&Co&&(Co=!1,vo(this)),io(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,n="",o=function(r){var o=function(e){return uo.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(hn,".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(yn)},i=0;i<r;i++)o(i);return n}(n)}))}return e.registerId=function(e){return po(e)},e.prototype.rehydrate=function(){!this.server&&xn&&vo(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(hr(hr({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new Eo(r):t?new xo(r):new So(r)}(this.options),new lo(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(po(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(po(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(po(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Ao=/&/g,Io=/^\s*\/\/.*$/gm;function Mo(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=Mo(e.children,t)),e}))}function Po(e){var t,r,n,o=void 0===e?wn:e,i=o.options,a=void 0===i?wn:i,l=o.plugins,s=void 0===l?Cn: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===Er&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Ao,r).replace(n,u))})),a.prefix&&c.push(fn),c.push(pn);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(Io,""),u=on(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=Mo(u,a.namespace));var d,p=[];return dn(u,function(e){var t=_r(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||ao(15),Tn(e,t.name)}),5381).toString():"",d}var Lo=new Ro,Do=Po(),ko=x.createContext({shouldForwardProp:void 0,styleSheet:Lo,stylis:Do});ko.Consumer;var Oo=x.createContext(void 0);function To(){return w(ko)}function _o(e){var t=S(e.stylisPlugins),r=t[0],n=t[1],o=To().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 Po({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:r})}),[e.enableVendorPrefixes,e.namespace,r]);C((function(){br(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(ko.Provider,{value:l},x.createElement(Oo.Provider,{value:a},e.children))}var qo=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Do);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,io(this,(function(){throw ao(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Do),this.name+e.hash},e}(),No=function(e){return e>="A"&&e<="Z"};function Fo(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;No(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}var jo=function(e){return null==e||!1===e||""===e},zo=function(e){var t,r,n=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!jo(i)&&(Array.isArray(i)&&i.isCss||Qn(i)?n.push("".concat(Fo(o),":"),i,";"):no(i)?n.push.apply(n,gr(gr(["".concat(o," {")],zo(i),!1),["}"],!1)):n.push("".concat(Fo(o),": ").concat((t=o,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in mn||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return n};function Ho(e,t,r,n){return jo(e)?[]:eo(e)?[".".concat(e.styledComponentId)]:Qn(e)?!Qn(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Ho(e(t),t,r,n):e instanceof qo?r?(e.inject(r,n),[e.getName(n)]):[e]:no(e)?zo(e):Array.isArray(e)?Array.prototype.concat.apply(Cn,e.map((function(e){return Ho(e,t,r,n)}))):[e.toString()];var o}function $o(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Qn(r)&&!eo(r))return!1}return!0}var Bo=_n(vn),Wo=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&$o(e),this.componentId=t,this.baseHash=Tn(Bo,t),this.baseStyle=r,Ro.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=to(n,this.staticRulesId);else{var o=ro(Ho(this.rules,e,t,r)),i=kn(Tn(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=to(n,i),this.staticRulesId=i}else{for(var l=Tn(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=ro(Ho(c,e,t,r));l=Tn(l,d+u),s+=d}}if(s){var p=kn(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,r(s,".".concat(p),void 0,this.componentId)),n=to(n,p)}}return n},e}(),Go=x.createContext(void 0);Go.Consumer;var Vo={};new Set;function Uo(e,t,r){var n=eo(e),o=e,i=!Nn(e),a=t.attrs,l=void 0===a?Cn:a,s=t.componentId,u=void 0===s?function(e,t){var r="string"!=typeof e?"sc":Pn(e);Vo[r]=(Vo[r]||0)+1;var n="".concat(r,"-").concat(qn(vn+r+Vo[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return Nn(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(Pn(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 Wo(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(Go),c=To(),d=e.shouldForwardProp||c.shouldForwardProp,p=Rn(t,u,i)||wn,f=function(e,t,r){for(var n,o=hr(hr({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=Qn(n=e[i])?n(o):n;for(var l in a)o[l]="className"===l?to(o[l],a[l]):"style"===l?hr(hr({},o[l]),a[l]):a[l]}return t.className&&(o.className=to(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=To();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(o,f),v=to(a,l);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),h[Nn(m)&&!An.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?to(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++)oo(e,o[n],!0);return e}({},o.defaultProps,e):e}}),io(y,(function(){return".".concat(y.styledComponentId)})),i&&Zn(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function Yo(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 Ko=function(e){return Object.assign(e,{isCss:!0})};function Xo(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Qn(e)||no(e))return Ko(Ho(Yo(Cn,gr([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Ho(n):Ko(Ho(Yo(n,t)))}function Jo(e,t,r){if(void 0===r&&(r=wn),!t)throw ao(1,t);var n=function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,r,Xo.apply(void 0,gr([n],o,!1)))};return n.attrs=function(n){return Jo(e,t,hr(hr({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return Jo(e,t,hr(hr({},r),n))},n}var Zo=function(e){return Jo(Uo,e)},Qo=Zo;An.forEach((function(e){Qo[e]=Zo(e)}));var ei=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=$o(e),Ro.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(ro(Ho(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&&Ro.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function ti(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=ro(Xo.apply(void 0,gr([e],t,!1))),o=qn(n);return new qo(o,n)}function ri(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}ri.propTypes={children:wt.node,injectFirst:wt.bool};const ni=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Xo.apply(void 0,gr([e],t,!1)),o="sc-global-".concat(qn(JSON.stringify(n))),i=new ei(n,o),a=function(e){var t=To(),r=x.useContext(Go),n=x.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,r,n,o){if(i.isStatic)i.renderStyles(e,En,r,o);else{var l=hr(hr({},t),{theme:Rn(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 oi=ni;
|
|
8
10
|
/**
|
|
9
11
|
* @mui/styled-engine-sc v6.0.0-alpha.24
|
|
10
12
|
*
|
|
@@ -12,7 +14,7 @@ import{useState as e,useEffect as t,useTheme as r,useMemo as n,onContextMenu as
|
|
|
12
14
|
* This source code is licensed under the MIT license found in the
|
|
13
15
|
* LICENSE file in the root directory of this source tree.
|
|
14
16
|
*/
|
|
15
|
-
function En(e,t){let r;return r=t?gn(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):gn(e),r}xn.propTypes={defaultTheme:G.object,styles:G.oneOfType([G.array,G.string,G.object,G.func])};const wn=(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))};var Cn=Object.freeze({__proto__:null,GlobalStyles:Sn,StyledEngineProvider:yn,ThemeContext:sn,css:fn,default:En,internal_processStyles:wn,keyframes:vn});function Rn(){return Rn=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},Rn.apply(null,arguments)}function An(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 Pn(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 In(e){if(!Pn(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=In(e[r])})),t}function Dn(e,t,r={clone:!0}){const n=r.clone?Rn({},e):e;return Pn(e)&&Pn(t)&&Object.keys(t).forEach((o=>{Pn(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Pn(e[o])?n[o]=Dn(e[o],t[o],r):r.clone?n[o]=Pn(t[o])?In(t[o]):t[o]:n[o]=t[o]})),n}var Ln,Mn=Object.freeze({__proto__:null,default:Dn,isPlainObject:Pn}),kn={exports:{}},On={},Tn=Symbol.for("react.element"),_n=Symbol.for("react.portal"),qn=Symbol.for("react.fragment"),Nn=Symbol.for("react.strict_mode"),Fn=Symbol.for("react.profiler"),jn=Symbol.for("react.provider"),zn=Symbol.for("react.context"),Hn=Symbol.for("react.server_context"),$n=Symbol.for("react.forward_ref"),Bn=Symbol.for("react.suspense"),Wn=Symbol.for("react.suspense_list"),Vn=Symbol.for("react.memo"),Gn=Symbol.for("react.lazy"),Un=Symbol.for("react.offscreen");function Yn(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Tn:switch(e=e.type){case qn:case Fn:case Nn:case Bn:case Wn:return e;default:switch(e=e&&e.$$typeof){case Hn:case zn:case $n:case Gn:case Vn:case jn:return e;default:return t}}case _n:return t}}}Ln=Symbol.for("react.module.reference"),On.ContextConsumer=zn,On.ContextProvider=jn,On.Element=Tn,On.ForwardRef=$n,On.Fragment=qn,On.Lazy=Gn,On.Memo=Vn,On.Portal=_n,On.Profiler=Fn,On.StrictMode=Nn,On.Suspense=Bn,On.SuspenseList=Wn,On.isAsyncMode=function(){return!1},On.isConcurrentMode=function(){return!1},On.isContextConsumer=function(e){return Yn(e)===zn},On.isContextProvider=function(e){return Yn(e)===jn},On.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Tn},On.isForwardRef=function(e){return Yn(e)===$n},On.isFragment=function(e){return Yn(e)===qn},On.isLazy=function(e){return Yn(e)===Gn},On.isMemo=function(e){return Yn(e)===Vn},On.isPortal=function(e){return Yn(e)===_n},On.isProfiler=function(e){return Yn(e)===Fn},On.isStrictMode=function(e){return Yn(e)===Nn},On.isSuspense=function(e){return Yn(e)===Bn},On.isSuspenseList=function(e){return Yn(e)===Wn},On.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===qn||e===Fn||e===Nn||e===Bn||e===Wn||e===Un||"object"==typeof e&&null!==e&&(e.$$typeof===Gn||e.$$typeof===Vn||e.$$typeof===jn||e.$$typeof===zn||e.$$typeof===$n||e.$$typeof===Ln||void 0!==e.getModuleId)},On.typeOf=Yn,kn.exports=On;var Kn=kn.exports;const Xn=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Jn(e){const t=`${e}`.match(Xn);return t&&t[1]||""}function Zn(e,t=""){return e.displayName||e.name||Jn(e)||t}function Qn(e,t,r){const n=Zn(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var eo=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Zn(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Kn.ForwardRef:return Qn(e,e.render,"ForwardRef");case Kn.Memo:return Qn(e,e.type,"memo");default:return}}},getFunctionName:Jn});function to(e){if("string"!=typeof e)throw new Error(Me(7));return e.charAt(0).toUpperCase()+e.slice(1)}var ro=Object.freeze({__proto__:null,default:to});function no(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function oo(e){return e&&e.ownerDocument||document}function io(e){return oo(e).defaultView||window}function ao(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var lo="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function so(e){const t=y.useRef(e);return lo((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function uo(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{ao(e,t)}))}),e)}const co={};const po=[];let fo=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 mo(){const e=function(e,t){const r=y.useRef(co);return r.current===co&&(r.current=e(t)),r}(fo.create).current;return function(e){y.useEffect(e,po)}(e.disposeEffect),e}let ho=!0,go=!1;const bo=new fo,vo={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 yo(e){e.metaKey||e.altKey||e.ctrlKey||(ho=!0)}function xo(){ho=!1}function So(){"hidden"===this.visibilityState&&go&&(ho=!0)}function Eo(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return ho||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!vo[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function wo(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",yo,!0),t.addEventListener("mousedown",xo,!0),t.addEventListener("pointerdown",xo,!0),t.addEventListener("touchstart",xo,!0),t.addEventListener("visibilitychange",So,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Eo(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(go=!0,bo.start(100,(()=>{go=!1})),t.current=!1,!0)},ref:e}}function Co(e,t){const r=Rn({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=Rn({},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]=Rn({},i),Object.keys(o).forEach((e=>{r[n][e]=Co(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function Ro(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 Ao=e=>e;var Po=(()=>{let e=Ao;return{configure(t){e=t},generate:t=>e(t),reset(){e=Ao}}})();const Io={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 Do(e,t,r="Mui"){const n=Io[t];return n?`${r}-${n}`:`${Po.generate(e)}-${t}`}function Lo(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=Do(e,t,r)})),n}function Mo(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var ko=Object.freeze({__proto__:null,default:Mo});function Oo(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=Oo(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function To(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Oo(e))&&(n&&(n+=" "),n+=t);return n}const _o=["values","unit","step"];function qo(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=An(e,_o),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>Rn({},e,{[t.key]:t.val})),{})})(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 Rn({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 No={borderRadius:4};function Fo(e,t){return t?Dn(e,t,{clone:!1}):e}const jo={xs:0,sm:600,md:900,lg:1200,xl:1536},zo={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${jo[e]}px)`};function Ho(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||zo;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||zo;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||jo).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function $o(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 Bo(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:$o(e,r)||n,t&&(o=t(o,n,e)),o}function Wo(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=$o(e.theme,n)||{};return Ho(e,i,(e=>{let n=Bo(a,o,e);return e===n&&"string"==typeof e&&(n=Bo(a,o,`${t}${"default"===e?"":to(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Vo={m:"margin",p:"padding"},Go={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Uo={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Yo=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Uo[e])return[e];e=Uo[e]}const[t,r]=e.split(""),n=Vo[t],o=Go[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Ko=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Xo=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Jo(e,t,r,n){var o;const i=null!=(o=$o(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 Zo(e){return Jo(e,"spacing",8)}function Qo(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 ei(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Qo(t,r),e)),{})}(Yo(r),n);return Ho(e,e[r],o)}function ti(e,t){const r=Zo(e.theme);return Object.keys(e).map((n=>ei(e,t,n,r))).reduce(Fo,{})}function ri(e){return ti(e,Ko)}function ni(e){return ti(e,Xo)}function oi(...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]?Fo(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function ii(e){return"number"!=typeof e?e:`${e}px solid`}function ai(e,t){return Wo({prop:e,themeKey:"borders",transform:t})}ri.propTypes={},ri.filterProps=Ko,ni.propTypes={},ni.filterProps=Xo;const li=ai("border",ii),si=ai("borderTop",ii),ui=ai("borderRight",ii),ci=ai("borderBottom",ii),di=ai("borderLeft",ii),pi=ai("borderColor"),fi=ai("borderTopColor"),mi=ai("borderRightColor"),hi=ai("borderBottomColor"),gi=ai("borderLeftColor"),bi=ai("outline",ii),vi=ai("outlineColor"),yi=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Jo(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Qo(t,e)});return Ho(e,e.borderRadius,r)}return null};yi.propTypes={},yi.filterProps=["borderRadius"],oi(li,si,ui,ci,di,pi,fi,mi,hi,gi,yi,bi,vi);const xi=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Jo(e.theme,"spacing",8),r=e=>({gap:Qo(t,e)});return Ho(e,e.gap,r)}return null};xi.propTypes={},xi.filterProps=["gap"];const Si=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Jo(e.theme,"spacing",8),r=e=>({columnGap:Qo(t,e)});return Ho(e,e.columnGap,r)}return null};Si.propTypes={},Si.filterProps=["columnGap"];const Ei=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Jo(e.theme,"spacing",8),r=e=>({rowGap:Qo(t,e)});return Ho(e,e.rowGap,r)}return null};Ei.propTypes={},Ei.filterProps=["rowGap"];function wi(e,t){return"grey"===t?t:e}oi(xi,Si,Ei,Wo({prop:"gridColumn"}),Wo({prop:"gridRow"}),Wo({prop:"gridAutoFlow"}),Wo({prop:"gridAutoColumns"}),Wo({prop:"gridAutoRows"}),Wo({prop:"gridTemplateColumns"}),Wo({prop:"gridTemplateRows"}),Wo({prop:"gridTemplateAreas"}),Wo({prop:"gridArea"}));function Ci(e){return e<=1&&0!==e?100*e+"%":e}oi(Wo({prop:"color",themeKey:"palette",transform:wi}),Wo({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:wi}),Wo({prop:"backgroundColor",themeKey:"palette",transform:wi}));const Ri=Wo({prop:"width",transform:Ci}),Ai=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])||jo[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:Ci(t)}};return Ho(e,e.maxWidth,t)}return null};Ai.filterProps=["maxWidth"];const Pi=Wo({prop:"minWidth",transform:Ci}),Ii=Wo({prop:"height",transform:Ci}),Di=Wo({prop:"maxHeight",transform:Ci}),Li=Wo({prop:"minHeight",transform:Ci});Wo({prop:"size",cssProperty:"width",transform:Ci}),Wo({prop:"size",cssProperty:"height",transform:Ci});oi(Ri,Ai,Pi,Ii,Di,Li,Wo({prop:"boxSizing"}));var Mi={border:{themeKey:"borders",transform:ii},borderTop:{themeKey:"borders",transform:ii},borderRight:{themeKey:"borders",transform:ii},borderBottom:{themeKey:"borders",transform:ii},borderLeft:{themeKey:"borders",transform:ii},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ii},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:yi},color:{themeKey:"palette",transform:wi},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:wi},backgroundColor:{themeKey:"palette",transform:wi},p:{style:ni},pt:{style:ni},pr:{style:ni},pb:{style:ni},pl:{style:ni},px:{style:ni},py:{style:ni},padding:{style:ni},paddingTop:{style:ni},paddingRight:{style:ni},paddingBottom:{style:ni},paddingLeft:{style:ni},paddingX:{style:ni},paddingY:{style:ni},paddingInline:{style:ni},paddingInlineStart:{style:ni},paddingInlineEnd:{style:ni},paddingBlock:{style:ni},paddingBlockStart:{style:ni},paddingBlockEnd:{style:ni},m:{style:ri},mt:{style:ri},mr:{style:ri},mb:{style:ri},ml:{style:ri},mx:{style:ri},my:{style:ri},margin:{style:ri},marginTop:{style:ri},marginRight:{style:ri},marginBottom:{style:ri},marginLeft:{style:ri},marginX:{style:ri},marginY:{style:ri},marginInline:{style:ri},marginInlineStart:{style:ri},marginInlineEnd:{style:ri},marginBlock:{style:ri},marginBlockStart:{style:ri},marginBlockEnd:{style:ri},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:xi},rowGap:{style:Ei},columnGap:{style:Si},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ci},maxWidth:{style:Ai},minWidth:{transform:Ci},height:{transform:Ci},maxHeight:{transform:Ci},minHeight:{transform:Ci},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const ki=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=$o(r,l)||{};if(u)return u(o);return Ho(o,t,(t=>{let r=Bo(c,s,t);return t===r&&"string"==typeof t&&(r=Bo(c,s,`${e}${"default"===t?"":to(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:Mi;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=Fo(s,e(r,o,i,a));else{const e=Ho({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=Fo(s,e):s[r]=t({sx:o,theme:i})}else s=Fo(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)}}();ki.filterProps=["sx"];var Oi=ki;function Ti(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 _i=["breakpoints","palette","spacing","shape"];function qi(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=An(e,_i),l=qo(r),s=function(e=8){if(e.mui)return e;const t=Zo({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=Dn({breakpoints:l,direction:"ltr",components:{},palette:Rn({mode:"light"},n),spacing:s,shape:Rn({},No,i)},a);return u.applyStyles=Ti,u=t.reduce(((e,t)=>Dn(e,t)),u),u.unstable_sxConfig=Rn({},Mi,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Oi({sx:e,theme:this})},u}function Ni(e=null){const t=y.useContext(sn);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Fi=qi();function ji(e=Fi){return Ni(e)}var zi={exports:{}},Hi={},$i=x,Bi=Symbol.for("react.element"),Wi=Symbol.for("react.fragment"),Vi=Object.prototype.hasOwnProperty,Gi=$i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ui={key:!0,ref:!0,__self:!0,__source:!0};function Yi(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)Vi.call(t,n)&&!Ui.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:Bi,type:e,key:i,ref:a,props:o,_owner:Gi.current}}Hi.Fragment=Wi,Hi.jsx=Yi,Hi.jsxs=Yi,zi.exports=Hi;var Ki=zi.exports;function Xi({styles:e,themeId:t,defaultTheme:r={}}){const n=ji(r),o="function"==typeof e?e(t&&n[t]||n):e;return Ki.jsx(Sn,{styles:o})}const Ji=["sx"];function Zi(e){const{sx:t}=e,r=An(e,Ji),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:Mi;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return Pn(r)?Rn({},n,r):n}:Rn({},n,t),Rn({},o,{sx:i})}const Qi=["className","component"];const ea=["ownerState"],ta=["variants"],ra=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function na(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const oa=qi(),ia=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function aa({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function la(e){return e?(t,r)=>r[e]:null}function sa(e,t){let{ownerState:r}=t,n=An(t,ea);const o="function"==typeof e?e(Rn({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>sa(e,Rn({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=An(o,ta);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(Rn({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(Rn({ownerState:r},n)):e.style))})),t}return o}function ua({props:e,name:t,defaultTheme:r,themeId:n}){let o=ji(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?Co(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return i}function ca(e,t=0,r=1){return Mo(e,t,r)}function da(e){if(e.type)return e;if("#"===e.charAt(0))return da(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(Me(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(Me(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function pa(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 fa(e){let t="hsl"===(e=da(e)).type||"hsla"===e.type?da(function(e){e=da(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])),pa({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 ma(e,t){return e=da(e),t=ca(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,pa(e)}function ha(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 ga(e){if(!ha(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=ga(e[r])})),t}function ba(e,t,r={clone:!0}){const n=r.clone?Rn({},e):e;return ha(e)&&ha(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(ha(t[o])&&o in e&&ha(e[o])?n[o]=ba(e[o],t[o],r):r.clone?n[o]=ha(t[o])?ga(t[o]):t[o]:n[o]=t[o])})),n}function va(e){if("string"!=typeof e)throw new Error(Pe(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ya(e){return e&&e.ownerDocument||document}function xa(e){return ya(e).defaultView||window}var Sa="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;let Ea=0;const wa=y["useId".toString()];function Ca(e){if(void 0!==wa){const t=wa();return null!=e?e:t}return function(e){const[t,r]=y.useState(e),n=e||t;return y.useEffect((()=>{null==t&&(Ea+=1,r(`mui-${Ea}`))}),[t]),n}(e)}function Ra({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 Aa(e){const t=y.useRef(e);return Sa((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function Pa(...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 Ia{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new Ia}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let Da=!0,La=!1;const Ma=new Ia,ka={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 Oa(e){e.metaKey||e.altKey||e.ctrlKey||(Da=!0)}function Ta(){Da=!1}function _a(){"hidden"===this.visibilityState&&La&&(Da=!0)}function qa(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Da||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!ka[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function Na(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Oa,!0),t.addEventListener("mousedown",Ta,!0),t.addEventListener("pointerdown",Ta,!0),t.addEventListener("touchstart",Ta,!0),t.addEventListener("visibilitychange",_a,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!qa(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(La=!0,Ma.start(100,(()=>{La=!1})),t.current=!1,!0)},ref:e}}function Fa(e,t){const r=Rn({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=Rn({},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]=Rn({},i),Object.keys(o).forEach((e=>{r[n][e]=Fa(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const ja=e=>e;var za=(()=>{let e=ja;return{configure(t){e=t},generate:t=>e(t),reset(){e=ja}}})();const Ha={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 $a(e,t,r="Mui"){const n=Ha[t];return n?`${r}-${n}`:`${za.generate(e)}-${t}`}function Ba(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=$a(e,t,r)})),n}const Wa=["mode","contrastThreshold","tonalOffset"],Va={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:ye.white,default:ye.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}},Ga={text:{primary:ye.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:ye.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 Ua(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=da(e),t=ca(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 pa(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=da(e),t=ca(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 pa(e)}(e.main,i)))}function Ya(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Le(e,Wa),i=e.primary||function(e="light"){return"dark"===e?{main:Ee[200],light:Ee[50],dark:Ee[400]}:{main:Ee[700],light:Ee[400],dark:Ee[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Se[200],light:Se[50],dark:Se[400]}:{main:Se[500],light:Se[300],dark:Se[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:xe[500],light:xe[300],dark:xe[700]}:{main:xe[700],light:xe[400],dark:xe[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:we[400],light:we[300],dark:we[700]}:{main:we[700],light:we[500],dark:we[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:Ce[400],light:Ce[300],dark:Ce[700]}:{main:Ce[800],light:Ce[500],dark:Ce[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:Re[400],light:Re[300],dark:Re[700]}:{main:"#ed6c02",light:Re[500],dark:Re[900]}}(t);function d(e){const t=function(e,t){const r=fa(e),n=fa(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,Ga.text.primary)>=r?Ga.text.primary:Va.text.primary;return t}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=De({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Pe(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Pe(12,t?` (${t})`:"",JSON.stringify(e.main)));return Ua(e,"light",o,n),Ua(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Ga,light:Va};return ba(De({common:De({},ye),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:Ae,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Ka=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Xa={textTransform:"uppercase"},Ja='"Roboto", "Helvetica", "Arial", sans-serif';function Za(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Ja,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=Le(r,Ka),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return De({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===Ja?{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,Xa),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Xa),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ba(De({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Qa(...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 el=["none",Qa(0,2,1,-1,0,1,1,0,0,1,3,0),Qa(0,3,1,-2,0,2,2,0,0,1,5,0),Qa(0,3,3,-2,0,3,4,0,0,1,8,0),Qa(0,2,4,-1,0,4,5,0,0,1,10,0),Qa(0,3,5,-1,0,5,8,0,0,1,14,0),Qa(0,3,5,-1,0,6,10,0,0,1,18,0),Qa(0,4,5,-2,0,7,10,1,0,2,16,1),Qa(0,5,5,-3,0,8,10,1,0,3,14,2),Qa(0,5,6,-3,0,9,12,1,0,3,16,2),Qa(0,6,6,-3,0,10,14,1,0,4,18,3),Qa(0,6,7,-4,0,11,15,1,0,4,20,3),Qa(0,7,8,-4,0,12,17,2,0,5,22,4),Qa(0,7,8,-4,0,13,19,2,0,5,24,4),Qa(0,7,9,-4,0,14,21,2,0,5,26,4),Qa(0,8,9,-5,0,15,22,2,0,6,28,5),Qa(0,8,10,-5,0,16,24,2,0,6,30,5),Qa(0,8,11,-5,0,17,26,2,0,6,32,5),Qa(0,9,11,-5,0,18,28,2,0,7,34,6),Qa(0,9,12,-6,0,19,29,2,0,7,36,6),Qa(0,10,13,-6,0,20,31,3,0,8,38,7),Qa(0,10,13,-6,0,21,33,3,0,8,40,7),Qa(0,10,14,-6,0,22,35,3,0,8,42,7),Qa(0,11,14,-7,0,23,36,3,0,9,44,8),Qa(0,11,15,-7,0,24,38,3,0,9,46,8)];const tl=["duration","easing","delay"],rl={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)"},nl={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ol(e){return`${Math.round(e)}ms`}function il(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function al(e){const t=De({},rl,e.easing),r=De({},nl,e.duration);return De({getAutoHeightDuration:il,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return Le(n,tl),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:ol(o)} ${i} ${"string"==typeof a?a:ol(a)}`)).join(",")}},e,{easing:t,duration:r})}var ll={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const sl=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ul(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=Le(e,sl);if(e.vars)throw new Error(Pe(18));const l=Ya(n),s=qi(e);let u=ba(s,{mixins:(c=s.breakpoints,d=r,De({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:el.slice(),typography:Za(l,i),transitions:al(o),zIndex:De({},ll),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=ba(u,a),u=t.reduce(((e,t)=>ba(e,t)),u),u.unstable_sxConfig=De({},Mi,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return Oi({sx:e,theme:this})},u}var cl=ul();function dl(){const e=ji(cl);return e[Ie]||e}function pl({props:e,name:t}){return ua({props:e,name:t,defaultTheme:cl,themeId:Ie})}const fl=e=>na(e)&&"classes"!==e,ml=na,hl=function(e={}){const{themeId:t,defaultTheme:r=oa,rootShouldForwardProp:n=na,slotShouldForwardProp:o=na}=e,i=e=>Oi(Rn({},e,{theme:aa(Rn({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{wn(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=la(ia(s))}=a,p=An(a,ra),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=na;"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=En(e,Rn({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||Pn(e)?n=>sa(e,Rn({},n,{theme:aa({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=aa(Rn({},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]=sa(r,Rn({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=aa(Rn({},e,{defaultTheme:r,themeId:t}));return sa({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},Rn({},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:Ie,defaultTheme:cl,rootShouldForwardProp:fl});var gl=hl;var bl=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function vl(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=vl(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function yl(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=vl(e))&&(n&&(n+=" "),n+=t);return n}function xl(e){return $a("MuiSvgIcon",e)}Ba("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Sl=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],El=gl("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${va(r.color)}`],t[`fontSize${va(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]}})),wl=y.forwardRef((function(e,t){const r=pl({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=Le(r,Sl),f=y.isValidElement(n)&&"svg"===n.type,m=De({},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 Ro({root:["root","inherit"!==t&&`color${va(t)}`,`fontSize${va(r)}`]},xl,n)})(m);return Ki.jsxs(El,De({as:a,className:yl(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?Ki.jsx("title",{children:c}):null]}))}));wl.muiName="SvgIcon";var Cl=wl;var Rl,Al={},Pl=Symbol.for("react.element"),Il=Symbol.for("react.portal"),Dl=Symbol.for("react.fragment"),Ll=Symbol.for("react.strict_mode"),Ml=Symbol.for("react.profiler"),kl=Symbol.for("react.provider"),Ol=Symbol.for("react.context"),Tl=Symbol.for("react.server_context"),_l=Symbol.for("react.forward_ref"),ql=Symbol.for("react.suspense"),Nl=Symbol.for("react.suspense_list"),Fl=Symbol.for("react.memo"),jl=Symbol.for("react.lazy"),zl=Symbol.for("react.offscreen");
|
|
17
|
+
function ii(e,t){let r;return r=t?Qo(e).withConfig({displayName:t.label,shouldForwardProp:t.shouldForwardProp}):Qo(e),r}ni.propTypes={defaultTheme:wt.object,styles:wt.oneOfType([wt.array,wt.string,wt.object,wt.func])};const ai=(e,t)=>{e.componentStyle&&(e.componentStyle.rules=t(e.componentStyle.rules))};var li=Object.freeze({__proto__:null,GlobalStyles:oi,StyledEngineProvider:ri,ThemeContext:Go,css:Xo,default:ii,internal_processStyles:ai,keyframes:ti});function si(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function ui(e){if(!si(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=ui(e[r])})),t}function ci(e,t,r={clone:!0}){const n=r.clone?vt({},e):e;return si(e)&&si(t)&&Object.keys(t).forEach((o=>{si(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&si(e[o])?n[o]=ci(e[o],t[o],r):r.clone?n[o]=si(t[o])?ui(t[o]):t[o]:n[o]=t[o]})),n}var di,pi=Object.freeze({__proto__:null,default:ci,isPlainObject:si}),fi={exports:{}},mi={},hi=Symbol.for("react.element"),gi=Symbol.for("react.portal"),bi=Symbol.for("react.fragment"),vi=Symbol.for("react.strict_mode"),yi=Symbol.for("react.profiler"),xi=Symbol.for("react.provider"),Si=Symbol.for("react.context"),Ei=Symbol.for("react.server_context"),Ci=Symbol.for("react.forward_ref"),wi=Symbol.for("react.suspense"),Ri=Symbol.for("react.suspense_list"),Ai=Symbol.for("react.memo"),Ii=Symbol.for("react.lazy"),Mi=Symbol.for("react.offscreen");function Pi(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case hi:switch(e=e.type){case bi:case yi:case vi:case wi:case Ri:return e;default:switch(e=e&&e.$$typeof){case Ei:case Si:case Ci:case Ii:case Ai:case xi:return e;default:return t}}case gi:return t}}}di=Symbol.for("react.module.reference"),mi.ContextConsumer=Si,mi.ContextProvider=xi,mi.Element=hi,mi.ForwardRef=Ci,mi.Fragment=bi,mi.Lazy=Ii,mi.Memo=Ai,mi.Portal=gi,mi.Profiler=yi,mi.StrictMode=vi,mi.Suspense=wi,mi.SuspenseList=Ri,mi.isAsyncMode=function(){return!1},mi.isConcurrentMode=function(){return!1},mi.isContextConsumer=function(e){return Pi(e)===Si},mi.isContextProvider=function(e){return Pi(e)===xi},mi.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===hi},mi.isForwardRef=function(e){return Pi(e)===Ci},mi.isFragment=function(e){return Pi(e)===bi},mi.isLazy=function(e){return Pi(e)===Ii},mi.isMemo=function(e){return Pi(e)===Ai},mi.isPortal=function(e){return Pi(e)===gi},mi.isProfiler=function(e){return Pi(e)===yi},mi.isStrictMode=function(e){return Pi(e)===vi},mi.isSuspense=function(e){return Pi(e)===wi},mi.isSuspenseList=function(e){return Pi(e)===Ri},mi.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===bi||e===yi||e===vi||e===wi||e===Ri||e===Mi||"object"==typeof e&&null!==e&&(e.$$typeof===Ii||e.$$typeof===Ai||e.$$typeof===xi||e.$$typeof===Si||e.$$typeof===Ci||e.$$typeof===di||void 0!==e.getModuleId)},mi.typeOf=Pi,fi.exports=mi;var Li=fi.exports;const Di=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ki(e){const t=`${e}`.match(Di);return t&&t[1]||""}function Oi(e,t=""){return e.displayName||e.name||ki(e)||t}function Ti(e,t,r){const n=Oi(t);return e.displayName||(""!==n?`${r}(${n})`:r)}var _i=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Oi(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Li.ForwardRef:return Ti(e,e.render,"ForwardRef");case Li.Memo:return Ti(e,e.type,"memo");default:return}}},getFunctionName:ki});function qi(e){if("string"!=typeof e)throw new Error(fr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Ni=Object.freeze({__proto__:null,default:qi});function Fi(...e){return e.reduce(((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)}),(()=>{}))}function ji(e){return e&&e.ownerDocument||document}function zi(e){return ji(e).defaultView||window}function Hi(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var $i="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;function Bi(e){const t=y.useRef(e);return $i((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function Wi(...e){return y.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Hi(e,t)}))}),e)}const Gi={};const Vi=[];let Ui=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 Yi(){const e=function(e,t){const r=y.useRef(Gi);return r.current===Gi&&(r.current=e(t)),r}(Ui.create).current;var t;return t=e.disposeEffect,y.useEffect(t,Vi),e}let Ki=!0,Xi=!1;const Ji=new Ui,Zi={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 Qi(e){e.metaKey||e.altKey||e.ctrlKey||(Ki=!0)}function ea(){Ki=!1}function ta(){"hidden"===this.visibilityState&&Xi&&(Ki=!0)}function ra(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Ki||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!Zi[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function na(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Qi,!0),t.addEventListener("mousedown",ea,!0),t.addEventListener("pointerdown",ea,!0),t.addEventListener("touchstart",ea,!0),t.addEventListener("visibilitychange",ta,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!ra(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Xi=!0,Ji.start(100,(()=>{Xi=!1})),t.current=!1,!0)},ref:e}}function oa(e,t){const r=vt({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=vt({},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]=vt({},i),Object.keys(o).forEach((e=>{r[n][e]=oa(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}function ia(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 aa=e=>e;var la=(()=>{let e=aa;return{configure(t){e=t},generate:t=>e(t),reset(){e=aa}}})();const sa={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 ua(e,t,r="Mui"){const n=sa[t];return n?`${r}-${n}`:`${la.generate(e)}-${t}`}function ca(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=ua(e,t,r)})),n}function da(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}var pa=Object.freeze({__proto__:null,default:da});function fa(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=fa(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ma(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=fa(e))&&(n&&(n+=" "),n+=t);return n}const ha=["values","unit","step"];function ga(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=It(e,ha),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>vt({},e,{[t.key]:t.val})),{})})(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 vt({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 ba={borderRadius:4};function va(e,t){return t?ci(e,t,{clone:!1}):e}const ya={xs:0,sm:600,md:900,lg:1200,xl:1536},xa={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ya[e]}px)`};function Sa(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||xa;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||xa;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||ya).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Ea(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 Ca(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Ea(e,r)||n,t&&(o=t(o,n,e)),o}function wa(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=Ea(e.theme,n)||{};return Sa(e,i,(e=>{let n=Ca(a,o,e);return e===n&&"string"==typeof e&&(n=Ca(a,o,`${t}${"default"===e?"":qi(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Ra={m:"margin",p:"padding"},Aa={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ia={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ma=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Ia[e])return[e];e=Ia[e]}const[t,r]=e.split(""),n=Ra[t],o=Aa[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Pa=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],La=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Da(e,t,r,n){var o;const i=null!=(o=Ea(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 ka(e){return Da(e,"spacing",8)}function Oa(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 Ta(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Oa(t,r),e)),{})}(Ma(r),n);return Sa(e,e[r],o)}function _a(e,t){const r=ka(e.theme);return Object.keys(e).map((n=>Ta(e,t,n,r))).reduce(va,{})}function qa(e){return _a(e,Pa)}function Na(e){return _a(e,La)}function Fa(...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]?va(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function ja(e){return"number"!=typeof e?e:`${e}px solid`}function za(e,t){return wa({prop:e,themeKey:"borders",transform:t})}qa.propTypes={},qa.filterProps=Pa,Na.propTypes={},Na.filterProps=La;const Ha=za("border",ja),$a=za("borderTop",ja),Ba=za("borderRight",ja),Wa=za("borderBottom",ja),Ga=za("borderLeft",ja),Va=za("borderColor"),Ua=za("borderTopColor"),Ya=za("borderRightColor"),Ka=za("borderBottomColor"),Xa=za("borderLeftColor"),Ja=za("outline",ja),Za=za("outlineColor"),Qa=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Da(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Oa(t,e)});return Sa(e,e.borderRadius,r)}return null};Qa.propTypes={},Qa.filterProps=["borderRadius"],Fa(Ha,$a,Ba,Wa,Ga,Va,Ua,Ya,Ka,Xa,Qa,Ja,Za);const el=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Da(e.theme,"spacing",8),r=e=>({gap:Oa(t,e)});return Sa(e,e.gap,r)}return null};el.propTypes={},el.filterProps=["gap"];const tl=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Da(e.theme,"spacing",8),r=e=>({columnGap:Oa(t,e)});return Sa(e,e.columnGap,r)}return null};tl.propTypes={},tl.filterProps=["columnGap"];const rl=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Da(e.theme,"spacing",8),r=e=>({rowGap:Oa(t,e)});return Sa(e,e.rowGap,r)}return null};rl.propTypes={},rl.filterProps=["rowGap"];function nl(e,t){return"grey"===t?t:e}Fa(el,tl,rl,wa({prop:"gridColumn"}),wa({prop:"gridRow"}),wa({prop:"gridAutoFlow"}),wa({prop:"gridAutoColumns"}),wa({prop:"gridAutoRows"}),wa({prop:"gridTemplateColumns"}),wa({prop:"gridTemplateRows"}),wa({prop:"gridTemplateAreas"}),wa({prop:"gridArea"}));function ol(e){return e<=1&&0!==e?100*e+"%":e}Fa(wa({prop:"color",themeKey:"palette",transform:nl}),wa({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:nl}),wa({prop:"backgroundColor",themeKey:"palette",transform:nl}));const il=wa({prop:"width",transform:ol}),al=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])||ya[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:ol(t)}};return Sa(e,e.maxWidth,t)}return null};al.filterProps=["maxWidth"];const ll=wa({prop:"minWidth",transform:ol}),sl=wa({prop:"height",transform:ol}),ul=wa({prop:"maxHeight",transform:ol}),cl=wa({prop:"minHeight",transform:ol});wa({prop:"size",cssProperty:"width",transform:ol}),wa({prop:"size",cssProperty:"height",transform:ol});Fa(il,al,ll,sl,ul,cl,wa({prop:"boxSizing"}));var dl={border:{themeKey:"borders",transform:ja},borderTop:{themeKey:"borders",transform:ja},borderRight:{themeKey:"borders",transform:ja},borderBottom:{themeKey:"borders",transform:ja},borderLeft:{themeKey:"borders",transform:ja},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ja},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Qa},color:{themeKey:"palette",transform:nl},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:nl},backgroundColor:{themeKey:"palette",transform:nl},p:{style:Na},pt:{style:Na},pr:{style:Na},pb:{style:Na},pl:{style:Na},px:{style:Na},py:{style:Na},padding:{style:Na},paddingTop:{style:Na},paddingRight:{style:Na},paddingBottom:{style:Na},paddingLeft:{style:Na},paddingX:{style:Na},paddingY:{style:Na},paddingInline:{style:Na},paddingInlineStart:{style:Na},paddingInlineEnd:{style:Na},paddingBlock:{style:Na},paddingBlockStart:{style:Na},paddingBlockEnd:{style:Na},m:{style:qa},mt:{style:qa},mr:{style:qa},mb:{style:qa},ml:{style:qa},mx:{style:qa},my:{style:qa},margin:{style:qa},marginTop:{style:qa},marginRight:{style:qa},marginBottom:{style:qa},marginLeft:{style:qa},marginX:{style:qa},marginY:{style:qa},marginInline:{style:qa},marginInlineStart:{style:qa},marginInlineEnd:{style:qa},marginBlock:{style:qa},marginBlockStart:{style:qa},marginBlockEnd:{style:qa},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:el},rowGap:{style:rl},columnGap:{style:tl},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ol},maxWidth:{style:al},minWidth:{transform:ol},height:{transform:ol},maxHeight:{transform:ol},minHeight:{transform:ol},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const pl=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=Ea(r,l)||{};if(u)return u(o);return Sa(o,t,(t=>{let r=Ca(c,s,t);return t===r&&"string"==typeof t&&(r=Ca(c,s,`${e}${"default"===t?"":qi(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:dl;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=va(s,e(r,o,i,a));else{const e=Sa({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=va(s,e):s[r]=t({sx:o,theme:i})}else s=va(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)}}();pl.filterProps=["sx"];var fl=pl;function ml(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 hl=["breakpoints","palette","spacing","shape"];function gl(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=It(e,hl),l=ga(r),s=function(e=8){if(e.mui)return e;const t=ka({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=ci({breakpoints:l,direction:"ltr",components:{},palette:vt({mode:"light"},n),spacing:s,shape:vt({},ba,i)},a);return u.applyStyles=ml,u=t.reduce(((e,t)=>ci(e,t)),u),u.unstable_sxConfig=vt({},dl,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return fl({sx:e,theme:this})},u}function bl(e=null){const t=y.useContext(Go);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const vl=gl();function yl(e=vl){return bl(e)}var xl={exports:{}},Sl={},El=x,Cl=Symbol.for("react.element"),wl=Symbol.for("react.fragment"),Rl=Object.prototype.hasOwnProperty,Al=El.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Il={key:!0,ref:!0,__self:!0,__source:!0};function Ml(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)Rl.call(t,n)&&!Il.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:Cl,type:e,key:i,ref:a,props:o,_owner:Al.current}}Sl.Fragment=wl,Sl.jsx=Ml,Sl.jsxs=Ml,xl.exports=Sl;var Pl=xl.exports;function Ll({styles:e,themeId:t,defaultTheme:r={}}){const n=yl(r),o="function"==typeof e?e(t&&n[t]||n):e;return Pl.jsx(oi,{styles:o})}const Dl=["sx"];function kl(e){const{sx:t}=e,r=It(e,Dl),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:dl;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return si(r)?vt({},n,r):n}:vt({},n,t),vt({},o,{sx:i})}const Ol=["className","component"];const Tl=["ownerState"],_l=["variants"],ql=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Nl(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Fl=gl(),jl=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function zl({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Hl(e){return e?(t,r)=>r[e]:null}function $l(e,t){let{ownerState:r}=t,n=It(t,Tl);const o="function"==typeof e?e(vt({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>$l(e,vt({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=It(o,_l);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(vt({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(vt({ownerState:r},n)):e.style))})),t}return o}function Bl({props:e,name:t,defaultTheme:r,themeId:n}){let o=yl(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?oa(t.components[r].defaultProps,n):n}({theme:o,name:t,props:e});return i}function Wl(e,t=0,r=1){return da(e,t,r)}function Gl(e){if(e.type)return e;if("#"===e.charAt(0))return Gl(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(fr(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(fr(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Vl(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 Ul(e){let t="hsl"===(e=Gl(e)).type||"hsla"===e.type?Gl(function(e){e=Gl(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])),Vl({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 Yl(e,t){return e=Gl(e),t=Wl(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Vl(e)}function Kl(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Xl(e){if(!Kl(e))return e;const t={};return Object.keys(e).forEach((r=>{t[r]=Xl(e[r])})),t}function Jl(e,t,r={clone:!0}){const n=r.clone?vt({},e):e;return Kl(e)&&Kl(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Kl(t[o])&&o in e&&Kl(e[o])?n[o]=Jl(e[o],t[o],r):r.clone?n[o]=Kl(t[o])?Xl(t[o]):t[o]:n[o]=t[o])})),n}function Zl(e){if("string"!=typeof e)throw new Error(ur(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ql(e){return e&&e.ownerDocument||document}function es(e){return Ql(e).defaultView||window}var ts="undefined"!=typeof window?y.useLayoutEffect:y.useEffect;let rs=0;const ns=y["useId".toString()];function os(e){if(void 0!==ns){const t=ns();return null!=e?e:t}return function(e){const[t,r]=y.useState(e),n=e||t;return y.useEffect((()=>{null==t&&(rs+=1,r(`mui-${rs}`))}),[t]),n}(e)}function is({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 as(e){const t=y.useRef(e);return ts((()=>{t.current=e})),y.useRef(((...e)=>(0,t.current)(...e))).current}function ls(...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 ss{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new ss}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let us=!0,cs=!1;const ds=new ss,ps={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 fs(e){e.metaKey||e.altKey||e.ctrlKey||(us=!0)}function ms(){us=!1}function hs(){"hidden"===this.visibilityState&&cs&&(us=!0)}function gs(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return us||function(e){const{type:t,tagName:r}=e;return!("INPUT"!==r||!ps[t]||e.readOnly)||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}function bs(){const e=y.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",fs,!0),t.addEventListener("mousedown",ms,!0),t.addEventListener("pointerdown",ms,!0),t.addEventListener("touchstart",ms,!0),t.addEventListener("visibilitychange",hs,!0))}),[]),t=y.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!gs(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(cs=!0,ds.start(100,(()=>{cs=!1})),t.current=!1,!0)},ref:e}}function vs(e,t){const r=vt({},t);return Object.keys(e).forEach((n=>{if(n.toString().match(/^(components|slots)$/))r[n]=vt({},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]=vt({},i),Object.keys(o).forEach((e=>{r[n][e]=vs(o[e],i[e])}))):r[n]=i:r[n]=o}else void 0===r[n]&&(r[n]=e[n])})),r}const ys=e=>e;var xs=(()=>{let e=ys;return{configure(t){e=t},generate:t=>e(t),reset(){e=ys}}})();const Ss={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Es(e,t,r="Mui"){const n=Ss[t];return n?`${r}-${n}`:`${xs.generate(e)}-${t}`}function Cs(e,t,r="Mui"){const n={};return t.forEach((t=>{n[t]=Es(e,t,r)})),n}const ws=["mode","contrastThreshold","tonalOffset"],Rs={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:tr.white,default:tr.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},As={text:{primary:tr.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:tr.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Is(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=Gl(e),t=Wl(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 Vl(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Gl(e),t=Wl(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 Vl(e)}(e.main,i)))}function Ms(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=pr(e,ws),i=e.primary||function(e="light"){return"dark"===e?{main:or[200],light:or[50],dark:or[400]}:{main:or[700],light:or[400],dark:or[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:nr[200],light:nr[50],dark:nr[400]}:{main:nr[500],light:nr[300],dark:nr[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:rr[500],light:rr[300],dark:rr[700]}:{main:rr[700],light:rr[400],dark:rr[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:ir[400],light:ir[300],dark:ir[700]}:{main:ir[700],light:ir[500],dark:ir[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:ar[400],light:ar[300],dark:ar[700]}:{main:ar[800],light:ar[500],dark:ar[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:lr[400],light:lr[300],dark:lr[700]}:{main:"#ed6c02",light:lr[500],dark:lr[900]}}(t);function d(e){const t=function(e,t){const r=Ul(e),n=Ul(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}(e,As.text.primary)>=r?As.text.primary:Rs.text.primary;return t}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=dr({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(ur(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(ur(12,t?` (${t})`:"",JSON.stringify(e.main)));return Is(e,"light",o,n),Is(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:As,light:Rs};return Jl(dr({common:dr({},tr),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:sr,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const Ps=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ls={textTransform:"uppercase"},Ds='"Roboto", "Helvetica", "Arial", sans-serif';function ks(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=Ds,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=pr(r,Ps),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return dr({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===Ds?{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,Ls),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,Ls),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Jl(dr({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Os(...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 Ts=["none",Os(0,2,1,-1,0,1,1,0,0,1,3,0),Os(0,3,1,-2,0,2,2,0,0,1,5,0),Os(0,3,3,-2,0,3,4,0,0,1,8,0),Os(0,2,4,-1,0,4,5,0,0,1,10,0),Os(0,3,5,-1,0,5,8,0,0,1,14,0),Os(0,3,5,-1,0,6,10,0,0,1,18,0),Os(0,4,5,-2,0,7,10,1,0,2,16,1),Os(0,5,5,-3,0,8,10,1,0,3,14,2),Os(0,5,6,-3,0,9,12,1,0,3,16,2),Os(0,6,6,-3,0,10,14,1,0,4,18,3),Os(0,6,7,-4,0,11,15,1,0,4,20,3),Os(0,7,8,-4,0,12,17,2,0,5,22,4),Os(0,7,8,-4,0,13,19,2,0,5,24,4),Os(0,7,9,-4,0,14,21,2,0,5,26,4),Os(0,8,9,-5,0,15,22,2,0,6,28,5),Os(0,8,10,-5,0,16,24,2,0,6,30,5),Os(0,8,11,-5,0,17,26,2,0,6,32,5),Os(0,9,11,-5,0,18,28,2,0,7,34,6),Os(0,9,12,-6,0,19,29,2,0,7,36,6),Os(0,10,13,-6,0,20,31,3,0,8,38,7),Os(0,10,13,-6,0,21,33,3,0,8,40,7),Os(0,10,14,-6,0,22,35,3,0,8,42,7),Os(0,11,14,-7,0,23,36,3,0,9,44,8),Os(0,11,15,-7,0,24,38,3,0,9,46,8)];const _s=["duration","easing","delay"],qs={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)"},Ns={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Fs(e){return`${Math.round(e)}ms`}function js(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function zs(e){const t=dr({},qs,e.easing),r=dr({},Ns,e.duration);return dr({getAutoHeightDuration:js,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return pr(n,_s),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Fs(o)} ${i} ${"string"==typeof a?a:Fs(a)}`)).join(",")}},e,{easing:t,duration:r})}var Hs={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const $s=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Bs(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=pr(e,$s);if(e.vars)throw new Error(ur(18));const l=Ms(n),s=gl(e);let u=Jl(s,{mixins:(c=s.breakpoints,d=r,dr({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Ts.slice(),typography:ks(l,i),transitions:zs(o),zIndex:dr({},Hs),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=Jl(u,a),u=t.reduce(((e,t)=>Jl(e,t)),u),u.unstable_sxConfig=dr({},dl,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return fl({sx:e,theme:this})},u}var Ws=Bs();function Gs(){const e=yl(Ws);return e[cr]||e}function Vs({props:e,name:t}){return Bl({props:e,name:t,defaultTheme:Ws,themeId:cr})}const Us=e=>Nl(e)&&"classes"!==e,Ys=Nl,Ks=function(e={}){const{themeId:t,defaultTheme:r=Fl,rootShouldForwardProp:n=Nl,slotShouldForwardProp:o=Nl}=e,i=e=>fl(vt({},e,{theme:zl(vt({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{ai(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=Hl(jl(s))}=a,p=It(a,ql),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=Nl;"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=ii(e,vt({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||si(e)?n=>$l(e,vt({},n,{theme:zl({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=zl(vt({},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]=$l(r,vt({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=zl(vt({},e,{defaultTheme:r,themeId:t}));return $l({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},vt({},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:cr,defaultTheme:Ws,rootShouldForwardProp:Us});var Xs=Ks;var Js=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Zs(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=Zs(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Qs(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Zs(e))&&(n&&(n+=" "),n+=t);return n}function eu(e){return Es("MuiSvgIcon",e)}Cs("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const tu=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ru=Xs("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${Zl(r.color)}`],t[`fontSize${Zl(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]}})),nu=y.forwardRef((function(e,t){const r=Vs({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=pr(r,tu),f=y.isValidElement(n)&&"svg"===n.type,m=dr({},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 ia({root:["root","inherit"!==t&&`color${Zl(t)}`,`fontSize${Zl(r)}`]},eu,n)})(m);return Pl.jsxs(ru,dr({as:a,className:Qs(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?Pl.jsx("title",{children:c}):null]}))}));nu.muiName="SvgIcon";var ou=nu;var iu,au={},lu=Symbol.for("react.element"),su=Symbol.for("react.portal"),uu=Symbol.for("react.fragment"),cu=Symbol.for("react.strict_mode"),du=Symbol.for("react.profiler"),pu=Symbol.for("react.provider"),fu=Symbol.for("react.context"),mu=Symbol.for("react.server_context"),hu=Symbol.for("react.forward_ref"),gu=Symbol.for("react.suspense"),bu=Symbol.for("react.suspense_list"),vu=Symbol.for("react.memo"),yu=Symbol.for("react.lazy"),xu=Symbol.for("react.offscreen");
|
|
16
18
|
/**
|
|
17
19
|
* @license React
|
|
18
20
|
* react-is.production.min.js
|
|
@@ -21,7 +23,7 @@ function En(e,t){let r;return r=t?gn(e).withConfig({displayName:t.label,shouldFo
|
|
|
21
23
|
*
|
|
22
24
|
* This source code is licensed under the MIT license found in the
|
|
23
25
|
* LICENSE file in the root directory of this source tree.
|
|
24
|
-
*/function Hl(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Pl:switch(e=e.type){case Dl:case Ml:case Ll:case ql:case Nl:return e;default:switch(e=e&&e.$$typeof){case Tl:case Ol:case _l:case jl:case Fl:case kl:return e;default:return t}}case Il:return t}}}function $l(e,t){return $l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$l(e,t)}function Bl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,$l(e,t)}Rl=Symbol.for("react.module.reference"),Al.ContextConsumer=Ol,Al.ContextProvider=kl,Al.Element=Pl,Al.ForwardRef=_l,Al.Fragment=Dl,Al.Lazy=jl,Al.Memo=Fl,Al.Portal=Il,Al.Profiler=Ml,Al.StrictMode=Ll,Al.Suspense=ql,Al.SuspenseList=Nl,Al.isAsyncMode=function(){return!1},Al.isConcurrentMode=function(){return!1},Al.isContextConsumer=function(e){return Hl(e)===Ol},Al.isContextProvider=function(e){return Hl(e)===kl},Al.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Pl},Al.isForwardRef=function(e){return Hl(e)===_l},Al.isFragment=function(e){return Hl(e)===Dl},Al.isLazy=function(e){return Hl(e)===jl},Al.isMemo=function(e){return Hl(e)===Fl},Al.isPortal=function(e){return Hl(e)===Il},Al.isProfiler=function(e){return Hl(e)===Ml},Al.isStrictMode=function(e){return Hl(e)===Ll},Al.isSuspense=function(e){return Hl(e)===ql},Al.isSuspenseList=function(e){return Hl(e)===Nl},Al.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Dl||e===Ml||e===Ll||e===ql||e===Nl||e===zl||"object"==typeof e&&null!==e&&(e.$$typeof===jl||e.$$typeof===Fl||e.$$typeof===kl||e.$$typeof===Ol||e.$$typeof===_l||e.$$typeof===Rl||void 0!==e.getModuleId)},Al.typeOf=Hl;var Wl=!1,Vl=x.createContext(null),Gl="unmounted",Ul="exited",Yl="entering",Kl="entered",Xl="exiting",Jl=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=Ul,n.appearStatus=Yl):o=Kl:o=t.unmountOnExit||t.mountOnEnter?Gl:Ul,n.state={status:o},n.nextCallback=null,n}Bl(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Gl?{status:Ul}: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!==Yl&&r!==Kl&&(t=Yl):r!==Yl&&r!==Kl||(t=Xl)}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===Yl){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===Ul&&this.setState({status:Gl})},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||Wl?this.safeSetState({status:Kl},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Yl},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Kl},(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&&!Wl?(this.props.onExit(n),this.safeSetState({status:Xl},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Ul},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Ul},(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===Gl)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=An(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(Vl.Provider,{value:null},"function"==typeof r?r(e,n):x.cloneElement(x.Children.only(r),n))},t}(x.Component);function Zl(){}Jl.contextType=Vl,Jl.propTypes={},Jl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Zl,onEntering:Zl,onEntered:Zl,onExit:Zl,onExiting:Zl,onExited:Zl},Jl.UNMOUNTED=Gl,Jl.EXITED=Ul,Jl.ENTERING=Yl,Jl.ENTERED=Kl,Jl.EXITING=Xl;var Ql=Jl;function es(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&&P(e)?t(e):e}(e)})),r}function ts(e,t,r){return null!=r[t]?r[t]:e.props[t]}function rs(e,t,r){var n=es(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(P(a)){var l=i in t,s=i in n,u=t[i],c=P(u)&&!u.props.in;!s||l&&!c?s||!l||c?s&&l&&P(u)&&(o[i]=I(a,{onExited:r.bind(null,a),in:u.props.in,exit:ts(a,"exit",e),enter:ts(a,"enter",e)})):o[i]=I(a,{in:!1}):o[i]=I(a,{onExited:r.bind(null,a),in:!0,exit:ts(a,"exit",e),enter:ts(a,"enter",e)})}})),o}var ns=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},os=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}Bl(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,es(r.children,(function(e){return I(e,{onExited:n.bind(null,e),in:!0,appear:ts(e,"appear",r),enter:ts(e,"enter",r),exit:ts(e,"exit",r)})}))):rs(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=es(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=Rn({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=An(e,["component","childFactory"]),o=this.state.contextValue,i=ns(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?x.createElement(Vl.Provider,{value:o},i):x.createElement(Vl.Provider,{value:o},x.createElement(t,n,i))},t}(x.Component);os.propTypes={},os.defaultProps={component:"div",childFactory:function(e){return e}};var is=os;const as=e=>e.scrollTop;function ls(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 ss(e){return $a("MuiPaper",e)}Ba("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 us=["className","component","elevation","square","variant"],cs=gl("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 De({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&&De({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${ma("#fff",bl(t.elevation))}, ${ma("#fff",bl(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}));var ds=y.forwardRef((function(e,t){const r=pl({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=Le(r,us),u=De({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return Ro({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},ss,o)})(u);return Ki.jsx(cs,De({as:o,ownerState:u,className:yl(c.root,n),ref:t},s))}));function ps(e){return"string"==typeof e}function fs(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 ms(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 hs=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function gs(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=An(e,hs),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=To(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=Rn({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=Rn({},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=fs(Rn({},o,n)),l=ms(n),s=ms(o),u=t(a),c=To(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=Rn({},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=Rn({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(Rn({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||ps(e)?t:Rn({},t,{ownerState:Rn({},t.ownerState,r)})}(r,Rn({},s,{ref:uo(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var bs=Ba("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const vs=["center","classes","className"];let ys,xs,Ss,Es,ws=e=>e;const Cs=vn(ys||(ys=ws`
|
|
26
|
+
*/function Su(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case lu:switch(e=e.type){case uu:case du:case cu:case gu:case bu:return e;default:switch(e=e&&e.$$typeof){case mu:case fu:case hu:case yu:case vu:case pu:return e;default:return t}}case su:return t}}}iu=Symbol.for("react.module.reference"),au.ContextConsumer=fu,au.ContextProvider=pu,au.Element=lu,au.ForwardRef=hu,au.Fragment=uu,au.Lazy=yu,au.Memo=vu,au.Portal=su,au.Profiler=du,au.StrictMode=cu,au.Suspense=gu,au.SuspenseList=bu,au.isAsyncMode=function(){return!1},au.isConcurrentMode=function(){return!1},au.isContextConsumer=function(e){return Su(e)===fu},au.isContextProvider=function(e){return Su(e)===pu},au.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===lu},au.isForwardRef=function(e){return Su(e)===hu},au.isFragment=function(e){return Su(e)===uu},au.isLazy=function(e){return Su(e)===yu},au.isMemo=function(e){return Su(e)===vu},au.isPortal=function(e){return Su(e)===su},au.isProfiler=function(e){return Su(e)===du},au.isStrictMode=function(e){return Su(e)===cu},au.isSuspense=function(e){return Su(e)===gu},au.isSuspenseList=function(e){return Su(e)===bu},au.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===uu||e===du||e===cu||e===gu||e===bu||e===xu||"object"==typeof e&&null!==e&&(e.$$typeof===yu||e.$$typeof===vu||e.$$typeof===pu||e.$$typeof===fu||e.$$typeof===hu||e.$$typeof===iu||void 0!==e.getModuleId)},au.typeOf=Su;var Eu=!1,Cu=x.createContext(null),wu="unmounted",Ru="exited",Au="entering",Iu="entered",Mu="exiting",Pu=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=Ru,n.appearStatus=Au):o=Iu:o=t.unmountOnExit||t.mountOnEnter?wu:Ru,n.state={status:o},n.nextCallback=null,n}Pt(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===wu?{status:Ru}: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!==Au&&r!==Iu&&(t=Au):r!==Au&&r!==Iu||(t=Mu)}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===Au){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===Ru&&this.setState({status:wu})},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||Eu?this.safeSetState({status:Iu},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Au},(function(){t.props.onEntering(i,a),t.onTransitionEnd(s,(function(){t.safeSetState({status:Iu},(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&&!Eu?(this.props.onExit(n),this.safeSetState({status:Mu},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:Ru},(function(){e.props.onExited(n)}))}))}))):this.safeSetState({status:Ru},(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===wu)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=It(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return x.createElement(Cu.Provider,{value:null},"function"==typeof r?r(e,n):x.cloneElement(x.Children.only(r),n))},t}(x.Component);function Lu(){}Pu.contextType=Cu,Pu.propTypes={},Pu.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Lu,onEntering:Lu,onEntered:Lu,onExit:Lu,onExiting:Lu,onExited:Lu},Pu.UNMOUNTED=wu,Pu.EXITED=Ru,Pu.ENTERING=Au,Pu.ENTERED=Iu,Pu.EXITING=Mu;var Du=Pu;function ku(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 Ou(e,t,r){return null!=r[t]?r[t]:e.props[t]}function Tu(e,t,r){var n=ku(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]=M(a,{onExited:r.bind(null,a),in:u.props.in,exit:Ou(a,"exit",e),enter:Ou(a,"enter",e)})):o[i]=M(a,{in:!1}):o[i]=M(a,{onExited:r.bind(null,a),in:!0,exit:Ou(a,"exit",e),enter:Ou(a,"enter",e)})}})),o}var _u=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},qu=function(e){function t(t,r){var n,o=(n=e.call(this,t,r)||this).handleExited.bind(Lt(n));return n.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},n}Pt(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,ku(r.children,(function(e){return M(e,{onExited:n.bind(null,e),in:!0,appear:Ou(e,"appear",r),enter:Ou(e,"enter",r),exit:Ou(e,"exit",r)})}))):Tu(e,o,i),firstRender:!1}},r.handleExited=function(e,t){var r=ku(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var r=vt({},t.children);return delete r[e.key],{children:r}})))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,n=It(e,["component","childFactory"]),o=this.state.contextValue,i=_u(this.state.children).map(r);return delete n.appear,delete n.enter,delete n.exit,null===t?x.createElement(Cu.Provider,{value:o},i):x.createElement(Cu.Provider,{value:o},x.createElement(t,n,i))},t}(x.Component);qu.propTypes={},qu.defaultProps={component:"div",childFactory:function(e){return e}};var Nu=qu;const Fu=e=>e.scrollTop;function ju(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 zu(e){return Es("MuiPaper",e)}Cs("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Hu=["className","component","elevation","square","variant"],$u=Xs("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 dr({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&&dr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Yl("#fff",Js(t.elevation))}, ${Yl("#fff",Js(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))}));var Bu=y.forwardRef((function(e,t){const r=Vs({props:e,name:"MuiPaper"}),{className:n,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=r,s=pr(r,Hu),u=dr({},r,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:r,variant:n,classes:o}=e;return ia({root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]},zu,o)})(u);return Pl.jsx($u,dr({as:o,ownerState:u,className:Qs(c.root,n),ref:t},s))}));function Wu(e){return"string"==typeof e}function Gu(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 Vu(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 Uu=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Yu(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=It(e,Uu),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=ma(null==r?void 0:r.className,i,null==o?void 0:o.className,null==n?void 0:n.className),t=vt({},null==r?void 0:r.style,null==o?void 0:o.style,null==n?void 0:n.style),a=vt({},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=Gu(vt({},o,n)),l=Vu(n),s=Vu(o),u=t(a),c=ma(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=vt({},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=vt({},u,r,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(vt({},a,{externalSlotProps:l})),c=function(e,t,r){return void 0===e||Wu(e)?t:vt({},t,{ownerState:vt({},t.ownerState,r)})}(r,vt({},s,{ref:Wi(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var Ku=Cs("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Xu=["center","classes","className"];let Ju,Zu,Qu,ec,tc=e=>e;const rc=ti(Ju||(Ju=tc`
|
|
25
27
|
0% {
|
|
26
28
|
transform: scale(0);
|
|
27
29
|
opacity: 0.1;
|
|
@@ -31,7 +33,7 @@ function En(e,t){let r;return r=t?gn(e).withConfig({displayName:t.label,shouldFo
|
|
|
31
33
|
transform: scale(1);
|
|
32
34
|
opacity: 0.3;
|
|
33
35
|
}
|
|
34
|
-
`)),
|
|
36
|
+
`)),nc=ti(Zu||(Zu=tc`
|
|
35
37
|
0% {
|
|
36
38
|
opacity: 1;
|
|
37
39
|
}
|
|
@@ -39,7 +41,7 @@ function En(e,t){let r;return r=t?gn(e).withConfig({displayName:t.label,shouldFo
|
|
|
39
41
|
100% {
|
|
40
42
|
opacity: 0;
|
|
41
43
|
}
|
|
42
|
-
`)),
|
|
44
|
+
`)),oc=ti(Qu||(Qu=tc`
|
|
43
45
|
0% {
|
|
44
46
|
transform: scale(1);
|
|
45
47
|
}
|
|
@@ -51,7 +53,7 @@ function En(e,t){let r;return r=t?gn(e).withConfig({displayName:t.label,shouldFo
|
|
|
51
53
|
100% {
|
|
52
54
|
transform: scale(1);
|
|
53
55
|
}
|
|
54
|
-
`)),
|
|
56
|
+
`)),ic=Xs("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ac=Xs((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=Qs(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=Qs(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]),Pl.jsx("span",{className:p,style:f,children:Pl.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(ec||(ec=tc`
|
|
55
57
|
opacity: 0;
|
|
56
58
|
position: absolute;
|
|
57
59
|
|
|
@@ -94,11 +96,9 @@ function En(e,t){let r;return r=t?gn(e).withConfig({displayName:t.label,shouldFo
|
|
|
94
96
|
animation-iteration-count: infinite;
|
|
95
97
|
animation-delay: 200ms;
|
|
96
98
|
}
|
|
97
|
-
`),bs.rippleVisible,Cs,550,(({theme:e})=>e.transitions.easing.easeInOut),bs.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),bs.child,bs.childLeaving,Rs,550,(({theme:e})=>e.transitions.easing.easeInOut),bs.childPulsate,As,(({theme:e})=>e.transitions.easing.easeInOut));var Ds=y.forwardRef((function(e,t){const r=pl({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Le(r,vs),[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,Ki.jsx(Is,{classes:{ripple:yl(o.ripple,bs.ripple),rippleVisible:yl(o.rippleVisible,bs.rippleVisible),ripplePulsate:yl(o.ripplePulsate,bs.ripplePulsate),child:yl(o.child,bs.child),childLeaving:yl(o.childLeaving,bs.childLeaving),childPulsate:yl(o.childPulsate,bs.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]),Ki.jsx(Ps,De({className:yl(bs.root,o.root,i),ref:m},a,{children:Ki.jsx(is,{component:null,exit:!0,children:l})}))}));function Ls(e){return $a("MuiButtonBase",e)}var Ms=Ba("MuiButtonBase",["root","disabled","focusVisible"]);const ks=["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"],Os=gl("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"},[`&.${Ms.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ts=y.forwardRef((function(e,t){const r=pl({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:P,tabIndex:I=0,TouchRippleProps:D,touchRippleRef:L,type:M}=r,k=Le(r,ks),O=y.useRef(null),T=y.useRef(null),_=Pa(T,L),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=Na(),[z,H]=y.useState(!1);s&&z&&H(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),O.current.focus()}})),[]);const[$,B]=y.useState(!1);y.useEffect((()=>{B(!0)}),[]);const W=$&&!u&&!s;function V(e,t,r=c){return Aa((n=>{t&&t(n);return!r&&T.current&&T.current[e](n),!0}))}y.useEffect((()=>{z&&d&&!u&&$&&T.current.pulsate()}),[u,d,z,$]);const G=V("start",E),U=V("stop",h),Y=V("stop",g),K=V("stop",C),X=V("stop",(e=>{z&&e.preventDefault(),w&&w(e)})),J=V("start",P),Z=V("stop",R),Q=V("stop",A),ee=V("stop",(e=>{F(e),!1===q.current&&H(!1),f&&f(e)}),!1),te=Aa((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&(H(!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=Aa((e=>{d&&!ne.current&&z&&T.current&&" "===e.key&&(ne.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=Aa((e=>{d&&" "===e.key&&T.current&&z&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.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=Pa(t,j,O),ue=De({},r,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Ro({root:["root",t&&"disabled",r&&"focusVisible"]},Ls,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Ki.jsxs(Os,De({as:ae,className:yl(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:I,type:M},le,k,{children:[i,W?Ki.jsx(Ds,De({ref:_,center:o},D)):null]}))}));var _s=Ts;function qs(e){return $a("MuiTypography",e)}Ba("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Ns=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Fs=gl("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${va(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>De({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}))),js={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},zs={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Hs=y.forwardRef((function(e,t){const r=pl({props:e,name:"MuiTypography"}),n=(e=>zs[e]||e)(r.color),o=Zi(De({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=js}=o,f=Le(o,Ns),m=De({},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]||js[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Ro({root:["root",i,"inherit"!==e.align&&`align${va(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},qs,a)})(m);return Ki.jsx(Fs,De({as:h,ref:t,ownerState:m,className:yl(g.root,a)},f))}));var $s=Hs;const Bs=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ws(e){const t=[],r=[];return Array.from(e.querySelectorAll(Bs)).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 Vs(){return!0}function Gs(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=Ws,isEnabled:a=Vs,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=uo(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=oo(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=oo(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 Ki.jsxs(y.Fragment,{children:[Ki.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)}}),Ki.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const Us=y.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=y.useState(null),l=uo(y.isValidElement(r)?r.ref:null,t);if(lo((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),lo((()=>{if(i&&!o)return ao(t,i),()=>{ao(t,null)}}),[t,i,o]),o){if(y.isValidElement(r)){const e={ref:l};return y.cloneElement(r,e)}return Ki.jsx(y.Fragment,{children:r})}return Ki.jsx(y.Fragment,{children:i?j.createPortal(r,i):i})}));function Ys(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ks(e){return parseInt(io(e).getComputedStyle(e).paddingRight,10)||0}function Xs(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&&Ys(e,o)}))}function Js(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function Zs(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=oo(e);return t.body===e?io(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)}(oo(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Ks(n)+e}px`;const t=oo(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Ks(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=oo(n).body;else{const t=n.parentElement,r=io(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 Qs=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&&Ys(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);Xs(t,e.mount,e.modalRef,n,!0);const o=Js(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=Js(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=Zs(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Js(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&&Ys(e.modalRef,t),Xs(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&&Ys(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function eu(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Qs,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=uo(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=so((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||oo(f.current).body;o.add(S(),e),m.current&&E()})),C=y.useCallback((()=>o.isTopModal(S())),[o]),R=so((e=>{f.current=e,e&&(c&&C()?E():m.current&&Ys(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 P=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&C()&&(r||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const r=fs(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=Rn({},r,t);return Rn({role:"presentation"},n,{onKeyDown:P(n),ref:h})},getBackdropProps:(e={})=>Rn({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:no((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:no((()=>{b(!0),l&&l(),i&&A()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:R,isTopModal:C,exited:g,hasTransition:v}}const tu=["onChange","maxRows","minRows","style","value"];function ru(e){return parseInt(e,10)||0}const nu={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function ou(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const iu=y.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,l=An(e,tu),{current:s}=y.useRef(null!=a),u=y.useRef(null),c=uo(t,u),d=y.useRef(null),p=y.useRef(0),[f,m]=y.useState({outerHeightStyle:0}),h=y.useCallback((()=>{const t=u.current,r=io(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=ru(r.paddingBottom)+ru(r.paddingTop),s=ru(r.borderBottomWidth)+ru(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();ou(e)||m((t=>g(t,e)))}),[h]);lo((()=>{const e=()=>{p.current=0,(()=>{const e=h();ou(e)||j.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=io(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]),lo((()=>{b()})),y.useEffect((()=>{p.current=0}),[a]);return Ki.jsxs(y.Fragment,{children:[Ki.jsx("textarea",Rn({value:a,onChange:e=>{p.current=0,s||b(),r&&r(e)},ref:c,rows:o,style:Rn({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),Ki.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Rn({},nu,i,{paddingTop:0,paddingBottom:0})})]})}));function au({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 lu=y.createContext(void 0);function su(){return y.useContext(lu)}function uu(e){return Ki.jsx(Xi,De({},e,{defaultTheme:cl,themeId:Ie}))}function cu(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function du(e,t=!1){return e&&(cu(e.value)&&""!==e.value||t&&cu(e.defaultValue)&&""!==e.defaultValue)}function pu(e){return $a("MuiInputBase",e)}var fu=Ba("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const mu=["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"],hu=(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${va(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},gu=(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]},bu=gl("div",{name:"MuiInputBase",slot:"Root",overridesResolver:hu})((({theme:e,ownerState:t})=>De({},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",[`&.${fu.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&De({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),vu=gl("input",{name:"MuiInputBase",slot:"Input",overridesResolver:gu})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=De({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 De({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] + .${fu.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},[`&.${fu.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"})})),yu=Ki.jsx(uu,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),xu=y.forwardRef((function(e,t){var r;const n=pl({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:P,onKeyDown:I,onKeyUp:D,placeholder:L,readOnly:M,renderSuffix:k,rows:O,slotProps:T={},slots:_={},startAdornment:q,type:N="text",value:F}=n,j=Le(n,mu),z=null!=b.value?b.value:F,{current:H}=y.useRef(null!=z),$=y.useRef(),B=y.useCallback((e=>{}),[]),W=Pa($,v,b.ref,B),[V,G]=y.useState(!1),U=su(),Y=au({props:n,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:V,y.useEffect((()=>{!U&&d&&V&&(G(!1),C&&C())}),[U,d,V,C]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=y.useCallback((e=>{du(e)?K&&K():X&&X()}),[K,X]);Sa((()=>{H&&J({value:z})}),[z,J,H]);y.useEffect((()=>{J($.current)}),[]);let Z=g,Q=b;E&&"input"===Z&&(Q=De(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:x,minRows:S},Q),Z=iu);y.useEffect((()=>{U&&U.setAdornedStart(Boolean(q))}),[U,q]);const ee=De({},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 Ro({root:["root",`color${va(r)}`,n&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${va(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"]},pu,t)})(ee),re=_.root||s.Root||bu,ne=T.root||u.root||{},oe=_.input||s.Input||vu;return Q=De({},Q,null!=(r=T.input)?r:u.input),Ki.jsxs(y.Fragment,{children:[!p&&yu,Ki.jsxs(re,De({},ne,!ps(re)&&{ownerState:De({},ee,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),A&&A(e)}},j,{className:yl(te.root,ne.className,l,M&&"MuiInputBase-readOnly"),children:[q,Ki.jsx(lu.Provider,{value:null,children:Ki.jsx(oe,De({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?$.current:{value:"x"})},name:w,placeholder:L,readOnly:M,required:Y.required,rows:O,value:z,onKeyDown:I,onKeyUp:D,type:N},Q,!ps(oe)&&{as:Z,ownerState:De({},ee,Q.ownerState)},{ref:W,className:yl(te.input,Q.className,M&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),b.onBlur&&b.onBlur(e),U&&U.onBlur?U.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!H){const t=e.target||$.current;if(null==t)throw new Error(Pe(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{Y.disabled?e.stopPropagation():(P&&P(e),b.onFocus&&b.onFocus(e),U&&U.onFocus?U.onFocus(e):G(!0))}}))}),f,k?k(De({},Y,{startAdornment:q})):null]}))]})}));var Su=xu;function Eu(e){return $a("MuiInput",e)}var wu=De({},fu,Ba("MuiInput",["root","underline","input"]));function Cu(e){return $a("MuiOutlinedInput",e)}var Ru=De({},fu,Ba("MuiOutlinedInput",["root","notchedOutline","input"]));function Au(e){return $a("MuiFilledInput",e)}var Pu=De({},fu,Ba("MuiFilledInput",["root","underline","input"])),Iu=function(e,t){function r(r,n){return Ki.jsx(Cl,De({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=Cl.muiName,y.memo(y.forwardRef(r))}(Ki.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Du=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Lu={entering:{opacity:1},entered:{opacity:1}},Mu=y.forwardRef((function(e,t){const r=dl(),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=Ql}=e,v=Le(e,Du),x=y.useRef(null),S=Pa(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)=>{as(e);const n=ls({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),P=E((e=>{const t=ls({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)})),I=E(f);return Ki.jsx(b,De({appear:i,in:s,nodeRef:x,onEnter:C,onEntered:R,onEntering:w,onExit:P,onExited:I,onExiting:A,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,De({style:De({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},Lu[e],h,a.props.style),ref:S},t))}))}));var ku=Mu;function Ou(e){return $a("MuiBackdrop",e)}Ba("MuiBackdrop",["root","invisible"]);const Tu=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],_u=gl("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>De({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"}))),qu=y.forwardRef((function(e,t){var r,n,o;const i=pl({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=ku,transitionDuration:g}=i,b=Le(i,Tu),v=De({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Ro({root:["root",r&&"invisible"]},Ou,t)})(v),x=null!=(r=f.root)?r:c.root;return Ki.jsx(h,De({in:p,timeout:g},b,{children:Ki.jsx(_u,De({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:s,className:yl(y.root,l,null==x?void 0:x.className),ownerState:De({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var Nu=qu;var Fu=Ba("MuiBox",["root"]);const ju=ul(),zu=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=En("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Oi);return y.forwardRef((function(e,a){const l=ji(r),s=Zi(e),{className:u,component:c="div"}=s,d=An(s,Qi);return Ki.jsx(i,Rn({as:c,ref:a,className:To(u,o?o(n):n),theme:t&&l[t]||l},d))}))}({themeId:Ie,defaultTheme:ju,defaultClassName:Fu.root,generateClassName:za.generate});var Hu=zu;function $u(e){return $a("MuiButton",e)}var Bu=Ba("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 Wu=y.createContext({});var Vu=y.createContext(void 0);const Gu=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Uu=e=>De({},"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}}),Yu=gl(_s,{shouldForwardProp:e=>fl(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${va(r.color)}`],t[`size${va(r.size)}`],t[`${r.variant}Size${va(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 De({},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":De({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ma(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})`:ma(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})`:ma(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":De({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Bu.focusVisible}`]:De({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Bu.disabled}`]:De({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 ${ma(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"},[`&.${Bu.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Bu.disabled}`]:{boxShadow:"none"}})),Ku=gl("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${va(r.size)}`]]}})((({ownerState:e})=>De({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Uu(e)))),Xu=gl("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${va(r.size)}`]]}})((({ownerState:e})=>De({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Uu(e)))),Ju=y.forwardRef((function(e,t){const r=y.useContext(Wu),n=y.useContext(Vu),o=pl({props:Fa(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=Le(o,Gu),S=De({},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 De({},a,Ro({root:["root",i,`${i}${va(t)}`,`size${va(o)}`,`${i}Size${va(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${va(o)}`],endIcon:["endIcon",`iconSize${va(o)}`]},$u,a))})(S),w=g&&Ki.jsx(Ku,{className:E.startIcon,ownerState:S,children:g}),C=p&&Ki.jsx(Xu,{className:E.endIcon,ownerState:S,children:p}),R=n||"";return Ki.jsxs(Yu,De({ownerState:S,className:yl(r.className,E.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:yl(E.focusVisible,f),ref:t,type:b},x,{classes:E,children:[w,i,C]}))}));var Zu=Ju;function Qu(e){return $a("MuiModal",e)}Ba("MuiModal",["root","hidden","backdrop"]);const ec=["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"],tc=gl("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})=>De({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),rc=gl(Nu,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),nc=y.forwardRef((function(e,t){var r,n,o,i,a,l;const s=pl({name:"MuiModal",props:e}),{BackdropComponent:u=rc,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:P,open:I,slotProps:D,slots:L}=s,M=Le(s,ec),k=De({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:w,disableScrollLock:C,hideBackdrop:R,keepMounted:A}),{getRootProps:O,getBackdropProps:T,getTransitionProps:_,portalRef:q,isTopModal:N,exited:F,hasTransition:j}=eu(De({},k,{rootRef:t})),z=De({},k,{exited:F}),H=(e=>{const{open:t,exited:r,classes:n}=e;return Ro({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Qu,n)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),j){const{onEnter:e,onExited:t}=_();$.onEnter=e,$.onExited=t}const B=null!=(r=null!=(n=null==L?void 0:L.root)?n:g.Root)?r:tc,W=null!=(o=null!=(i=null==L?void 0:L.backdrop)?i:g.Backdrop)?o:u,V=null!=(a=null==D?void 0:D.root)?a:b.root,G=null!=(l=null==D?void 0:D.backdrop)?l:b.backdrop,U=gs({elementType:B,externalSlotProps:V,externalForwardedProps:M,getSlotProps:O,additionalProps:{ref:t,as:h},ownerState:z,className:yl(d,null==V?void 0:V.className,null==H?void 0:H.root,!z.open&&z.exited&&(null==H?void 0:H.hidden))}),Y=gs({elementType:W,externalSlotProps:G,additionalProps:c,getSlotProps:e=>T(De({},e,{onClick:t=>{P&&P(t),null!=e&&e.onClick&&e.onClick(t)}})),className:yl(null==G?void 0:G.className,null==c?void 0:c.className,null==H?void 0:H.backdrop),ownerState:z});return A||I||j&&!F?Ki.jsx(Us,{ref:q,container:m,disablePortal:E,children:Ki.jsxs(B,De({},U,{children:[!R&&u?Ki.jsx(W,De({},Y)):null,Ki.jsx(Gs,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:w,isEnabled:N,open:I,children:y.cloneElement(f,$)})]}))}):null}));var oc=nc;function ic(e){return $a("MuiDivider",e)}var ac=Ba("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const lc=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],sc=gl("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})=>De({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)`:ma(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})=>De({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>De({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>De({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>De({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),uc=gl("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>De({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)`}))),cc=y.forwardRef((function(e,t){const r=pl({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=Le(r,lc),m=De({},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 Ro({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"]},ic,n)})(m);return Ki.jsx(sc,De({as:a,className:yl(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Ki.jsx(uc,{className:h.wrapper,ownerState:m,children:o}):null}))}));cc.muiSkipListHighlight=!0;var dc=cc;const pc=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],fc=gl(bu,{shouldForwardProp:e=>fl(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...hu(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 De({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}},[`&.${Pu.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Pu.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"},[`&.${Pu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Pu.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(.${Pu.disabled}, .${Pu.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Pu.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&De({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}))})),mc=gl(vu,{name:"MuiFilledInput",slot:"Input",overridesResolver:gu})((({theme:e,ownerState:t})=>De({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}))),hc=y.forwardRef((function(e,t){var r,n,o,i;const a=pl({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=Le(a,pc),g=De({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:r}=e;return De({},t,Ro({root:["root",!r&&"underline"],input:["input"]},Au,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?ba(v,null!=p?p:s):v,x=null!=(r=null!=(n=f.root)?n:l.Root)?r:fc,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:mc;return Ki.jsx(Su,De({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));hc.muiName="Input";var gc=hc;const bc=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function vc(e){return`scale(${e}, ${e**2})`}const yc={entering:{opacity:1,transform:vc(1)},entered:{opacity:1,transform:"none"}},xc="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Sc=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=Ql}=e,g=Le(e,bc),b=y.useRef(),v=y.useRef(),x=dl(),S=y.useRef(null),E=Pa(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)=>{as(e);const{duration:r,delay:n,easing:o}=ls({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:xc?a:.666*a,delay:n,easing:o})].join(","),l&&l(e,t)})),A=w(s),P=w(p),I=w((e=>{const{duration:t,delay:r,easing:n}=ls({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:xc?o:.666*o,delay:xc?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=vc(.75),c&&c(e)})),D=w(d);return y.useEffect((()=>()=>{clearTimeout(b.current)}),[]),Ki.jsx(h,De({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:A,onEntering:C,onExit:I,onExited:D,onExiting:P,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,De({style:De({opacity:0,transform:vc(.75),visibility:"exited"!==e||a?void 0:"hidden"},yc[e],f,o.props.style),ref:E},t))}))}));Sc.muiSupportAuto=!0;var Ec=Sc;const wc=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Cc=gl(bu,{shouldForwardProp:e=>fl(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...hu(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})`),De({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"},[`&.${wu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${wu.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(.${wu.disabled}, .${wu.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${wu.disabled}:before`]:{borderBottomStyle:"dotted"}})})),Rc=gl(vu,{name:"MuiInput",slot:"Input",overridesResolver:gu})({}),Ac=y.forwardRef((function(e,t){var r,n,o,i;const a=pl({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=Le(a,wc),b=(e=>{const{classes:t,disableUnderline:r}=e;return De({},t,Ro({root:["root",!r&&"underline"],input:["input"]},Eu,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?ba(null!=f?f:u,v):v,x=null!=(r=null!=(n=m.root)?n:s.Root)?r:Cc,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:Rc;return Ki.jsx(Su,De({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));Ac.muiName="Input";var Pc=Ac;function Ic(e){return $a("MuiLink",e)}var Dc=Ba("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const Lc={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var Mc=({theme:e,ownerState:t})=>{const r=(e=>Lc[e]||e)(t.color),n=$o(e,`palette.${r}`,!1)||t.color,o=$o(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:ma(n,.4)};const kc=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Oc=gl($s,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${va(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>De({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&De({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Mc({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"},[`&.${Dc.focusVisible}`]:{outline:"auto"}}))),Tc=y.forwardRef((function(e,t){const r=pl({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=Le(r,kc),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=Na(),[b,v]=y.useState(!1),x=Pa(t,g),S=De({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return Ro({root:["root",`underline${va(o)}`,"button"===r&&"button",n&&"focusVisible"]},Ic,t)})(S);return Ki.jsx(Oc,De({color:o,className:yl(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(Lc).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var _c=Tc;var qc=y.createContext({});function Nc(e){return $a("MuiList",e)}Ba("MuiList",["root","padding","dense","subheader"]);const Fc=["children","className","component","dense","disablePadding","subheader"],jc=gl("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})=>De({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var zc=y.forwardRef((function(e,t){const r=pl({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=r,u=Le(r,Fc),c=y.useMemo((()=>({dense:a})),[a]),d=De({},r,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Ro({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Nc,t)})(d);return Ki.jsx(qc.Provider,{value:c,children:Ki.jsxs(jc,De({as:i,className:yl(p.root,o),ref:t,ownerState:d},u,{children:[s,n]}))})}));function Hc(e){return $a("MuiListItemIcon",e)}var $c=Ba("MuiListItemIcon",["root","alignItemsFlexStart"]);const Bc=["className"],Wc=gl("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})=>De({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var Vc=y.forwardRef((function(e,t){const r=pl({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Le(r,Bc),i=De({},r,{alignItems:y.useContext(qc).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Ro({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Hc,r)})(i);return Ki.jsx(Wc,De({className:yl(a.root,n),ownerState:i,ref:t},o))}));var Gc=Ba("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const Uc=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Yc(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Kc(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Xc(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 Jc(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")&&Xc(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}var Zc=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=Le(e,Uc),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Sa((()=>{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)}(ya(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const m=Pa(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 Ki.jsx(zc,De({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=ya(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Jc(t,n,s,l,Yc);else if("ArrowUp"===r)e.preventDefault(),Jc(t,n,s,l,Kc);else if("Home"===r)e.preventDefault(),Jc(t,null,s,l,Yc);else if("End"===r)e.preventDefault(),Jc(t,null,s,l,Kc);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&&Xc(n,o);o.previousKeyMatched&&(s||Jc(t,n,!1,l,Yc,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function Qc(e){return $a("MuiPopover",e)}Ba("MuiPopover",["root","paper"]);const ed=["onEntering"],td=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],rd=["slotProps"];function nd(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function od(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function id(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function ad(e){return"function"==typeof e?e():e}const ld=gl(oc,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sd=gl(ds,{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 ud=y.forwardRef((function(e,t){var r,n,o;const i=pl({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=Ec,transitionDuration:w="auto",TransitionProps:{onEntering:C}={},disableScrollLock:R=!1}=i,A=Le(i.TransitionProps,ed),P=Le(i,td),I=null!=(r=null==x?void 0:x.paper)?r:b,D=y.useRef(),L=Pa(D,I.ref),M=De({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:I,transformOrigin:S,TransitionComponent:E,transitionDuration:w,TransitionProps:A}),k=(e=>{const{classes:t}=e;return Ro({root:["root"],paper:["paper"]},Qc,t)})(M),O=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=ad(l),t=(e&&1===e.nodeType?e:ya(D.current).body).getBoundingClientRect();return{top:t.top+nd(t,s.vertical),left:t.left+od(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),T=y.useCallback((e=>({vertical:nd(e,S.vertical),horizontal:od(e,S.horizontal)})),[S.horizontal,S.vertical]),_=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=T(t);if("none"===c)return{top:null,left:null,transformOrigin:id(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=xa(ad(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:id(r)}}),[l,c,O,T,h]),[q,N]=y.useState(g),F=y.useCallback((()=>{const e=D.current;if(!e)return;const t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[_]);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=xa(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?ya(ad(l)).body:void 0),H=null!=(n=null==v?void 0:v.root)?n:ld,$=null!=(o=null==v?void 0:v.paper)?o:sd,B=gs({elementType:$,externalSlotProps:De({},I,{style:q?I.style:De({},I.style,{opacity:0})}),additionalProps:{elevation:m,ref:L},ownerState:M,className:yl(k.paper,null==I?void 0:I.className)}),W=gs({elementType:H,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:P,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:M,className:yl(k.root,p)}),{slotProps:V}=W,G=Le(W,rd);return Ki.jsx(H,De({},G,!ps(H)&&{slotProps:V,disableScrollLock:R},{children:Ki.jsx(E,De({appear:!0,in:g,onEntering:(e,t)=>{C&&C(e,t),F()},onExited:()=>{N(!1)},timeout:j},A,{children:Ki.jsx($,De({},B,{children:d}))}))}))}));function cd(e){return $a("MuiMenu",e)}Ba("MuiMenu",["root","paper","list"]);const dd=["onEntering"],pd=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],fd={vertical:"top",horizontal:"right"},md={vertical:"top",horizontal:"left"},hd=gl(ud,{shouldForwardProp:e=>fl(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gd=gl(sd,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),bd=gl(Zc,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var vd=y.forwardRef((function(e,t){var r,n;const o=pl({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=Le(o.TransitionProps,dd),S=Le(o,pd),E=dl(),w="rtl"===E.direction,C=De({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:x,variant:g}),R=(e=>{const{classes:t}=e;return Ro({root:["root"],paper:["paper"],list:["list"]},cd,t)})(C),A=i&&!s&&d,P=y.useRef(null);let I=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===I)&&(I=t))}));const D=null!=(r=b.paper)?r:gd,L=null!=(n=v.paper)?n:p,M=gs({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[R.root,l]}),k=gs({elementType:D,externalSlotProps:L,ownerState:C,className:R.paper});return Ki.jsx(hd,De({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?fd:md,slots:{paper:D,root:b.root},slotProps:{root:M,paper:k},open:d,ref:t,transitionDuration:m,TransitionProps:De({onEntering:(e,t)=>{P.current&&P.current.adjustStyleForScrollbar(e,E),h&&h(e,t)}},x),ownerState:C},S,{classes:f,children:Ki.jsx(bd,De({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:P,autoFocus:i&&(-1===I||s),autoFocusItem:A,variant:g},u,{className:yl(R.list,u.className),children:a}))}))}));function yd(e){return $a("MuiMenuItem",e)}var xd=Ba("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const Sd=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Ed=gl(_s,{shouldForwardProp:e=>fl(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})=>De({},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"}},[`&.${xd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ma(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${xd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ma(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${xd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ma(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})`:ma(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${xd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${xd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ac.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ac.inset}`]:{marginLeft:52},[`& .${Gc.root}`]:{marginTop:0,marginBottom:0},[`& .${Gc.inset}`]:{paddingLeft:36},[`& .${$c.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&De({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${$c.root} svg`]:{fontSize:"1.25rem"}}))));var wd=y.forwardRef((function(e,t){const r=pl({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=Le(r,Sd),f=y.useContext(qc),m=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=y.useRef(null);Sa((()=>{n&&h.current&&h.current.focus()}),[n]);const g=De({},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 De({},a,Ro({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},yd,a))})(r),v=Pa(h,t);let x;return r.disabled||(x=void 0!==c?c:-1),Ki.jsx(qc.Provider,{value:m,children:Ki.jsx(Ed,De({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:yl(b.focusVisible,s),className:yl(b.root,d)},p,{ownerState:g,classes:b}))})}));function Cd(e){return $a("MuiNativeSelect",e)}var Rd=Ba("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Ad=["className","disabled","error","IconComponent","inputRef","variant"],Pd=({ownerState:e,theme:t})=>De({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":De({},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"},[`&.${Rd.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}}),Id=gl("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:fl,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Rd.multiple}`]:t.multiple}]}})(Pd),Dd=({ownerState:e,theme:t})=>De({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Rd.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Ld=gl("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${va(r.variant)}`],r.open&&t.iconOpen]}})(Dd),Md=y.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=Le(e,Ad),u=De({},e,{disabled:n,variant:l,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Ro({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${va(r)}`,i&&"iconOpen",n&&"disabled"]},Cd,t)})(u);return Ki.jsxs(y.Fragment,{children:[Ki.jsx(Id,De({ownerState:u,className:yl(c.select,r),disabled:n,ref:a||t},s)),e.multiple?null:Ki.jsx(Ld,{as:i,ownerState:u,className:c.icon})]})}));var kd,Od=Md;const Td=["children","classes","className","label","notched"],_d=gl("fieldset",{shouldForwardProp:fl})({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%"}),qd=gl("legend",{shouldForwardProp:fl})((({ownerState:e,theme:t})=>De({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&&De({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 Nd=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Fd=gl(bu,{shouldForwardProp:e=>fl(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:hu})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return De({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ru.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ru.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Ru.focused} .${Ru.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ru.error} .${Ru.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ru.disabled} .${Ru.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&De({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),jd=gl((function(e){const{className:t,label:r,notched:n}=e,o=Le(e,Td),i=null!=r&&""!==r,a=De({},e,{notched:n,withLabel:i});return Ki.jsx(_d,De({"aria-hidden":!0,className:t,ownerState:a},o,{children:Ki.jsx(qd,{ownerState:a,children:i?Ki.jsx("span",{children:r}):kd||(kd=Ki.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}})),zd=gl(vu,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:gu})((({theme:e,ownerState:t})=>De({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}))),Hd=y.forwardRef((function(e,t){var r,n,o,i,a;const l=pl({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=Le(l,Nd),b=(e=>{const{classes:t}=e;return De({},t,Ro({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Cu,t))})(l),v=su(),x=au({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=De({},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:Fd,w=null!=(o=null!=(i=m.input)?i:s.Input)?o:zd;return Ki.jsx(Su,De({slots:{root:E,input:w},renderSuffix:e=>Ki.jsx(jd,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=Ki.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:De({},b,{notchedOutline:null})}))}));Hd.muiName="Input";var $d=Hd;function Bd(e){return $a("MuiSelect",e)}var Wd,Vd=Ba("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Gd=["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"],Ud=gl("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Vd.select}`]:t.select},{[`&.${Vd.select}`]:t[r.variant]},{[`&.${Vd.error}`]:t.error},{[`&.${Vd.multiple}`]:t.multiple}]}})(Pd,{[`&.${Vd.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Yd=gl("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${va(r.variant)}`],r.open&&t.iconOpen]}})(Dd),Kd=gl("input",{shouldForwardProp:e=>ml(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 Xd(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Jd(e){return null==e||"string"==typeof e&&!e.trim()}const Zd=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:P,renderValue:I,SelectDisplayProps:D={},tabIndex:L,value:M,variant:k="standard"}=e,O=Le(e,Gd),[T,_]=Ra({controlled:M,default:c,name:"Select"}),[q,N]=Ra({controlled:A,default:u,name:"Select"}),F=y.useRef(null),j=y.useRef(null),[z,H]=y.useState(null),{current:$}=y.useRef(null!=A),[B,W]=y.useState(),V=Pa(t,h),G=y.useCallback((e=>{j.current=e,e&&H(e)}),[]),U=null==z?void 0:z.parentNode;y.useImperativeHandle(V,(()=>({focus:()=>{j.current.focus()},node:F.current,value:T})),[T]),y.useEffect((()=>{u&&q&&z&&!$&&(W(a?null:U.clientWidth),j.current.focus())}),[z,a]),y.useEffect((()=>{i&&j.current.focus()}),[i]),y.useEffect((()=>{if(!g)return;const e=ya(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),$||(W(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(T)?T.slice():[];const t=T.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),T!==r&&(_(r),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;(du({value:T})||p)&&(I?Z=I(T):te=!0);const re=K.map((e=>{if(!y.isValidElement(e))return null;let t;if(v){if(!Array.isArray(T))throw new Error(Pe(2));t=T.some((t=>Xd(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Xd(T,e.props.value),t&&te&&(Q=e.props.children);return y.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=v?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Q);let ne,oe=B;!a&&$&&z&&(oe=U.clientWidth),ne=void 0!==L?L:d?null:0;const ie=D.id||(x?`mui-component-select-${x}`:void 0),ae=De({},e,{variant:k,value:T,open:J,error:f}),le=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Ro({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${va(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},Bd,t)})(ae),se=De({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=Ca();return Ki.jsxs(y.Fragment,{children:[Ki.jsx(Ud,De({ref:G,tabIndex:ne,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!P){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),Y(!0,e))}},onMouseDown:d||P?null:e=>{0===e.button&&(e.preventDefault(),j.current.focus(),Y(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:T,name:x}}),S(e))},onFocus:C},D,{ownerState:ae,className:yl(D.className,le.select,s),id:ie,children:Jd(Z)?Wd||(Wd=Ki.jsx("span",{className:"notranslate",children:""})):Z})),Ki.jsx(Kd,De({"aria-invalid":f,value:Array.isArray(T)?T.join(","):T,name:x,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(_(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},O)),Ki.jsx(Yd,{as:m,className:le.icon,ownerState:ae}),Ki.jsx(vd,De({id:`menu-${x||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:De({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:De({},b.slotProps,{paper:De({},se,{style:De({minWidth:oe},null!=se?se.style:null)})}),children:re}))]})}));var Qd=Zd;const ep=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],tp=["root"],rp={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>fl(e)&&"variant"!==e,slot:"Root"},np=gl(Pc,rp)(""),op=gl($d,rp)(""),ip=gl(gc,rp)(""),ap=y.forwardRef((function(e,t){const r=pl({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=Iu,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=Le(r,ep),A=b?Od:Qd,P=au({props:r,muiFormControl:su(),states:["variant","error"]}),I=P.variant||C,D=De({},r,{variant:I,classes:i}),L=(e=>{const{classes:t}=e;return t})(D),M=Le(L,tp),k=d||{standard:Ki.jsx(np,{ownerState:D}),outlined:Ki.jsx(op,{label:f,ownerState:D}),filled:Ki.jsx(ip,{ownerState:D})}[I],O=Pa(t,k.ref);return Ki.jsx(y.Fragment,{children:y.cloneElement(k,De({inputComponent:A,inputProps:De({children:o,error:P.error,IconComponent:u,variant:I,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:De({id:c},w)},p,{classes:p?ba(M,p.classes):M},d?d.props.inputProps:{})},g&&b&&"outlined"===I?{notched:!0}:{},{ref:O,className:yl(k.props.className,a,L.root)},!d&&{variant:I},R))})}));ap.muiName="Select";var lp=ap,sp=(e={})=>x.createElement(fe,{...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:X.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const up={MuiAccordion:{styleOverrides:{root:{backgroundColor:X.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:X.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:x.createElement(ce,{"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 ${X.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:X.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${X.MISC_FOCUS_BORDER}`,borderRadius:te,backgroundColor:X.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 ${X.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:X.WHITE,color:X.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:te},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${X.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:X.GREYSCALE_0_15,backgroundColor:X.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:X.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${X.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:X.GREEN_PALE},"&:active":{backgroundColor:X.GREEN_DARK},"&.Mui-focusVisible":{borderColor:X.GREEN_PALE,boxShadow:`0 0 0 3px ${ma(X.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:X.BLUE_PALE},"&:active":{backgroundColor:X.BLUE_DARK},"&.Mui-focusVisible":{borderColor:X.BLUE_PALE,boxShadow:`0 0 0 3px ${ma(X.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:te,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:X.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${X.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:X.GREYSCALE_0_15,backgroundColor:X.GREYSCALE_100_60,"&:active":{backgroundColor:X.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:X.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${X.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:X.PURPLE,"&.Mui-focusVisible":{borderColor:X.PURPLE,boxShadow:`0 0 0 3px ${ma(X.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:X.GREEN,"&.Mui-focusVisible":{borderColor:X.GREEN,boxShadow:`0 0 0 3px ${ma(X.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:X.BLUE,"&.Mui-focusVisible":{borderColor:X.BLUE,boxShadow:`0 0 0 3px ${ma(X.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:X.ORANGE,"&.Mui-focusVisible":{borderColor:X.ORANGE,boxShadow:`0 0 0 3px ${ma(X.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:X.RED,"&.Mui-focusVisible":{borderColor:X.RED,boxShadow:`0 0 0 3px ${ma(X.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:X.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:X.PURPLE_PALE},"&:active":{backgroundColor:X.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:X.PURPLE_PALE,boxShadow:`0 0 0 3px ${ma(X.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:X.GREEN_PALE},"&:active":{backgroundColor:X.GREEN_DARK},"&.Mui-focusVisible":{borderColor:X.GREEN_PALE,boxShadow:`0 0 0 3px ${ma(X.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:X.BLUE_PALE},"&:active":{backgroundColor:X.BLUE_DARK},"&.Mui-focusVisible":{borderColor:X.BLUE_PALE,boxShadow:`0 0 0 3px ${ma(X.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:X.ORANGE_PALE},"&:active":{backgroundColor:X.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:X.ORANGE_PALE,boxShadow:`0 0 0 3px ${ma(X.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:X.RED_PALE},"&:active":{backgroundColor:X.RED_DARK},"&.Mui-focusVisible":{borderColor:X.RED_PALE,boxShadow:`0 0 0 3px ${ma(X.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:X.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:X.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:te,boxShadow:`inset 0 0 0 2px ${X.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:x.createElement(pe,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:J,borderRadius:te,color:X.TEXT_PRIMARY,backgroundColor:X.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:X.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${X.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:X.GREYSCALE_0_05,color:X.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:X.GREEN,borderColor:X.GREEN},"&.MuiChip-outlinedInfo":{color:X.BLUE,borderColor:X.BLUE},"&.MuiChip-outlinedWarning":{color:X.ORANGE,borderColor:X.ORANGE},"&.MuiChip-outlinedError":{color:X.RED,borderColor:X.RED}},outlined:{border:`solid 1px ${X.GREYSCALE_0_15}`,backgroundColor:X.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:te,boxShadow:"none",backgroundColor:X.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:X.GREEN,borderColor:X.GREEN},outlinedSecondary:{color:X.BLUE,borderColor:X.BLUE},label:{fontFamily:ae.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:x.createElement(pe,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:x.createElement(ce,{"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:te},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:te,fontSize:Z,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:X.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${X.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:X.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:X.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:X.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:te,border:`solid 1px ${X.GREYSCALE_0_15}`,color:X.GREYSCALE_0_60,marginRight:0,width:ee,height:ee},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${X.GREYSCALE_0_15}`},clearIndicator:{borderRadius:te,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:X.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Z}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:J,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:X.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:X.GREYSCALE_25,fontSize:J,fontFamily:ae.FONT_FAMILY,fontWeight:oe,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:X.TEXT_PRIMARY},"&.Mui-error":{color:X.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:X.TEXT_SECONDARY,content:"'(optional)'",fontWeight:ne,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:X.TEXT_SECONDARY,content:"'(required)'",fontWeight:ne,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Z,lineHeight:"16px",backgroundColor:X.WHITE,borderRadius:te,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${X.GREYSCALE_0_05}`,borderColor:X.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${X.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${X.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${X.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${X.RED}`,boxShadow:`0px 0px 0px 1px ${X.RED}, inset 0 2px 0 0 ${X.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${X.GREYSCALE_0_10}`,borderColor:X.GREYSCALE_0_10,backgroundColor:X.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:X.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:X.GREYSCALE_0_15,borderRadius:te,boxShadow:`inset 0 2px 0 0 ${X.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>x.createElement(ce,{...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:X.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:X.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:X.GREYSCALE_0_03},"&:active":{backgroundColor:X.GREYSCALE_0_10},"&:focus":{backgroundColor:X.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${X.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${X.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:X.GREYSCALE_0_30,"&:hover":{backgroundColor:X.GREYSCALE_0_0,borderColor:X.GREYSCALE_0_15},"& ~svg":{color:X.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${X.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:te}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:X.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${X.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:X.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:Z,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:J,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:J,fontWeight:oe,color:X.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:oe}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${X.GREYSCALE_0_15}, 0px 0px 0px 1px ${X.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:x.createElement(ge,null),checkedIcon:x.createElement(be,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:X.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${X.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:X.GREEN_PALE,boxShadow:`0 0 0 3px ${ma(X.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:X.BLUE_PALE,boxShadow:`0 0 0 3px ${ma(X.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:X.GREYSCALE_0_20}},"&.Mui-disabled":{fill:X.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:x.createElement(sp,null),checkedIcon:x.createElement(me,null),indeterminateIcon:x.createElement(he,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:te,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:X.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:X.GREYSCALE_0_55,color:X.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:X.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:X.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:X.GREYSCALE_0_55,"&:hover":{color:X.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:X.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:X.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Z,color:X.TEXT_PRIMARY,lineHeight:"16px",fontWeight:oe},secondary:{fontSize:J,color:X.GREYSCALE_45,fontWeight:ne,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Z,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:X.GREYSCALE_0_03},"&:active":{backgroundColor:X.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Z,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:X.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:J,borderBottom:`solid 1px ${X.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Z,color:X.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:X.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:X.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:X.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:X.RED}}},"&.Mui-focusVisible":{backgroundColor:X.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:X.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:X.GREEN,height:"24px","&.Mui-disabled":{color:X.GREYSCALE_0_15}},rail:{backgroundColor:X.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${X.GREYSCALE_0_05}`,borderRadius:te,boxShadow:`inset 0px 0px 0px 1px ${X.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${X.GREYSCALE_0_05}`,borderRadius:te},thumb:{height:"16px",width:"16px",borderRadius:te,backgroundColor:X.WHITE,boxShadow:`0px 1px 2px 0px ${X.GREYSCALE_0_15}, 0px 0px 0px 1px ${X.GREYSCALE_0_05}`,"&:hover":{borderRadius:te,boxShadow:`0 2px 4px 0 ${X.GREYSCALE_0_30}, 0 0 0 1px ${X.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${X.GREYSCALE_0_15}, 0 0 0 1px ${X.GREYSCALE_0_06}, 0 0 0 2px ${X.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${X.GREYSCALE_0_15}, 0 0 0 1px ${X.GREYSCALE_0_06}, 0 0 0 2px ${X.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:X.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:X.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:X.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:X.GREYSCALE_0_15},markLabel:{color:X.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:X.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:X.WHITE,color:X.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:X.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:X.GREEN_PALE,boxShadow:`0 0 0 3px ${ma(X.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:X.BLUE_PALE,boxShadow:`0 0 0 3px ${ma(X.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:X.GREYSCALE_0_15,borderRadius:te},thumb:{height:"16px",width:"16px",borderRadius:te,backgroundColor:X.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:Z,fontWeight:oe,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${X.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${X.MISC_FOCUS_BORDER}`,backgroundColor:X.GREYSCALE_0_03,borderRadius:te},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:X.GREYSCALE_25,"&.Mui-selected":{color:X.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Z,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${X.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${X.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${X.GREYSCALE_85}`,borderRight:`1px solid ${X.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:oe,backgroundColor:X.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:X.GREYSCALE_98,borderBottom:`1px solid ${X.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${X.GREYSCALE_85}`,borderTop:`1px solid ${X.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:X.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:X.GREYSCALE_0_05,"&:hover":{backgroundColor:X.GREYSCALE_0_03}},"&&:hover":{backgroundColor:X.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>x.createElement(ve,{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 ${X.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Z,borderRadius:te,padding:"7px 16px",border:`1px solid ${X.GREYSCALE_0_15}`,backgroundColor:X.GREYSCALE_100_60,color:X.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:X.GREYSCALE_0_10,border:`1px solid ${X.GREYSCALE_0_30}`},"&:hover":{backgroundColor:X.GREYSCALE_0_03,border:`1px solid ${X.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:X.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${X.MISC_FOCUS_BORDER}`,border:`1px solid ${X.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:X.GREYSCALE_25,backgroundColor:X.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:X.GREYSCALE_0_10,border:`1px solid ${X.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:J,height:24,width:24,padding:7},sizeLarge:{fontSize:Q,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Z,borderRadius:te}}},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:X.GREYSCALE_20},tooltip:{backgroundColor:X.GREYSCALE_20,fontSize:J,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const cp={mode:"light",primary:{light:X.GREEN_PALE,main:X.GREEN,dark:X.GREEN_DARK,contrastText:X.WHITE},secondary:{light:X.BLUE_PALE,main:X.BLUE,dark:X.BLUE_DARK,contrastText:X.WHITE},error:{light:X.RED_PALE,main:X.RED,dark:X.RED_DARK,contrastText:X.WHITE},warning:{light:X.ORANGE_PALE,main:X.ORANGE,dark:X.ORANGE_DARK,contrastText:X.WHITE},success:{light:X.GREEN_PALE,main:X.GREEN,dark:X.GREEN_DARK,contrastText:X.WHITE},info:{light:X.BLUE_PALE,main:X.BLUE,dark:X.BLUE_DARK,contrastText:X.WHITE},text:{primary:X.TEXT_PRIMARY,secondary:X.TEXT_SECONDARY,disabled:X.GREYSCALE_0_30},action:{hover:X.GREYSCALE_0_03,hoverOpacity:.05,selected:X.GREYSCALE_0_05,focus:X.MISC_FOCUS_BORDER},amethyst:{main:X.PURPLE,light:X.PURPLE_PALE,dark:X.PURPLE_DARK,contrastText:X.WHITE},background:{paper:X.WHITE,default:X.GREYSCALE_95},divider:X.GREYSCALE_0_15},dp=e=>({components:up,palette:cp,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:Z,fontWeightLight:re,fontWeightRegular:ne,fontWeightMedium:oe,fontWeightBold:ie,htmlFontSize:Z,fontFamily:ae.FONT_FAMILY,button:{fontWeight:oe,fontSize:Z,textTransform:"none"},body1:{fontSize:Q,lineHeight:"24px"},body2:{fontSize:Z,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:ee,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Q,fontWeight:oe,lineHeight:"16px"},h6:{fontSize:Z,fontWeight:oe,lineHeight:"16px"},caption:{color:X.TEXT_SECONDARY},subtitle1:{fontSize:Z,color:X.TEXT_SECONDARY},subtitle2:{fontSize:J,color:X.TEXT_SECONDARY}},shape:{borderRadius:te}}),pp={...K,MISC_FOCUS_BORDER:X.MISC_FOCUS_BORDER},fp=dp().palette,mp={TEXT:fp.text.primary,DISABLED:fp.text.disabled,HOVER:fp.action.hover,WHITE:pp.GREYSCALE_100,BORDER_LIGHT:pp.GREYSCALE_90,BORDER_MEDIUM:pp.GREYSCALE_85,BORDER_HEAVY:pp.GREYSCALE_50,DARK_MODE_TEXT:pp.GREYSCALE_95,DARK_MODE_BORDER:pp.GREYSCALE_95,DARK_MODE_DISABLED:pp.GREYSCALE_70,DARK_MODE_BACKGROUND:pp.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:pp.GREYSCALE_95,SELECTED:fp.primary.main};function hp(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function gp(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function bp(){}var vp=.7,yp=1/vp,xp="\\s*([+-]?\\d+)\\s*",Sp="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ep="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",wp=/^#([0-9a-f]{3,8})$/,Cp=new RegExp(`^rgb\\(${xp},${xp},${xp}\\)$`),Rp=new RegExp(`^rgb\\(${Ep},${Ep},${Ep}\\)$`),Ap=new RegExp(`^rgba\\(${xp},${xp},${xp},${Sp}\\)$`),Pp=new RegExp(`^rgba\\(${Ep},${Ep},${Ep},${Sp}\\)$`),Ip=new RegExp(`^hsl\\(${Sp},${Ep},${Ep}\\)$`),Dp=new RegExp(`^hsla\\(${Sp},${Ep},${Ep},${Sp}\\)$`),Lp={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 Mp(){return this.rgb().formatHex()}function kp(){return this.rgb().formatRgb()}function Op(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=wp.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Tp(t):3===r?new Fp(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?_p(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?_p(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=Cp.exec(e))?new Fp(t[1],t[2],t[3],1):(t=Rp.exec(e))?new Fp(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ap.exec(e))?_p(t[1],t[2],t[3],t[4]):(t=Pp.exec(e))?_p(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ip.exec(e))?Wp(t[1],t[2]/100,t[3]/100,1):(t=Dp.exec(e))?Wp(t[1],t[2]/100,t[3]/100,t[4]):Lp.hasOwnProperty(e)?Tp(Lp[e]):"transparent"===e?new Fp(NaN,NaN,NaN,0):null}function Tp(e){return new Fp(e>>16&255,e>>8&255,255&e,1)}function _p(e,t,r,n){return n<=0&&(e=t=r=NaN),new Fp(e,t,r,n)}function qp(e){return e instanceof bp||(e=Op(e)),e?new Fp((e=e.rgb()).r,e.g,e.b,e.opacity):new Fp}function Np(e,t,r,n){return 1===arguments.length?qp(e):new Fp(e,t,r,null==n?1:n)}function Fp(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function jp(){return`#${Bp(this.r)}${Bp(this.g)}${Bp(this.b)}`}function zp(){const e=Hp(this.opacity);return`${1===e?"rgb(":"rgba("}${$p(this.r)}, ${$p(this.g)}, ${$p(this.b)}${1===e?")":`, ${e})`}`}function Hp(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function $p(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Bp(e){return((e=$p(e))<16?"0":"")+e.toString(16)}function Wp(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Gp(e,t,r,n)}function Vp(e){if(e instanceof Gp)return new Gp(e.h,e.s,e.l,e.opacity);if(e instanceof bp||(e=Op(e)),!e)return new Gp;if(e instanceof Gp)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 Gp(a,l,s,e.opacity)}function Gp(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Up(e){return(e=(e||0)%360)<0?e+360:e}function Yp(e){return Math.max(0,Math.min(1,e||0))}function Kp(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}hp(bp,Op,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Mp,formatHex:Mp,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Vp(this).formatHsl()},formatRgb:kp,toString:kp}),hp(Fp,Np,gp(bp,{brighter(e){return e=null==e?yp:Math.pow(yp,e),new Fp(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?vp:Math.pow(vp,e),new Fp(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Fp($p(this.r),$p(this.g),$p(this.b),Hp(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:jp,formatHex:jp,formatHex8:function(){return`#${Bp(this.r)}${Bp(this.g)}${Bp(this.b)}${Bp(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:zp,toString:zp})),hp(Gp,(function(e,t,r,n){return 1===arguments.length?Vp(e):new Gp(e,t,r,null==n?1:n)}),gp(bp,{brighter(e){return e=null==e?yp:Math.pow(yp,e),new Gp(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?vp:Math.pow(vp,e),new Gp(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 Fp(Kp(e>=240?e-240:e+120,o,n),Kp(e,o,n),Kp(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Gp(Up(this.h),Yp(this.s),Yp(this.l),Hp(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=Hp(this.opacity);return`${1===e?"hsl(":"hsla("}${Up(this.h)}, ${100*Yp(this.s)}%, ${100*Yp(this.l)}%${1===e?")":`, ${e})`}`}}));const Xp=Math.PI/180,Jp=180/Math.PI,Zp=.96422,Qp=.82521,ef=4/29,tf=6/29,rf=3*tf*tf,nf=tf*tf*tf;function of(e){if(e instanceof af)return new af(e.l,e.a,e.b,e.opacity);if(e instanceof pf)return ff(e);e instanceof Fp||(e=qp(e));var t,r,n=cf(e.r),o=cf(e.g),i=cf(e.b),a=lf((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=lf((.4360747*n+.3850649*o+.1430804*i)/Zp),r=lf((.0139322*n+.0971045*o+.7141733*i)/Qp)),new af(116*a-16,500*(t-a),200*(a-r),e.opacity)}function af(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function lf(e){return e>nf?Math.pow(e,1/3):e/rf+ef}function sf(e){return e>tf?e*e*e:rf*(e-ef)}function uf(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function cf(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function df(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof pf)return new pf(e.h,e.c,e.l,e.opacity);if(e instanceof af||(e=of(e)),0===e.a&&0===e.b)return new pf(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Jp;return new pf(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new pf(e,t,r,null==n?1:n)}function pf(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function ff(e){if(isNaN(e.h))return new af(e.l,0,0,e.opacity);var t=e.h*Xp;return new af(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}hp(af,(function(e,t,r,n){return 1===arguments.length?of(e):new af(e,t,r,null==n?1:n)}),gp(bp,{brighter(e){return new af(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new af(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 Fp(uf(3.1338561*(t=Zp*sf(t))-1.6168667*(e=1*sf(e))-.4906146*(r=Qp*sf(r))),uf(-.9787684*t+1.9161415*e+.033454*r),uf(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),hp(pf,df,gp(bp,{brighter(e){return new pf(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new pf(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ff(this).rgb()}}));const mf=(e,t)=>{const r=df(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 hf(e){return"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function gf(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length&&hf(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 bf(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 vf(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 yf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vf(Object(r),!0).forEach((function(t){bf(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var xf={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}},Sf="qcm-color";function Ef(){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:Sf,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)===Sf){var v=r[0];m=v.r,h=v.g,g=v.b,b=v.a,f.invalid=r[0].invalid,f.spaces=yf({},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(xf[x.toLowerCase()]){a=x.toLowerCase();var C=xf[a];m=C.r,h=C.g,g=C.b,b="number"==typeof xf[a].a?xf[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 wf(e){var t,r,n;if(hf(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?gf(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 Cf(e){var t,r,n=0,o="string"==typeof e?Ef(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 Rf(e){if(hf(e))return"rgb(".concat([e.r,e.g,e.b].join(","),")");var t="string"==typeof e?gf(e):e,r=(65280&t)>>8,n=255&t;return"rgb(".concat((16711680&t)>>16,",").concat(r,",").concat(n,")")}function Af(e,t){if(hf(e))return"rgba(".concat([e.r,e.g,e.b,void 0!==t?t:e.a].join(","),")");var r="string"==typeof e?gf(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 Pf=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function If(e){return.2126*Pf(e.r)+.7152*Pf(e.g)+.0722*Pf(e.b)}function Df(){var e=Ef.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?Ef(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:Ef(e);return r.r===t.r&&r.g===t.g&&r.b===t.b&&r.a===t.a},isDark:function(){return function(){var e=Ef.apply(void 0,arguments);return e.invalid||If(e)<.5}(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=Rf(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=Af(t)),t.spaces.rgba},getHex:function(){return t.spaces.hex||(t.spaces.hex=wf(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=function(e){var t,r,n=0,o="string"==typeof e?Ef(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=Cf(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=Cf(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 Df(n(20*(o*i<220?.8+1/(o+1)*4:-(.8+o/255*1))*r))}}}function Lf(e,t){if(e&&t){var r=If(e),n=If(t);return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)}}var Mf,kf,Of=["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"],Tf=["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 _f(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?Tf:Of}var qf=function(){if(kf)return Mf;kf=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return Mf=function e(){var t,r,n,s,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(s=l(t,r))&&(m&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(m,c,s)})):void 0!==s&&a(d,{name:r,newValue:s}));return d},Mf}();function Nf(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Ff(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function jf(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(qf);var zf=1/.7,Hf="\\s*([+-]?\\d+)\\s*",$f="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Bf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Wf=/^#([0-9a-f]{3,8})$/,Vf=new RegExp(`^rgb\\(${Hf},${Hf},${Hf}\\)$`),Gf=new RegExp(`^rgb\\(${Bf},${Bf},${Bf}\\)$`),Uf=new RegExp(`^rgba\\(${Hf},${Hf},${Hf},${$f}\\)$`),Yf=new RegExp(`^rgba\\(${Bf},${Bf},${Bf},${$f}\\)$`),Kf=new RegExp(`^hsl\\(${$f},${Bf},${Bf}\\)$`),Xf=new RegExp(`^hsla\\(${$f},${Bf},${Bf},${$f}\\)$`),Jf={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 Zf(){return this.rgb().formatHex()}function Qf(){return this.rgb().formatRgb()}function em(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Wf.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?tm(t):3===r?new im(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?rm(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?rm(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=Vf.exec(e))?new im(t[1],t[2],t[3],1):(t=Gf.exec(e))?new im(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Uf.exec(e))?rm(t[1],t[2],t[3],t[4]):(t=Yf.exec(e))?rm(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Kf.exec(e))?dm(t[1],t[2]/100,t[3]/100,1):(t=Xf.exec(e))?dm(t[1],t[2]/100,t[3]/100,t[4]):Jf.hasOwnProperty(e)?tm(Jf[e]):"transparent"===e?new im(NaN,NaN,NaN,0):null}function tm(e){return new im(e>>16&255,e>>8&255,255&e,1)}function rm(e,t,r,n){return n<=0&&(e=t=r=NaN),new im(e,t,r,n)}function nm(e){return e instanceof jf||(e=em(e)),e?new im((e=e.rgb()).r,e.g,e.b,e.opacity):new im}function om(e,t,r,n){return 1===arguments.length?nm(e):new im(e,t,r,null==n?1:n)}function im(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function am(){return`#${cm(this.r)}${cm(this.g)}${cm(this.b)}`}function lm(){const e=sm(this.opacity);return`${1===e?"rgb(":"rgba("}${um(this.r)}, ${um(this.g)}, ${um(this.b)}${1===e?")":`, ${e})`}`}function sm(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function um(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function cm(e){return((e=um(e))<16?"0":"")+e.toString(16)}function dm(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new fm(e,t,r,n)}function pm(e){if(e instanceof fm)return new fm(e.h,e.s,e.l,e.opacity);if(e instanceof jf||(e=em(e)),!e)return new fm;if(e instanceof fm)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 fm(a,l,s,e.opacity)}function fm(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function mm(e){return(e=(e||0)%360)<0?e+360:e}function hm(e){return Math.max(0,Math.min(1,e||0))}function gm(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Nf(jf,em,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Zf,formatHex:Zf,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return pm(this).formatHsl()},formatRgb:Qf,toString:Qf}),Nf(im,om,Ff(jf,{brighter(e){return e=null==e?zf:Math.pow(zf,e),new im(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new im(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new im(um(this.r),um(this.g),um(this.b),sm(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:am,formatHex:am,formatHex8:function(){return`#${cm(this.r)}${cm(this.g)}${cm(this.b)}${cm(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:lm,toString:lm})),Nf(fm,(function(e,t,r,n){return 1===arguments.length?pm(e):new fm(e,t,r,null==n?1:n)}),Ff(jf,{brighter(e){return e=null==e?zf:Math.pow(zf,e),new fm(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new fm(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 im(gm(e>=240?e-240:e+120,o,n),gm(e,o,n),gm(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new fm(mm(this.h),hm(this.s),hm(this.l),sm(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=sm(this.opacity);return`${1===e?"hsl(":"hsla("}${mm(this.h)}, ${100*hm(this.s)}%, ${100*hm(this.l)}%${1===e?")":`, ${e})`}`}}));const bm=Math.PI/180,vm=180/Math.PI,ym=4/29,xm=6/29,Sm=3*xm*xm;function Em(e){if(e instanceof wm)return new wm(e.l,e.a,e.b,e.opacity);if(e instanceof Im)return Dm(e);e instanceof im||(e=nm(e));var t,r,n=Pm(e.r),o=Pm(e.g),i=Pm(e.b),a=Cm((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=Cm((.4360747*n+.3850649*o+.1430804*i)/.96422),r=Cm((.0139322*n+.0971045*o+.7141733*i)/.82521)),new wm(116*a-16,500*(t-a),200*(a-r),e.opacity)}function wm(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Cm(e){return e>.008856451679035631?Math.pow(e,1/3):e/Sm+ym}function Rm(e){return e>xm?e*e*e:Sm*(e-ym)}function Am(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Pm(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Im(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Dm(e){if(isNaN(e.h))return new wm(e.l,0,0,e.opacity);var t=e.h*bm;return new wm(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Nf(wm,(function(e,t,r,n){return 1===arguments.length?Em(e):new wm(e,t,r,null==n?1:n)}),Ff(jf,{brighter(e){return new wm(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new wm(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 im(Am(3.1338561*(t=.96422*Rm(t))-1.6168667*(e=1*Rm(e))-.4906146*(r=.82521*Rm(r))),Am(-.9787684*t+1.9161415*e+.033454*r),Am(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Nf(Im,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Im)return new Im(e.h,e.c,e.l,e.opacity);if(e instanceof wm||(e=Em(e)),0===e.a&&0===e.b)return new Im(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*vm;return new Im(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Im(e,t,r,null==n?1:n)}),Ff(jf,{brighter(e){return new Im(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Im(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Dm(this).rgb()}}));var Lm=e=>()=>e;function Mm(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Lm(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?Mm: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):Lm(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=om(e)).r,(t=om(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Mm(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 km,Om="center",Tm="bottom";function _m(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 qm(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 Nm(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=jm)):void 0===t&&(t=Fm);for(var r,n,o,i,a,l=new $m(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 $m(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(Hm)}function Fm(e){return e.children}function jm(e){return Array.isArray(e)?e[1]:null}function zm(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Hm(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function $m(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:Om,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:Om,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:Om,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:Om},{key:"DataRangeIncludingZero",alignment:Tm},{key:"LimitedData",alignment:Tm},{key:"NegativeOrZeroValues",alignment:Tm}].reduce((function(e,t){return e[t.key]=t,e}),{}),$m.prototype=Nm.prototype={constructor:$m,count:function(){return this.eachAfter(qm)},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 Nm(this).eachBefore(zm)},[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)}},km=function(e){
|
|
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}},km({exports:{}});const Bm={background:mp.SELECTED,color:mp.WHITE},Wm=({theme:e,flags:t})=>{if(!t.isEnabled("PS_22149_THEME_SELECTION_COLORS"))return Bm;const r=e.getStyle("","","dataColors.selected")||Bm.background,n=function(e,t){var r=Df("#FFFFFF"),n=Df(e),o=Df(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;var i=Lf(r,n),a=Lf(o,n),l=i>a||i>4.5;return!l&&a>3?t:l?"#FFFFFF":"#000000"}(r,mp.TEXT);return{background:r,color:n}},Vm=e=>{if(e){const t=Np(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},Gm=e=>!!e&&0===Np(e).opacity,Um=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,Ym=e=>{const t=Um.exec(e);if(t){const[,e,r,n,o]=t;return Np(+r,+n,+o,+e/255)}return Np(e)},Km=e=>{const t=Ym(e);return Number.isNaN(t.r)?null:t.toString()},Xm=(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)},Jm=e=>{e.stopPropagation(),e.preventDefault()},Zm="#grid",Qm=(e,t,r)=>e&&!Gm(e)?e:Gm(t)?r&&!Gm(r)?r:mp.WHITE:t,eh=(e,t)=>{const r=null==t?void 0:t.closest(e);return r&&window.getComputedStyle(r).backgroundColor},th=(e,t,r,n,o)=>{const i=eh(".qv-object .qv-inner-object",r),a=eh(".qv-panel-sheet",r),l=eh(Zm,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 Km(s);if("none"===u)return"transparent";if(void 0===u)return;const c=Ym(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=Gm(p),m=Vm(f?s:p);return{color:p,headerColor:Qm(u,p,s),isDark:m}},rh=(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(Zm),{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:th(o,s,i,a,l)})),[s.name(),i,a,l,o,u])},nh=3;function oh(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 ih({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=nh}=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=_m(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=_m((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=oh(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 ah,lh=z;function sh(e,t){const[r,n]=S(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}ah=lh.createRoot,lh.hydrateRoot;var uh={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 ch=({translator:e})=>(E((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(uh).forEach((t=>{e.add(uh[t])}))}}(e)),[e]),e),dh="12px",ph="nebula-table-utils-head-menu-button",fh="nebula-table-utils-head-menu-wrapper",mh="nebula-table-utils-head-menu",hh="nebula-table-utils-head-menu-list-id",gh="sn-copy-cell";let bh=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 vh="nebula-table-utils-column-adjuster";let yh=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}({}),xh=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const Sh={darker:.15,brighter:.3,opacity:.03},Eh={darker:.3,brighter:.5,opacity:.05},wh=document.createElement("textarea");function Ch(e){wh.value=e,document.body.appendChild(wh),wh.select(),wh.setSelectionRange(0,wh.value.length),document.execCommand("copy"),document.body.removeChild(wh)}wh.style.position="absolute",wh.style.left="-9999px",wh.setAttribute("readonly","");const Rh=e=>{var t;const r=e.title;r&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(r).catch((()=>Ch(r))):Ch(r))};var Ah,Ph;var Ih=function(){if(Ph)return Ah;Ph=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return Ah=function e(){var t,r,n,s,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(s=l(t,r))&&(m&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(m,c,s)})):void 0!==s&&a(d,{name:r,newValue:s}));return d},Ah}();function Dh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Lh(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Mh(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Ih);var kh=1/.7,Oh="\\s*([+-]?\\d+)\\s*",Th="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",_h="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qh=/^#([0-9a-f]{3,8})$/,Nh=new RegExp(`^rgb\\(${Oh},${Oh},${Oh}\\)$`),Fh=new RegExp(`^rgb\\(${_h},${_h},${_h}\\)$`),jh=new RegExp(`^rgba\\(${Oh},${Oh},${Oh},${Th}\\)$`),zh=new RegExp(`^rgba\\(${_h},${_h},${_h},${Th}\\)$`),Hh=new RegExp(`^hsl\\(${Th},${_h},${_h}\\)$`),$h=new RegExp(`^hsla\\(${Th},${_h},${_h},${Th}\\)$`),Bh={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 Wh(){return this.rgb().formatHex()}function Vh(){return this.rgb().formatRgb()}function Gh(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=qh.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Uh(t):3===r?new Jh(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Yh(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Yh(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=Nh.exec(e))?new Jh(t[1],t[2],t[3],1):(t=Fh.exec(e))?new Jh(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=jh.exec(e))?Yh(t[1],t[2],t[3],t[4]):(t=zh.exec(e))?Yh(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Hh.exec(e))?ng(t[1],t[2]/100,t[3]/100,1):(t=$h.exec(e))?ng(t[1],t[2]/100,t[3]/100,t[4]):Bh.hasOwnProperty(e)?Uh(Bh[e]):"transparent"===e?new Jh(NaN,NaN,NaN,0):null}function Uh(e){return new Jh(e>>16&255,e>>8&255,255&e,1)}function Yh(e,t,r,n){return n<=0&&(e=t=r=NaN),new Jh(e,t,r,n)}function Kh(e){return e instanceof Mh||(e=Gh(e)),e?new Jh((e=e.rgb()).r,e.g,e.b,e.opacity):new Jh}function Xh(e,t,r,n){return 1===arguments.length?Kh(e):new Jh(e,t,r,null==n?1:n)}function Jh(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Zh(){return`#${rg(this.r)}${rg(this.g)}${rg(this.b)}`}function Qh(){const e=eg(this.opacity);return`${1===e?"rgb(":"rgba("}${tg(this.r)}, ${tg(this.g)}, ${tg(this.b)}${1===e?")":`, ${e})`}`}function eg(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function tg(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function rg(e){return((e=tg(e))<16?"0":"")+e.toString(16)}function ng(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ig(e,t,r,n)}function og(e){if(e instanceof ig)return new ig(e.h,e.s,e.l,e.opacity);if(e instanceof Mh||(e=Gh(e)),!e)return new ig;if(e instanceof ig)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 ig(a,l,s,e.opacity)}function ig(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function ag(e){return(e=(e||0)%360)<0?e+360:e}function lg(e){return Math.max(0,Math.min(1,e||0))}function sg(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Dh(Mh,Gh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Wh,formatHex:Wh,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return og(this).formatHsl()},formatRgb:Vh,toString:Vh}),Dh(Jh,Xh,Lh(Mh,{brighter(e){return e=null==e?kh:Math.pow(kh,e),new Jh(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Jh(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Jh(tg(this.r),tg(this.g),tg(this.b),eg(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:Zh,formatHex:Zh,formatHex8:function(){return`#${rg(this.r)}${rg(this.g)}${rg(this.b)}${rg(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Qh,toString:Qh})),Dh(ig,(function(e,t,r,n){return 1===arguments.length?og(e):new ig(e,t,r,null==n?1:n)}),Lh(Mh,{brighter(e){return e=null==e?kh:Math.pow(kh,e),new ig(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ig(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 Jh(sg(e>=240?e-240:e+120,o,n),sg(e,o,n),sg(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new ig(ag(this.h),lg(this.s),lg(this.l),eg(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=eg(this.opacity);return`${1===e?"hsl(":"hsla("}${ag(this.h)}, ${100*lg(this.s)}%, ${100*lg(this.l)}%${1===e?")":`, ${e})`}`}}));const ug=Math.PI/180,cg=180/Math.PI,dg=4/29,pg=6/29,fg=3*pg*pg;function mg(e){if(e instanceof hg)return new hg(e.l,e.a,e.b,e.opacity);if(e instanceof xg)return Sg(e);e instanceof Jh||(e=Kh(e));var t,r,n=yg(e.r),o=yg(e.g),i=yg(e.b),a=gg((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=gg((.4360747*n+.3850649*o+.1430804*i)/.96422),r=gg((.0139322*n+.0971045*o+.7141733*i)/.82521)),new hg(116*a-16,500*(t-a),200*(a-r),e.opacity)}function hg(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function gg(e){return e>.008856451679035631?Math.pow(e,1/3):e/fg+dg}function bg(e){return e>pg?e*e*e:fg*(e-dg)}function vg(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function yg(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function xg(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Sg(e){if(isNaN(e.h))return new hg(e.l,0,0,e.opacity);var t=e.h*ug;return new hg(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Dh(hg,(function(e,t,r,n){return 1===arguments.length?mg(e):new hg(e,t,r,null==n?1:n)}),Lh(Mh,{brighter(e){return new hg(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new hg(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 Jh(vg(3.1338561*(t=.96422*bg(t))-1.6168667*(e=1*bg(e))-.4906146*(r=.82521*bg(r))),vg(-.9787684*t+1.9161415*e+.033454*r),vg(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Dh(xg,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof xg)return new xg(e.h,e.c,e.l,e.opacity);if(e instanceof hg||(e=mg(e)),0===e.a&&0===e.b)return new xg(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*cg;return new xg(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new xg(e,t,r,null==n?1:n)}),Lh(Mh,{brighter(e){return new xg(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new xg(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Sg(this).rgb()}}));var Eg=e=>()=>e;function wg(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Eg(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?wg: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):Eg(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Xh(e)).r,(t=Xh(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=wg(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 Cg="center",Rg="bottom";[{key:"NoDataExist",alignment:Cg,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:Cg,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:Cg,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:Cg},{key:"DataRangeIncludingZero",alignment:Rg},{key:"LimitedData",alignment:Rg},{key:"NegativeOrZeroValues",alignment:Rg}].reduce((function(e,t){return e[t.key]=t,e}),{});var Ag,Pg=["__proto__","constructor"];function Ig(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!Pg.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 Dg(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 Lg(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=kg)):void 0===t&&(t=Mg);for(var r,n,o,i,a,l=new _g(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 _g(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(Tg)}function Mg(e){return e.children}function kg(e){return Array.isArray(e)?e[1]:null}function Og(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Tg(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function _g(e){this.data=e,this.depth=this.height=0,this.parent=null}_g.prototype=Lg.prototype={constructor:_g,count:function(){return this.eachAfter(Dg)},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 Lg(this).eachBefore(Og)},[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)}},Ag=function(e){
|
|
99
|
+
`),Ku.rippleVisible,rc,550,(({theme:e})=>e.transitions.easing.easeInOut),Ku.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Ku.child,Ku.childLeaving,nc,550,(({theme:e})=>e.transitions.easing.easeInOut),Ku.childPulsate,oc,(({theme:e})=>e.transitions.easing.easeInOut));var lc=y.forwardRef((function(e,t){const r=Vs({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=pr(r,Xu),[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,Pl.jsx(ac,{classes:{ripple:Qs(o.ripple,Ku.ripple),rippleVisible:Qs(o.rippleVisible,Ku.rippleVisible),ripplePulsate:Qs(o.ripplePulsate,Ku.ripplePulsate),child:Qs(o.child,Ku.child),childLeaving:Qs(o.childLeaving,Ku.childLeaving),childPulsate:Qs(o.childPulsate,Ku.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]),Pl.jsx(ic,dr({className:Qs(Ku.root,o.root,i),ref:m},a,{children:Pl.jsx(Nu,{component:null,exit:!0,children:l})}))}));function sc(e){return Es("MuiButtonBase",e)}var uc=Cs("MuiButtonBase",["root","disabled","focusVisible"]);const cc=["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"],dc=Xs("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"}}),pc=y.forwardRef((function(e,t){const r=Vs({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:M=0,TouchRippleProps:P,touchRippleRef:L,type:D}=r,k=pr(r,cc),O=y.useRef(null),T=y.useRef(null),_=ls(T,L),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=bs(),[z,H]=y.useState(!1);s&&z&&H(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),O.current.focus()}})),[]);const[$,B]=y.useState(!1);y.useEffect((()=>{B(!0)}),[]);const W=$&&!u&&!s;function G(e,t,r=c){return as((n=>{t&&t(n);return!r&&T.current&&T.current[e](n),!0}))}y.useEffect((()=>{z&&d&&!u&&$&&T.current.pulsate()}),[u,d,z,$]);const V=G("start",E),U=G("stop",h),Y=G("stop",g),K=G("stop",w),X=G("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),J=G("start",I),Z=G("stop",R),Q=G("stop",A),ee=G("stop",(e=>{F(e),!1===q.current&&H(!1),f&&f(e)}),!1),te=as((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&(H(!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=as((e=>{d&&!ne.current&&z&&T.current&&" "===e.key&&(ne.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=as((e=>{d&&" "===e.key&&T.current&&z&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.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===D?"button":D,le.disabled=s):(k.href||k.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=ls(t,j,O),ue=dr({},r,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:M,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=ia({root:["root",t&&"disabled",r&&"focusVisible"]},sc,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Pl.jsxs(dc,dr({as:ae,className:Qs(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:M,type:D},le,k,{children:[i,W?Pl.jsx(lc,dr({ref:_,center:o},P)):null]}))}));var fc=pc;function mc(e){return Es("MuiTypography",e)}Cs("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const hc=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],gc=Xs("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${Zl(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>dr({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}))),bc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},vc={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},yc=y.forwardRef((function(e,t){const r=Vs({props:e,name:"MuiTypography"}),n=(e=>vc[e]||e)(r.color),o=kl(dr({},r,{color:n})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=bc}=o,f=pr(o,hc),m=dr({},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]||bc[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return ia({root:["root",i,"inherit"!==e.align&&`align${Zl(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},mc,a)})(m);return Pl.jsx(gc,dr({as:h,ref:t,ownerState:m,className:Qs(g.root,a)},f))}));var xc=yc;const Sc=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ec(e){const t=[],r=[];return Array.from(e.querySelectorAll(Sc)).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 Cc(){return!0}function wc(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=Ec,isEnabled:a=Cc,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=Wi(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=ji(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=ji(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 Pl.jsxs(y.Fragment,{children:[Pl.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)}}),Pl.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const Rc=y.forwardRef((function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=y.useState(null),l=Wi(y.isValidElement(r)?r.ref:null,t);if($i((()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)}),[n,o]),$i((()=>{if(i&&!o)return Hi(t,i),()=>{Hi(t,null)}}),[t,i,o]),o){if(y.isValidElement(r)){const e={ref:l};return y.cloneElement(r,e)}return Pl.jsx(y.Fragment,{children:r})}return Pl.jsx(y.Fragment,{children:i?j.createPortal(r,i):i})}));function Ac(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Ic(e){return parseInt(zi(e).getComputedStyle(e).paddingRight,10)||0}function Mc(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&&Ac(e,o)}))}function Pc(e,t){let r=-1;return e.some(((e,n)=>!!t(e)&&(r=n,!0))),r}function Lc(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=ji(e);return t.body===e?zi(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)}(ji(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Ic(n)+e}px`;const t=ji(n).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Ic(t)+e}px`}))}let e;if(n.parentNode instanceof DocumentFragment)e=ji(n).body;else{const t=n.parentElement,r=zi(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 Dc=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&&Ac(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);Mc(t,e.mount,e.modalRef,n,!0);const o=Pc(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=Pc(this.containers,(t=>-1!==t.modals.indexOf(e))),n=this.containers[r];n.restore||(n.restore=Lc(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=Pc(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&&Ac(e.modalRef,t),Mc(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&&Ac(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function kc(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Dc,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=Wi(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=Bi((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||ji(f.current).body;o.add(S(),e),m.current&&E()})),w=y.useCallback((()=>o.isTopModal(S())),[o]),R=Bi((e=>{f.current=e,e&&(c&&w()?E():m.current&&Ac(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")))},M=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=Gu(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=vt({},r,t);return vt({role:"presentation"},n,{onKeyDown:I(n),ref:h})},getBackdropProps:(e={})=>vt({"aria-hidden":!0},e,{onClick:M(e),open:c}),getTransitionProps:()=>({onEnter:Fi((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:Fi((()=>{b(!0),l&&l(),i&&A()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}const Oc=["onChange","maxRows","minRows","style","value"];function Tc(e){return parseInt(e,10)||0}const _c={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function qc(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Nc=y.forwardRef((function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,l=It(e,Oc),{current:s}=y.useRef(null!=a),u=y.useRef(null),c=Wi(t,u),d=y.useRef(null),p=y.useRef(0),[f,m]=y.useState({outerHeightStyle:0}),h=y.useCallback((()=>{const t=u.current,r=zi(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=Tc(r.paddingBottom)+Tc(r.paddingTop),s=Tc(r.borderBottomWidth)+Tc(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();qc(e)||m((t=>g(t,e)))}),[h]);$i((()=>{const e=()=>{p.current=0,(()=>{const e=h();qc(e)||j.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=zi(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]),$i((()=>{b()})),y.useEffect((()=>{p.current=0}),[a]);return Pl.jsxs(y.Fragment,{children:[Pl.jsx("textarea",vt({value:a,onChange:e=>{p.current=0,s||b(),r&&r(e)},ref:c,rows:o,style:vt({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),Pl.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:vt({},_c,i,{paddingTop:0,paddingBottom:0})})]})}));function Fc({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 jc=y.createContext(void 0);function zc(){return y.useContext(jc)}function Hc(e){return Pl.jsx(Ll,dr({},e,{defaultTheme:Ws,themeId:cr}))}function $c(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Bc(e,t=!1){return e&&($c(e.value)&&""!==e.value||t&&$c(e.defaultValue)&&""!==e.defaultValue)}function Wc(e){return Es("MuiInputBase",e)}var Gc=Cs("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const Vc=["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"],Uc=(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${Zl(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Yc=(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]},Kc=Xs("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Uc})((({theme:e,ownerState:t})=>dr({},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",[`&.${Gc.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&dr({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Xc=Xs("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Yc})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=dr({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 dr({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] + .${Gc.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},[`&.${Gc.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"})})),Jc=Pl.jsx(Hc,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Zc=y.forwardRef((function(e,t){var r;const n=Vs({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:M,onKeyUp:P,placeholder:L,readOnly:D,renderSuffix:k,rows:O,slotProps:T={},slots:_={},startAdornment:q,type:N="text",value:F}=n,j=pr(n,Vc),z=null!=b.value?b.value:F,{current:H}=y.useRef(null!=z),$=y.useRef(),B=y.useCallback((e=>{}),[]),W=ls($,v,b.ref,B),[G,V]=y.useState(!1),U=zc(),Y=Fc({props:n,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Y.focused=U?U.focused:G,y.useEffect((()=>{!U&&d&&G&&(V(!1),w&&w())}),[U,d,G,w]);const K=U&&U.onFilled,X=U&&U.onEmpty,J=y.useCallback((e=>{Bc(e)?K&&K():X&&X()}),[K,X]);ts((()=>{H&&J({value:z})}),[z,J,H]);y.useEffect((()=>{J($.current)}),[]);let Z=g,Q=b;E&&"input"===Z&&(Q=dr(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:x,minRows:S},Q),Z=Nc);y.useEffect((()=>{U&&U.setAdornedStart(Boolean(q))}),[U,q]);const ee=dr({},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 ia({root:["root",`color${Zl(r)}`,n&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${Zl(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"]},Wc,t)})(ee),re=_.root||s.Root||Kc,ne=T.root||u.root||{},oe=_.input||s.Input||Xc;return Q=dr({},Q,null!=(r=T.input)?r:u.input),Pl.jsxs(y.Fragment,{children:[!p&&Jc,Pl.jsxs(re,dr({},ne,!Wu(re)&&{ownerState:dr({},ee,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),A&&A(e)}},j,{className:Qs(te.root,ne.className,l,D&&"MuiInputBase-readOnly"),children:[q,Pl.jsx(jc.Provider,{value:null,children:Pl.jsx(oe,dr({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?$.current:{value:"x"})},name:C,placeholder:L,readOnly:D,required:Y.required,rows:O,value:z,onKeyDown:M,onKeyUp:P,type:N},Q,!Wu(oe)&&{as:Z,ownerState:dr({},ee,Q.ownerState)},{ref:W,className:Qs(te.input,Q.className,D&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),U&&U.onBlur?U.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!H){const t=e.target||$.current;if(null==t)throw new Error(ur(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):V(!0))}}))}),f,k?k(dr({},Y,{startAdornment:q})):null]}))]})}));var Qc=Zc;function ed(e){return Es("MuiInput",e)}var td=dr({},Gc,Cs("MuiInput",["root","underline","input"]));function rd(e){return Es("MuiOutlinedInput",e)}var nd=dr({},Gc,Cs("MuiOutlinedInput",["root","notchedOutline","input"]));function od(e){return Es("MuiFilledInput",e)}var id=dr({},Gc,Cs("MuiFilledInput",["root","underline","input"])),ad=function(e,t){function r(r,n){return Pl.jsx(ou,dr({"data-testid":`${t}Icon`,ref:n},r,{children:e}))}return r.muiName=ou.muiName,y.memo(y.forwardRef(r))}(Pl.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const ld=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],sd={entering:{opacity:1},entered:{opacity:1}},ud=y.forwardRef((function(e,t){const r=Gs(),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=Du}=e,v=pr(e,ld),x=y.useRef(null),S=ls(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)=>{Fu(e);const n=ju({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=ju({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)})),M=E(f);return Pl.jsx(b,dr({appear:i,in:s,nodeRef:x,onEnter:w,onEntered:R,onEntering:C,onExit:I,onExited:M,onExiting:A,addEndListener:e=>{o&&o(x.current,e)},timeout:g},v,{children:(e,t)=>y.cloneElement(a,dr({style:dr({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},sd[e],h,a.props.style),ref:S},t))}))}));var cd=ud;function dd(e){return Es("MuiBackdrop",e)}Cs("MuiBackdrop",["root","invisible"]);const pd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],fd=Xs("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})((({ownerState:e})=>dr({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"}))),md=y.forwardRef((function(e,t){var r,n,o;const i=Vs({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=cd,transitionDuration:g}=i,b=pr(i,pd),v=dr({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return ia({root:["root",r&&"invisible"]},dd,t)})(v),x=null!=(r=f.root)?r:c.root;return Pl.jsx(h,dr({in:p,timeout:g},b,{children:Pl.jsx(fd,dr({"aria-hidden":!0},x,{as:null!=(n=null!=(o=m.root)?o:u.Root)?n:s,className:Qs(y.root,l,null==x?void 0:x.className),ownerState:dr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var hd=md;var gd=Cs("MuiBox",["root"]);const bd=Bs(),vd=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=ii("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(fl);return y.forwardRef((function(e,a){const l=yl(r),s=kl(e),{className:u,component:c="div"}=s,d=It(s,Ol);return Pl.jsx(i,vt({as:c,ref:a,className:ma(u,o?o(n):n),theme:t&&l[t]||l},d))}))}({themeId:cr,defaultTheme:bd,defaultClassName:gd.root,generateClassName:xs.generate});var yd=vd;function xd(e){return Es("MuiButton",e)}var Sd=Cs("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var Ed=y.createContext({});var Cd=y.createContext(void 0);const wd=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Rd=e=>dr({},"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}}),Ad=Xs(fc,{shouldForwardProp:e=>Us(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Zl(r.color)}`],t[`size${Zl(r.size)}`],t[`${r.variant}Size${Zl(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 dr({},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":dr({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Yl(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})`:Yl(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})`:Yl(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":dr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Sd.focusVisible}`]:dr({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Sd.disabled}`]:dr({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 ${Yl(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"},[`&.${Sd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Sd.disabled}`]:{boxShadow:"none"}})),Id=Xs("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Zl(r.size)}`]]}})((({ownerState:e})=>dr({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Rd(e)))),Md=Xs("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Zl(r.size)}`]]}})((({ownerState:e})=>dr({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Rd(e)))),Pd=y.forwardRef((function(e,t){const r=y.useContext(Ed),n=y.useContext(Cd),o=Vs({props:vs(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=pr(o,wd),S=dr({},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 dr({},a,ia({root:["root",i,`${i}${Zl(t)}`,`size${Zl(o)}`,`${i}Size${Zl(o)}`,"inherit"===t&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Zl(o)}`],endIcon:["endIcon",`iconSize${Zl(o)}`]},xd,a))})(S),C=g&&Pl.jsx(Id,{className:E.startIcon,ownerState:S,children:g}),w=p&&Pl.jsx(Md,{className:E.endIcon,ownerState:S,children:p}),R=n||"";return Pl.jsxs(Ad,dr({ownerState:S,className:Qs(r.className,E.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:Qs(E.focusVisible,f),ref:t,type:b},x,{classes:E,children:[C,i,w]}))}));var Ld=Pd;function Dd(e){return Es("MuiModal",e)}Cs("MuiModal",["root","hidden","backdrop"]);const kd=["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"],Od=Xs("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})=>dr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Td=Xs(hd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),_d=y.forwardRef((function(e,t){var r,n,o,i,a,l;const s=Vs({name:"MuiModal",props:e}),{BackdropComponent:u=Td,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:M,slotProps:P,slots:L}=s,D=pr(s,kd),k=dr({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:A}),{getRootProps:O,getBackdropProps:T,getTransitionProps:_,portalRef:q,isTopModal:N,exited:F,hasTransition:j}=kc(dr({},k,{rootRef:t})),z=dr({},k,{exited:F}),H=(e=>{const{open:t,exited:r,classes:n}=e;return ia({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Dd,n)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),j){const{onEnter:e,onExited:t}=_();$.onEnter=e,$.onExited=t}const B=null!=(r=null!=(n=null==L?void 0:L.root)?n:g.Root)?r:Od,W=null!=(o=null!=(i=null==L?void 0:L.backdrop)?i:g.Backdrop)?o:u,G=null!=(a=null==P?void 0:P.root)?a:b.root,V=null!=(l=null==P?void 0:P.backdrop)?l:b.backdrop,U=Yu({elementType:B,externalSlotProps:G,externalForwardedProps:D,getSlotProps:O,additionalProps:{ref:t,as:h},ownerState:z,className:Qs(d,null==G?void 0:G.className,null==H?void 0:H.root,!z.open&&z.exited&&(null==H?void 0:H.hidden))}),Y=Yu({elementType:W,externalSlotProps:V,additionalProps:c,getSlotProps:e=>T(dr({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Qs(null==V?void 0:V.className,null==c?void 0:c.className,null==H?void 0:H.backdrop),ownerState:z});return A||M||j&&!F?Pl.jsx(Rc,{ref:q,container:m,disablePortal:E,children:Pl.jsxs(B,dr({},U,{children:[!R&&u?Pl.jsx(W,dr({},Y)):null,Pl.jsx(wc,{disableEnforceFocus:x,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:M,children:y.cloneElement(f,$)})]}))}):null}));var qd=_d;function Nd(e){return Es("MuiDivider",e)}var Fd=Cs("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const jd=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],zd=Xs("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})=>dr({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)`:Yl(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})=>dr({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>dr({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>dr({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>dr({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Hd=Xs("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>dr({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)`}))),$d=y.forwardRef((function(e,t){const r=Vs({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=pr(r,jd),m=dr({},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 ia({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"]},Nd,n)})(m);return Pl.jsx(zd,dr({as:a,className:Qs(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Pl.jsx(Hd,{className:h.wrapper,ownerState:m,children:o}):null}))}));$d.muiSkipListHighlight=!0;var Bd=$d;const Wd=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Gd=Xs(Kc,{shouldForwardProp:e=>Us(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Uc(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 dr({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}},[`&.${id.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${id.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"},[`&.${id.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${id.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(.${id.disabled}, .${id.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${id.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&dr({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}))})),Vd=Xs(Xc,{name:"MuiFilledInput",slot:"Input",overridesResolver:Yc})((({theme:e,ownerState:t})=>dr({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}))),Ud=y.forwardRef((function(e,t){var r,n,o,i;const a=Vs({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=pr(a,Wd),g=dr({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:r}=e;return dr({},t,ia({root:["root",!r&&"underline"],input:["input"]},od,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?Jl(v,null!=p?p:s):v,x=null!=(r=null!=(n=f.root)?n:l.Root)?r:Gd,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:Vd;return Pl.jsx(Qc,dr({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));Ud.muiName="Input";var Yd=Ud;const Kd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Xd(e){return`scale(${e}, ${e**2})`}const Jd={entering:{opacity:1,transform:Xd(1)},entered:{opacity:1,transform:"none"}},Zd="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Qd=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=Du}=e,g=pr(e,Kd),b=y.useRef(),v=y.useRef(),x=Gs(),S=y.useRef(null),E=ls(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)=>{Fu(e);const{duration:r,delay:n,easing:o}=ju({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:Zd?a:.666*a,delay:n,easing:o})].join(","),l&&l(e,t)})),A=C(s),I=C(p),M=C((e=>{const{duration:t,delay:r,easing:n}=ju({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:Zd?o:.666*o,delay:Zd?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Xd(.75),c&&c(e)})),P=C(d);return y.useEffect((()=>()=>{clearTimeout(b.current)}),[]),Pl.jsx(h,dr({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:A,onEntering:w,onExit:M,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,dr({style:dr({opacity:0,transform:Xd(.75),visibility:"exited"!==e||a?void 0:"hidden"},Jd[e],f,o.props.style),ref:E},t))}))}));Qd.muiSupportAuto=!0;var ep=Qd;const tp=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],rp=Xs(Kc,{shouldForwardProp:e=>Us(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Uc(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})`),dr({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"},[`&.${td.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${td.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(.${td.disabled}, .${td.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${td.disabled}:before`]:{borderBottomStyle:"dotted"}})})),np=Xs(Xc,{name:"MuiInput",slot:"Input",overridesResolver:Yc})({}),op=y.forwardRef((function(e,t){var r,n,o,i;const a=Vs({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=pr(a,tp),b=(e=>{const{classes:t,disableUnderline:r}=e;return dr({},t,ia({root:["root",!r&&"underline"],input:["input"]},ed,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?Jl(null!=f?f:u,v):v,x=null!=(r=null!=(n=m.root)?n:s.Root)?r:rp,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:np;return Pl.jsx(Qc,dr({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));op.muiName="Input";var ip=op;function ap(e){return Es("MuiLink",e)}var lp=Cs("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const sp={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var up=({theme:e,ownerState:t})=>{const r=(e=>sp[e]||e)(t.color),n=Ea(e,`palette.${r}`,!1)||t.color,o=Ea(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Yl(n,.4)};const cp=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],dp=Xs(xc,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Zl(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>dr({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&dr({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:up({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"},[`&.${lp.focusVisible}`]:{outline:"auto"}}))),pp=y.forwardRef((function(e,t){const r=Vs({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=pr(r,cp),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=bs(),[b,v]=y.useState(!1),x=ls(t,g),S=dr({},r,{color:o,component:i,focusVisible:b,underline:u,variant:c}),E=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return ia({root:["root",`underline${Zl(o)}`,"button"===r&&"button",n&&"focusVisible"]},ap,t)})(S);return Pl.jsx(dp,dr({color:o,className:Qs(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(sp).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var fp=pp;var mp=y.createContext({});function hp(e){return Es("MuiList",e)}Cs("MuiList",["root","padding","dense","subheader"]);const gp=["children","className","component","dense","disablePadding","subheader"],bp=Xs("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})=>dr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var vp=y.forwardRef((function(e,t){const r=Vs({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=r,u=pr(r,gp),c=y.useMemo((()=>({dense:a})),[a]),d=dr({},r,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return ia({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},hp,t)})(d);return Pl.jsx(mp.Provider,{value:c,children:Pl.jsxs(bp,dr({as:i,className:Qs(p.root,o),ref:t,ownerState:d},u,{children:[s,n]}))})}));function yp(e){return Es("MuiListItemIcon",e)}var xp=Cs("MuiListItemIcon",["root","alignItemsFlexStart"]);const Sp=["className"],Ep=Xs("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})=>dr({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var Cp=y.forwardRef((function(e,t){const r=Vs({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=pr(r,Sp),i=dr({},r,{alignItems:y.useContext(mp).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return ia({root:["root","flex-start"===t&&"alignItemsFlexStart"]},yp,r)})(i);return Pl.jsx(Ep,dr({className:Qs(a.root,n),ownerState:i,ref:t},o))}));var wp=Cs("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const Rp=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Ap(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function Ip(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Mp(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 Pp(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")&&Mp(l,i)&&!t)return l.focus(),!0;l=o(e,l,r)}return!1}var Lp=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=pr(e,Rp),p=y.useRef(null),f=y.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ts((()=>{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)}(Ql(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}})),[]);const m=ls(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 Pl.jsx(vp,dr({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=Ql(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Pp(t,n,s,l,Ap);else if("ArrowUp"===r)e.preventDefault(),Pp(t,n,s,l,Ip);else if("Home"===r)e.preventDefault(),Pp(t,null,s,l,Ap);else if("End"===r)e.preventDefault(),Pp(t,null,s,l,Ip);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&&Mp(n,o);o.previousKeyMatched&&(s||Pp(t,n,!1,l,Ap,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:n?0:-1},d,{children:g}))}));function Dp(e){return Es("MuiPopover",e)}Cs("MuiPopover",["root","paper"]);const kp=["onEntering"],Op=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Tp=["slotProps"];function _p(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function qp(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Np(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Fp(e){return"function"==typeof e?e():e}const jp=Xs(qd,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),zp=Xs(Bu,{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 Hp=y.forwardRef((function(e,t){var r,n,o;const i=Vs({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=ep,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,A=pr(i.TransitionProps,kp),I=pr(i,Op),M=null!=(r=null==x?void 0:x.paper)?r:b,P=y.useRef(),L=ls(P,M.ref),D=dr({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:M,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:A}),k=(e=>{const{classes:t}=e;return ia({root:["root"],paper:["paper"]},Dp,t)})(D),O=y.useCallback((()=>{if("anchorPosition"===c)return u;const e=Fp(l),t=(e&&1===e.nodeType?e:Ql(P.current).body).getBoundingClientRect();return{top:t.top+_p(t,s.vertical),left:t.left+qp(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),T=y.useCallback((e=>({vertical:_p(e,S.vertical),horizontal:qp(e,S.horizontal)})),[S.horizontal,S.vertical]),_=y.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=T(t);if("none"===c)return{top:null,left:null,transformOrigin:Np(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=es(Fp(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:Np(r)}}),[l,c,O,T,h]),[q,N]=y.useState(g),F=y.useCallback((()=>{const e=P.current;if(!e)return;const t=_(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[_]);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=es(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let j=C;"auto"!==C||E.muiSupportAuto||(j=void 0);const z=f||(l?Ql(Fp(l)).body:void 0),H=null!=(n=null==v?void 0:v.root)?n:jp,$=null!=(o=null==v?void 0:v.paper)?o:zp,B=Yu({elementType:$,externalSlotProps:dr({},M,{style:q?M.style:dr({},M.style,{opacity:0})}),additionalProps:{elevation:m,ref:L},ownerState:D,className:Qs(k.paper,null==M?void 0:M.className)}),W=Yu({elementType:H,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:I,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:D,className:Qs(k.root,p)}),{slotProps:G}=W,V=pr(W,Tp);return Pl.jsx(H,dr({},V,!Wu(H)&&{slotProps:G,disableScrollLock:R},{children:Pl.jsx(E,dr({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:j},A,{children:Pl.jsx($,dr({},B,{children:d}))}))}))}));function $p(e){return Es("MuiMenu",e)}Cs("MuiMenu",["root","paper","list"]);const Bp=["onEntering"],Wp=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Gp={vertical:"top",horizontal:"right"},Vp={vertical:"top",horizontal:"left"},Up=Xs(Hp,{shouldForwardProp:e=>Us(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Yp=Xs(zp,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Kp=Xs(Lp,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var Xp=y.forwardRef((function(e,t){var r,n;const o=Vs({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=pr(o.TransitionProps,Bp),S=pr(o,Wp),E=Gs(),C="rtl"===E.direction,w=dr({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:x,variant:g}),R=(e=>{const{classes:t}=e;return ia({root:["root"],paper:["paper"],list:["list"]},$p,t)})(w),A=i&&!s&&d,I=y.useRef(null);let M=-1;y.Children.map(a,((e,t)=>{y.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===M)&&(M=t))}));const P=null!=(r=b.paper)?r:Yp,L=null!=(n=v.paper)?n:p,D=Yu({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[R.root,l]}),k=Yu({elementType:P,externalSlotProps:L,ownerState:w,className:R.paper});return Pl.jsx(Up,dr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Gp:Vp,slots:{paper:P,root:b.root},slotProps:{root:D,paper:k},open:d,ref:t,transitionDuration:m,TransitionProps:dr({onEntering:(e,t)=>{I.current&&I.current.adjustStyleForScrollbar(e,E),h&&h(e,t)}},x),ownerState:w},S,{classes:f,children:Pl.jsx(Kp,dr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:I,autoFocus:i&&(-1===M||s),autoFocusItem:A,variant:g},u,{className:Qs(R.list,u.className),children:a}))}))}));function Jp(e){return Es("MuiMenuItem",e)}var Zp=Cs("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const Qp=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],ef=Xs(fc,{shouldForwardProp:e=>Us(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})=>dr({},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"}},[`&.${Zp.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Yl(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Zp.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Yl(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Zp.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Yl(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})`:Yl(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Zp.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Zp.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Fd.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Fd.inset}`]:{marginLeft:52},[`& .${wp.root}`]:{marginTop:0,marginBottom:0},[`& .${wp.inset}`]:{paddingLeft:36},[`& .${xp.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&dr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${xp.root} svg`]:{fontSize:"1.25rem"}}))));var tf=y.forwardRef((function(e,t){const r=Vs({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=pr(r,Qp),f=y.useContext(mp),m=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=y.useRef(null);ts((()=>{n&&h.current&&h.current.focus()}),[n]);const g=dr({},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 dr({},a,ia({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Jp,a))})(r),v=ls(h,t);let x;return r.disabled||(x=void 0!==c?c:-1),Pl.jsx(mp.Provider,{value:m,children:Pl.jsx(ef,dr({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:Qs(b.focusVisible,s),className:Qs(b.root,d)},p,{ownerState:g,classes:b}))})}));function rf(e){return Es("MuiNativeSelect",e)}var nf=Cs("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const of=["className","disabled","error","IconComponent","inputRef","variant"],af=({ownerState:e,theme:t})=>dr({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":dr({},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"},[`&.${nf.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}}),lf=Xs("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Us,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${nf.multiple}`]:t.multiple}]}})(af),sf=({ownerState:e,theme:t})=>dr({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${nf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),uf=Xs("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Zl(r.variant)}`],r.open&&t.iconOpen]}})(sf),cf=y.forwardRef((function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=pr(e,of),u=dr({},e,{disabled:n,variant:l,error:o}),c=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return ia({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Zl(r)}`,i&&"iconOpen",n&&"disabled"]},rf,t)})(u);return Pl.jsxs(y.Fragment,{children:[Pl.jsx(lf,dr({ownerState:u,className:Qs(c.select,r),disabled:n,ref:a||t},s)),e.multiple?null:Pl.jsx(uf,{as:i,ownerState:u,className:c.icon})]})}));var df,pf=cf;const ff=["children","classes","className","label","notched"],mf=Xs("fieldset",{shouldForwardProp:Us})({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%"}),hf=Xs("legend",{shouldForwardProp:Us})((({ownerState:e,theme:t})=>dr({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&&dr({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 gf=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],bf=Xs(Kc,{shouldForwardProp:e=>Us(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Uc})((({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return dr({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${nd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${nd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${nd.focused} .${nd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${nd.error} .${nd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${nd.disabled} .${nd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&dr({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),vf=Xs((function(e){const{className:t,label:r,notched:n}=e,o=pr(e,ff),i=null!=r&&""!==r,a=dr({},e,{notched:n,withLabel:i});return Pl.jsx(mf,dr({"aria-hidden":!0,className:t,ownerState:a},o,{children:Pl.jsx(hf,{ownerState:a,children:i?Pl.jsx("span",{children:r}):df||(df=Pl.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}})),yf=Xs(Xc,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Yc})((({theme:e,ownerState:t})=>dr({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}))),xf=y.forwardRef((function(e,t){var r,n,o,i,a;const l=Vs({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=pr(l,gf),b=(e=>{const{classes:t}=e;return dr({},t,ia({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},rd,t))})(l),v=zc(),x=Fc({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=dr({},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:bf,C=null!=(o=null!=(i=m.input)?i:s.Input)?o:yf;return Pl.jsx(Qc,dr({slots:{root:E,input:C},renderSuffix:e=>Pl.jsx(vf,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&x.required?a||(a=Pl.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:dr({},b,{notchedOutline:null})}))}));xf.muiName="Input";var Sf=xf;function Ef(e){return Es("MuiSelect",e)}var Cf,wf=Cs("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Rf=["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"],Af=Xs("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${wf.select}`]:t.select},{[`&.${wf.select}`]:t[r.variant]},{[`&.${wf.error}`]:t.error},{[`&.${wf.multiple}`]:t.multiple}]}})(af,{[`&.${wf.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),If=Xs("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Zl(r.variant)}`],r.open&&t.iconOpen]}})(sf),Mf=Xs("input",{shouldForwardProp:e=>Ys(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 Pf(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function Lf(e){return null==e||"string"==typeof e&&!e.trim()}const Df=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:M,SelectDisplayProps:P={},tabIndex:L,value:D,variant:k="standard"}=e,O=pr(e,Rf),[T,_]=is({controlled:D,default:c,name:"Select"}),[q,N]=is({controlled:A,default:u,name:"Select"}),F=y.useRef(null),j=y.useRef(null),[z,H]=y.useState(null),{current:$}=y.useRef(null!=A),[B,W]=y.useState(),G=ls(t,h),V=y.useCallback((e=>{j.current=e,e&&H(e)}),[]),U=null==z?void 0:z.parentNode;y.useImperativeHandle(G,(()=>({focus:()=>{j.current.focus()},node:F.current,value:T})),[T]),y.useEffect((()=>{u&&q&&z&&!$&&(W(a?null:U.clientWidth),j.current.focus())}),[z,a]),y.useEffect((()=>{i&&j.current.focus()}),[i]),y.useEffect((()=>{if(!g)return;const e=Ql(j.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&j.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const Y=(e,t)=>{e?R&&R(t):C&&C(t),$||(W(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(T)?T.slice():[];const t=T.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),T!==r&&(_(r),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;(Bc({value:T})||p)&&(M?Z=M(T):te=!0);const re=K.map((e=>{if(!y.isValidElement(e))return null;let t;if(v){if(!Array.isArray(T))throw new Error(ur(2));t=T.some((t=>Pf(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=Pf(T,e.props.value),t&&te&&(Q=e.props.children);return y.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=v?0===ee.length?null:ee.reduce(((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e)),[]):Q);let ne,oe=B;!a&&$&&z&&(oe=U.clientWidth),ne=void 0!==L?L:d?null:0;const ie=P.id||(x?`mui-component-select-${x}`:void 0),ae=dr({},e,{variant:k,value:T,open:J,error:f}),le=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return ia({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Zl(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},Ef,t)})(ae),se=dr({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ue=os();return Pl.jsxs(y.Fragment,{children:[Pl.jsx(Af,dr({ref:V,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:T,name:x}}),S(e))},onFocus:w},P,{ownerState:ae,className:Qs(P.className,le.select,s),id:ie,children:Lf(Z)?Cf||(Cf=Pl.jsx("span",{className:"notranslate",children:""})):Z})),Pl.jsx(Mf,dr({"aria-invalid":f,value:Array.isArray(T)?T.join(","):T,name:x,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(_(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},O)),Pl.jsx(If,{as:m,className:le.icon,ownerState:ae}),Pl.jsx(Xp,dr({id:`menu-${x||""}`,anchorEl:U,open:J,onClose:e=>{Y(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:dr({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:dr({},b.slotProps,{paper:dr({},se,{style:dr({minWidth:oe},null!=se?se.style:null)})}),children:re}))]})}));var kf=Df;const Of=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Tf=["root"],_f={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Us(e)&&"variant"!==e,slot:"Root"},qf=Xs(ip,_f)(""),Nf=Xs(Sf,_f)(""),Ff=Xs(Yd,_f)(""),jf=y.forwardRef((function(e,t){const r=Vs({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=ad,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=pr(r,Of),A=b?pf:kf,I=Fc({props:r,muiFormControl:zc(),states:["variant","error"]}),M=I.variant||w,P=dr({},r,{variant:M,classes:i}),L=(e=>{const{classes:t}=e;return t})(P),D=pr(L,Tf),k=d||{standard:Pl.jsx(qf,{ownerState:P}),outlined:Pl.jsx(Nf,{label:f,ownerState:P}),filled:Pl.jsx(Ff,{ownerState:P})}[M],O=ls(t,k.ref);return Pl.jsx(y.Fragment,{children:y.cloneElement(k,dr({inputComponent:A,inputProps:dr({children:o,error:I.error,IconComponent:u,variant:M,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:dr({id:c},C)},p,{classes:p?Jl(D,p.classes):D},d?d.props.inputProps:{})},g&&b&&"outlined"===M?{notched:!0}:{},{ref:O,className:Qs(k.props.className,a,L.root)},!d&&{variant:M},R))})}));jf.muiName="Select";var zf=jf,Hf=(e={})=>x.createElement(Kt,{...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:kt.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const $f={MuiAccordion:{styleOverrides:{root:{backgroundColor:kt.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:kt.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:x.createElement(Vt,{"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 ${kt.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:kt.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${kt.MISC_FOCUS_BORDER}`,borderRadius:Nt,backgroundColor:kt.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 ${kt.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:kt.WHITE,color:kt.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:Nt},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${kt.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:kt.GREYSCALE_0_15,backgroundColor:kt.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:kt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${kt.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:kt.GREEN_PALE},"&:active":{backgroundColor:kt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:kt.GREEN_PALE,boxShadow:`0 0 0 3px ${Yl(kt.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:kt.BLUE_PALE},"&:active":{backgroundColor:kt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:kt.BLUE_PALE,boxShadow:`0 0 0 3px ${Yl(kt.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:Nt,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:kt.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${kt.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:kt.GREYSCALE_0_15,backgroundColor:kt.GREYSCALE_100_60,"&:active":{backgroundColor:kt.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:kt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${kt.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:kt.PURPLE,"&.Mui-focusVisible":{borderColor:kt.PURPLE,boxShadow:`0 0 0 3px ${Yl(kt.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:kt.GREEN,"&.Mui-focusVisible":{borderColor:kt.GREEN,boxShadow:`0 0 0 3px ${Yl(kt.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:kt.BLUE,"&.Mui-focusVisible":{borderColor:kt.BLUE,boxShadow:`0 0 0 3px ${Yl(kt.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:kt.ORANGE,"&.Mui-focusVisible":{borderColor:kt.ORANGE,boxShadow:`0 0 0 3px ${Yl(kt.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:kt.RED,"&.Mui-focusVisible":{borderColor:kt.RED,boxShadow:`0 0 0 3px ${Yl(kt.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:kt.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:kt.PURPLE_PALE},"&:active":{backgroundColor:kt.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:kt.PURPLE_PALE,boxShadow:`0 0 0 3px ${Yl(kt.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:kt.GREEN_PALE},"&:active":{backgroundColor:kt.GREEN_DARK},"&.Mui-focusVisible":{borderColor:kt.GREEN_PALE,boxShadow:`0 0 0 3px ${Yl(kt.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:kt.BLUE_PALE},"&:active":{backgroundColor:kt.BLUE_DARK},"&.Mui-focusVisible":{borderColor:kt.BLUE_PALE,boxShadow:`0 0 0 3px ${Yl(kt.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:kt.ORANGE_PALE},"&:active":{backgroundColor:kt.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:kt.ORANGE_PALE,boxShadow:`0 0 0 3px ${Yl(kt.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:kt.RED_PALE},"&:active":{backgroundColor:kt.RED_DARK},"&.Mui-focusVisible":{borderColor:kt.RED_PALE,boxShadow:`0 0 0 3px ${Yl(kt.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:kt.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:kt.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Nt,boxShadow:`inset 0 0 0 2px ${kt.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:x.createElement(Yt,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Ot,borderRadius:Nt,color:kt.TEXT_PRIMARY,backgroundColor:kt.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:kt.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${kt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:kt.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:kt.GREYSCALE_0_05,color:kt.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:kt.GREEN,borderColor:kt.GREEN},"&.MuiChip-outlinedInfo":{color:kt.BLUE,borderColor:kt.BLUE},"&.MuiChip-outlinedWarning":{color:kt.ORANGE,borderColor:kt.ORANGE},"&.MuiChip-outlinedError":{color:kt.RED,borderColor:kt.RED}},outlined:{border:`solid 1px ${kt.GREYSCALE_0_15}`,backgroundColor:kt.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Nt,boxShadow:"none",backgroundColor:kt.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:kt.GREEN,borderColor:kt.GREEN},outlinedSecondary:{color:kt.BLUE,borderColor:kt.BLUE},label:{fontFamily:$t.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:x.createElement(Yt,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:x.createElement(Vt,{"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:Nt},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Nt,fontSize:Tt,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:kt.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${kt.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:kt.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:kt.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:kt.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Nt,border:`solid 1px ${kt.GREYSCALE_0_15}`,color:kt.GREYSCALE_0_60,marginRight:0,width:qt,height:qt},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${kt.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Nt,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:kt.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Tt}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Ot,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:kt.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:kt.GREYSCALE_25,fontSize:Ot,fontFamily:$t.FONT_FAMILY,fontWeight:zt,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:kt.TEXT_PRIMARY},"&.Mui-error":{color:kt.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:kt.TEXT_SECONDARY,content:"'(optional)'",fontWeight:jt,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:kt.TEXT_SECONDARY,content:"'(required)'",fontWeight:jt,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Tt,lineHeight:"16px",backgroundColor:kt.WHITE,borderRadius:Nt,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${kt.GREYSCALE_0_05}`,borderColor:kt.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${kt.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${kt.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${kt.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${kt.RED}`,boxShadow:`0px 0px 0px 1px ${kt.RED}, inset 0 2px 0 0 ${kt.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${kt.GREYSCALE_0_10}`,borderColor:kt.GREYSCALE_0_10,backgroundColor:kt.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:kt.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:kt.GREYSCALE_0_15,borderRadius:Nt,boxShadow:`inset 0 2px 0 0 ${kt.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>x.createElement(Vt,{...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:kt.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:kt.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:kt.GREYSCALE_0_03},"&:active":{backgroundColor:kt.GREYSCALE_0_10},"&:focus":{backgroundColor:kt.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${kt.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${kt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:kt.GREYSCALE_0_30,"&:hover":{backgroundColor:kt.GREYSCALE_0_0,borderColor:kt.GREYSCALE_0_15},"& ~svg":{color:kt.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${kt.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Nt}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:kt.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${kt.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:kt.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Tt,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Ot,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Ot,fontWeight:zt,color:kt.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:zt}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${kt.GREYSCALE_0_15}, 0px 0px 0px 1px ${kt.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:x.createElement(Zt,null),checkedIcon:x.createElement(Qt,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:kt.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${kt.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:kt.GREEN_PALE,boxShadow:`0 0 0 3px ${Yl(kt.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:kt.BLUE_PALE,boxShadow:`0 0 0 3px ${Yl(kt.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:kt.GREYSCALE_0_20}},"&.Mui-disabled":{fill:kt.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:x.createElement(Hf,null),checkedIcon:x.createElement(Xt,null),indeterminateIcon:x.createElement(Jt,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Nt,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:kt.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:kt.GREYSCALE_0_55,color:kt.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:kt.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:kt.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:kt.GREYSCALE_0_55,"&:hover":{color:kt.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:kt.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:kt.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Tt,color:kt.TEXT_PRIMARY,lineHeight:"16px",fontWeight:zt},secondary:{fontSize:Ot,color:kt.GREYSCALE_45,fontWeight:jt,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Tt,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Tt,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:kt.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Ot,borderBottom:`solid 1px ${kt.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Tt,color:kt.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:kt.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:kt.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:kt.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:kt.RED}}},"&.Mui-focusVisible":{backgroundColor:kt.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:kt.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:kt.GREEN,height:"24px","&.Mui-disabled":{color:kt.GREYSCALE_0_15}},rail:{backgroundColor:kt.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${kt.GREYSCALE_0_05}`,borderRadius:Nt,boxShadow:`inset 0px 0px 0px 1px ${kt.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${kt.GREYSCALE_0_05}`,borderRadius:Nt},thumb:{height:"16px",width:"16px",borderRadius:Nt,backgroundColor:kt.WHITE,boxShadow:`0px 1px 2px 0px ${kt.GREYSCALE_0_15}, 0px 0px 0px 1px ${kt.GREYSCALE_0_05}`,"&:hover":{borderRadius:Nt,boxShadow:`0 2px 4px 0 ${kt.GREYSCALE_0_30}, 0 0 0 1px ${kt.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${kt.GREYSCALE_0_15}, 0 0 0 1px ${kt.GREYSCALE_0_06}, 0 0 0 2px ${kt.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${kt.GREYSCALE_0_15}, 0 0 0 1px ${kt.GREYSCALE_0_06}, 0 0 0 2px ${kt.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:kt.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:kt.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:kt.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:kt.GREYSCALE_0_15},markLabel:{color:kt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:kt.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:kt.WHITE,color:kt.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:kt.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:kt.GREEN_PALE,boxShadow:`0 0 0 3px ${Yl(kt.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:kt.BLUE_PALE,boxShadow:`0 0 0 3px ${Yl(kt.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:kt.GREYSCALE_0_15,borderRadius:Nt},thumb:{height:"16px",width:"16px",borderRadius:Nt,backgroundColor:kt.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:Tt,fontWeight:zt,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${kt.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${kt.MISC_FOCUS_BORDER}`,backgroundColor:kt.GREYSCALE_0_03,borderRadius:Nt},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:kt.GREYSCALE_25,"&.Mui-selected":{color:kt.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Tt,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Nt,"&:hover":{backgroundColor:`${kt.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 ${kt.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${kt.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Nt,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:kt.GREYSCALE_0_05},"&:hover":{backgroundColor:`${kt.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${kt.GREYSCALE_85}`,borderRight:`1px solid ${kt.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:zt,backgroundColor:kt.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:kt.GREYSCALE_98,borderBottom:`1px solid ${kt.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${kt.GREYSCALE_85}`,borderTop:`1px solid ${kt.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:kt.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:kt.GREYSCALE_0_05,"&:hover":{backgroundColor:kt.GREYSCALE_0_03}},"&&:hover":{backgroundColor:kt.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>x.createElement(er,{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 ${kt.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Tt,borderRadius:Nt,padding:"7px 16px",border:`1px solid ${kt.GREYSCALE_0_15}`,backgroundColor:kt.GREYSCALE_100_60,color:kt.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:kt.GREYSCALE_0_10,border:`1px solid ${kt.GREYSCALE_0_30}`},"&:hover":{backgroundColor:kt.GREYSCALE_0_03,border:`1px solid ${kt.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:kt.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${kt.MISC_FOCUS_BORDER}`,border:`1px solid ${kt.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:kt.GREYSCALE_25,backgroundColor:kt.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:kt.GREYSCALE_0_10,border:`1px solid ${kt.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Ot,height:24,width:24,padding:7},sizeLarge:{fontSize:_t,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Tt,borderRadius:Nt}}},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:kt.GREYSCALE_20},tooltip:{backgroundColor:kt.GREYSCALE_20,fontSize:Ot,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const Bf={mode:"light",primary:{ultraLight:kt.GREEN_ULTRA_LIGHT,light:kt.GREEN_PALE,main:kt.GREEN,dark:kt.GREEN_DARK,extraDark:kt.GREEN_EXTRA_DARK,contrastText:kt.WHITE},secondary:{ultraLight:kt.BLUE_ULTRA_LIGHT,light:kt.BLUE_PALE,main:kt.BLUE,dark:kt.BLUE_DARK,extraDark:kt.BLUE_EXTRA_DARK,contrastText:kt.WHITE},error:{ultraLight:kt.RED_ULTRA_LIGHT,light:kt.RED_PALE,main:kt.RED,dark:kt.RED_DARK,extraDark:kt.RED_EXTRA_DARK,contrastText:kt.WHITE},warning:{ultraLight:kt.ORANGE_ULTRA_LIGHT,light:kt.ORANGE_PALE,main:kt.ORANGE,dark:kt.ORANGE_DARK,extraDark:kt.ORANGE_EXTRA_DARK,contrastText:kt.WHITE},success:{ultraLight:kt.GREEN_ULTRA_LIGHT,light:kt.GREEN_PALE,main:kt.GREEN,dark:kt.GREEN_DARK,extraDark:kt.GREEN_EXTRA_DARK,contrastText:kt.WHITE},info:{ultraLight:kt.BLUE_ULTRA_LIGHT,light:kt.BLUE_PALE,main:kt.BLUE,dark:kt.BLUE_DARK,extraDark:kt.BLUE_EXTRA_DARK,contrastText:kt.WHITE},text:{primary:kt.TEXT_PRIMARY,secondary:kt.TEXT_SECONDARY,disabled:kt.GREYSCALE_0_30},action:{hover:kt.GREYSCALE_0_03,hoverOpacity:.03,selected:kt.GREYSCALE_0_05,selectedOpacity:.05,focus:kt.MISC_FOCUS_BORDER},amethyst:{ultraLight:kt.WHITE,main:kt.PURPLE,light:kt.PURPLE_PALE,dark:kt.PURPLE_DARK,extraDark:kt.GREYSCALE_0_0,contrastText:kt.WHITE},background:{paper:kt.WHITE,default:kt.GREYSCALE_95},divider:kt.GREYSCALE_0_15},Wf=e=>({components:$f,palette:Bf,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:Tt,fontWeightLight:Ft,fontWeightRegular:jt,fontWeightMedium:zt,fontWeightBold:Ht,htmlFontSize:Tt,fontFamily:$t.FONT_FAMILY,button:{fontWeight:zt,fontSize:Tt,textTransform:"none"},body1:{fontSize:_t,lineHeight:"24px"},body2:{fontSize:Tt,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:qt,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:_t,fontWeight:zt,lineHeight:"16px"},h6:{fontSize:Tt,fontWeight:zt,lineHeight:"16px"},caption:{color:kt.TEXT_SECONDARY},subtitle1:{fontSize:Tt,color:kt.TEXT_SECONDARY},subtitle2:{fontSize:Ot,color:kt.TEXT_SECONDARY}},shape:{borderRadius:Nt}}),Gf={...Dt,MISC_FOCUS_BORDER:kt.MISC_FOCUS_BORDER},Vf=Wf().palette,Uf={TEXT:Vf.text.primary,DISABLED:Vf.text.disabled,HOVER:Vf.action.hover,WHITE:Gf.GREYSCALE_100,BORDER_LIGHT:Gf.GREYSCALE_90,BORDER_MEDIUM:Gf.GREYSCALE_85,BORDER_HEAVY:Gf.GREYSCALE_50,DARK_MODE_TEXT:Gf.GREYSCALE_95,DARK_MODE_BORDER:Gf.GREYSCALE_95,DARK_MODE_DISABLED:Gf.GREYSCALE_70,DARK_MODE_BACKGROUND:Gf.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:Gf.GREYSCALE_95,SELECTED:Vf.primary.main},Yf=(e,t=Uf.TEXT,r=Uf.WHITE)=>{const n=oe(e),o=oe(t),i=oe(r);return n.isInvalid()?t:function(e,t,r){return ie(e,t)>ie(e,r)?t:r}(n,i,o).getRGB()};function Kf(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Xf(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Jf(){}var Zf=.7,Qf=1/Zf,em="\\s*([+-]?\\d+)\\s*",tm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",rm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",nm=/^#([0-9a-f]{3,8})$/,om=new RegExp(`^rgb\\(${em},${em},${em}\\)$`),im=new RegExp(`^rgb\\(${rm},${rm},${rm}\\)$`),am=new RegExp(`^rgba\\(${em},${em},${em},${tm}\\)$`),lm=new RegExp(`^rgba\\(${rm},${rm},${rm},${tm}\\)$`),sm=new RegExp(`^hsl\\(${tm},${rm},${rm}\\)$`),um=new RegExp(`^hsla\\(${tm},${rm},${rm},${tm}\\)$`),cm={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 dm(){return this.rgb().formatHex()}function pm(){return this.rgb().formatRgb()}function fm(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=nm.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?mm(t):3===r?new bm(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?hm(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?hm(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=om.exec(e))?new bm(t[1],t[2],t[3],1):(t=im.exec(e))?new bm(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=am.exec(e))?hm(t[1],t[2],t[3],t[4]):(t=lm.exec(e))?hm(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=sm.exec(e))?Cm(t[1],t[2]/100,t[3]/100,1):(t=um.exec(e))?Cm(t[1],t[2]/100,t[3]/100,t[4]):cm.hasOwnProperty(e)?mm(cm[e]):"transparent"===e?new bm(NaN,NaN,NaN,0):null}function mm(e){return new bm(e>>16&255,e>>8&255,255&e,1)}function hm(e,t,r,n){return n<=0&&(e=t=r=NaN),new bm(e,t,r,n)}function gm(e){return e instanceof Jf||(e=fm(e)),e?new bm((e=e.rgb()).r,e.g,e.b,e.opacity):new bm}function bm(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function vm(){return`#${Em(this.r)}${Em(this.g)}${Em(this.b)}`}function ym(){const e=xm(this.opacity);return`${1===e?"rgb(":"rgba("}${Sm(this.r)}, ${Sm(this.g)}, ${Sm(this.b)}${1===e?")":`, ${e})`}`}function xm(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Sm(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Em(e){return((e=Sm(e))<16?"0":"")+e.toString(16)}function Cm(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Rm(e,t,r,n)}function wm(e){if(e instanceof Rm)return new Rm(e.h,e.s,e.l,e.opacity);if(e instanceof Jf||(e=fm(e)),!e)return new Rm;if(e instanceof Rm)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 Rm(a,l,s,e.opacity)}function Rm(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Am(e){return(e=(e||0)%360)<0?e+360:e}function Im(e){return Math.max(0,Math.min(1,e||0))}function Mm(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Kf(Jf,fm,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:dm,formatHex:dm,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return wm(this).formatHsl()},formatRgb:pm,toString:pm}),Kf(bm,(function(e,t,r,n){return 1===arguments.length?gm(e):new bm(e,t,r,null==n?1:n)}),Xf(Jf,{brighter(e){return e=null==e?Qf:Math.pow(Qf,e),new bm(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Zf:Math.pow(Zf,e),new bm(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new bm(Sm(this.r),Sm(this.g),Sm(this.b),xm(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:vm,formatHex:vm,formatHex8:function(){return`#${Em(this.r)}${Em(this.g)}${Em(this.b)}${Em(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ym,toString:ym})),Kf(Rm,(function(e,t,r,n){return 1===arguments.length?wm(e):new Rm(e,t,r,null==n?1:n)}),Xf(Jf,{brighter(e){return e=null==e?Qf:Math.pow(Qf,e),new Rm(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Zf:Math.pow(Zf,e),new Rm(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 bm(Mm(e>=240?e-240:e+120,o,n),Mm(e,o,n),Mm(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Rm(Am(this.h),Im(this.s),Im(this.l),xm(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=xm(this.opacity);return`${1===e?"hsl(":"hsla("}${Am(this.h)}, ${100*Im(this.s)}%, ${100*Im(this.l)}%${1===e?")":`, ${e})`}`}}));const Pm=Math.PI/180,Lm=180/Math.PI,Dm=.96422,km=.82521,Om=4/29,Tm=6/29,_m=3*Tm*Tm,qm=Tm*Tm*Tm;function Nm(e){if(e instanceof Fm)return new Fm(e.l,e.a,e.b,e.opacity);if(e instanceof Wm)return Gm(e);e instanceof bm||(e=gm(e));var t,r,n=$m(e.r),o=$m(e.g),i=$m(e.b),a=jm((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=jm((.4360747*n+.3850649*o+.1430804*i)/Dm),r=jm((.0139322*n+.0971045*o+.7141733*i)/km)),new Fm(116*a-16,500*(t-a),200*(a-r),e.opacity)}function Fm(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function jm(e){return e>qm?Math.pow(e,1/3):e/_m+Om}function zm(e){return e>Tm?e*e*e:_m*(e-Om)}function Hm(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function $m(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Bm(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Wm)return new Wm(e.h,e.c,e.l,e.opacity);if(e instanceof Fm||(e=Nm(e)),0===e.a&&0===e.b)return new Wm(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Lm;return new Wm(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Wm(e,t,r,null==n?1:n)}function Wm(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Gm(e){if(isNaN(e.h))return new Fm(e.l,0,0,e.opacity);var t=e.h*Pm;return new Fm(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Kf(Fm,(function(e,t,r,n){return 1===arguments.length?Nm(e):new Fm(e,t,r,null==n?1:n)}),Xf(Jf,{brighter(e){return new Fm(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Fm(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 bm(Hm(3.1338561*(t=Dm*zm(t))-1.6168667*(e=1*zm(e))-.4906146*(r=km*zm(r))),Hm(-.9787684*t+1.9161415*e+.033454*r),Hm(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Kf(Wm,Bm,Xf(Jf,{brighter(e){return new Wm(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Wm(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Gm(this).rgb()}}));const Vm=(e,t)=>{const r=Bm(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()},Um={background:Uf.SELECTED,color:Uf.WHITE},Ym=({theme:e,flags:t})=>{if(!t.isEnabled("PS_22149_THEME_SELECTION_COLORS"))return Um;const r=e.getStyle("","","dataColors.selected")||Um.background,n=function(e,t){var r=oe("#FFFFFF"),n=oe(e),o=oe(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;var i=ie(r,n),a=ie(o,n),l=i>a||i>4.5;return!l&&a>3?t:l?"#FFFFFF":"#000000"}(r,Uf.TEXT);return{background:r,color:n}},Km=e=>!!e&&0===oe(e).a,Xm=e=>{const t=oe(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},Jm=(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)},Zm=e=>{e.stopPropagation(),e.preventDefault()},Qm="#grid",eh=(e,t,r,n=Uf.WHITE)=>e&&!Km(e)?e:Km(t)?r&&!Km(r)?r:n:t,th=(e,t)=>{const r=null==t?void 0:t.closest(e);return r&&window.getComputedStyle(r).backgroundColor},rh=(e,t,r,n,o)=>{const i=th(".qv-object .qv-inner-object",r),a=th(".qv-panel-sheet",r),l=th(Qm,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 Xm(s);if("none"===u)return"transparent";if(void 0===u)return;const c=oe(u);return c.setAlpha(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.a),c.getRGBA()})(e),c=null==n?void 0:n(t),d=null==o?void 0:o(t),p=c||i||d,f=Km(p),m=Yf(f?s:p,Uf.TEXT,Uf.DARK_MODE_TEXT)===Z(Uf.DARK_MODE_TEXT);return{color:p,headerColor:eh(u,p,s),isDark:m}},nh=(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(Qm),{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:rh(o,s,i,a,l)})),[s.name(),i,a,l,o,u])},oh=3;function ih(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 ah({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=oh}=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=ct(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=ct((({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;let n=0,o=e;do{n+=1,o=ih(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 lh,sh=z;function uh(e,t){const[r,n]=S(t);r.some(((e,r)=>e!==t[r]))&&(n(t),e())}lh=sh.createRoot,sh.hydrateRoot;var ch={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 dh=({translator:e})=>(E((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(ch).forEach((t=>{e.add(ch[t])}))}}(e)),[e]),e),ph="12px",fh="nebula-table-utils-head-menu-button",mh="nebula-table-utils-head-menu-wrapper",hh="nebula-table-utils-head-menu",gh="nebula-table-utils-head-menu-list-id",bh="sn-copy-cell";let vh=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 yh="nebula-table-utils-column-adjuster";let xh=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}({}),Sh=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const Eh={darker:.15,brighter:.3,opacity:.03},Ch={darker:.3,brighter:.5,opacity:.05};let wh=function(e){return e.single="N",e.drillDown="H",e.cyclic="C",e}({});const Rh=document.createElement("textarea");function Ah(e){Rh.value=e,document.body.appendChild(Rh),Rh.select(),Rh.setSelectionRange(0,Rh.value.length),document.execCommand("copy"),document.body.removeChild(Rh)}Rh.style.position="absolute",Rh.style.left="-9999px",Rh.setAttribute("readonly","");const Ih=e=>{var t;const r=e.title;r&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(r).catch((()=>Ah(r))):Ah(r))};var Mh,Ph;var Lh=function(){if(Ph)return Mh;Ph=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),i=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!i)return!1;for(n in r);return void 0===n||e.call(r,n)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return Mh=function e(){var t,r,n,s,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(s=l(t,r))&&(m&&s&&(i(s)||(u=o(s)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&i(n)?n:{},a(d,{name:r,newValue:e(m,c,s)})):void 0!==s&&a(d,{name:r,newValue:s}));return d},Mh}();function Dh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function kh(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Oh(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Lh);var Th=1/.7,_h="\\s*([+-]?\\d+)\\s*",qh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Nh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Fh=/^#([0-9a-f]{3,8})$/,jh=new RegExp(`^rgb\\(${_h},${_h},${_h}\\)$`),zh=new RegExp(`^rgb\\(${Nh},${Nh},${Nh}\\)$`),Hh=new RegExp(`^rgba\\(${_h},${_h},${_h},${qh}\\)$`),$h=new RegExp(`^rgba\\(${Nh},${Nh},${Nh},${qh}\\)$`),Bh=new RegExp(`^hsl\\(${qh},${Nh},${Nh}\\)$`),Wh=new RegExp(`^hsla\\(${qh},${Nh},${Nh},${qh}\\)$`),Gh={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 Vh(){return this.rgb().formatHex()}function Uh(){return this.rgb().formatRgb()}function Yh(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Fh.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Kh(t):3===r?new Qh(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Xh(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Xh(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=jh.exec(e))?new Qh(t[1],t[2],t[3],1):(t=zh.exec(e))?new Qh(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Hh.exec(e))?Xh(t[1],t[2],t[3],t[4]):(t=$h.exec(e))?Xh(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Bh.exec(e))?ig(t[1],t[2]/100,t[3]/100,1):(t=Wh.exec(e))?ig(t[1],t[2]/100,t[3]/100,t[4]):Gh.hasOwnProperty(e)?Kh(Gh[e]):"transparent"===e?new Qh(NaN,NaN,NaN,0):null}function Kh(e){return new Qh(e>>16&255,e>>8&255,255&e,1)}function Xh(e,t,r,n){return n<=0&&(e=t=r=NaN),new Qh(e,t,r,n)}function Jh(e){return e instanceof Oh||(e=Yh(e)),e?new Qh((e=e.rgb()).r,e.g,e.b,e.opacity):new Qh}function Zh(e,t,r,n){return 1===arguments.length?Jh(e):new Qh(e,t,r,null==n?1:n)}function Qh(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function eg(){return`#${og(this.r)}${og(this.g)}${og(this.b)}`}function tg(){const e=rg(this.opacity);return`${1===e?"rgb(":"rgba("}${ng(this.r)}, ${ng(this.g)}, ${ng(this.b)}${1===e?")":`, ${e})`}`}function rg(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ng(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function og(e){return((e=ng(e))<16?"0":"")+e.toString(16)}function ig(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new lg(e,t,r,n)}function ag(e){if(e instanceof lg)return new lg(e.h,e.s,e.l,e.opacity);if(e instanceof Oh||(e=Yh(e)),!e)return new lg;if(e instanceof lg)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 lg(a,l,s,e.opacity)}function lg(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 ug(e){return Math.max(0,Math.min(1,e||0))}function cg(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Dh(Oh,Yh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Vh,formatHex:Vh,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ag(this).formatHsl()},formatRgb:Uh,toString:Uh}),Dh(Qh,Zh,kh(Oh,{brighter(e){return e=null==e?Th:Math.pow(Th,e),new Qh(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Qh(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Qh(ng(this.r),ng(this.g),ng(this.b),rg(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:eg,formatHex:eg,formatHex8:function(){return`#${og(this.r)}${og(this.g)}${og(this.b)}${og(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:tg,toString:tg})),Dh(lg,(function(e,t,r,n){return 1===arguments.length?ag(e):new lg(e,t,r,null==n?1:n)}),kh(Oh,{brighter(e){return e=null==e?Th:Math.pow(Th,e),new lg(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new lg(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 Qh(cg(e>=240?e-240:e+120,o,n),cg(e,o,n),cg(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new lg(sg(this.h),ug(this.s),ug(this.l),rg(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=rg(this.opacity);return`${1===e?"hsl(":"hsla("}${sg(this.h)}, ${100*ug(this.s)}%, ${100*ug(this.l)}%${1===e?")":`, ${e})`}`}}));const dg=Math.PI/180,pg=180/Math.PI,fg=4/29,mg=6/29,hg=3*mg*mg;function gg(e){if(e instanceof bg)return new bg(e.l,e.a,e.b,e.opacity);if(e instanceof Eg)return Cg(e);e instanceof Qh||(e=Jh(e));var t,r,n=Sg(e.r),o=Sg(e.g),i=Sg(e.b),a=vg((.2225045*n+.7168786*o+.0606169*i)/1);return n===o&&o===i?t=r=a:(t=vg((.4360747*n+.3850649*o+.1430804*i)/.96422),r=vg((.0139322*n+.0971045*o+.7141733*i)/.82521)),new bg(116*a-16,500*(t-a),200*(a-r),e.opacity)}function bg(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function vg(e){return e>.008856451679035631?Math.pow(e,1/3):e/hg+fg}function yg(e){return e>mg?e*e*e:hg*(e-fg)}function xg(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Sg(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Eg(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Cg(e){if(isNaN(e.h))return new bg(e.l,0,0,e.opacity);var t=e.h*dg;return new bg(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Dh(bg,(function(e,t,r,n){return 1===arguments.length?gg(e):new bg(e,t,r,null==n?1:n)}),kh(Oh,{brighter(e){return new bg(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new bg(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 Qh(xg(3.1338561*(t=.96422*yg(t))-1.6168667*(e=1*yg(e))-.4906146*(r=.82521*yg(r))),xg(-.9787684*t+1.9161415*e+.033454*r),xg(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Dh(Eg,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Eg)return new Eg(e.h,e.c,e.l,e.opacity);if(e instanceof bg||(e=gg(e)),0===e.a&&0===e.b)return new Eg(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*pg;return new Eg(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Eg(e,t,r,null==n?1:n)}),kh(Oh,{brighter(e){return new Eg(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Eg(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Cg(this).rgb()}}));var wg=e=>()=>e;function Rg(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):wg(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?Rg: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):wg(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Zh(e)).r,(t=Zh(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Rg(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 Ag="center",Ig="bottom";[{key:"NoDataExist",alignment:Ag,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:Ag,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:Ag,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:Ag},{key:"DataRangeIncludingZero",alignment:Ig},{key:"LimitedData",alignment:Ig},{key:"NegativeOrZeroValues",alignment:Ig}].reduce((function(e,t){return e[t.key]=t,e}),{});var Mg,Pg=["__proto__","constructor"];function Lg(e,t,r){if(void 0!==e&&void 0!==t){var n=t.split("."),o=n[n.length-1];if(!Pg.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 Dg(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 kg(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Tg)):void 0===t&&(t=Og);for(var r,n,o,i,a,l=new Ng(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 Ng(o[i])),n.parent=r,n.depth=r.depth+1;return l.eachBefore(qg)}function Og(e){return e.children}function Tg(e){return Array.isArray(e)?e[1]:null}function _g(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function qg(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Ng(e){this.data=e,this.depth=this.height=0,this.parent=null}Ng.prototype=kg.prototype={constructor:Ng,count:function(){return this.eachAfter(Dg)},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 kg(this).eachBefore(_g)},[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)}},Mg=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}},Ag({exports:{}});var qg={exports:{}};self,qg.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={},P=Array.isArray;function I(e){return null!=e&&!Array.isArray(e)&&"object"===C(e)}function D(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]=D(e[r||t])?i:e[t],e=e[r||t]}})),e}function k(e,t){var r=!0;if(I(e)&&I(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){k(e[n],t[n])||(r=!1)})),r);if(P(e)&&P(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!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)||(D(a)?n.push({op:"add",path:l,value:i}):I(i)&&I(a)?n=n.concat(A.generate(a,i,l)):P(i)&&P(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&D(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(k(t,o))return n;if(!D(t[0])&&D(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){D(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(P(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(P(a)&&P(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(I(a)&&I(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);P(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(P(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,T=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 _="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===_)return r[n]}function 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===_)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(_))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var z="movingAverage";function H(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===z)return r[n]}function $(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 B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension: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,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat($(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat($(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat($(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat($(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=H(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=H(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat($(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat($(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(z))return!1;var i=H(t,e);return i&&!i.disabled}};return r}};var V="timeSeriesDecomposition";function G(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===V)return r[n]}function U(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===V)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension: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(V))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",Pe={initBase:function(e,t){(t||Pe.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){Pe.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 Ie=Pe;function De(e){return De="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},De(e)}var Le={accumulation:j,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Me={modifiers:Le,apply:Oe,applyModifiers:Te,cleanUpMeasure:_e,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:Ie.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"===De(n))return Te({model:r,properties:n});var c=r?r.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(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);$e(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"===De(e)&&!e.disabled){if(r++,"object"!==De(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&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),Te({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"===De(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 _e(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(s)}function Te(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),$e(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,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 _e(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;Ie.isValid(r)||Ie.initBase(r,!0);var s=r.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===De(e)&&!e.disabled){if(l++,"object"!==De(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}),Be(r)):_e(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 _e(e){!function(e){var t=ze(e);return Array.isArray(t)&&t.some((function(e){return"object"===De(e)&&!e.disabled&&!Le[e.type]}))}(e)?Ie.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(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 He(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function $e(e){je(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&He(r)!==e.qDef.qDef?delete e.qDef.base:!Ie.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function Be(e){var t=ze(e);Array.isArray(t)&&t.forEach((function(t){"object"===De(t)&&(t.disabled||!Le[t.type]&&He(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ve(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ge(e){var t=e.measure,r=e.properties,n=e.layout;return!Ve(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"!==De(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(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"===De(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=Ve(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(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:()=>$e});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var 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 P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const D=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:[]}},T=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)}},_=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=[]))},H=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return P(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],l.forEach((function(e){a.qDimensions.push(e),n.dimensions.added(e,r)}))}},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return I(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},B=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){i.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const V={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,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,P=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}),T({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),_({exportFormat:t,maxMeasures:E,minMeasures:w,newHyperCubeDef:v,defaultMeasure:P}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),$({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),D(g,t,n),h.qProperty=g;var I=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:I}),p&&W(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&W(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=V.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=V.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?W(r,"unsupportedAutoMinMax")||E()(r.measureAxis,t.measureAxis):W(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",Pe="conditionalColoring",Ie="measures",De="qDef.conditionalColoring";const Le={quarantine:function(e){Ce({properties:e,arrayPath:Ae,quarantineName:Pe,arrayName:Ie,itemPath:De})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:De,arrayName:Ie,quarantineName:Pe})}};var Me="qHyperCubeDef.qMeasures",ke="measures",Oe="qHyperCubeDef.qDimensions",Te="dimensions",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",je="qCalcCondition",ze="conditionalShowHide";const He={quarantine:function(e){Ce({properties:e,arrayPath:Me,quarantineName:ze,arrayName:ke,itemPath:je}),Ce({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:Te,itemPath:je})},unquarantine:function(e){Re({properties:e,arrayPath:Me,quarantineName:ze,arrayName:ke,itemPath:je}),Re({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:Te,itemPath:je})},quarantineAlternative:function(e){Ce({properties:e,arrayPath:_e,quarantineName:ze,arrayName:qe,itemPath:je}),Ce({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:_e,quarantineName:ze,arrayName:qe,itemPath:je}),Re({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})}},$e={hypercube:V,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:Ce,unquarantineArrayProp:Re,conditionalColoring:Le,conditionalShow:He}})(),n.default})();var Ng=H(qg.exports);const Fg="qHyperCubeDef.qMeasures",jg="measures",zg="qHyperCubeDef.qDimensions",Hg="dimensions",$g="qDef.representation",Bg="tableRepresentation",Wg="qDef.conditionalColoring",Vg="conditionalColoring",Gg="qMiniChartDef",Ug="miniChartDef",Yg=(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:yh.PixelsDefault:-1})(r,e,t)));return o},Kg=({propertyTree:e,hyperCubePath:t})=>{const r=Ng.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:n,qDimensions:o,qMeasures:i}}=r.properties,a=Yg(o,i,n);return Ig(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),Ng.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),Ng.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),Ng.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{Ng.quarantineArrayProp({properties:e,arrayPath:zg,itemPath:$g,arrayName:Hg,quarantineName:Bg}),Ng.quarantineArrayProp({properties:e,arrayPath:Fg,itemPath:$g,arrayName:jg,quarantineName:Bg}),Ng.quarantineArrayProp({properties:e,arrayPath:Fg,itemPath:Wg,arrayName:jg,quarantineName:Vg}),Ng.quarantineArrayProp({properties:e,arrayPath:Fg,itemPath:Gg,arrayName:jg,quarantineName:Ug})})(r.properties),r};const Xg=(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:xh.Pixels,pixels:e}:{type:xh.FitToContent}}return i},Jg=({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o,viewDataMode:i})=>{const a=Ng.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});Ng.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{Ng.unquarantineArrayProp({properties:e,arrayPath:zg,itemPath:$g,arrayName:Hg,quarantineName:Bg}),Ng.unquarantineArrayProp({properties:e,arrayPath:Fg,itemPath:$g,arrayName:jg,quarantineName:Bg}),Ng.unquarantineArrayProp({properties:e,arrayPath:Fg,itemPath:Wg,arrayName:jg,quarantineName:Vg}),Ng.unquarantineArrayProp({properties:e,arrayPath:Fg,itemPath:Gg,arrayName:jg,quarantineName:Ug})})(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=>Xg(e,t,n))),measures:a.filter((e=>e>=o)).map((e=>Xg(t,e,n,o)))}})(l,s,u,c);return Array.isArray(c)&&c.length>0&&(Ig(a,"qProperty.qHyperCubeDef.qDimensions",d),Ig(a,"qProperty.qHyperCubeDef.qMeasures",p)),i&&(Ig(a,"qProperty.totals.show",!1),Ig(a,"qProperty.usePagination",!0)),Ng.conditionalShow.unquarantine(a.qProperty),a};var Zg={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};function Qg(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function eb(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 tb(e){return e>0?0:1}function rb(e){return e.translator.get("Visualizations.Descriptions.Column")}function nb(e){return{measures:{min:tb,max:1e3,description:()=>rb(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;Qg(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties;eb(o,(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n)}},dimensions:{min:tb,max:1e3,description:()=>rb(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return Qg(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(null!=e&&e.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;eb(o,n)}}}}var ob,ib={};ob=ib,(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},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:()=>_e});var o=r(909),i=r.n(o);const a=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var l=a[i];return a[i]=r,{updated:r,previous:l}}return delete a[i],!1},l=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},s={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var u="".concat(" ","(").concat(" "),c="".concat(" ",")").concat(" ");function d(e){return u+e+c}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],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 f(e){return!(!e.fullAccumulation&&!e.fullRange)}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function h(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function g(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function b(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function v(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function x(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function S(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=x(p(n[0],o),g(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var c=p(n[0],o),d=p(n[1],o),f=g(0),m=g(1),h=x(c,f),b=x(d,m);return"".concat(a,"({1<").concat(h,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function E(e){return"".concat(e,"(")}function w(e){var t=e.properties,r=e.layout;return l(t,"qHyperCubeDef.qDimensions",l(r,"qHyperCube.qDimensionInfo",[])).length}const C={isFullRange:f,getNumDimensions:w,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=d(h(t));if(!r.showExcludedValues)return a;var l=S({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var u=g(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.length){var c=g(0),p=g(1);return"If(Count(".concat(c,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:m,getNumStepComp:function(e,t){if(!f(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return m(e,t)},getAboveCompPrefix:b,getAboveCompSuffix:v,getAboveComp:function(e,t,r,n){return b(e,t)+r+v(n)},getFunctionPrefix:E,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return E(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:S,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout;return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t)&&2===w({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=g(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:h,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(u);if(-1!==r){var n=t.indexOf(c);if(-1!==n)return t.substring(r+u.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:p,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var l=w({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:d,canExtract:function(e){var t=e.indexOf(u),r=e.indexOf(c);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:g,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=s.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?s.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(s.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return s.EXPRESSIONS[r]&&n.includes(s.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function A(e){return A="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},A(e)}var P=i().bind(null,!0),I={},D=Array.isArray;function L(e){return null!=e&&!Array.isArray(e)&&"object"===A(e)}function M(e){return void 0===e}function k(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function O(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=M(e[r||t])?i:e[t],e=e[r||t]}})),e}function T(e,t){var r=!0;if(L(e)&&L(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){T(e[n],t[n])||(r=!1)})),r);if(D(e)&&D(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!T(e[n],t[n]))return!1;return!0}return e===t}I.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?P({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(r,"/").concat(o);T(i,a)||k(t,o)||(M(a)?n.push({op:"add",path:l,value:i}):L(i)&&L(a)?n=n.concat(I.generate(a,i,l)):D(i)&&D(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&M(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(T(t,o))return n;if(!M(t[0])&&M(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var 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(I.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){M(t[o])&&!k(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},I.apply=function(e,t){t.forEach((function(t){var r,n,o=O(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(D(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(D(a)&&D(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return R(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(L(a)&&L(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!k(r,e)&&delete r[e]})),P(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=O(e,t.from);D(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(D(o)?o.splice(+i,1):delete o[i])}))},I.clone=function(e){return P({},e)},I.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},I.updateObject=function(e,t){Object.keys(e).length?I.apply(e,I.generate(e,t)):P(e,t)};const _=I,q=function(e,t,r){if(!e)return Promise.resolve();var n=_.generate(t,r);return i()(!0,t,r),n&&n.length?(n=n.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(n,!0)):Promise.resolve()};var N="accumulation";function F(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===N)return r[n]}function j(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===N)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const H={translationKey:"properties.modifier.accumulation",needDimension:C.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return C.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var s=i;void 0===s&&(s=C.getNumDimensions({properties:n,layout:o}));var u=l(n,"qHyperCubeDef.qDimensions",[]),c=C.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=C.getNumStepComp(r,s),p=C.getAboveComp(r,s,c,d),f=C.getRangeComp("RangeSum",p);if(C.needDimension({modifier:r,properties:n,layout:o})){var m=C.getDimComp(u,1),h=C.getDimComp(u,0),g=C.getAggrComp(f,m,h);f=r.showExcludedValues?C.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,valueComp:g}):g}return f},extractInputExpression:C.extractInputExpression,initModifier:function(e){C.initModifier(e,z)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!C.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(j(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(j(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(j(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(j(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=F(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=F(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(j(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return C.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(N))return!1;var i=F(t,e);return i&&!i.disabled}}}};var $="movingAverage";function B(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===$)return r[n]}function W(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===$)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var V={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const G={translationKey:"properties.modifier.movingAverage",needDimension:C.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return C.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return r;var u=a;void 0===u&&(u=C.getNumDimensions({properties:o,layout:i}));var c=l(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=C.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=C.getNumStepComp(n,u),m=C.getAboveComp(n,u,p,f);if(n.nullSuppression)t=C.getRangeComp("RangeAvg",m);else{var h=C.getRangeComp("RangeSum",m),g=function(e,t){var r=C.getRowNoComp(e,t);if(!C.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(C.needDimension({modifier:n,properties:o,layout:i})){var v=C.getDimComp(c,1),y=C.getDimComp(c,0),x=C.getAggrComp(b,v,y);b=n.showExcludedValues?C.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:C.extractInputExpression,initModifier:function(e){C.initModifier(e,V)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!C.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(W(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(W(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(W(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(W(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=B(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=B(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(W(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(W(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return C.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf($))return!1;var i=B(t,e);return i&&!i.disabled}}}};var U="timeSeriesDecomposition";function Y(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===U)return r[n]}function K(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===U)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var X={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const J={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:C.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return C.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?C.generateTSDExpression(r,t,n):t},extractInputExpression:C.extractInputExpression,initModifier:function(e,t){C.initModifier(e,X),""===e.decomposition&&t&&(e.decomposition=C.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!C.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(K(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:s.OPTIONS},steps:{refFn:function(t){return"".concat(K(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=Y(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=Y(t,e);return r&&!r.fullRange}}},show:function(e,t){return C.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(U))return!1;var i=Y(t,e);return i&&!i.disabled}}}};var Z="difference";function Q(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===Z)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var ee={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const te={translationKey:"properties.modifier.difference",needDimension:C.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return C.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:C.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var s=i;void 0===s&&(s=C.getNumDimensions({properties:n,layout:o}));var u=l(n,"qHyperCubeDef.qDimensions",[]),c=C.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=C.getAboveComp(r,s,c),p="".concat(c," - ").concat(d);if(C.needDimension({modifier:r,properties:n,layout:o})){var f=C.getDimComp(u,1),m=C.getDimComp(u,0),h=C.getAggrComp(p,f,m);p=r.showExcludedValues?C.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(ee).forEach((function(t){void 0===e[t]&&(e[t]=ee[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!C.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Q(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(Q(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(Q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return C.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(Z))return!1;var i=function(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===Z)return r[n]}(t,e);return i&&!i.disabled}}}},re=0,ne=1,oe=2,ie=0,ae=1,le=2;var se="normalization";function ue(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===se)return r[n]}function ce(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===se)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function de(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var pe={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:le,selectionScope:oe};function fe(e){return 2===e?"{1}":""}function me(e,t,r){return 1===e?"{$<".concat(C.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function he(e,t){return 0===e&&t>1||2===e?"Total":""}function ge(e,t,r){return 0===e&&t>1?"<".concat(C.getDimDefWithWrapper(r),">"):""}const be={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return C.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:C.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var s=i;void 0===s&&(s=C.getNumDimensions({properties:n,layout:o}));var u=l(n,"qHyperCubeDef.qDimensions",[]),c=C.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var l=fe(t),s=me(t,r,n),u=""===l&&""===s?"":l||s,c=he(o,i),d=ge(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=C.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,s,r.primaryDimension)},initModifier:function(e){Object.keys(pe).forEach((function(t){void 0===e[t]&&(e[t]=pe[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!C.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ce(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:oe,options:function(r){return function(e,t,r){var n=[{value:re,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:ne,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:oe,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=de(t,0);t.splice(r,1)}return t}(ue(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ce(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 ue(t,e).selectionScope===ne}},value:{refFn:function(t){return"".concat(ce(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return ue(t,e).selectionScope===ne}},dimensionalScope:{refFn:function(t){return"".concat(ce(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:le,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:ie,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:ae,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:le,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=de(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=de(t,1);t.splice(r,1)}return t}(ue(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ce(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(ue(t,e).dimensionalScope||0)===ie&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return C.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(se))return!1;var i=ue(t,e);return i&&!i.disabled}}},getDisregardSelectionComp:fe,getFieldSelectionComp:me,getTotalComp:he,getSelectedDimComp:ge};var ve="library id deleted",ye="qDef.qDef",xe="qDef.base.qDef",Se="qLibraryId",Ee="qDef.base.qLibraryId",we="qDef.qLabel",Ce="qDef.qLabelExpression",Re="qDef.base.qLabel",Ae="qDef.base.qLabelExpression",Pe="qDef.qAggrFunc",Ie="qDef.base.qAggrFunc",De="qDef.base";const Le={getExpression:function(e){var t=l(e,xe);return void 0!==t?t:l(e,ye)},getExpressionRef:function(e){return void 0!==l(e,xe)?xe:ye},getLibraryIdRef:function(e){return l(e,Ee)?Ee:Se},getLibraryId:function(e){return l(e,Ee)||l(e,Se)},getLabelRef:function(e){return l(e,De)?Re:we},getLabelExpressionRef:function(e){return l(e,De)?Ae:Ce}};var Me={initBase:function(e,t){(t||Me.isValid(e))&&(a(e,xe,l(e,ye)),a(e,Ee,l(e,Se)),a(e,Re,l(e,we)),a(e,Ae,l(e,Ce)))},restoreBase:function(e){Me.isValid(e)&&(a(e,ye,l(e,xe)),a(e,Se,l(e,Ee)),a(e,we,l(e,Re)),a(e,Ce,l(e,Ae)),l(e,Pe)&&l(e,Ie)&&a(e,Pe,l(e,Ie)),delete e.qDef.base)},isValid:function(e){var t=l(e,xe),r=l(e,Ee);return void 0!==t||void 0!==r}};const ke=Me;function Oe(e){return Oe="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},Oe(e)}var Te={accumulation:H,movingAverage:G,difference:te,normalization:be,timeSeriesDecomposition:J};const _e={modifiers:Te,apply:Ne,applyModifiers:Fe,cleanUpMeasure:je,destroy:function(e){e&&qe[e.id]&&qe[e.id].masterItemSubscriber&&(qe[e.id].masterItemSubscriber&&qe[e.id].masterItemSubscriber.unsubscribe(),delete qe[e.id])},hasActiveModifiers:ze,getActiveModifier:He,initBase:ke.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Te[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Te[e]&&Te[e].isApplicable({properties:r,layout:n})}))},measureBase:Le,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=We(e);Je({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||rt({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:$e};var qe={};function Ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.model,r=e.properties,n=e.isSnapshot,o=void 0!==n&&n,a=e.masterItem,s=!1;qe[t.id]=qe[t.id]||{isFirstTime:!0};var u=qe[t.id].isFirstTime;if(qe[t.id].isFirstTime=!1,r&&"object"===Oe(r))return Fe({model:t,properties:r});var c=t?t.layout:void 0,d=l(c,"qSelectionInfo.qInSelections");if(o||d)return Promise.resolve(s);var p=l(c,"qHyperCube.qMeasureInfo"),f=qe[t.id].lastReloadTime;if(qe[t.id].lastReloadTime=l(t,"app.layout.qLastReloadTime"),ze({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return l(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Xe({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:t,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Je({modifiers:We(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:a,isFirstTime:u})?t.getEffectiveProperties().then((function(e){var r=i()(!0,{},e);Ge(r);var n=nt(r);return Ze({model:t}).then((function(o){return Qe({libraryIds:n,model:t}).then((function(n){return m&&function(e){var t=e.properties;Be(t).forEach((function(e){return function(e){var t=e.measure;if(Xe({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===Oe(e)&&!e.disabled){if(r++,"object"!==Oe(Te[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Te[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ye(t)&&C.simplifyExpression(t.qDef.base.qDef)!==C.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:r}),Fe({model:t,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:a,libraryItemsProps:n,dimensionAndFieldList:o})}))})).catch((function(){return Promise.resolve(s)}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Oe(e.base)}))}(p)?t.getEffectiveProperties().then((function(e){return function(e){var t=e.model,r=e.properties,n=nt(r);return ot({model:t,libraryIds:n}).then((function(){var e=i()(!0,{},r);return Be(r).forEach((function(e){return je(e)})),tt({oldProperties:e,newProperties:r,model:t})}))}({model:t,properties:e})})):Promise.resolve(s)}function Fe(e){var t=e.model,r=e.oldProperties,n=e.properties,o=e.measures,a=e.runUpdateIfChange,s=void 0!==a&&a,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?i()(!0,{},n):n),Ge(n);var p=nt(n);return ot({model:t,libraryIds:p,masterItem:u}).then((function(){return function(e){var t=e.measures,r=e.properties,n=e.model,o=e.libraryItemsProps,a=e.dimensionAndFieldList;if(t||(t=Be(r)),!t.length)return Promise.resolve();if(!o&&!ze({measures:t,properties:r}))return t.forEach((function(e){return je(e)})),Promise.resolve();var s=o?void 0:nt(r);return Ze({model:n,dimensionAndFieldList:a}).then((function(e){return Qe({libraryIds:s,model:n,libraryItemsProps:o}).then((function(n){t.forEach((function(t){var o=t.qDef.modifiers;n&&Je({modifiers:o,properties:r})?(function(e){var t=e.measure,r=e.properties,n=e.libraryItemsProps,o=e.dimensionAndFieldList,a=0;ke.isValid(t)||ke.initBase(t,!0);var s=t.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Oe(e)&&!e.disabled){if(a++,"object"!==Oe(Te[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(a>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Te[e.type].initModifier(e,t);var s=t.qLibraryId||c&&c.qLibraryId;s?function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Te[r.type].generateExpression({expression:l,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=s,t.qDef.qDef=r.outputExpression,(t.qDef.qLabel||a.qMeasure.qLabel)&&(t.qDef.qLabel=a.qMeasure.qLabel),(t.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(t.qDef.qLabelExpression=a.qMeasure.qLabelExpression),t.qDef.quarantine&&t.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(t.qDef.qNumFormat=a.qMeasure.qNumFormat,t.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete t.qLibraryId,t.qDef.coloring=a.qMeasure.coloring,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,libraryId:s,properties:r,libraryItemsProps:n,dimensionAndFieldList:o}):function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList;"function"==typeof Te[r.type].updateModifier&&Te[r.type].updateModifier(r,n.qHyperCubeDef);var a=Le.getExpression(t),l=""===a?a:Te[r.type].generateExpression({expression:a,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=l,t.qDef.qDef=r.outputExpression,t.qDef.base.qLabelExpression?t.qDef.qLabelExpression=t.qDef.base.qLabelExpression:t.qDef.qLabel=t.qDef.base.qLabel||a,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:r,dimensionAndFieldList:o}),function(e){var t=l(e,"qDef.qAggrFunc");"Expr"!==t||$e(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&$e(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(t)}}))}({measure:t,properties:r,libraryItemsProps:n,dimensionAndFieldList:e}),Ue(t)):je(t)}))}))}))}({measures:o,properties:n,model:t,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?tt({oldProperties:r,newProperties:n,model:t}):Promise.resolve(!1)}))})).catch((function(){return Promise.resolve(!1)}))}function je(e){!function(e){var t=We(e);return Array.isArray(t)&&t.some((function(e){return"object"===Oe(e)&&!e.disabled&&!Te[e.type]}))}(e)?ke.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ue(e)}function ze(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Je({modifiers:We(e),properties:r,layout:n})}))}function He(e){var t=We(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Te[n.type]&&!n.disabled)return n}}function $e(e){var t=He(e);return!t||Te[t.type].enableTotalsFunction(e)}function Be(e){return l(e,"qHyperCubeDef.qMeasures",[]).concat(l(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function We(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function Ve(e){return l(e,"outputExpression.qValueExpression.qExpr")||l(e,"outputExpression")}function Ge(e){Be(e).forEach((function(e){return function(e){var t=He(e);t&&(void 0!==t.outputExpression&&Ve(t)!==e.qDef.qDef?delete e.qDef.base:!ke.isValid(e)&&t.base&&(e.qDef.base=i()(!0,{},t.base)))}(e)}))}function Ue(e){var t=We(e);Array.isArray(t)&&t.forEach((function(t){"object"===Oe(t)&&(t.disabled||!Te[t.type]&&Ve(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ye(e){return e.base||e.qDef&&e.qDef.base}function Ke(e){var t=Ye(e);return e.qLibraryId||t&&t.qLibraryId}function Xe(e){var t=e.measure,r=e.properties,n=e.layout;return!Ke(t)&&Je({modifiers:We(t),properties:r,layout:n})}function Je(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Oe(e)||e.disabled||!Te[e.type])&&(void 0===o[e.type]&&(o[e.type]=Te[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ze(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 Qe(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})).catch((function(){return null}))}function et(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function tt(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(l(t,"qHyperCubeDef.qMeasures"),et)!==JSON.stringify(l(r,"qHyperCubeDef.qMeasures"),et)||JSON.stringify(l(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),et)!==JSON.stringify(l(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),et);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&l(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):q(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function rt(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Oe(e)&&!e.disabled&&Te[e.type]&&Te[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function nt(e){var t=Be(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=We(t);if(Je({modifiers:n,properties:e})){var i=Ke(t);i&&r.push(i),o=o||rt({modifiers:n,properties:e})}})),l(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function ot(e){var t=e.model,r=e.libraryIds,n=e.masterItem;return!n&&n!==ve&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(qe[t.id].masterItemSubscriber=qe[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},i={},a={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},r=l(e,"qInfo.qType");return r&&a[r]&&a[r].forEach((function(r){t[r]=l(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=s(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(){Object.keys(n).forEach((function(e){o[e]||i[e]||(n[e].listener.dispose(),n[e].unbindCloseListnener(),delete n[e])}))}var d=function(e,t){return e.once("closed",t),function(){return e.removeListener("closed",t)}};function p(e,o){return t.app[o](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),unbindCloseListnener:d(t,(function(){return e=t.id,r(ve),delete n[e],void c();var e})),enabled:!1,properties:s(t.layout)}})).catch((function(){}))}return{subscribe:function(e){var r=e.measureLibraryIds,a=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),i={},t.forEach((function(e){i[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:a}),c(),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&l.push(p(e,"getMeasure"))})),Object.keys(i).forEach((function(e){i[e]&&!n[e]&&l.push(p(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose(),n[e].unbindCloseListnener()})),n={}}}}({model:t,callback:function(e){return Ne({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),qe[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}ob.default=n.default,Object.defineProperty(ob,"__esModule",{value:!0})})();var ab=H(ib);let lb=function(e){return e.Text="text",e.Link="link",e.Image="image",e.Indicator="indicator",e.URL="url",e.MiniChart="miniChart",e}({}),sb=function(e){return e.Attribute="attribute",e.Dimension="dimension",e.Measure="measure",e}({});const ub=e=>{switch(null==e?void 0:e.type){case"url":return lb.Link;case"image":return lb.Image;case"indicator":return lb.Indicator;default:return lb.Text}},cb=(e,t)=>!e.properties.qHyperCubeDef.qIndentMode||!t,db=(e,t)=>({uses:"dimensionRepresentationItems.representationType",show:(e,r,n)=>cb(n,t),options(){const t=[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}];return e&&t.push({value:"image",translation:"Object.Table.Representation.Image"}),t}}),pb=e=>({representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:(t,r,n)=>ub(t.qDef.representation)===lb.Link&&cb(n,e)},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:(t,r,n)=>{var o;return ub(t.qDef.representation)===lb.Link&&(null===(o=t.qDef.representation)||void 0===o?void 0:o.urlPosition)===sb.Dimension&&cb(n,e)}},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:(t,r,n)=>{var o;return ub(t.qDef.representation)===lb.Link&&(null===(o=t.qDef.representation)||void 0===o?void 0:o.urlPosition)===sb.Attribute&&cb(n,e)}}}),fb=(e,t)=>{if(e)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:(e,r,n)=>ub(e.qDef.representation)===lb.Image&&cb(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"}]}}}}},mb=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_AND_IMAGES")&&!(null!=n&&null!==(t=n.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"tableImages"));return{representationType:db(a,i),...pb(i),...fb(a,i)}},hb=e=>{var t;const{flags:r,anything:n}=e,o=null==n||null===(t=n.sense)||void 0===t?void 0:t.isUnsupportedFeature,i=r.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=o&&o("tableImages")),a=r.isEnabled("CLIENT_IM_5975_INDENT_MODE"),l=r.isEnabled("CLIENT_IM_7110_TABLE_MINI_CHART")&&!(null!=o&&o("qMiniChartDef")),s=r.isEnabled("CLIENT_IM_6696_INDICATORS")&&!(null!=o&&o("tableIndicators")),u=[{value:"text",translation:"Object.Table.Representation.Text"}];i&&u.push({value:"image",translation:"Object.Table.Representation.Image"}),s&&u.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),l&&u.push({value:"miniChart",translation:"Common.MiniChart"});return{representationType:{uses:"measureRepresentationItems.representationType",show:(e,t,r)=>cb(r,a),options:u},representationImage:i?{uses:"measureRepresentationItems.representationImage",show:(e,t,r)=>ub(e.qDef.representation)===lb.Image&&cb(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:s?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:l?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}},gb={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},bb={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}},vb=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)=>(!ab.hasActiveModifiers({measures:[e],properties:t.properties})||ab.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"))}},yb={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:xh.Auto,translation:"Common.Auto"},{value:xh.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:xh.Pixels,translation:"Object.Table.Column.Pixels"},{value:xh.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:xh.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)===xh.Pixels},change(e){e.qDef.columnWidth.pixels=void 0===e.qDef.columnWidth.pixels?e.qDef.columnWidth.pixels:Math.max(1,Math.min(yh.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)===xh.Percentage},change(e){e.qDef.columnWidth.percentage=void 0===e.qDef.columnWidth.percentage?e.qDef.columnWidth.percentage:Math.max(1,Math.min(yh.PercentageMax,e.qDef.columnWidth.percentage))}}},xb=()=>({...gb,visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},tableCellStyling:{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1}]},...bb,...yb}),Sb={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"}},Eb=e=>({libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>{var t;return!!(e.qLibraryId||null!==(t=e.qDef.base)&&void 0!==t&&t.qLibraryId)}},inlineMeasure:{component:"inline-measure",show:e=>{var t;return!(e.qLibraryId||null!==(t=e.qDef.base)&&void 0!==t&&t.qLibraryId)}},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:vb(e)}),wb=e=>({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:Sb},presentation:{type:"items",translation:"properties.presentation",items:{...xb(),...mb(e)}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:Eb(e)},presentation:{type:"items",translation:"properties.presentation",items:{...xb(),...hb(e)}}}}}}),Cb={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}},Rb=e=>{if(e.flags.isEnabled("CLIENT_IM_6997_WORD_WRAP"))return{type:"items",translation:"Object.Table.WrapText",items:[{component:"text",translation:"Object.Table.Multiline"},{ref:"multiline.wrapTextInHeaders",type:"boolean",translation:"Object.Table.Multiline.WrapTextInHeaders",component:"checkbox",defaultValue:!0},{ref:"multiline.wrapTextInCells",type:"boolean",translation:"Object.Table.Multiline.WrapTextInCells",component:"checkbox",defaultValue:!0}]}},Ab=e=>{var t,r;return{type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!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"))}},Pb=(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}}}),Ib=(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},Db=({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=>Ib(e,!0)))],c=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},..._f(n).filter((e=>!s.includes(e))).map((e=>Ib(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),Lb=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],Mb=({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=>Ib(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...Lb.filter((e=>!a.includes(e))).map((e=>Ib(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),kb=({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:Db({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:Mb({ref:`${e}.fontSize`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontSize"))&&void 0!==r?r:t.fontSize},translator:r}),fontColor:Pb(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=o(t,e,"color"))&&void 0!==r?r:t.color}))}},background:Pb(`${e}.background`,"properties.background",(t=>{var r;return null!==(r=o(t,e,"backgroundColor"))&&void 0!==r?r:"transparent"}))}}}}),Ob=({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:Pb(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=n(t,e,"color"))&&void 0!==r?r:t.color}))}},background:Pb(`${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"}))}}}}),Tb=e=>{var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},_b={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:Tb,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:Tb,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},qb=(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}},Nb={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}},Fb=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"),...Nb},border:Pb("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:mp.BORDER_MEDIUM})),divider:Pb("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:mp.BORDER_HEAVY}))}}}}),jb=({flags:e,translator:t})=>({headerSection:kb({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:qb}),dimensionValueSection:kb({section:"dimensionValues",translator:t,flags:e,getThemeValue:qb}),measureValueSection:kb({section:"measureValues",translator:t,flags:e,getThemeValue:qb}),totalRowSection:kb({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:qb}),nullValues:Ob({section:"nullValues",fallbackBackground:mp.NULL_VALUE_BACKGROUND,getThemeValue:qb}),grid:Fb(e),hoverEffectSection:_b}),zb=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:Nb}}}},hoverEffectSection:_b}),Hb=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")?jb(e):zb(e)}]}),$b=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[Hb(e),Ab(e),{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1},Rb(e)]},...Cb}}),Bb={uses:"sorting"},Wb={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},Vb=e=>({type:"items",component:"accordion",items:{data:wb(e),sorting:Bb,addOns:Wb,settings:$b(e)}});function Gb(e){return{definition:Vb(e),exploration:Zg,data:nb(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:["accumulation","movingAverage","difference","normalization"]},importProperties(e,t,r,n){const o={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()};return Jg({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o})},exportProperties:(e,t)=>Kg({propertyTree:e,hyperCubePath:t})}}const Ub=(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]),Yb=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{});let Kb;const Xb=new Uint8Array(16);function Jb(){if(!Kb&&(Kb="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Kb))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Kb(Xb)}const Zb=[];for(let e=0;e<256;++e)Zb.push((e+256).toString(16).slice(1));var Qb={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ev(e,t,r){if(Qb.randomUUID&&!t&&!e)return Qb.randomUUID();const n=(e=e||{}).random||(e.rng||Jb)();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 Zb[e[t+0]]+Zb[e[t+1]]+Zb[e[t+2]]+Zb[e[t+3]]+"-"+Zb[e[t+4]]+Zb[e[t+5]]+"-"+Zb[e[t+6]]+Zb[e[t+7]]+"-"+Zb[e[t+8]]+Zb[e[t+9]]+"-"+Zb[e[t+10]]+Zb[e[t+11]]+Zb[e[t+12]]+Zb[e[t+13]]+Zb[e[t+14]]+Zb[e[t+15]]}(n)}const tv=()=>{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:ev()},rv=({qLibraryId:e,cId:t})=>{var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:tv()},nv=e=>"number"==typeof e&&!Number.isNaN(+e),ov=e=>!(!e.qNum&&0!==e.qNum||!nv(e.qNum));function iv(e){return iv="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},iv(e)}function av(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lv(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 sv(e,t,r){return t&&lv(e.prototype,t),r&&lv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function uv(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&&dv(e,t)}function cv(e){return cv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cv(e)}function dv(e,t){return dv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dv(e,t)}function pv(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 fv(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=cv(e);if(t){var o=cv(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return pv(this,r)}}function mv(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,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 hv(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 hv(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 hv(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 gv={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:bv(e),value:bv(t),useEqualSign:r}}(r,o,i))}})),t}};function bv(e){try{return decodeURIComponent(e)}catch(t){return e}}function vv(e){if(!(this instanceof vv))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 gv.fromSearchString(t.search)}}})}function yv(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}vv.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},vv.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=yv((t=e[n]).key),t.value?r+="=".concat(yv(t.value)):r+=t.useEqualSign?"=":"";return r};var xv,Sv=function(){function e(t){av(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return sv(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}(),Ev=function(){function e(){av(this,e)}return sv(e,[{key:"decode",value:function(e){for(var t,r="",n=new Sv(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),wv=function(e){return e>=0&&e<=1114111},Cv=function(e){return e.match(/[\s]/)},Rv=function(){uv(t,Ev);var e=fv(t);function t(){return av(this,t),e.apply(this,arguments)}return sv(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())&&!Cv(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return wv(a)?String.fromCharCode(a):"�"}}]),t}(),Av=function(){function e(t,r){av(this,e),this._key=t,this._value=r}return sv(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}(),Pv=function(){function e(){av(this,e)}return sv(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 Av.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return Av.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||Av.newInstanceIfNeeded(e,t,this._value)}}]),e}(),Iv=function(){function e(){av(this,e),this.clear()}return sv(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 Pv);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),Dv=function(){var e,t,r,n=[],o=[],i=new Iv;for(e in n["""]="34",n["&"]="38",n["<"]="60",n[">"]="62",n[" "]="160",n["¡"]="161",n["¢"]="162",n["£"]="163",n["¤"]="164",n["¥"]="165",n["¦"]="166",n["§"]="167",n["¨"]="168",n["©"]="169",n["ª"]="170",n["«"]="171",n["¬"]="172",n["­"]="173",n["®"]="174",n["¯"]="175",n["°"]="176",n["±"]="177",n["²"]="178",n["³"]="179",n["´"]="180",n["µ"]="181",n["¶"]="182",n["·"]="183",n["¸"]="184",n["¹"]="185",n["º"]="186",n["»"]="187",n["¼"]="188",n["½"]="189",n["¾"]="190",n["¿"]="191",n["À"]="192",n["Á"]="193",n["Â"]="194",n["Ã"]="195",n["Ä"]="196",n["Å"]="197",n["Æ"]="198",n["Ç"]="199",n["È"]="200",n["É"]="201",n["Ê"]="202",n["Ë"]="203",n["Ì"]="204",n["Í"]="205",n["Î"]="206",n["Ï"]="207",n["Ð"]="208",n["Ñ"]="209",n["Ò"]="210",n["Ó"]="211",n["Ô"]="212",n["Õ"]="213",n["Ö"]="214",n["×"]="215",n["Ø"]="216",n["Ù"]="217",n["Ú"]="218",n["Û"]="219",n["Ü"]="220",n["Ý"]="221",n["Þ"]="222",n["ß"]="223",n["à"]="224",n["á"]="225",n["â"]="226",n["ã"]="227",n["ä"]="228",n["å"]="229",n["æ"]="230",n["ç"]="231",n["è"]="232",n["é"]="233",n["ê"]="234",n["ë"]="235",n["ì"]="236",n["í"]="237",n["î"]="238",n["ï"]="239",n["ð"]="240",n["ñ"]="241",n["ò"]="242",n["ó"]="243",n["ô"]="244",n["õ"]="245",n["ö"]="246",n["÷"]="247",n["ø"]="248",n["ù"]="249",n["ú"]="250",n["û"]="251",n["ü"]="252",n["ý"]="253",n["þ"]="254",n["ÿ"]="255",n["&OElig"]="338",n["&oelig"]="339",n["&Scaron"]="352",n["&scaron"]="353",n["&Yuml"]="376",n["&fnof"]="402",n["&circ"]="710",n["&tilde"]="732",n["&Alpha"]="913",n["&Beta"]="914",n["&Gamma"]="915",n["&Delta"]="916",n["&Epsilon"]="917",n["&Zeta"]="918",n["&Eta"]="919",n["&Theta"]="920",n["&Iota"]="921",n["&Kappa"]="922",n["&Lambda"]="923",n["&Mu"]="924",n["&Nu"]="925",n["&Xi"]="926",n["&Omicron"]="927",n["&Pi"]="928",n["&Rho"]="929",n["&Sigma"]="931",n["&Tau"]="932",n["&Upsilon"]="933",n["&Phi"]="934",n["&Chi"]="935",n["&Psi"]="936",n["&Omega"]="937",n["&alpha"]="945",n["&beta"]="946",n["&gamma"]="947",n["&delta"]="948",n["&epsilon"]="949",n["&zeta"]="950",n["&eta"]="951",n["&theta"]="952",n["&iota"]="953",n["&kappa"]="954",n["&lambda"]="955",n["&mu"]="956",n["&nu"]="957",n["&xi"]="958",n["&omicron"]="959",n["&pi"]="960",n["&rho"]="961",n["&sigmaf"]="962",n["&sigma"]="963",n["&tau"]="964",n["&upsilon"]="965",n["&phi"]="966",n["&chi"]="967",n["&psi"]="968",n["&omega"]="969",n["&thetasym"]="977",n["&upsih"]="978",n["&piv"]="982",n["&ensp"]="8194",n["&emsp"]="8195",n["&thinsp"]="8201",n["&zwnj"]="8204",n["&zwj"]="8205",n["&lrm"]="8206",n["&rlm"]="8207",n["&ndash"]="8211",n["&mdash"]="8212",n["&lsquo"]="8216",n["&rsquo"]="8217",n["&sbquo"]="8218",n["&ldquo"]="8220",n["&rdquo"]="8221",n["&bdquo"]="8222",n["&dagger"]="8224",n["&Dagger"]="8225",n["&bull"]="8226",n["&hellip"]="8230",n["&permil"]="8240",n["&prime"]="8242",n["&Prime"]="8243",n["&lsaquo"]="8249",n["&rsaquo"]="8250",n["&oline"]="8254",n["&frasl"]="8260",n["&euro"]="8364",n["&image"]="8365",n["&weierp"]="8472",n["&real"]="8476",n["&trade"]="8482",n["&alefsym"]="8501",n["&larr"]="8592",n["&uarr"]="8593",n["&rarr"]="8594",n["&darr"]="8595",n["&harr"]="8596",n["&crarr"]="8629",n["&lArr"]="8656",n["&uArr"]="8657",n["&rArr"]="8658",n["&dArr"]="8659",n["&hArr"]="8660",n["&forall"]="8704",n["&part"]="8706",n["&exist"]="8707",n["&empty"]="8709",n["&nabla"]="8711",n["&isin"]="8712",n["¬in"]="8713",n["&ni"]="8715",n["&prod"]="8719",n["&sum"]="8721",n["&minus"]="8722",n["&lowast"]="8727",n["&radic"]="8730",n["&prop"]="8733",n["&infin"]="8734",n["&ang"]="8736",n["&and"]="8743",n["&or"]="8744",n["&cap"]="8745",n["&cup"]="8746",n["&int"]="8747",n["&there4"]="8756",n["&sim"]="8764",n["&cong"]="8773",n["&asymp"]="8776",n["&ne"]="8800",n["&equiv"]="8801",n["&le"]="8804",n["&ge"]="8805",n["&sub"]="8834",n["&sup"]="8835",n["&nsub"]="8836",n["&sube"]="8838",n["&supe"]="8839",n["&oplus"]="8853",n["&otimes"]="8855",n["&perp"]="8869",n["&sdot"]="8901",n["&lceil"]="8968",n["&rceil"]="8969",n["&lfloor"]="8970",n["&rfloor"]="8971",n["&lang"]="9001",n["&rang"]="9002",n["&loz"]="9674",n["&spades"]="9824",n["&clubs"]="9827",n["&hearts"]="9829",n["&diams"]="9830",n)"function"!=typeof n[e]&&n.hasOwnProperty(e)&&(o[n[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(r=o[t].toLowerCase().substr(1),i.put(r,String.fromCharCode(t)));return i}(),Lv=function(){uv(t,Ev);var e=fv(t);function t(){return av(this,t),e.apply(this,arguments)}return sv(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,Dv.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=Dv.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)&&wv(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)&&wv(n)?String.fromCharCode(n):null}}]),t}(),Mv=function(){uv(t,Ev);var e=fv(t);function t(){return av(this,t),e.apply(this,arguments)}return sv(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),wv(o))?String.fromCharCode(o):(e.reset(),null)}}]),t}(),kv=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(xv=document.createElement("div"));var Ov=Array.prototype.indexOf,Tv=[",",".","_"," "],_v=[",",".","-","_"," "],qv={width:["%"],height:["%"]},Nv={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},Fv={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":Nv.image,"background-color":Nv.color,"border-color":Nv.color,"border-image":Nv.image,color:Nv.color,icon:Nv.image,"list-style-image":Nv.image,"outline-color":Nv.color},jv={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function zv(e,t,r){var n;if(t){if(Ov)return Ov.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 Hv(e){if(null==e)return"";var t,r=document.createTextNode(e);return xv.appendChild(r),t=xv.innerHTML,xv.removeChild(r),t}function $v(e,t,r){var n,o,i,a,l,s,u,c,d;if(e=Wv(e).toLowerCase(),t=Wv(t),zv(e,jv.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<jv.attr_val;i++)if(t.toLowerCase().match(jv.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=qv[e])||(n=_v),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]/)&&zv(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function Bv(e,t,r){var n,o,i,a,l,s,u,c,d,p;if(e=Wv(e).toLowerCase(),t=Wv(t),zv(e,jv.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<jv.css_val.length;n++)if(t.toLowerCase().indexOf(jv.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=Fv[e])||(o=Nv.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]/)&&zv(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function Wv(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var l=[new Lv,new Mv,new Rv];!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 Vv=[],Gv=0;Gv<255;Gv++)Vv[Gv]=Gv>=48&&Gv<=57||Gv>=65&&Gv<=90||Gv>=97&&Gv<=122?null:Gv.toString(16);var Uv=function(e){return Hv(e.unsafe)},Yv=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]=Bv(t,r[t],!0),i+=Bv(t,r[t],!0),o[t]=n[t]);return e.map?o:i},Kv=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]=$v(i,t[i],!0),o+=$v(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function Xv(e,t){throw new Error(t)}var Jv={canonicalize:Wv,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===iv(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?Uv(e):"css"===e.context?(null!=e.map&&"object"!==iv(e.map)&&Xv(this,"Invalid parameter type"),Yv(e)):"attr"===e.context?(null!=e.map&&"object"!==iv(e.map)&&Xv(this,"Invalid parameter type"),Kv(e)):void Xv(this,"Invalid parameter type")},encodeForAttr:$v,encodeForAttr2:function(e){return $v("nonsens",e,!0)},encodeForCSS:Bv,encodeForHref:function(e){Wv(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new vv(e),r=vv.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+vv.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=Tv),l="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),zv(o,t)>=0||null==Vv[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:Hv,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=Wv(t).toLowerCase():Xv(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=mv(null!==(t=kv.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 Zv=(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]},Qv=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"}}},ey=({text:e,url:t,imageSize:r,imagePosition:n})=>n&&t&&!t.toLowerCase().includes("javascript:")&&Jv.isSafeDataURL(t)?{type:lb.Image,url:t,text:e,imageSize:r,resolvedImagePosition:Qv(n)}:{type:lb.Text,url:void 0,text:e},ty=(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)===sb.Attribute||null==r?void 0:r.urlLabel},ry=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:lb.Link,url:Jv.encodeForHref(t),text:e}}catch(t){return{type:lb.Text,url:void 0,text:e}}},ny=(e,t,r,n,o)=>{var i,a,l,s;const u=ub(t);return u!==lb.Image||!n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(i=n.anything.sense)&&void 0!==i&&null!==(a=i.isUnsupportedFeature)&&void 0!==a&&a.call(i,"tableImages")?u===lb.Link?((e,t,r)=>{const{urlPosition:n}=null!=t?t:{};if(n===sb.Attribute){var o;const n=ty(null!==(o=r.url)&&void 0!==o?o:-1,e,t),i=e.qText||n||"";return ry({text:i,url:n})}if(n===sb.Dimension){var i;const n=ty(null!==(i=r.urlLabel)&&void 0!==i?i:-1,e,t)||e.qText;return ry({text:n,url:e.qText})}return{type:lb.Text,url:void 0,text:e.qText}})(e,t,r):u!==lb.Indicator||!n.flags.isEnabled("CLIENT_IM_6696_INDICATORS")||null!==(l=n.anything.sense)&&void 0!==l&&null!==(s=l.isUnsupportedFeature)&&void 0!==s&&s.call(l,"tableIndicators")?{type:lb.Text,url:void 0,text:e.qText}:((e,t,r)=>{const{indicator:n}=null!=t?t:{};return{type:lb.Indicator,url:void 0,text:e.qText,indicator:{applySegmentColors:null==n?void 0:n.applySegmentColors,position:null==n?void 0:n.position,showTextValues:null==n?void 0:n.showTextValues},indicatorConditionalColoring:r}})(e,t,o):((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=Zv(null!==(s=r.imageUrl)&&void 0!==s?s:-1,e))||void 0===l?void 0:l.qText;return ey({text:t,url:i,imageSize:n,imagePosition:o})}if("label"===i){var u,c,d;const t=e.qText;if(-1===r.imageLabel)return ey({text:a||t||"",url:t,imageSize:n,imagePosition:o});const i=null!==(u=null===(c=Zv(null!==(d=r.imageLabel)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return ey({text:i,url:t,imageSize:n,imagePosition:o})}return{type:lb.Text,url:void 0,text:e.qText}})(e,t,r)},oy=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,iy=1e4;function ay(e,t){return[...t].reverse().find((t=>t*e<=iy))||Math.floor(iy/e)}function ly(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 sy(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 uy(e,t){const r=e.qHyperCube.qGrandTotalRow[t];return nv(null==r?void 0:r.qNum)}function cy(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 dy=(e,t)=>"auto"!==t?t:ov(e)?"right":"left";const py=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:rv(u),label:v,qAttrExprInfoIDs:x.map((e=>e.id)),qAttrExprInfoIndex:Yb(u),sortDirection:S&&"N"!==S?S:"A",totalInfo:sy(e,s,r,n),...!s&&{isTotalNumeric:uy(e,n)},...cy(y,d,s),representation:g,conditionalColoring:s?void 0:b}}(e,t,r,l[t])))};const fy=(e,t)=>{var r;return!!(e.snapshotData||null!==(r=t.viewState)&&void 0!==r&&r.visibleHeight)},my=(e,t)=>{var r;return void 0!==(null===(r=t.viewState)||void 0===r?void 0:r.usePagination)?t.viewState.usePagination:!1!==e.usePagination||fy(e,t)};var hy="$$material";const gy=["values","unit","step"];function by(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=An(e,gy),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>Rn({},e,{[t.key]:t.val})),{})})(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 Rn({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 vy={borderRadius:4};function yy(e,t){return t?Dn(e,t,{clone:!1}):e}const xy={xs:0,sm:600,md:900,lg:1200,xl:1536},Sy={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${xy[e]}px)`};function Ey(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||Sy;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||Sy;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||xy).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function wy(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 Cy(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:wy(e,r)||n,t&&(o=t(o,n,e)),o}function Ry(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=wy(e.theme,n)||{};return Ey(e,i,(e=>{let n=Cy(a,o,e);return e===n&&"string"==typeof e&&(n=Cy(a,o,`${t}${"default"===e?"":to(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Ay={m:"margin",p:"padding"},Py={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Iy={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Dy=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Iy[e])return[e];e=Iy[e]}const[t,r]=e.split(""),n=Ay[t],o=Py[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Ly=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],My=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function ky(e,t,r,n){var o;const i=null!=(o=wy(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 Oy(e){return ky(e,"spacing",8)}function Ty(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 _y(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Ty(t,r),e)),{})}(Dy(r),n);return Ey(e,e[r],o)}function qy(e,t){const r=Oy(e.theme);return Object.keys(e).map((n=>_y(e,t,n,r))).reduce(yy,{})}function Ny(e){return qy(e,Ly)}function Fy(e){return qy(e,My)}function jy(...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]?yy(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function zy(e){return"number"!=typeof e?e:`${e}px solid`}function Hy(e,t){return Ry({prop:e,themeKey:"borders",transform:t})}Ny.propTypes={},Ny.filterProps=Ly,Fy.propTypes={},Fy.filterProps=My;const $y=Hy("border",zy),By=Hy("borderTop",zy),Wy=Hy("borderRight",zy),Vy=Hy("borderBottom",zy),Gy=Hy("borderLeft",zy),Uy=Hy("borderColor"),Yy=Hy("borderTopColor"),Ky=Hy("borderRightColor"),Xy=Hy("borderBottomColor"),Jy=Hy("borderLeftColor"),Zy=Hy("outline",zy),Qy=Hy("outlineColor"),ex=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=ky(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Ty(t,e)});return Ey(e,e.borderRadius,r)}return null};ex.propTypes={},ex.filterProps=["borderRadius"],jy($y,By,Wy,Vy,Gy,Uy,Yy,Ky,Xy,Jy,ex,Zy,Qy);const tx=e=>{if(void 0!==e.gap&&null!==e.gap){const t=ky(e.theme,"spacing",8),r=e=>({gap:Ty(t,e)});return Ey(e,e.gap,r)}return null};tx.propTypes={},tx.filterProps=["gap"];const rx=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=ky(e.theme,"spacing",8),r=e=>({columnGap:Ty(t,e)});return Ey(e,e.columnGap,r)}return null};rx.propTypes={},rx.filterProps=["columnGap"];const nx=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=ky(e.theme,"spacing",8),r=e=>({rowGap:Ty(t,e)});return Ey(e,e.rowGap,r)}return null};nx.propTypes={},nx.filterProps=["rowGap"];function ox(e,t){return"grey"===t?t:e}jy(tx,rx,nx,Ry({prop:"gridColumn"}),Ry({prop:"gridRow"}),Ry({prop:"gridAutoFlow"}),Ry({prop:"gridAutoColumns"}),Ry({prop:"gridAutoRows"}),Ry({prop:"gridTemplateColumns"}),Ry({prop:"gridTemplateRows"}),Ry({prop:"gridTemplateAreas"}),Ry({prop:"gridArea"}));function ix(e){return e<=1&&0!==e?100*e+"%":e}jy(Ry({prop:"color",themeKey:"palette",transform:ox}),Ry({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ox}),Ry({prop:"backgroundColor",themeKey:"palette",transform:ox}));const ax=Ry({prop:"width",transform:ix}),lx=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])||xy[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:ix(t)}};return Ey(e,e.maxWidth,t)}return null};lx.filterProps=["maxWidth"];const sx=Ry({prop:"minWidth",transform:ix}),ux=Ry({prop:"height",transform:ix}),cx=Ry({prop:"maxHeight",transform:ix}),dx=Ry({prop:"minHeight",transform:ix});Ry({prop:"size",cssProperty:"width",transform:ix}),Ry({prop:"size",cssProperty:"height",transform:ix});jy(ax,lx,sx,ux,cx,dx,Ry({prop:"boxSizing"}));var px={border:{themeKey:"borders",transform:zy},borderTop:{themeKey:"borders",transform:zy},borderRight:{themeKey:"borders",transform:zy},borderBottom:{themeKey:"borders",transform:zy},borderLeft:{themeKey:"borders",transform:zy},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:zy},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ex},color:{themeKey:"palette",transform:ox},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ox},backgroundColor:{themeKey:"palette",transform:ox},p:{style:Fy},pt:{style:Fy},pr:{style:Fy},pb:{style:Fy},pl:{style:Fy},px:{style:Fy},py:{style:Fy},padding:{style:Fy},paddingTop:{style:Fy},paddingRight:{style:Fy},paddingBottom:{style:Fy},paddingLeft:{style:Fy},paddingX:{style:Fy},paddingY:{style:Fy},paddingInline:{style:Fy},paddingInlineStart:{style:Fy},paddingInlineEnd:{style:Fy},paddingBlock:{style:Fy},paddingBlockStart:{style:Fy},paddingBlockEnd:{style:Fy},m:{style:Ny},mt:{style:Ny},mr:{style:Ny},mb:{style:Ny},ml:{style:Ny},mx:{style:Ny},my:{style:Ny},margin:{style:Ny},marginTop:{style:Ny},marginRight:{style:Ny},marginBottom:{style:Ny},marginLeft:{style:Ny},marginX:{style:Ny},marginY:{style:Ny},marginInline:{style:Ny},marginInlineStart:{style:Ny},marginInlineEnd:{style:Ny},marginBlock:{style:Ny},marginBlockStart:{style:Ny},marginBlockEnd:{style:Ny},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:tx},rowGap:{style:nx},columnGap:{style:rx},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ix},maxWidth:{style:lx},minWidth:{transform:ix},height:{transform:ix},maxHeight:{transform:ix},minHeight:{transform:ix},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function fx(){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=wy(r,l)||{};if(u)return u(o);return Ey(o,t,(t=>{let r=Cy(c,s,t);return t===r&&"string"==typeof t&&(r=Cy(c,s,`${e}${"default"===t?"":to(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:px;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=yy(s,e(r,o,i,a));else{const e=Ey({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=yy(s,e):s[r]=t({sx:o,theme:i})}else s=yy(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 mx=fx();mx.filterProps=["sx"];var hx=mx;function gx(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 bx=["breakpoints","palette","spacing","shape"];function vx(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=An(e,bx),l=by(r),s=function(e=8){if(e.mui)return e;const t=Oy({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=Dn({breakpoints:l,direction:"ltr",components:{},palette:Rn({mode:"light"},n),spacing:s,shape:Rn({},vy,i)},a);return u.applyStyles=gx,u=t.reduce(((e,t)=>Dn(e,t)),u),u.unstable_sxConfig=Rn({},px,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return hx({sx:e,theme:this})},u}var yx=Object.freeze({__proto__:null,default:vx,private_createBreakpoints:by,unstable_applyStyles:gx});function xx(e=null){const t=y.useContext(sn);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const Sx=vx();const Ex=["sx"];function wx(e){const{sx:t}=e,r=An(e,Ex),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:px;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return Pn(r)?Rn({},n,r):n}:Rn({},n,t),Rn({},o,{sx:i})}var Cx=Object.freeze({__proto__:null,default:hx,extendSxProp:wx,unstable_createStyleFunctionSx:fx,unstable_defaultSxConfig:px});const Rx=["className","component"];function Ax(e){if(e.type)return e;if("#"===e.charAt(0))return Ax(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(Me(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(Me(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Px(e,t){return e=Ax(e),t=function(e,t=0,r=1){return Mo(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 Ix=y.createContext(null);function Dx(){return y.useContext(Ix)}var Lx="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Mx(e){const{children:t,theme:r}=e,n=Dx(),o=y.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return Rn({},e,t)}(n,r);return null!=e&&(e[Lx]=null!==n),e}),[r,n]);return Ki.jsx(Ix.Provider,{value:o,children:t})}const kx=["value"],Ox=y.createContext();function Tx(e){let{value:t}=e,r=An(e,kx);return Ki.jsx(Ox.Provider,Rn({value:null==t||t},r))}const _x=y.createContext(void 0);function qx({value:e,children:t}){return Ki.jsx(_x.Provider,{value:e,children:t})}function Nx({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?Co(o.defaultProps,n):o.styleOverrides||o.variants?n:Co(o,n)}({props:e,name:t,theme:{components:y.useContext(_x)}})}const Fx={};function jx(e,t,r,n=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?Rn({},t,{[e]:i}):i;return n?()=>a:a}return Rn({},t,e?{[e]:r}:r)}),[e,t,r,n])}function zx(e){const{children:t,theme:r,themeId:n}=e,o=xx(Fx),i=Dx()||Fx,a=jx(n,o,r),l=jx(n,i,r,!0),s="rtl"===a.direction;return Ki.jsx(Mx,{theme:l,children:Ki.jsx(sn.Provider,{value:a,children:Ki.jsx(Tx,{value:s,children:Ki.jsx(qx,{value:null==a?void 0:a.components,children:t})})})})}var Hx,$x={},Bx={exports:{}};(Hx=Bx).exports=function(e){return e&&e.__esModule?e:{default:e}},Hx.exports.__esModule=!0,Hx.exports.default=Hx.exports;var Wx=Bx.exports,Vx=$(ke),Gx=$(ko),Ux=Wx;Object.defineProperty($x,"__esModule",{value:!0});var Yx=$x.alpha=lS;$x.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=rS(e),a=rS(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return oS({type:"rgb",values:l})},$x.colorChannel=void 0;var Kx=$x.darken=sS;$x.decomposeColor=rS,$x.emphasize=cS;var Xx=$x.getContrastRatio=function(e,t){const r=aS(e),n=aS(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};$x.getLuminance=aS,$x.hexToRgb=tS,$x.hslToRgb=iS;var Jx=$x.lighten=uS;$x.private_safeAlpha=function(e,t,r){try{return lS(e,t)}catch(t){return e}},$x.private_safeColorChannel=void 0,$x.private_safeDarken=function(e,t,r){try{return sS(e,t)}catch(t){return e}},$x.private_safeEmphasize=function(e,t,r){try{return cS(e,t)}catch(t){return e}},$x.private_safeLighten=function(e,t,r){try{return uS(e,t)}catch(t){return e}},$x.recomposeColor=oS,$x.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=rS(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 Zx=Ux(Vx),Qx=Ux(Gx);function eS(e,t=0,r=1){return(0,Qx.default)(e,t,r)}function tS(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 rS(e){if(e.type)return e;if("#"===e.charAt(0))return rS(tS(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,Zx.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,Zx.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const nS=e=>{const t=rS(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};$x.colorChannel=nS;function oS(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 iS(e){e=rS(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])),oS({type:l,values:s})}function aS(e){let t="hsl"===(e=rS(e)).type||"hsla"===e.type?rS(iS(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 lS(e,t){return e=rS(e),t=eS(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,oS(e)}function sS(e,t){if(e=rS(e),t=eS(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 oS(e)}function uS(e,t){if(e=rS(e),t=eS(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 oS(e)}function cS(e,t=.15){return aS(e)>.5?sS(e,t):uS(e,t)}$x.private_safeColorChannel=(e,t)=>{try{return nS(e)}catch(t){return e}};var dS={black:"#000",white:"#fff"};var pS={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 fS={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 mS={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 hS={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 gS={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 bS={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 vS={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 yS=["mode","contrastThreshold","tonalOffset"],xS={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:dS.white,default:dS.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}},SS={text:{primary:dS.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:dS.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 ES(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=Jx(e.main,o):"dark"===t&&(e.dark=Kx(e.main,i)))}function wS(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=An(e,yS),i=e.primary||function(e="light"){return"dark"===e?{main:gS[200],light:gS[50],dark:gS[400]}:{main:gS[700],light:gS[400],dark:gS[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:fS[200],light:fS[50],dark:fS[400]}:{main:fS[500],light:fS[300],dark:fS[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:mS[500],light:mS[300],dark:mS[700]}:{main:mS[700],light:mS[400],dark:mS[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:bS[400],light:bS[300],dark:bS[700]}:{main:bS[700],light:bS[500],dark:bS[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:vS[400],light:vS[300],dark:vS[700]}:{main:vS[800],light:vS[500],dark:vS[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:hS[400],light:hS[300],dark:hS[700]}:{main:"#ed6c02",light:hS[500],dark:hS[900]}}(t);function d(e){return Xx(e,SS.text.primary)>=r?SS.text.primary:xS.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Rn({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(Me(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(Me(12,t?` (${t})`:"",JSON.stringify(e.main)));return ES(e,"light",o,n),ES(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:SS,light:xS};return Dn(Rn({common:Rn({},dS),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:pS,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const CS=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const RS={textTransform:"uppercase"},AS='"Roboto", "Helvetica", "Arial", sans-serif';function PS(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=AS,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=An(r,CS),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return Rn({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===AS?{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,RS),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,RS),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Dn(Rn({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function IS(...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 DS=["none",IS(0,2,1,-1,0,1,1,0,0,1,3,0),IS(0,3,1,-2,0,2,2,0,0,1,5,0),IS(0,3,3,-2,0,3,4,0,0,1,8,0),IS(0,2,4,-1,0,4,5,0,0,1,10,0),IS(0,3,5,-1,0,5,8,0,0,1,14,0),IS(0,3,5,-1,0,6,10,0,0,1,18,0),IS(0,4,5,-2,0,7,10,1,0,2,16,1),IS(0,5,5,-3,0,8,10,1,0,3,14,2),IS(0,5,6,-3,0,9,12,1,0,3,16,2),IS(0,6,6,-3,0,10,14,1,0,4,18,3),IS(0,6,7,-4,0,11,15,1,0,4,20,3),IS(0,7,8,-4,0,12,17,2,0,5,22,4),IS(0,7,8,-4,0,13,19,2,0,5,24,4),IS(0,7,9,-4,0,14,21,2,0,5,26,4),IS(0,8,9,-5,0,15,22,2,0,6,28,5),IS(0,8,10,-5,0,16,24,2,0,6,30,5),IS(0,8,11,-5,0,17,26,2,0,6,32,5),IS(0,9,11,-5,0,18,28,2,0,7,34,6),IS(0,9,12,-6,0,19,29,2,0,7,36,6),IS(0,10,13,-6,0,20,31,3,0,8,38,7),IS(0,10,13,-6,0,21,33,3,0,8,40,7),IS(0,10,14,-6,0,22,35,3,0,8,42,7),IS(0,11,14,-7,0,23,36,3,0,9,44,8),IS(0,11,15,-7,0,24,38,3,0,9,46,8)];const LS=["duration","easing","delay"],MS={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)"},kS={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function OS(e){return`${Math.round(e)}ms`}function TS(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function _S(e){const t=Rn({},MS,e.easing),r=Rn({},kS,e.duration);return Rn({getAutoHeightDuration:TS,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return An(n,LS),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:OS(o)} ${i} ${"string"==typeof a?a:OS(a)}`)).join(",")}},e,{easing:t,duration:r})}var qS={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const NS=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function FS(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=An(e,NS);if(e.vars)throw new Error(Me(18));const l=wS(n),s=vx(e);let u=Dn(s,{mixins:(c=s.breakpoints,d=r,Rn({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:DS.slice(),typography:PS(l,i),transitions:_S(o),zIndex:Rn({},qS)});var c,d;return u=Dn(u,a),u=t.reduce(((e,t)=>Dn(e,t)),u),u.unstable_sxConfig=Rn({},px,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return hx({sx:e,theme:this})},u}var jS,zS=FS(),HS={},$S={exports:{}};var BS,WS={exports:{}};var VS=$(Cn),GS=$(Mn),US=$(ro),YS=$(eo),KS=$(yx),XS=$(Cx),JS=Wx;Object.defineProperty(HS,"__esModule",{value:!0});var ZS=HS.default=function(e={}){const{themeId:t,defaultTheme:r=cE,rootShouldForwardProp:n=uE,slotShouldForwardProp:o=uE}=e,i=e=>(0,oE.default)((0,QS.default)({},e,{theme:pE((0,QS.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,tE.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=fE(dE(s))}=a,p=(0,eE.default)(a,lE),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=uE;"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,tE.default)(e,(0,QS.default)({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,rE.isPlainObject)(e)?n=>mE(e,(0,QS.default)({},n,{theme:pE({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=pE((0,QS.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]=mE(r,(0,QS.default)({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=pE((0,QS.default)({},e,{defaultTheme:r,themeId:t}));return mE({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},(0,QS.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}};HS.shouldForwardProp=uE,HS.systemDefaultTheme=void 0;var QS=JS((jS||(jS=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}($S)),$S.exports)),eE=JS((BS||(BS=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}(WS)),WS.exports)),tE=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=sE(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}(VS),rE=GS;JS(US),JS(YS);var nE=JS(KS),oE=JS(XS);const iE=["ownerState"],aE=["variants"],lE=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function sE(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(sE=function(e){return e?r:t})(e)}function uE(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const cE=HS.systemDefaultTheme=(0,nE.default)(),dE=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function pE({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function fE(e){return e?(t,r)=>r[e]:null}function mE(e,t){let{ownerState:r}=t,n=(0,eE.default)(t,iE);const o="function"==typeof e?e((0,QS.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>mE(e,(0,QS.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,eE.default)(o,aE);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,QS.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,QS.default)({ownerState:r},n,r)):e.style))})),t}return o}var hE=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var gE=ZS({themeId:hy,defaultTheme:zS,rootShouldForwardProp:hE});const bE=["theme"];function vE(e){let{theme:t}=e,r=An(e,bE);const n=t[hy];return Ki.jsx(zx,Rn({},r,{themeId:n?hy:void 0,theme:n||t}))}var yE={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}},Mg({exports:{}});var Fg={exports:{}};self,Fg.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:()=>De});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var 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 M(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 D(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=P(e[r||t])?i:e[t],e=e[r||t]}})),e}function k(e,t){var r=!0;if(M(e)&&M(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){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}):M(i)&&M(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=D(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(M(a)&&M(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=D(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,T=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 _="accumulation";function q(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===_)return r[n]}function 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===_)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(_))return!1;var i=q(t,e);return i&&!i.disabled}};return r}};var z="movingAverage";function H(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===z)return r[n]}function $(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 B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension: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,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat($(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat($(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat($(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat($(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=H(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=H(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat($(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat($(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(z))return!1;var i=H(t,e);return i&&!i.disabled}};return r}};var G="timeSeriesDecomposition";function V(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===G)return r[n]}function U(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===G)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Y={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const K={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return E.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?E.generateTSDExpression(r,t,n):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(U(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(U(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=V(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=V(t,e);return r&&!r.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(G))return!1;var i=V(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 Me=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:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const De={modifiers:Le,apply:Oe,applyModifiers:Te,cleanUpMeasure:_e,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:Me.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 Te({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 Ve({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);$e(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(Ve({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&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:n}),Te({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 _e(e)})),Je({oldProperties:e,newProperties:n,model:r})}))}({model:r,properties:e})})):Promise.resolve(s)}function Te(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),$e(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:u}).then((function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,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 _e(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;Me.isValid(r)||Me.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}),Be(r)):_e(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 _e(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)?Me.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(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 He(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function $e(e){je(e).forEach((function(e){return function(e){var r=Ne(e);r&&(void 0!==r.outputExpression&&He(r)!==e.qDef.qDef?delete e.qDef.base:!Me.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)}))}function Be(e){var t=ze(e);Array.isArray(t)&&t.forEach((function(t){"object"===Pe(t)&&(t.disabled||!Le[t.type]&&He(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ge(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,r=e.properties,n=e.layout;return!Ge(t)&&Ue({modifiers:ze(t),properties:r,layout:n})}function Ue(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==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(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=Ge(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}})),i(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(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:()=>$e});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var 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 M(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}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])},D=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:[]}},T=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)}},_=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},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=[]))},H=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,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)}))}},$=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 M(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 M(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?M(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],l.forEach((function(e){a.qMeasures.push(e),n.measures.added(e,r)}))}},B=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach((function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store}))};function W(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach((function(t){i.setValue(e,t,r[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const G={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,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?k():w,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:C})&&z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:C,newHyperCubeDef:v}),T({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),_({exportFormat:t,maxMeasures:E,minMeasures:C,newHyperCubeDef:v,defaultMeasure:I}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),N({exportFormat:t,newHyperCubeDef:v}),L("qMaxStackedCells",b,v),L("qNoOfLeftDims",b,v),D("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),D("qMode",b,v,"S"),D("qReductionMode",b,v,"N"),D("qSortbyYValue",b,v),D("qIndentMode",b,v),D("qShowTotalsAbove",b,v),P(g,t,n),h.qProperty=g;var M=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:M}),p&&W(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&W(h.qProperty,"dynamicScript"),h}};var V={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||!V[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=G.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=G.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?W(r,"unsupportedAutoMinMax")||E()(r.measureAxis,t.measureAxis):W(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",Me="measures",Pe="qDef.conditionalColoring";const Le={quarantine:function(e){we({properties:e,arrayPath:Ae,quarantineName:Ie,arrayName:Me,itemPath:Pe})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Pe,arrayName:Me,quarantineName:Ie})}};var De="qHyperCubeDef.qMeasures",ke="measures",Oe="qHyperCubeDef.qDimensions",Te="dimensions",_e="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",qe="alternativeMeasures",Ne="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",Fe="alternativeDimensions",je="qCalcCondition",ze="conditionalShowHide";const He={quarantine:function(e){we({properties:e,arrayPath:De,quarantineName:ze,arrayName:ke,itemPath:je}),we({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:Te,itemPath:je})},unquarantine:function(e){Re({properties:e,arrayPath:De,quarantineName:ze,arrayName:ke,itemPath:je}),Re({properties:e,arrayPath:Oe,quarantineName:ze,arrayName:Te,itemPath:je})},quarantineAlternative:function(e){we({properties:e,arrayPath:_e,quarantineName:ze,arrayName:qe,itemPath:je}),we({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:_e,quarantineName:ze,arrayName:qe,itemPath:je}),Re({properties:e,arrayPath:Ne,quarantineName:ze,arrayName:Fe,itemPath:je})}},$e={hypercube:G,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:we,unquarantineArrayProp:Re,conditionalColoring:Le,conditionalShow:He}})(),n.default})();var jg=yt(Fg.exports);const zg="qHyperCubeDef.qMeasures",Hg="measures",$g="qHyperCubeDef.qDimensions",Bg="dimensions",Wg="qDef.representation",Gg="tableRepresentation",Vg="qDef.conditionalColoring",Ug="conditionalColoring",Yg="qMiniChartDef",Kg="miniChartDef",Xg=(e,t,r)=>{const n=e.length+t.length,o=((null==r?void 0:r.length)===n?r:Array.from(Array(n).keys())).map((r=>((e,t,r)=>{var n;const o=t.length,i=e<o?t[e]:r[e-o],{columnWidth:a}=i.qDef;return"pixels"===(null==a?void 0:a.type)?null!==(n=a.pixels)&&void 0!==n?n:xh.PixelsDefault:-1})(r,e,t)));return o},Jg=({propertyTree:e,hyperCubePath:t})=>{const r=jg.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:n,qDimensions:o,qMeasures:i}}=r.properties,a=Xg(o,i,n);return Lg(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),jg.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),jg.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),jg.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{jg.quarantineArrayProp({properties:e,arrayPath:$g,itemPath:Wg,arrayName:Bg,quarantineName:Gg}),jg.quarantineArrayProp({properties:e,arrayPath:zg,itemPath:Wg,arrayName:Hg,quarantineName:Gg}),jg.quarantineArrayProp({properties:e,arrayPath:zg,itemPath:Vg,arrayName:Hg,quarantineName:Ug}),jg.quarantineArrayProp({properties:e,arrayPath:zg,itemPath:Yg,arrayName:Hg,quarantineName:Kg})})(r.properties),r};const Zg=(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:Sh.Pixels,pixels:e}:{type:Sh.FitToContent}}return i},Qg=({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o,viewDataMode:i})=>{const a=jg.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});jg.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{jg.unquarantineArrayProp({properties:e,arrayPath:$g,itemPath:Wg,arrayName:Bg,quarantineName:Gg}),jg.unquarantineArrayProp({properties:e,arrayPath:zg,itemPath:Wg,arrayName:Hg,quarantineName:Gg}),jg.unquarantineArrayProp({properties:e,arrayPath:zg,itemPath:Vg,arrayName:Hg,quarantineName:Ug}),jg.unquarantineArrayProp({properties:e,arrayPath:zg,itemPath:Yg,arrayName:Hg,quarantineName:Kg})})(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=>Zg(e,t,n))),measures:a.filter((e=>e>=o)).map((e=>Zg(t,e,n,o)))}})(l,s,u,c);return Array.isArray(c)&&c.length>0&&(Lg(a,"qProperty.qHyperCubeDef.qDimensions",d),Lg(a,"qProperty.qHyperCubeDef.qMeasures",p)),i&&(Lg(a,"qProperty.totals.show",!1),Lg(a,"qProperty.usePagination",!0)),jg.conditionalShow.unquarantine(a.qProperty),a};var eb={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};function tb(e,t){let r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)}function rb(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 nb(e){return e>0?0:1}function ob(e){return e.translator.get("Visualizations.Descriptions.Column")}function ib(e){return{measures:{min:nb,max:1e3,description:()=>ob(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;tb(n,r.getDimensions().length+r.getMeasures().length-1)},remove(e,t,r,n){const{qColumnOrder:o}=r.hcProperties;rb(o,(r.hcProperties.qDimensions?r.hcProperties.qDimensions.length:0)+n)}},dimensions:{min:nb,max:1e3,description:()=>ob(e),add(e,t,r){const{qColumnOrder:n}=r.hcProperties;return tb(n,r.getDimensions().length-1),e},remove(e,t,r,n){if(null!=e&&e.isAlternative)return;const{qColumnOrder:o}=r.hcProperties;rb(o,n)}}}}var ab,lb={};ab=lb,(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},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:()=>_e});var o=r(909),i=r.n(o);const a=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var l=a[i];return a[i]=r,{updated:r,previous:l}}return delete a[i],!1},l=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},s={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var u="".concat(" ","(").concat(" "),c="".concat(" ",")").concat(" ");function d(e){return u+e+c}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],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 f(e){return!(!e.fullAccumulation&&!e.fullRange)}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function h(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function g(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function b(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function v(e){return void 0===e?")":", 0, ".concat(e,")")}function y(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function x(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(y("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(y("MaxString(".concat(t,")")),")'\"}")}function S(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!r.showExcludedValues)return"";if(n&&1===n.length){var u=x(p(n[0],o),g(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(n&&2===n.length){var c=p(n[0],o),d=p(n[1],o),f=g(0),m=g(1),h=x(c,f),b=x(d,m);return"".concat(a,"({1<").concat(h,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function E(e){return"".concat(e,"(")}function C(e){var t=e.properties,r=e.layout;return l(t,"qHyperCubeDef.qDimensions",l(r,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:f,getNumDimensions:C,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=d(h(t));if(!r.showExcludedValues)return a;var l=S({modifier:r,dimensions:n,dimensionAndFieldList:o}),s=i?"":", 0";if(n&&1===n.length){var u=g(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(n&&2===n.length){var c=g(0),p=g(1);return"If(Count(".concat(c,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}return a},getRowNoComp:m,getNumStepComp:function(e,t){if(!f(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return m(e,t)},getAboveCompPrefix:b,getAboveCompSuffix:v,getAboveComp:function(e,t,r,n){return b(e,t)+r+v(n)},getFunctionPrefix:E,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return E(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:S,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout;return 0===function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t)&&2===C({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=g(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:h,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(u);if(-1!==r){var n=t.indexOf(c);if(-1!==n)return t.substring(r+u.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach((function(r){void 0===e[r]&&(e[r]=t[r])}))},isNumeric:p,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var l=C({properties:t,layout:r});return l>=o&&l<=a},getExpressionWithMarkers:d,canExtract:function(e){var t=e.indexOf(u),r=e.indexOf(c);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:g,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find((function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null}));o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=s.OPTIONS.find((function(t){return t.value===e.decomposition}));return t?s.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(s.EXPRESSIONS).find((function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return s.EXPRESSIONS[r]&&n.includes(s.EXPRESSIONS[r].toLowerCase())&&(t=r),r})),t}};function R(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function A(e){return A="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},A(e)}var I=i().bind(null,!0),M={},P=Array.isArray;function L(e){return null!=e&&!Array.isArray(e)&&"object"===A(e)}function D(e){return void 0===e}function k(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function O(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach((function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=D(e[r||t])?i:e[t],e=e[r||t]}})),e}function T(e,t){var r=!0;if(L(e)&&L(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((function(n){T(e[n],t[n])||(r=!1)})),r);if(P(e)&&P(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!T(e[n],t[n]))return!1;return!0}return e===t}M.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?I({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(r,"/").concat(o);T(i,a)||k(t,o)||(D(a)?n.push({op:"add",path:l,value:i}):L(i)&&L(a)?n=n.concat(M.generate(a,i,l)):P(i)&&P(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&D(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(T(t,o))return n;if(!D(t[0])&&D(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(M.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){D(t[o])&&!k(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})})),n},M.apply=function(e,t){t.forEach((function(t){var r,n,o=O(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(P(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(P(a)&&P(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return R(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return R(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?R(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(L(a)&&L(t.value))r=a,Object.keys(r).forEach((function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!k(r,e)&&delete r[e]})),I(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=O(e,t.from);P(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(P(o)?o.splice(+i,1):delete o[i])}))},M.clone=function(e){return I({},e)},M.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},M.updateObject=function(e,t){Object.keys(e).length?M.apply(e,M.generate(e,t)):I(e,t)};const _=M,q=function(e,t,r){if(!e)return Promise.resolve();var n=_.generate(t,r);return i()(!0,t,r),n&&n.length?(n=n.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(n,!0)):Promise.resolve()};var N="accumulation";function F(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===N)return r[n]}function j(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===N)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const H={translationKey:"properties.modifier.accumulation",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var s=i;void 0===s&&(s=w.getNumDimensions({properties:n,layout:o}));var u=l(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=w.getNumStepComp(r,s),p=w.getAboveComp(r,s,c,d),f=w.getRangeComp("RangeSum",p);if(w.needDimension({modifier:r,properties:n,layout:o})){var m=w.getDimComp(u,1),h=w.getDimComp(u,0),g=w.getAggrComp(f,m,h);f=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,z)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(j(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(j(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(j(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(j(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=F(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=F(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(j(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(N))return!1;var i=F(t,e);return i&&!i.disabled}}}};var $="movingAverage";function B(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===$)return r[n]}function W(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===$)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var G={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,i=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!n)return r;var u=a;void 0===u&&(u=w.getNumDimensions({properties:o,layout:i}));var c=l(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=w.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=w.getNumStepComp(n,u),m=w.getAboveComp(n,u,p,f);if(n.nullSuppression)t=w.getRangeComp("RangeAvg",m);else{var h=w.getRangeComp("RangeSum",m),g=function(e,t){var r=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,u);t="".concat(h," / ").concat(g)}var b=t;if(w.needDimension({modifier:n,properties:o,layout:i})){var v=w.getDimComp(c,1),y=w.getDimComp(c,0),x=w.getAggrComp(b,v,y);b=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,G)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(W(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map((function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}}))},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(W(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(W(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(W(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=B(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=B(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(W(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(W(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf($))return!1;var i=B(t,e);return i&&!i.disabled}}}};var U="timeSeriesDecomposition";function Y(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===U)return r[n]}function K(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===U)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var X={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const J={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?w.generateTSDExpression(r,t,n):t},extractInputExpression:w.extractInputExpression,initModifier:function(e,t){w.initModifier(e,X),""===e.decomposition&&t&&(e.decomposition=w.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(K(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:s.OPTIONS},steps:{refFn:function(t){return"".concat(K(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=Y(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=Y(t,e);return r&&!r.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(U))return!1;var i=Y(t,e);return i&&!i.disabled}}}};var Z="difference";function Q(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===Z)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var ee={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const te={translationKey:"properties.modifier.difference",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var s=i;void 0===s&&(s=w.getNumDimensions({properties:n,layout:o}));var u=l(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=w.getAboveComp(r,s,c),p="".concat(c," - ").concat(d);if(w.needDimension({modifier:r,properties:n,layout:o})){var f=w.getDimComp(u,1),m=w.getDimComp(u,0),h=w.getAggrComp(p,f,m);p=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:u,dimensionAndFieldList:a,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(ee).forEach((function(t){void 0===e[t]&&(e[t]=ee[t])}))},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Q(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(Q(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(Q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(Z))return!1;var i=function(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===Z)return r[n]}(t,e);return i&&!i.disabled}}}},re=0,ne=1,oe=2,ie=0,ae=1,le=2;var se="normalization";function ue(e,t){var r=l(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===se)return r[n]}function ce(e,t){var r=function(e,t){var r=l(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===se)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function de(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var pe={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:le,selectionScope:oe};function fe(e){return 2===e?"{1}":""}function me(e,t,r){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function he(e,t){return 0===e&&t>1||2===e?"Total":""}function ge(e,t,r){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(r),">"):""}const be={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,i=e.numDimensions,a=e.dimensionAndFieldList;if(!r)return t;var s=i;void 0===s&&(s=w.getNumDimensions({properties:n,layout:o}));var u=l(n,"qHyperCubeDef.qDimensions",[]),c=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:u,dimensionAndFieldList:a}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var l=fe(t),s=me(t,r,n),u=""===l&&""===s?"":l||s,c=he(o,i),d=ge(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=w.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,r.field,r.value,p,s,r.primaryDimension)},initModifier:function(e){Object.keys(pe).forEach((function(t){void 0===e[t]&&(e[t]=pe[t])}))},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ce(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:oe,options:function(r){return function(e,t,r){var n=[{value:re,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:ne,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:oe,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=de(t,0);t.splice(r,1)}return t}(ue(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ce(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 ue(t,e).selectionScope===ne}},value:{refFn:function(t){return"".concat(ce(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return ue(t,e).selectionScope===ne}},dimensionalScope:{refFn:function(t){return"".concat(ce(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:le,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:ie,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:ae,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:le,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=de(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=de(t,1);t.splice(r,1)}return t}(ue(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ce(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(ue(t,e).dimensionalScope||0)===ie&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(se))return!1;var i=ue(t,e);return i&&!i.disabled}}},getDisregardSelectionComp:fe,getFieldSelectionComp:me,getTotalComp:he,getSelectedDimComp:ge};var ve="library id deleted",ye="qDef.qDef",xe="qDef.base.qDef",Se="qLibraryId",Ee="qDef.base.qLibraryId",Ce="qDef.qLabel",we="qDef.qLabelExpression",Re="qDef.base.qLabel",Ae="qDef.base.qLabelExpression",Ie="qDef.qAggrFunc",Me="qDef.base.qAggrFunc",Pe="qDef.base";const Le={getExpression:function(e){var t=l(e,xe);return void 0!==t?t:l(e,ye)},getExpressionRef:function(e){return void 0!==l(e,xe)?xe:ye},getLibraryIdRef:function(e){return l(e,Ee)?Ee:Se},getLibraryId:function(e){return l(e,Ee)||l(e,Se)},getLabelRef:function(e){return l(e,Pe)?Re:Ce},getLabelExpressionRef:function(e){return l(e,Pe)?Ae:we}};var De={initBase:function(e,t){(t||De.isValid(e))&&(a(e,xe,l(e,ye)),a(e,Ee,l(e,Se)),a(e,Re,l(e,Ce)),a(e,Ae,l(e,we)))},restoreBase:function(e){De.isValid(e)&&(a(e,ye,l(e,xe)),a(e,Se,l(e,Ee)),a(e,Ce,l(e,Re)),a(e,we,l(e,Ae)),l(e,Ie)&&l(e,Me)&&a(e,Ie,l(e,Me)),delete e.qDef.base)},isValid:function(e){var t=l(e,xe),r=l(e,Ee);return void 0!==t||void 0!==r}};const ke=De;function Oe(e){return Oe="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},Oe(e)}var Te={accumulation:H,movingAverage:V,difference:te,normalization:be,timeSeriesDecomposition:J};const _e={modifiers:Te,apply:Ne,applyModifiers:Fe,cleanUpMeasure:je,destroy:function(e){e&&qe[e.id]&&qe[e.id].masterItemSubscriber&&(qe[e.id].masterItemSubscriber&&qe[e.id].masterItemSubscriber.unsubscribe(),delete qe[e.id])},hasActiveModifiers:ze,getActiveModifier:He,initBase:ke.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Te[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return Te[e]&&Te[e].isApplicable({properties:r,layout:n})}))},measureBase:Le,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=We(e);Je({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||rt({modifiers:t,properties:r,layout:n}))})),o&&!i},ifEnableTotalsFunction:$e};var qe={};function Ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.model,r=e.properties,n=e.isSnapshot,o=void 0!==n&&n,a=e.masterItem,s=!1;qe[t.id]=qe[t.id]||{isFirstTime:!0};var u=qe[t.id].isFirstTime;if(qe[t.id].isFirstTime=!1,r&&"object"===Oe(r))return Fe({model:t,properties:r});var c=t?t.layout:void 0,d=l(c,"qSelectionInfo.qInSelections");if(o||d)return Promise.resolve(s);var p=l(c,"qHyperCube.qMeasureInfo"),f=qe[t.id].lastReloadTime;if(qe[t.id].lastReloadTime=l(t,"app.layout.qLastReloadTime"),ze({measures:p,layout:c})){var m=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return l(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Xe({measure:e,properties:r,layout:n})}))}({measures:t,layout:r})}({measures:p,layout:c,model:t,lastReloadTime:f});return m||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some((function(e){return function(e){var t=e.measure,r=e.layout;return Je({modifiers:We(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})})))}({measures:p,layout:c,masterItem:a,isFirstTime:u})?t.getEffectiveProperties().then((function(e){var r=i()(!0,{},e);Ve(r);var n=nt(r);return Ze({model:t}).then((function(o){return Qe({libraryIds:n,model:t}).then((function(n){return m&&function(e){var t=e.properties;Be(t).forEach((function(e){return function(e){var t=e.measure;if(Xe({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach((function(e){if("object"===Oe(e)&&!e.disabled){if(r++,"object"!==Oe(Te[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=Te[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ye(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(n)&&(t.qDef.base.qDef=n)}}))}}({measure:e,properties:t})}))}({properties:r}),Fe({model:t,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:a,libraryItemsProps:n,dimensionAndFieldList:o})}))})).catch((function(){return Promise.resolve(s)}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Oe(e.base)}))}(p)?t.getEffectiveProperties().then((function(e){return function(e){var t=e.model,r=e.properties,n=nt(r);return ot({model:t,libraryIds:n}).then((function(){var e=i()(!0,{},r);return Be(r).forEach((function(e){return je(e)})),tt({oldProperties:e,newProperties:r,model:t})}))}({model:t,properties:e})})):Promise.resolve(s)}function Fe(e){var t=e.model,r=e.oldProperties,n=e.properties,o=e.measures,a=e.runUpdateIfChange,s=void 0!==a&&a,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?i()(!0,{},n):n),Ve(n);var p=nt(n);return ot({model:t,libraryIds:p,masterItem:u}).then((function(){return function(e){var t=e.measures,r=e.properties,n=e.model,o=e.libraryItemsProps,a=e.dimensionAndFieldList;if(t||(t=Be(r)),!t.length)return Promise.resolve();if(!o&&!ze({measures:t,properties:r}))return t.forEach((function(e){return je(e)})),Promise.resolve();var s=o?void 0:nt(r);return Ze({model:n,dimensionAndFieldList:a}).then((function(e){return Qe({libraryIds:s,model:n,libraryItemsProps:o}).then((function(n){t.forEach((function(t){var o=t.qDef.modifiers;n&&Je({modifiers:o,properties:r})?(function(e){var t=e.measure,r=e.properties,n=e.libraryItemsProps,o=e.dimensionAndFieldList,a=0;ke.isValid(t)||ke.initBase(t,!0);var s=t.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Oe(e)&&!e.disabled){if(a++,"object"!==Oe(Te[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(a>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Te[e.type].initModifier(e,t);var s=t.qLibraryId||c&&c.qLibraryId;s?function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Te[r.type].generateExpression({expression:l,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=s,t.qDef.qDef=r.outputExpression,(t.qDef.qLabel||a.qMeasure.qLabel)&&(t.qDef.qLabel=a.qMeasure.qLabel),(t.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(t.qDef.qLabelExpression=a.qMeasure.qLabelExpression),t.qDef.quarantine&&t.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(t.qDef.qNumFormat=a.qMeasure.qNumFormat,t.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete t.qLibraryId,t.qDef.coloring=a.qMeasure.coloring,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,libraryId:s,properties:r,libraryItemsProps:n,dimensionAndFieldList:o}):function(e){var t=e.measure,r=e.modifier,n=e.properties,o=e.dimensionAndFieldList;"function"==typeof Te[r.type].updateModifier&&Te[r.type].updateModifier(r,n.qHyperCubeDef);var a=Le.getExpression(t),l=""===a?a:Te[r.type].generateExpression({expression:a,modifier:r,properties:n,dimensionAndFieldList:o});r.outputExpression=l,t.qDef.qDef=r.outputExpression,t.qDef.base.qLabelExpression?t.qDef.qLabelExpression=t.qDef.base.qLabelExpression:t.qDef.qLabel=t.qDef.base.qLabel||a,r.base=i()(!0,{},t.qDef.base)}({measure:t,modifier:e,properties:r,dimensionAndFieldList:o}),function(e){var t=l(e,"qDef.qAggrFunc");"Expr"!==t||$e(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&$e(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(t)}}))}({measure:t,properties:r,libraryItemsProps:n,dimensionAndFieldList:e}),Ue(t)):je(t)}))}))}))}({measures:o,properties:n,model:t,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?tt({oldProperties:r,newProperties:n,model:t}):Promise.resolve(!1)}))})).catch((function(){return Promise.resolve(!1)}))}function je(e){!function(e){var t=We(e);return Array.isArray(t)&&t.some((function(e){return"object"===Oe(e)&&!e.disabled&&!Te[e.type]}))}(e)?ke.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Ue(e)}function ze(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Je({modifiers:We(e),properties:r,layout:n})}))}function He(e){var t=We(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(Te[n.type]&&!n.disabled)return n}}function $e(e){var t=He(e);return!t||Te[t.type].enableTotalsFunction(e)}function Be(e){return l(e,"qHyperCubeDef.qMeasures",[]).concat(l(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function We(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function Ge(e){return l(e,"outputExpression.qValueExpression.qExpr")||l(e,"outputExpression")}function Ve(e){Be(e).forEach((function(e){return function(e){var t=He(e);t&&(void 0!==t.outputExpression&&Ge(t)!==e.qDef.qDef?delete e.qDef.base:!ke.isValid(e)&&t.base&&(e.qDef.base=i()(!0,{},t.base)))}(e)}))}function Ue(e){var t=We(e);Array.isArray(t)&&t.forEach((function(t){"object"===Oe(t)&&(t.disabled||!Te[t.type]&&Ge(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function Ye(e){return e.base||e.qDef&&e.qDef.base}function Ke(e){var t=Ye(e);return e.qLibraryId||t&&t.qLibraryId}function Xe(e){var t=e.measure,r=e.properties,n=e.layout;return!Ke(t)&&Je({modifiers:We(t),properties:r,layout:n})}function Je(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Oe(e)||e.disabled||!Te[e.type])&&(void 0===o[e.type]&&(o[e.type]=Te[e.type].isApplicable({properties:r,layout:n})),o[e.type])}))}function Ze(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 Qe(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})).catch((function(){return null}))}function et(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function tt(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(l(t,"qHyperCubeDef.qMeasures"),et)!==JSON.stringify(l(r,"qHyperCubeDef.qMeasures"),et)||JSON.stringify(l(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),et)!==JSON.stringify(l(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),et);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&l(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):q(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then((function(){return o})):Promise.resolve(o)}function rt(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Oe(e)&&!e.disabled&&Te[e.type]&&Te[e.type].needDimension({modifier:e,properties:r,layout:n})}))}function nt(e){var t=Be(e),r=[],n=[],o=!1;return t.forEach((function(t){var n=We(t);if(Je({modifiers:n,properties:e})){var i=Ke(t);i&&r.push(i),o=o||rt({modifiers:n,properties:e})}})),l(e,"qHyperCubeDef.qDimensions",[]).forEach((function(e){var t=e.qLibraryId;t&&n.push(t)})),{measureLibraryIds:r,dimensionLibraryIds:n}}function ot(e){var t=e.model,r=e.libraryIds,n=e.masterItem;return!n&&n!==ve&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(qe[t.id].masterItemSubscriber=qe[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},i={},a={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},r=l(e,"qInfo.qType");return r&&a[r]&&a[r].forEach((function(r){t[r]=l(e,r)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(n[t]){var o=s(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function c(){Object.keys(n).forEach((function(e){o[e]||i[e]||(n[e].listener.dispose(),n[e].unbindCloseListnener(),delete n[e])}))}var d=function(e,t){return e.once("closed",t),function(){return e.removeListener("closed",t)}};function p(e,o){return t.app[o](e).then((function(t){n[e]={listener:t.layoutSubscribe(u),unbindCloseListnener:d(t,(function(){return e=t.id,r(ve),delete n[e],void c();var e})),enabled:!1,properties:s(t.layout)}})).catch((function(){}))}return{subscribe:function(e){var r=e.measureLibraryIds,a=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),i={},t.forEach((function(e){i[e]=!0}))}({measureLibraryIds:r,dimensionLibraryIds:a}),c(),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!n[e]&&l.push(p(e,"getMeasure"))})),Object.keys(i).forEach((function(e){i[e]&&!n[e]&&l.push(p(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(n).forEach((function(e){n[e].listener.dispose(),n[e].unbindCloseListnener()})),n={}}}}({model:t,callback:function(e){return Ne({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),qe[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}ab.default=n.default,Object.defineProperty(ab,"__esModule",{value:!0})})();var sb=yt(lb);let ub=function(e){return e.Text="text",e.Link="link",e.Image="image",e.Indicator="indicator",e.MiniChart="miniChart",e}({}),cb=function(e){return e.Attribute="attribute",e.Dimension="dimension",e.Measure="measure",e}({});const db=e=>{switch(null==e?void 0:e.type){case"url":return ub.Link;case"image":return ub.Image;case"indicator":return ub.Indicator;case"miniChart":return ub.MiniChart;default:return ub.Text}},pb=({args:e,isIndentModeEnabled:t,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:r,isImagesSupportedInIndentMode:n}={}})=>!e.properties.qHyperCubeDef.qIndentMode||(!(!r&&!n)||!t),fb=({isImagesEnabled:e,isIndentModeEnabled:t,supportedFeaturesInIndentMode:r})=>{const{isLinksSupportedInIndentMode:n,isImagesSupportedInIndentMode:o}=null!=r?r:{};return{uses:"dimensionRepresentationItems.representationType",show:(e,r,i)=>pb({args:i,isIndentModeEnabled:t,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:n,isImagesSupportedInIndentMode:o}}),options(t,r,i){const{qIndentMode:a}=i.properties.qHyperCubeDef,l=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!a||a&&n)&&l.push({value:"url",translation:"Object.Table.Representation.Link"}),(!a&&e||a&&o)&&l.push({value:"image",translation:"Object.Table.Representation.Image"}),l}}},mb=(e,t)=>({representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition",show:(r,n,o)=>db(r.qDef.representation)===ub.Link&&pb({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel",show:(r,n,o)=>{var i;return db(r.qDef.representation)===ub.Link&&(null===(i=r.qDef.representation)||void 0===i?void 0:i.urlPosition)===cb.Dimension&&pb({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})}},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl",show:(r,n,o)=>{var i;return db(r.qDef.representation)===ub.Link&&(null===(i=r.qDef.representation)||void 0===i?void 0:i.urlPosition)===cb.Attribute&&pb({args:o,isIndentModeEnabled:e,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:t}})}}}),hb=(e,t,r)=>{if(e||r)return{representationImage:{uses:"dimensionRepresentationItems.representationImage",show:(e,n,o)=>db(e.qDef.representation)===ub.Image&&pb({args:o,isIndentModeEnabled:t,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:r}}),items:{imageSize:{options:[{value:"alwaysFit",translation:"properties.backgroundImage.sizeAlwaysFit"},{value:"fitWidth",translation:"properties.backgroundImage.sizeFitWidth"},{value:"fitHeight",translation:"properties.backgroundImage.sizeFitHeight"},{value:"fill",translation:"properties.backgroundImage.sizeStretch"},{value:"originalSize",translation:"properties.backgroundImage.originalSize"}]}}}}},gb=e=>{var t,r;const{anything:n,flags:o}=e,i=o.isEnabled("CLIENT_IM_5975_INDENT_MODE"),a=o.isEnabled("CLIENT_IM_5975_INDENT_MODE_LINKS"),l=o.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES"),s=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:fb({isImagesEnabled:s,isIndentModeEnabled:i,supportedFeaturesInIndentMode:{isLinksSupportedInIndentMode:a,isImagesSupportedInIndentMode:l}}),...mb(i,a),...hb(s,i,l)}},bb=(e,t)=>{var r;const{flags:n,anything:o}=e,i=null==o||null===(r=o.sense)||void 0===r?void 0:r.isUnsupportedFeature,a=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")&&!(null!=i&&i("tableImages"))&&t.some((e=>e===ub.Image)),l=n.isEnabled("CLIENT_IM_5975_INDENT_MODE"),s=n.isEnabled("CLIENT_IM_5975_INDENT_MODE_IMAGES"),u=n.isEnabled("CLIENT_IM_7110_TABLE_MINI_CHART")&&!(null!=i&&i("qMiniChartDef"))&&t.some((e=>e===ub.MiniChart)),c=n.isEnabled("CLIENT_IM_6696_INDICATORS")&&!(null!=i&&i("tableIndicators"))&&t.some((e=>e===ub.Indicator));return{representationType:{uses:"measureRepresentationItems.representationType",show:(e,t,r)=>pb({args:r,isIndentModeEnabled:l,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:s}}),options:(e,t,r)=>(e=>{const{qIndentMode:t}=e.properties.qHyperCubeDef,r=[{value:"text",translation:"Object.Table.Representation.Text"}];return(!t&&a||t&&s)&&r.push({value:"image",translation:"Object.Table.Representation.Image"}),c&&r.push({value:"indicator",translation:"Object.Table.Representation.Indicator"}),u&&r.push({value:"miniChart",translation:"Common.MiniChart"}),r})(r)},representationImage:a||s?{uses:"measureRepresentationItems.representationImage",show:(e,t,r)=>db(e.qDef.representation)===ub.Image&&pb({args:r,isIndentModeEnabled:l,supportedFeaturesInIndentMode:{isImagesSupportedInIndentMode:s}}),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:c?{uses:"measureRepresentationItems.representationIndicator"}:void 0,representationMiniChart:u?{uses:"measureRepresentationItems.representationMiniChart"}:void 0}},vb={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1}},yb={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}},xb=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)=>(!sb.hasActiveModifiers({measures:[e],properties:t.properties})||sb.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"))}},Sb={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:Sh.Auto,translation:"Common.Auto"},{value:Sh.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:Sh.Pixels,translation:"Object.Table.Column.Pixels"},{value:Sh.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:Sh.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)===Sh.Pixels},change(e){e.qDef.columnWidth.pixels=void 0===e.qDef.columnWidth.pixels?e.qDef.columnWidth.pixels:Math.max(1,Math.min(xh.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)===Sh.Percentage},change(e){e.qDef.columnWidth.percentage=void 0===e.qDef.columnWidth.percentage?e.qDef.columnWidth.percentage:Math.max(1,Math.min(xh.PercentageMax,e.qDef.columnWidth.percentage))}}},Eb=()=>({...vb,visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},tableCellStyling:{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.TextStyleExpression",defaultValue:"",id:"textStyleExpression",tid:"tableTextStyleByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageLabel",tid:"ImageLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"imageUrl",tid:"ImageUrlByExpression",show:!1}]},...yb,...Sb}),Cb={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"}},wb=e=>{var t,r;const n=null==e||null===(t=e.anything)||void 0===t||null===(t=t.sense)||void 0===t||null===(r=t.isUnsupportedFeature)||void 0===r?void 0:r.call(t,"modifiers");return{libraryId:{type:"string",component:"library-item",libraryItemType:"measure",ref:"qLibraryId",translation:"Common.Measure",show:e=>{var t;return n?!!e.qLibraryId:!!(e.qLibraryId||null!==(t=e.qDef.base)&&void 0!==t&&t.qLibraryId)}},inlineMeasure:{component:"inline-measure",show:e=>{var t;return n?!e.qLibraryId:!(e.qLibraryId||null!==(t=e.qDef.base)&&void 0!==t&&t.qLibraryId)}},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:xb(e)}},Rb=e=>({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:Cb},presentation:{type:"items",translation:"properties.presentation",items:{...Eb(),...gb(e)}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:wb(e)},presentation:{type:"items",translation:"properties.presentation",items:{...Eb(),...bb(e,[ub.Image,ub.Indicator,ub.MiniChart])}}}}}}),Ab={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}},Ib=e=>{if(e.flags.isEnabled("CLIENT_IM_6997_WORD_WRAP"))return{type:"items",translation:"Object.Table.WrapText",items:[{component:"text",translation:"Object.Table.Multiline"},{ref:"multiline.wrapTextInHeaders",type:"boolean",translation:"Object.Table.Multiline.WrapTextInHeaders",component:"checkbox",defaultValue:!0},{ref:"multiline.wrapTextInCells",type:"boolean",translation:"Object.Table.Multiline.WrapTextInCells",component:"checkbox",defaultValue:!0}]}},Mb=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"))}},Pb=(e,t,r,n)=>({ref:e,translation:t,dualOutput:!0,type:"object",component:"color-picker",width:"auto",disableNone:null!=n&&n,defaultValue(e,t,o){var i;const a=null!==(i=null==n?void 0:n(e,t,o))&&void 0!==i&&i,l=o.theme.current(),s=r(l,a);return{color:"transparent"===s?"none":s}}}),Lb=(e,t=!1)=>{return{value:e,label:t?(r=e,r.charAt(0).toUpperCase()+r.slice(1)):e,groupHeader:!1,disabled:!1,styles:t?{fontFamily:e}:void 0};var r},Db=({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=>Lb(e,!0)))],c=[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0},...ce(n).filter((e=>!s.includes(e))).map((e=>Lb(e,!0)))];return[...u,...c.length>1?c:[]]})(t(a),a,r,n)},defaultValue:(e,r,n)=>t(n.theme.current())}),kb=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],Ob=({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=>Lb(e,!1)))],s=[{value:"DefaultHeader",label:r.get("properties.allFontSizes"),metaText:r.get("properties.default"),groupHeader:!0},...kb.filter((e=>!a.includes(e))).map((e=>Lb(e,!1)))];return[...l,...s.length>1?s:[]]})(t(i),i,r)},defaultValue:(e,r,n)=>t(n.theme.current())}),Tb=({section:e,defaultFontStyle:t,translator:r,flags:n,getThemeValue:o,translation:i,disableNoneCallback:a})=>({component:"panel-section",translation:null!=i?i:`properties.pivot.${e}`,items:{content:{component:"items",ref:"components",key:"theme",items:{fontFamily:Db({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:Ob({ref:`${e}.fontSize`,themeAccessor:t=>{var r;return null!==(r=o(t,e,"fontSize"))&&void 0!==r?r:t.fontSize},translator:r}),fontColor:Pb(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=o(t,e,"color"))&&void 0!==r?r:t.color}))}},background:Pb(`${e}.background`,"properties.background",((t,r)=>{var n;const i=r?Uf.WHITE:Uf.TRANSPARENT;return null!==(n=o(t,e,"backgroundColor"))&&void 0!==n?n:i}),a)}}}}),_b=({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:Pb(`${e}.fontColor`,void 0,(t=>{var r;return null!==(r=n(t,e,"color"))&&void 0!==r?r:t.color}))}},background:Pb(`${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"}))}}}}),qb=e=>{var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},Nb={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:qb,ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show:qb,ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}},Fb=(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}},jb={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}},zb=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"),...jb},border:Pb("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:Uf.BORDER_MEDIUM})),divider:Pb("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:Uf.BORDER_HEAVY}))}}}}),Hb=(e,t,{properties:r})=>"sn-table"===r.visualization&&!0===r.usePagination,$b=({flags:e,translator:t})=>({headerSection:Tb({section:"header",defaultFontStyle:["bold"],translator:t,flags:e,getThemeValue:Fb,disableNoneCallback:Hb}),dimensionValueSection:Tb({section:"dimensionValues",translator:t,flags:e,getThemeValue:Fb}),measureValueSection:Tb({section:"measureValues",translator:t,flags:e,getThemeValue:Fb}),totalRowSection:Tb({section:"totalValues",defaultFontStyle:["bold"],translation:"properties.totals",translator:t,flags:e,getThemeValue:Fb,disableNoneCallback:Hb}),nullValues:_b({section:"nullValues",fallbackBackground:Uf.NULL_VALUE_BACKGROUND,getThemeValue:Fb}),grid:zb(e),hoverEffectSection:Nb}),Bb=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:jb}}}},hoverEffectSection:Nb}),Wb=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")?$b(e):Bb(e)}]}),Gb=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[Wb(e),Mb(e),{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1},Ib(e)]},...Ab}}),Vb={uses:"sorting"},Ub={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},Yb=e=>({type:"items",component:"accordion",items:{data:Rb(e),sorting:Vb,addOns:Ub,settings:Gb(e)}});function Kb(e){var t,r;return{definition:Yb(e),exploration:eb,data:ib(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0,modifiers:null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(r=t.isUnsupportedFeature)&&void 0!==r&&r.call(t,"modifiers")?["accumulation","movingAverage","difference","normalization"]:void 0},importProperties(e,t,r,n){const o={defaultDimension:r.getDefaultDimensionProperties(),defaultMeasure:r.getDefaultMeasureProperties()};return Qg({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o})},exportProperties:(e,t)=>Jg({propertyTree:e,hyperCubePath:t})}}const Xb=(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]),Jb=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},r)=>(e[t]=r,e)),{}),Zb=[];for(let e=0;e<256;++e)Zb.push((e+256).toString(16).slice(1));let Qb;const ev=new Uint8Array(16);function tv(){if(!Qb){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Qb=crypto.getRandomValues.bind(crypto)}return Qb(ev)}var rv={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function nv(e,t,r){if(rv.randomUUID&&!t&&!e)return rv.randomUUID();const n=(e=e||{}).random||(e.rng||tv)();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(Zb[e[t+0]]+Zb[e[t+1]]+Zb[e[t+2]]+Zb[e[t+3]]+"-"+Zb[e[t+4]]+Zb[e[t+5]]+"-"+Zb[e[t+6]]+Zb[e[t+7]]+"-"+Zb[e[t+8]]+Zb[e[t+9]]+"-"+Zb[e[t+10]]+Zb[e[t+11]]+Zb[e[t+12]]+Zb[e[t+13]]+Zb[e[t+14]]+Zb[e[t+15]]).toLowerCase()}(n)}const ov=()=>{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:nv()},iv=({qLibraryId:e,cId:t})=>{var r;return null!==(r=null!=e?e:t)&&void 0!==r?r:ov()},av=e=>"number"==typeof e&&!Number.isNaN(+e),lv=e=>!(!e.qNum&&0!==e.qNum||!av(e.qNum));function sv(e){return sv="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},sv(e)}function uv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cv(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 dv(e,t,r){return t&&cv(e.prototype,t),r&&cv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function pv(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&&mv(e,t)}function fv(e){return fv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fv(e)}function mv(e,t){return mv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mv(e,t)}function hv(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 gv(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=fv(e);if(t){var o=fv(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return hv(this,r)}}function bv(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 vv(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 vv(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 vv(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 yv={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:xv(e),value:xv(t),useEqualSign:r}}(r,o,i))}})),t}};function xv(e){try{return decodeURIComponent(e)}catch(t){return e}}function Sv(e){if(!(this instanceof Sv))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 yv.fromSearchString(t.search)}}})}function Ev(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}Sv.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},Sv.encodeSearchParams=function(e){for(var t,r="",n=0;n<e.length;n++)r+=0===n?"?":"&",r+=Ev((t=e[n]).key),t.value?r+="=".concat(Ev(t.value)):r+=t.useEqualSign?"=":"";return r};var Cv,wv=function(){function e(t){uv(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return dv(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}(),Rv=function(){function e(){uv(this,e)}return dv(e,[{key:"decode",value:function(e){for(var t,r="",n=new wv(e);n.hasNext();)r+=null!=(t=this.decodeCharacter(n))?t:n.next();return r}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),Av=function(e){return e>=0&&e<=1114111},Iv=function(e){return e.match(/[\s]/)},Mv=function(){pv(t,Rv);var e=gv(t);function t(){return uv(this,t),e.apply(this,arguments)}return dv(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())&&!Iv(n));r++){if("NaN"===parseInt(n,16)){e.pushback(n);break}t+=n}var a=parseInt(t,16);return Av(a)?String.fromCharCode(a):"�"}}]),t}(),Pv=function(){function e(t,r){uv(this,e),this._key=t,this._value=r}return dv(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}(),Lv=function(){function e(){uv(this,e)}return dv(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 Pv.newInstanceIfNeeded(e,this._value);var r=this.getNextNode(e.charAt(t));if(!r)return Pv.newInstanceIfNeeded(e,t,this._value);var n=r.getLongestMatch(e,t+1);return n||Pv.newInstanceIfNeeded(e,t,this._value)}}]),e}(),Dv=function(){function e(){uv(this,e),this.clear()}return dv(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 Lv);var r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),kv=function(){var e,t,r,n=[],o=[],i=new Dv;for(e in n["""]="34",n["&"]="38",n["<"]="60",n[">"]="62",n[" "]="160",n["¡"]="161",n["¢"]="162",n["£"]="163",n["¤"]="164",n["¥"]="165",n["¦"]="166",n["§"]="167",n["¨"]="168",n["©"]="169",n["ª"]="170",n["«"]="171",n["¬"]="172",n["­"]="173",n["®"]="174",n["¯"]="175",n["°"]="176",n["±"]="177",n["²"]="178",n["³"]="179",n["´"]="180",n["µ"]="181",n["¶"]="182",n["·"]="183",n["¸"]="184",n["¹"]="185",n["º"]="186",n["»"]="187",n["¼"]="188",n["½"]="189",n["¾"]="190",n["¿"]="191",n["À"]="192",n["Á"]="193",n["Â"]="194",n["Ã"]="195",n["Ä"]="196",n["Å"]="197",n["Æ"]="198",n["Ç"]="199",n["È"]="200",n["É"]="201",n["Ê"]="202",n["Ë"]="203",n["Ì"]="204",n["Í"]="205",n["Î"]="206",n["Ï"]="207",n["Ð"]="208",n["Ñ"]="209",n["Ò"]="210",n["Ó"]="211",n["Ô"]="212",n["Õ"]="213",n["Ö"]="214",n["×"]="215",n["Ø"]="216",n["Ù"]="217",n["Ú"]="218",n["Û"]="219",n["Ü"]="220",n["Ý"]="221",n["Þ"]="222",n["ß"]="223",n["à"]="224",n["á"]="225",n["â"]="226",n["ã"]="227",n["ä"]="228",n["å"]="229",n["æ"]="230",n["ç"]="231",n["è"]="232",n["é"]="233",n["ê"]="234",n["ë"]="235",n["ì"]="236",n["í"]="237",n["î"]="238",n["ï"]="239",n["ð"]="240",n["ñ"]="241",n["ò"]="242",n["ó"]="243",n["ô"]="244",n["õ"]="245",n["ö"]="246",n["÷"]="247",n["ø"]="248",n["ù"]="249",n["ú"]="250",n["û"]="251",n["ü"]="252",n["ý"]="253",n["þ"]="254",n["ÿ"]="255",n["&OElig"]="338",n["&oelig"]="339",n["&Scaron"]="352",n["&scaron"]="353",n["&Yuml"]="376",n["&fnof"]="402",n["&circ"]="710",n["&tilde"]="732",n["&Alpha"]="913",n["&Beta"]="914",n["&Gamma"]="915",n["&Delta"]="916",n["&Epsilon"]="917",n["&Zeta"]="918",n["&Eta"]="919",n["&Theta"]="920",n["&Iota"]="921",n["&Kappa"]="922",n["&Lambda"]="923",n["&Mu"]="924",n["&Nu"]="925",n["&Xi"]="926",n["&Omicron"]="927",n["&Pi"]="928",n["&Rho"]="929",n["&Sigma"]="931",n["&Tau"]="932",n["&Upsilon"]="933",n["&Phi"]="934",n["&Chi"]="935",n["&Psi"]="936",n["&Omega"]="937",n["&alpha"]="945",n["&beta"]="946",n["&gamma"]="947",n["&delta"]="948",n["&epsilon"]="949",n["&zeta"]="950",n["&eta"]="951",n["&theta"]="952",n["&iota"]="953",n["&kappa"]="954",n["&lambda"]="955",n["&mu"]="956",n["&nu"]="957",n["&xi"]="958",n["&omicron"]="959",n["&pi"]="960",n["&rho"]="961",n["&sigmaf"]="962",n["&sigma"]="963",n["&tau"]="964",n["&upsilon"]="965",n["&phi"]="966",n["&chi"]="967",n["&psi"]="968",n["&omega"]="969",n["&thetasym"]="977",n["&upsih"]="978",n["&piv"]="982",n["&ensp"]="8194",n["&emsp"]="8195",n["&thinsp"]="8201",n["&zwnj"]="8204",n["&zwj"]="8205",n["&lrm"]="8206",n["&rlm"]="8207",n["&ndash"]="8211",n["&mdash"]="8212",n["&lsquo"]="8216",n["&rsquo"]="8217",n["&sbquo"]="8218",n["&ldquo"]="8220",n["&rdquo"]="8221",n["&bdquo"]="8222",n["&dagger"]="8224",n["&Dagger"]="8225",n["&bull"]="8226",n["&hellip"]="8230",n["&permil"]="8240",n["&prime"]="8242",n["&Prime"]="8243",n["&lsaquo"]="8249",n["&rsaquo"]="8250",n["&oline"]="8254",n["&frasl"]="8260",n["&euro"]="8364",n["&image"]="8365",n["&weierp"]="8472",n["&real"]="8476",n["&trade"]="8482",n["&alefsym"]="8501",n["&larr"]="8592",n["&uarr"]="8593",n["&rarr"]="8594",n["&darr"]="8595",n["&harr"]="8596",n["&crarr"]="8629",n["&lArr"]="8656",n["&uArr"]="8657",n["&rArr"]="8658",n["&dArr"]="8659",n["&hArr"]="8660",n["&forall"]="8704",n["&part"]="8706",n["&exist"]="8707",n["&empty"]="8709",n["&nabla"]="8711",n["&isin"]="8712",n["¬in"]="8713",n["&ni"]="8715",n["&prod"]="8719",n["&sum"]="8721",n["&minus"]="8722",n["&lowast"]="8727",n["&radic"]="8730",n["&prop"]="8733",n["&infin"]="8734",n["&ang"]="8736",n["&and"]="8743",n["&or"]="8744",n["&cap"]="8745",n["&cup"]="8746",n["&int"]="8747",n["&there4"]="8756",n["&sim"]="8764",n["&cong"]="8773",n["&asymp"]="8776",n["&ne"]="8800",n["&equiv"]="8801",n["&le"]="8804",n["&ge"]="8805",n["&sub"]="8834",n["&sup"]="8835",n["&nsub"]="8836",n["&sube"]="8838",n["&supe"]="8839",n["&oplus"]="8853",n["&otimes"]="8855",n["&perp"]="8869",n["&sdot"]="8901",n["&lceil"]="8968",n["&rceil"]="8969",n["&lfloor"]="8970",n["&rfloor"]="8971",n["&lang"]="9001",n["&rang"]="9002",n["&loz"]="9674",n["&spades"]="9824",n["&clubs"]="9827",n["&hearts"]="9829",n["&diams"]="9830",n)"function"!=typeof n[e]&&n.hasOwnProperty(e)&&(o[n[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(r=o[t].toLowerCase().substr(1),i.put(r,String.fromCharCode(t)));return i}(),Ov=function(){pv(t,Rv);var e=gv(t);function t(){return uv(this,t),e.apply(this,arguments)}return dv(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,kv.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();var i=kv.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,16);return!Number.isNaN(+n)&&Av(n)?String.fromCharCode(n):null}},{key:"_parseNumber",value:function(e){for(var t,r="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}var n=parseInt(r,10);return!Number.isNaN(+n)&&Av(n)?String.fromCharCode(n):null}}]),t}(),Tv=function(){pv(t,Rv);var e=gv(t);function t(){return uv(this,t),e.apply(this,arguments)}return dv(t,[{key:"decodeCharacter",value:function(e){e.mark();var t,r,n,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",r=0;r<2;r++)null!=(n=e.nextHex())&&(t+=n);return 2===t.length&&(o=parseInt(t,16),Av(o))?String.fromCharCode(o):(e.reset(),null)}}]),t}(),_v=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(Cv=document.createElement("div"));var qv=Array.prototype.indexOf,Nv=[",",".","_"," "],Fv=[",",".","-","_"," "],jv={width:["%"],height:["%"]},zv={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},Hv={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":zv.image,"background-color":zv.color,"border-color":zv.color,"border-image":zv.image,color:zv.color,icon:zv.image,"list-style-image":zv.image,"outline-color":zv.color},$v={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function Bv(e,t,r){var n;if(t){if(qv)return qv.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 Wv(e){if(null==e)return"";var t,r=document.createTextNode(e);return Cv.appendChild(r),t=Cv.innerHTML,Cv.removeChild(r),t}function Gv(e,t,r){var n,o,i,a,l,s,u,c,d;if(e=Uv(e).toLowerCase(),t=Uv(t),Bv(e,$v.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<$v.attr_val;i++)if(t.toLowerCase().match($v.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((n=jv[e])||(n=Fv),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]/)&&Bv(u,n)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return r||(o+='"'),o}function Vv(e,t,r){var n,o,i,a,l,s,u,c,d,p;if(e=Uv(e).toLowerCase(),t=Uv(t),Bv(e,$v.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(n=0;n<$v.css_val.length;n++)if(t.toLowerCase().indexOf($v.css_val[n])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=Hv[e])||(o=zv.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]/)&&Bv(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function Uv(e,t){var r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;for(var l=[new Ov,new Tv,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 Yv=[],Kv=0;Kv<255;Kv++)Yv[Kv]=Kv>=48&&Kv<=57||Kv>=65&&Kv<=90||Kv>=97&&Kv<=122?null:Kv.toString(16);var Xv=function(e){return Wv(e.unsafe)},Jv=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]=Vv(t,r[t],!0),i+=Vv(t,r[t],!0),o[t]=n[t]);return e.map?o:i},Zv=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]=Gv(i,t[i],!0),o+=Gv(i,t[i],!0),n[i]=r[i]);return e.map?n:o};function Qv(e,t){throw new Error(t)}var ey={canonicalize:Uv,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===sv(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?Xv(e):"css"===e.context?(null!=e.map&&"object"!==sv(e.map)&&Qv(this,"Invalid parameter type"),Jv(e)):"attr"===e.context?(null!=e.map&&"object"!==sv(e.map)&&Qv(this,"Invalid parameter type"),Zv(e)):void Qv(this,"Invalid parameter type")},encodeForAttr:Gv,encodeForAttr2:function(e){return Gv("nonsens",e,!0)},encodeForCSS:Vv,encodeForHref:function(e){Uv(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new Sv(e),r=Sv.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),n=t.searchParams,o=(e=r+Sv.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=Nv),l="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),Bv(o,t)>=0||null==Yv[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:Wv,encodeForURL:function(e,t){var r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=Uv(t).toLowerCase():Qv(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=bv(null!==(t=_v.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 ty=(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]},ry=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"}}},ny=({text:e,url:t,imageSize:r,imagePosition:n})=>n&&t&&!t.toLowerCase().includes("javascript:")&&ey.isSafeDataURL(t)?{type:ub.Image,url:t,text:e,imageSize:r,resolvedImagePosition:ry(n)}:{type:ub.Text,url:void 0,text:e},oy=(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)===cb.Attribute||null==r?void 0:r.urlLabel},iy=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:ub.Link,url:ey.encodeForHref(t),text:e}}catch(t){return{type:ub.Text,url:void 0,text:e}}},ay=(e,t,r,n,o,i)=>{var a,l,s,u,c,d;const p=db(t);return p!==ub.Image||!n.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(a=n.anything.sense)&&void 0!==a&&null!==(l=a.isUnsupportedFeature)&&void 0!==l&&l.call(a,"tableImages")?p===ub.Link?((e,t,r)=>{const{urlPosition:n}=null!=t?t:{};if(n===cb.Attribute){var o;const n=oy(null!==(o=r.url)&&void 0!==o?o:-1,e,t),i=e.qText||n||"";return iy({text:i,url:n})}if(n===cb.Dimension){var i;const n=oy(null!==(i=r.urlLabel)&&void 0!==i?i:-1,e,t)||e.qText;return iy({text:n,url:e.qText})}return{type:ub.Text,url:void 0,text:e.qText}})(e,t,r):p!==ub.Indicator||!n.flags.isEnabled("CLIENT_IM_6696_INDICATORS")||null!==(s=n.anything.sense)&&void 0!==s&&null!==(u=s.isUnsupportedFeature)&&void 0!==u&&u.call(s,"tableIndicators")?p!==ub.MiniChart||!n.flags.isEnabled("CLIENT_IM_7110_TABLE_MINI_CHART")||null!==(c=n.anything.sense)&&void 0!==c&&null!==(d=c.isUnsupportedFeature)&&void 0!==d&&d.call(c,"qMiniChartDef")?{type:ub.Text,url:void 0,text:e.qText}:((e,t,r)=>{var n;if(!e.qMiniChart||!t||!r)return{type:ub.Text,text:e.qText};const o="local"===(null==t||null===(n=t.miniChart)||void 0===n||null===(n=n.yAxis)||void 0===n?void 0:n.scale);return{type:ub.MiniChart,text:e.qText,miniChart:{qMatrix:e.qMiniChart.qMatrix,minY:o?e.qMiniChart.qMin:r.qYMin,maxY:o?e.qMiniChart.qMax:r.qYMax}}})(e,t,i):((e,t,r)=>{const{indicator:n}=null!=t?t:{};return{type:ub.Indicator,url:void 0,text:e.qText,indicator:{applySegmentColors:null==n?void 0:n.applySegmentColors,position:null==n?void 0:n.position,showTextValues:null==n?void 0:n.showTextValues},indicatorConditionalColoring:r}})(e,t,o):((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=ty(null!==(s=r.imageUrl)&&void 0!==s?s:-1,e))||void 0===l?void 0:l.qText;return ny({text:t,url:i,imageSize:n,imagePosition:o})}if("label"===i){var u,c,d;const t=e.qText;if(-1===r.imageLabel)return ny({text:a||t||"",url:t,imageSize:n,imagePosition:o});const i=null!==(u=null===(c=ty(null!==(d=r.imageLabel)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return ny({text:i,url:t,imageSize:n,imagePosition:o})}return{type:ub.Text,url:void 0,text:e.qText}})(e,t,r)},ly=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,sy=1e4;function uy(e,t){return[...t].reverse().find((t=>t*e<=sy))||Math.floor(sy/e)}function cy(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 dy(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 py(e,t){const r=e.qHyperCube.qGrandTotalRow[t];return av(null==r?void 0:r.qNum)}function fy(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 my=(e,t)=>"auto"!==t?t:lv(e)?"right":"left";const hy=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=s&&o[t].qGrouping===wh.cyclic,d=t===a[0];let p,f,m="",h=!1,g=-1,b=0,v=[];const{representation:y,conditionalColoring:x}=u;if(s){const e=u;m=e.qGroupFieldDefs[e.qGroupPos],b=e.qGroupPos,v=e.qGroupFallbackTitles,h=e.qLocked,g=n,({qDimensionType:p}=e)}else({qMiniChart:f}=u);const{qFallbackTitle:S,textAlign:E,qAttrExprInfo:C,qSortIndicator:w,qReverseSort:R,qApprMaxGlyphCount:A,columnWidth:I,qLibraryId:M}=u;return{isDim:s,isCyclic:c,isLocked:h,fieldId:m,colIdx:t,qLibraryId:M,pageColIdx:r,qApprMaxGlyphCount:A,qReverseSort:R,columnWidth:I,selectionColIdx:g,isActivelySorted:d,id:iv(u),label:S,groupDimensionPos:b,groupDimensionLabels:v,qAttrExprInfoIDs:C.map((e=>e.id)),qAttrExprInfoIndex:Jb(u),sortDirection:w&&"N"!==w?w:"A",totalInfo:dy(e,s,r,n),...!s&&{isTotalNumeric:py(e,n)},...fy(E,p,s),representation:y,conditionalColoring:s?void 0:x,qMiniChart:f}}(e,t,r,l[t])))};const gy=(e,t)=>{var r;return!!(e.snapshotData||null!==(r=t.viewState)&&void 0!==r&&r.visibleHeight)},by=(e,t)=>{var r;return void 0!==(null===(r=t.viewState)||void 0===r?void 0:r.usePagination)?t.viewState.usePagination:!1!==e.usePagination||gy(e,t)};var vy="$$material";const yy=["values","unit","step"];function xy(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=It(e,yy),i=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>vt({},e,{[t.key]:t.val})),{})})(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 vt({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 Sy={borderRadius:4};function Ey(e,t){return t?ci(e,t,{clone:!1}):e}const Cy={xs:0,sm:600,md:900,lg:1200,xl:1536},wy={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Cy[e]}px)`};function Ry(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const e=n.breakpoints||wy;return t.reduce(((n,o,i)=>(n[e.up(e.keys[i])]=r(t[i]),n)),{})}if("object"==typeof t){const e=n.breakpoints||wy;return Object.keys(t).reduce(((n,o)=>{if(-1!==Object.keys(e.values||Cy).indexOf(o)){n[e.up(o)]=r(t[o],o)}else{const e=o;n[e]=t[e]}return n}),{})}return r(t)}function Ay(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 Iy(e,t,r,n=r){let o;return o="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:Ay(e,r)||n,t&&(o=t(o,n,e)),o}function My(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=Ay(e.theme,n)||{};return Ry(e,i,(e=>{let n=Iy(a,o,e);return e===n&&"string"==typeof e&&(n=Iy(a,o,`${t}${"default"===e?"":qi(e)}`,e)),!1===r?n:{[r]:n}}))};return i.propTypes={},i.filterProps=[t],i}const Py={m:"margin",p:"padding"},Ly={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Dy={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ky=function(e){const t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}((e=>{if(e.length>2){if(!Dy[e])return[e];e=Dy[e]}const[t,r]=e.split(""),n=Py[t],o=Ly[r]||"";return Array.isArray(o)?o.map((e=>n+e)):[n+o]})),Oy=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ty=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function _y(e,t,r,n){var o;const i=null!=(o=Ay(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 qy(e){return _y(e,"spacing",8)}function Ny(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 Fy(e,t,r,n){if(-1===t.indexOf(r))return null;const o=function(e,t){return r=>e.reduce(((e,n)=>(e[n]=Ny(t,r),e)),{})}(ky(r),n);return Ry(e,e[r],o)}function jy(e,t){const r=qy(e.theme);return Object.keys(e).map((n=>Fy(e,t,n,r))).reduce(Ey,{})}function zy(e){return jy(e,Oy)}function Hy(e){return jy(e,Ty)}function $y(...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]?Ey(r,t[n](e)):r),{});return r.propTypes={},r.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),r}function By(e){return"number"!=typeof e?e:`${e}px solid`}function Wy(e,t){return My({prop:e,themeKey:"borders",transform:t})}zy.propTypes={},zy.filterProps=Oy,Hy.propTypes={},Hy.filterProps=Ty;const Gy=Wy("border",By),Vy=Wy("borderTop",By),Uy=Wy("borderRight",By),Yy=Wy("borderBottom",By),Ky=Wy("borderLeft",By),Xy=Wy("borderColor"),Jy=Wy("borderTopColor"),Zy=Wy("borderRightColor"),Qy=Wy("borderBottomColor"),ex=Wy("borderLeftColor"),tx=Wy("outline",By),rx=Wy("outlineColor"),nx=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=_y(e.theme,"shape.borderRadius",4),r=e=>({borderRadius:Ny(t,e)});return Ry(e,e.borderRadius,r)}return null};nx.propTypes={},nx.filterProps=["borderRadius"],$y(Gy,Vy,Uy,Yy,Ky,Xy,Jy,Zy,Qy,ex,nx,tx,rx);const ox=e=>{if(void 0!==e.gap&&null!==e.gap){const t=_y(e.theme,"spacing",8),r=e=>({gap:Ny(t,e)});return Ry(e,e.gap,r)}return null};ox.propTypes={},ox.filterProps=["gap"];const ix=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=_y(e.theme,"spacing",8),r=e=>({columnGap:Ny(t,e)});return Ry(e,e.columnGap,r)}return null};ix.propTypes={},ix.filterProps=["columnGap"];const ax=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=_y(e.theme,"spacing",8),r=e=>({rowGap:Ny(t,e)});return Ry(e,e.rowGap,r)}return null};ax.propTypes={},ax.filterProps=["rowGap"];function lx(e,t){return"grey"===t?t:e}$y(ox,ix,ax,My({prop:"gridColumn"}),My({prop:"gridRow"}),My({prop:"gridAutoFlow"}),My({prop:"gridAutoColumns"}),My({prop:"gridAutoRows"}),My({prop:"gridTemplateColumns"}),My({prop:"gridTemplateRows"}),My({prop:"gridTemplateAreas"}),My({prop:"gridArea"}));function sx(e){return e<=1&&0!==e?100*e+"%":e}$y(My({prop:"color",themeKey:"palette",transform:lx}),My({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:lx}),My({prop:"backgroundColor",themeKey:"palette",transform:lx}));const ux=My({prop:"width",transform:sx}),cx=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])||Cy[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:sx(t)}};return Ry(e,e.maxWidth,t)}return null};cx.filterProps=["maxWidth"];const dx=My({prop:"minWidth",transform:sx}),px=My({prop:"height",transform:sx}),fx=My({prop:"maxHeight",transform:sx}),mx=My({prop:"minHeight",transform:sx});My({prop:"size",cssProperty:"width",transform:sx}),My({prop:"size",cssProperty:"height",transform:sx});$y(ux,cx,dx,px,fx,mx,My({prop:"boxSizing"}));var hx={border:{themeKey:"borders",transform:By},borderTop:{themeKey:"borders",transform:By},borderRight:{themeKey:"borders",transform:By},borderBottom:{themeKey:"borders",transform:By},borderLeft:{themeKey:"borders",transform:By},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:By},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:nx},color:{themeKey:"palette",transform:lx},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:lx},backgroundColor:{themeKey:"palette",transform:lx},p:{style:Hy},pt:{style:Hy},pr:{style:Hy},pb:{style:Hy},pl:{style:Hy},px:{style:Hy},py:{style:Hy},padding:{style:Hy},paddingTop:{style:Hy},paddingRight:{style:Hy},paddingBottom:{style:Hy},paddingLeft:{style:Hy},paddingX:{style:Hy},paddingY:{style:Hy},paddingInline:{style:Hy},paddingInlineStart:{style:Hy},paddingInlineEnd:{style:Hy},paddingBlock:{style:Hy},paddingBlockStart:{style:Hy},paddingBlockEnd:{style:Hy},m:{style:zy},mt:{style:zy},mr:{style:zy},mb:{style:zy},ml:{style:zy},mx:{style:zy},my:{style:zy},margin:{style:zy},marginTop:{style:zy},marginRight:{style:zy},marginBottom:{style:zy},marginLeft:{style:zy},marginX:{style:zy},marginY:{style:zy},marginInline:{style:zy},marginInlineStart:{style:zy},marginInlineEnd:{style:zy},marginBlock:{style:zy},marginBlockStart:{style:zy},marginBlockEnd:{style:zy},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:ox},rowGap:{style:ax},columnGap:{style:ix},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sx},maxWidth:{style:cx},minWidth:{transform:sx},height:{transform:sx},maxHeight:{transform:sx},minHeight:{transform:sx},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function gx(){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=Ay(r,l)||{};if(u)return u(o);return Ry(o,t,(t=>{let r=Iy(c,s,t);return t===r&&"string"==typeof t&&(r=Iy(c,s,`${e}${"default"===t?"":qi(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:hx;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=Ey(s,e(r,o,i,a));else{const e=Ry({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=Ey(s,e):s[r]=t({sx:o,theme:i})}else s=Ey(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 bx=gx();bx.filterProps=["sx"];var vx=bx;function yx(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 xx=["breakpoints","palette","spacing","shape"];function Sx(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:i={}}=e,a=It(e,xx),l=xy(r),s=function(e=8){if(e.mui)return e;const t=qy({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=ci({breakpoints:l,direction:"ltr",components:{},palette:vt({mode:"light"},n),spacing:s,shape:vt({},Sy,i)},a);return u.applyStyles=yx,u=t.reduce(((e,t)=>ci(e,t)),u),u.unstable_sxConfig=vt({},hx,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return vx({sx:e,theme:this})},u}var Ex=Object.freeze({__proto__:null,default:Sx,private_createBreakpoints:xy,unstable_applyStyles:yx});function Cx(e=null){const t=y.useContext(Go);return t&&(r=t,0!==Object.keys(r).length)?t:e;var r}const wx=Sx();const Rx=["sx"];function Ax(e){const{sx:t}=e,r=It(e,Rx),{systemProps:n,otherProps:o}=(e=>{var t,r;const n={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:hx;return Object.keys(e).forEach((t=>{o[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]})),n})(r);let i;return i=Array.isArray(t)?[n,...t]:"function"==typeof t?(...e)=>{const r=t(...e);return si(r)?vt({},n,r):n}:vt({},n,t),vt({},o,{sx:i})}var Ix=Object.freeze({__proto__:null,default:vx,extendSxProp:Ax,unstable_createStyleFunctionSx:gx,unstable_defaultSxConfig:hx});const Mx=["className","component"];function Px(e){if(e.type)return e;if("#"===e.charAt(0))return Px(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(fr(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(fr(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}function Lx(e,t){return e=Px(e),t=function(e,t=0,r=1){return da(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 Dx=y.createContext(null);function kx(){return y.useContext(Dx)}var Ox="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Tx(e){const{children:t,theme:r}=e,n=kx(),o=y.useMemo((()=>{const e=null===n?r:function(e,t){if("function"==typeof t)return t(e);return vt({},e,t)}(n,r);return null!=e&&(e[Ox]=null!==n),e}),[r,n]);return Pl.jsx(Dx.Provider,{value:o,children:t})}const _x=["value"],qx=y.createContext();function Nx(e){let{value:t}=e,r=It(e,_x);return Pl.jsx(qx.Provider,vt({value:null==t||t},r))}const Fx=y.createContext(void 0);function jx({value:e,children:t}){return Pl.jsx(Fx.Provider,{value:e,children:t})}function zx({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?oa(o.defaultProps,n):o.styleOverrides||o.variants?n:oa(o,n)}({props:e,name:t,theme:{components:y.useContext(Fx)}})}const Hx={};function $x(e,t,r,n=!1){return y.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof r){const i=r(o),a=e?vt({},t,{[e]:i}):i;return n?()=>a:a}return vt({},t,e?{[e]:r}:r)}),[e,t,r,n])}function Bx(e){const{children:t,theme:r,themeId:n}=e,o=Cx(Hx),i=kx()||Hx,a=$x(n,o,r),l=$x(n,i,r,!0),s="rtl"===a.direction;return Pl.jsx(Tx,{theme:l,children:Pl.jsx(Go.Provider,{value:a,children:Pl.jsx(Nx,{value:s,children:Pl.jsx(jx,{value:null==a?void 0:a.components,children:t})})})})}var Wx,Gx={},Vx={exports:{}};(Wx=Vx).exports=function(e){return e&&e.__esModule?e:{default:e}},Wx.exports.__esModule=!0,Wx.exports.default=Wx.exports;var Ux=Vx.exports,Yx=xt(mr),Kx=xt(pa),Xx=Ux;Object.defineProperty(Gx,"__esModule",{value:!0});var Jx=Gx.alpha=cS;Gx.blend=function(e,t,r,n=1){const o=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),i=iS(e),a=iS(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return lS({type:"rgb",values:l})},Gx.colorChannel=void 0;var Zx=Gx.darken=dS;Gx.decomposeColor=iS,Gx.emphasize=fS;var Qx=Gx.getContrastRatio=function(e,t){const r=uS(e),n=uS(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)};Gx.getLuminance=uS,Gx.hexToRgb=oS,Gx.hslToRgb=sS;var eS=Gx.lighten=pS;Gx.private_safeAlpha=function(e,t,r){try{return cS(e,t)}catch(t){return e}},Gx.private_safeColorChannel=void 0,Gx.private_safeDarken=function(e,t,r){try{return dS(e,t)}catch(t){return e}},Gx.private_safeEmphasize=function(e,t,r){try{return fS(e,t)}catch(t){return e}},Gx.private_safeLighten=function(e,t,r){try{return pS(e,t)}catch(t){return e}},Gx.recomposeColor=lS,Gx.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=iS(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 tS=Xx(Yx),rS=Xx(Kx);function nS(e,t=0,r=1){return(0,rS.default)(e,t,r)}function oS(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 iS(e){if(e.type)return e;if("#"===e.charAt(0))return iS(oS(e));const t=e.indexOf("("),r=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,tS.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,tS.default)(10,n))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:r,values:o,colorSpace:n}}const aS=e=>{const t=iS(e);return t.values.slice(0,3).map(((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e)).join(" ")};Gx.colorChannel=aS;function lS(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 sS(e){e=iS(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])),lS({type:l,values:s})}function uS(e){let t="hsl"===(e=iS(e)).type||"hsla"===e.type?iS(sS(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 cS(e,t){return e=iS(e),t=nS(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,lS(e)}function dS(e,t){if(e=iS(e),t=nS(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 lS(e)}function pS(e,t){if(e=iS(e),t=nS(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 lS(e)}function fS(e,t=.15){return uS(e)>.5?dS(e,t):pS(e,t)}Gx.private_safeColorChannel=(e,t)=>{try{return aS(e)}catch(t){return e}};var mS={black:"#000",white:"#fff"};var hS={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 gS={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 bS={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 vS={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 yS={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 xS={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 SS={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 ES=["mode","contrastThreshold","tonalOffset"],CS={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:mS.white,default:mS.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}},wS={text:{primary:mS.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:mS.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 RS(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=eS(e.main,o):"dark"===t&&(e.dark=Zx(e.main,i)))}function AS(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=It(e,ES),i=e.primary||function(e="light"){return"dark"===e?{main:yS[200],light:yS[50],dark:yS[400]}:{main:yS[700],light:yS[400],dark:yS[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:gS[200],light:gS[50],dark:gS[400]}:{main:gS[500],light:gS[300],dark:gS[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:bS[500],light:bS[300],dark:bS[700]}:{main:bS[700],light:bS[400],dark:bS[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:xS[400],light:xS[300],dark:xS[700]}:{main:xS[700],light:xS[500],dark:xS[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:SS[400],light:SS[300],dark:SS[700]}:{main:SS[800],light:SS[500],dark:SS[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:vS[400],light:vS[300],dark:vS[700]}:{main:"#ed6c02",light:vS[500],dark:vS[900]}}(t);function d(e){return Qx(e,wS.text.primary)>=r?wS.text.primary:CS.text.primary}const p=({color:e,name:t,mainShade:r=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=vt({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw new Error(fr(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw new Error(fr(12,t?` (${t})`:"",JSON.stringify(e.main)));return RS(e,"light",o,n),RS(e,"dark",i,n),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:wS,light:CS};return ci(vt({common:vt({},mS),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:hS,contrastThreshold:r,getContrastText:d,augmentColor:p,tonalOffset:n},f[t]),o)}const IS=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const MS={textTransform:"uppercase"},PS='"Roboto", "Helvetica", "Arial", sans-serif';function LS(e,t){const r="function"==typeof t?t(e):t,{fontFamily:n=PS,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=r,p=It(r,IS),f=o/14,m=d||(e=>e/u*f+"rem"),h=(e,t,r,o,i)=>{return vt({fontFamily:n,fontWeight:e,fontSize:m(t),lineHeight:r},n===PS?{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,MS),caption:h(a,12,1.66,.4),overline:h(a,12,2.66,1,MS),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ci(vt({htmlFontSize:u,pxToRem:m,fontFamily:n,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function DS(...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 kS=["none",DS(0,2,1,-1,0,1,1,0,0,1,3,0),DS(0,3,1,-2,0,2,2,0,0,1,5,0),DS(0,3,3,-2,0,3,4,0,0,1,8,0),DS(0,2,4,-1,0,4,5,0,0,1,10,0),DS(0,3,5,-1,0,5,8,0,0,1,14,0),DS(0,3,5,-1,0,6,10,0,0,1,18,0),DS(0,4,5,-2,0,7,10,1,0,2,16,1),DS(0,5,5,-3,0,8,10,1,0,3,14,2),DS(0,5,6,-3,0,9,12,1,0,3,16,2),DS(0,6,6,-3,0,10,14,1,0,4,18,3),DS(0,6,7,-4,0,11,15,1,0,4,20,3),DS(0,7,8,-4,0,12,17,2,0,5,22,4),DS(0,7,8,-4,0,13,19,2,0,5,24,4),DS(0,7,9,-4,0,14,21,2,0,5,26,4),DS(0,8,9,-5,0,15,22,2,0,6,28,5),DS(0,8,10,-5,0,16,24,2,0,6,30,5),DS(0,8,11,-5,0,17,26,2,0,6,32,5),DS(0,9,11,-5,0,18,28,2,0,7,34,6),DS(0,9,12,-6,0,19,29,2,0,7,36,6),DS(0,10,13,-6,0,20,31,3,0,8,38,7),DS(0,10,13,-6,0,21,33,3,0,8,40,7),DS(0,10,14,-6,0,22,35,3,0,8,42,7),DS(0,11,14,-7,0,23,36,3,0,9,44,8),DS(0,11,15,-7,0,24,38,3,0,9,46,8)];const OS=["duration","easing","delay"],TS={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)"},_S={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function qS(e){return`${Math.round(e)}ms`}function NS(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function FS(e){const t=vt({},TS,e.easing),r=vt({},_S,e.duration);return vt({getAutoHeightDuration:NS,create:(e=["all"],n={})=>{const{duration:o=r.standard,easing:i=t.easeInOut,delay:a=0}=n;return It(n,OS),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:qS(o)} ${i} ${"string"==typeof a?a:qS(a)}`)).join(",")}},e,{easing:t,duration:r})}var jS={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const zS=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function HS(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:i={}}=e,a=It(e,zS);if(e.vars)throw new Error(fr(18));const l=AS(n),s=Sx(e);let u=ci(s,{mixins:(c=s.breakpoints,d=r,vt({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:kS.slice(),typography:LS(l,i),transitions:FS(o),zIndex:vt({},jS)});var c,d;return u=ci(u,a),u=t.reduce(((e,t)=>ci(e,t)),u),u.unstable_sxConfig=vt({},hx,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return vx({sx:e,theme:this})},u}var $S,BS=HS(),WS={},GS={exports:{}};var VS,US={exports:{}};var YS=xt(li),KS=xt(pi),XS=xt(Ni),JS=xt(_i),ZS=xt(Ex),QS=xt(Ix),eE=Ux;Object.defineProperty(WS,"__esModule",{value:!0});var tE=WS.default=function(e={}){const{themeId:t,defaultTheme:r=fE,rootShouldForwardProp:n=pE,slotShouldForwardProp:o=pE}=e,i=e=>(0,lE.default)((0,rE.default)({},e,{theme:hE((0,rE.default)({},e,{defaultTheme:r,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,oE.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=gE(mE(s))}=a,p=(0,nE.default)(a,cE),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,m=c||!1;let h=pE;"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,oE.default)(e,(0,rE.default)({shouldForwardProp:h,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,iE.isPlainObject)(e)?n=>bE(e,(0,rE.default)({},n,{theme:hE({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=hE((0,rE.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]=bE(r,(0,rE.default)({},e,{theme:n}))})),d(e,i)})),l&&!f&&s.push((e=>{var n;const o=hE((0,rE.default)({},e,{defaultTheme:r,themeId:t}));return bE({variants:null==o||null==(n=o.components)||null==(n=n[l])?void 0:n.variants},(0,rE.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}};WS.shouldForwardProp=pE,WS.systemDefaultTheme=void 0;var rE=eE(($S||($S=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}(GS)),GS.exports)),nE=eE((VS||(VS=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}(US)),US.exports)),oE=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=dE(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}(YS),iE=KS;eE(XS),eE(JS);var aE=eE(ZS),lE=eE(QS);const sE=["ownerState"],uE=["variants"],cE=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function dE(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(dE=function(e){return e?r:t})(e)}function pE(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const fE=WS.systemDefaultTheme=(0,aE.default)(),mE=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function hE({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function gE(e){return e?(t,r)=>r[e]:null}function bE(e,t){let{ownerState:r}=t,n=(0,nE.default)(t,sE);const o="function"==typeof e?e((0,rE.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap((e=>bE(e,(0,rE.default)({ownerState:r},n))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,nE.default)(o,uE);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,rE.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,rE.default)({ownerState:r},n,r)):e.style))})),t}return o}var vE=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var yE=tE({themeId:vy,defaultTheme:BS,rootShouldForwardProp:vE});const xE=["theme"];function SE(e){let{theme:t}=e,r=It(e,xE);const n=t[vy];return Pl.jsx(Bx,vt({},r,{themeId:n?vy:void 0,theme:n||t}))}var EE={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"),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"),P=new RegExp(l+"(right)"+h+b+g,"gi"),I=new RegExp(l+"(left)"+v,"gi"),D=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"),T=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+y,"gi"),_=new RegExp("((?:-color|border-style)\\s*:\\s*)"+f+"(\\s+)"+f+"(\\s+)"+f+"(\\s+)"+f+y,"gi"),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"),H=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+p,"gi"),$=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),B=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),W=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+p+"((?:\\s*,\\s*"+p+"){0,2}\\s*\\))","gi");function V(e,t,r){var n,o;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r}function 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(I,"$1"+e).replace(D,"$1left").replace(x,"right")),r=r.replace(C,"$1"+e).replace(R,"$1ltr").replace(x,"rtl").replace(A,"$1"+e).replace(P,"$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(H,J).replace($,K).replace(B,X).replace(W,X).replace(T,"$1$2$3$8$5$6$7$4$9").replace(_,"$1$2$3$8$5$6$7$4$9").replace(q,V).replace(N,V),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)}(yE,yE.exports);var xE=H(yE.exports),SE="comm",EE="rule",wE="decl",CE=Math.abs,RE=String.fromCharCode;function AE(e){return e.trim()}function PE(e,t,r){return e.replace(t,r)}function IE(e,t,r){return e.indexOf(t,r)}function DE(e,t){return 0|e.charCodeAt(t)}function LE(e,t,r){return e.slice(t,r)}function ME(e){return e.length}function kE(e,t){return t.push(e),e}var OE,TE,_E,qE,NE,FE=1,jE=1,zE=0,HE=0,$E=0,BE="";function WE(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:FE,column:jE,length:a,return:"",siblings:l}}function VE(){return $E=HE>0?DE(BE,--HE):0,jE--,10===$E&&(jE=1,FE--),$E}function GE(){return $E=HE<zE?DE(BE,HE++):0,jE++,10===$E&&(jE=1,FE++),$E}function UE(){return DE(BE,HE)}function YE(){return HE}function KE(e,t){return LE(BE,e,t)}function XE(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 JE(e){return AE(KE(HE-1,ew(91===e?e+2:40===e?e+1:e)))}function ZE(e){for(;($E=UE())&&$E<33;)GE();return XE(e)>2||XE($E)>3?"":" "}function QE(e,t){for(;--t&&GE()&&!($E<48||$E>102||$E>57&&$E<65||$E>70&&$E<97););return KE(e,YE()+(t<6&&32==UE()&&32==GE()))}function ew(e){for(;GE();)switch($E){case e:return HE;case 34:case 39:34!==e&&39!==e&&ew($E);break;case 40:41===e&&ew(e);break;case 92:GE()}return HE}function tw(e,t){for(;GE()&&e+$E!==57&&(e+$E!==84||47!==UE()););return"/*"+KE(t,HE-1)+"*"+RE(47===e?e:GE())}function rw(e){for(;!XE(UE());)GE();return KE(e,HE)}function nw(e){return function(e){return BE="",e}(ow("",null,null,null,[""],e=function(e){return FE=jE=1,zE=ME(BE=e),HE=0,[]}(e),0,[0],e))}function ow(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=GE()){case 40:if(108!=m&&58==DE(w,d-1)){-1!=IE(w+=PE(JE(v),"&","&\f"),"&\f",CE(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:w+=JE(v);break;case 9:case 10:case 13:case 32:w+=ZE(m);break;case 92:w+=QE(YE()-1,7);continue;case 47:switch(UE()){case 42:case 47:kE(aw(tw(GE(),YE()),t,r,s),s),5!=XE(m||1)&&5!=XE(UE()||1)||!ME(w)||" "===LE(w,-1,void 0)||(w+=" ");break;default:w+="/"}break;case 123*h:l[u++]=ME(w)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(w=PE(w,/\f/g,"")),f>0&&(ME(w)-d||0===h&&47===m)&&kE(f>32?lw(w+";",n,r,d-1,s):lw(PE(w," ","")+";",n,r,d-2,s),s);break;case 59:w+=";";default:if(kE(E=iw(w,t,r,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)ow(w,t,E,E,x,i,d,l,S);else switch(99===p&&110===DE(w,3)?100:p){case 100:case 108:case 109:case 115:ow(e,E,E,n&&kE(iw(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,n?x:S);break;default:ow(w,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=b=1,y=w="",d=a;break;case 58:d=1+ME(w),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==VE())continue;switch(w+=RE(v),v*h){case 38:b=c>0?1:(w+="\f",-1);break;case 44:l[u++]=(ME(w)-1)*b,b=1;break;case 64:45===UE()&&(w+=JE(GE())),p=UE(),c=d=ME(y=w+=rw(YE())),v++;break;case 45:45===m&&2==ME(w)&&(h=0)}}return i}function iw(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=LE(e,p+1,p=CE(g=a[h])),x=e;v<m;++v)(x=AE(g>0?f[v]+" "+y:PE(y,/&\f/g,f[v])))&&(s[b++]=x);return WE(e,t,r,0===o?EE:l,s,u,c,d)}function aw(e,t,r,n){return WE(e,t,r,SE,RE($E),LE(e,2,-2),0,n)}function lw(e,t,r,n,o){return WE(e,t,r,wE,LE(e,0,n),LE(e,n+1,-1),n,o)}function sw(e,t,r){switch(e.type){case"@import":case wE:case SE:return e.return=e.return||e.value;case EE:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===SE&&(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),sw);return ME(n)?e.return=e.value+"{"+n+"}":""}function uw(e,t,r,n){if("@keyframes"===e.type||"@supports"===e.type||e.type===EE&&(!e.parent||"@media"===e.parent.type||e.parent.type===EE)){var o=xE.transform(sw(e));e.children=o?nw(o)[0].children:[],e.return=""}}Object.defineProperty(uw,"name",{value:"stylisRTLPlugin"}),function(e){e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive"}(OE||(OE={})),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"}(TE||(TE={})),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"}(_E||(_E={})),function(e){e.FOCUS="focus",e.FOCUS_BUTTON="focusButton",e.BLUR="blur",e.ADD_TAB="addTab",e.REMOVE_TAB="removeTab"}(qE||(qE={})),function(e){e.A="ascending",e.D="descending"}(NE||(NE={}));const cw=[0,0],dw={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"},pw={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",...dw,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)"},fw=12,mw=14,hw=16,gw=24,bw=3,vw=300,yw=400,xw=600,Sw=700,Ew={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Y(pw.GREYSCALE_0,.05),Y(pw.GREEN_PALE,.5),Y(pw.BLUE_PALE,.5),Y(pw.GREEN_PALE,.5),Y(pw.BLUE_PALE,.5),Y(pw.GREEN_PALE,.5),Y(pw.BLUE_PALE,.5);var ww;function Cw(){return Cw=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},Cw.apply(null,arguments)}Y(pw.GREEN_PALE,.5),Y(pw.BLUE_PALE,.5),Y(pw.GREEN_PALE,.5),Y(pw.BLUE_PALE,.5);var Rw,Aw=function(e){return y.createElement("svg",Cw({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),ww||(ww=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Pw(){return Pw=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},Pw.apply(null,arguments)}var Iw=function(e){return y.createElement("svg",Pw({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),Rw||(Rw=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 Dw({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 Lw=(e={})=>x.createElement(Dw,{...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"}))),Mw=(e={})=>x.createElement(Dw,{...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"})))),kw=(e={})=>x.createElement(Dw,{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"})))),Ow=(e={})=>x.createElement(Dw,{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"}))),Tw=({className:e})=>x.createElement(Dw,{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 _w(e){return Nx(e)}var qw=Lo("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Nw=["center","classes","className"];let Fw,jw,zw,Hw,$w=e=>e;const Bw=vn(Fw||(Fw=$w`
|
|
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"),M=new RegExp(l+"(left)"+v,"gi"),P=new RegExp(l+"(right)"+v,"gi"),L=new RegExp(l+"(ltr)"+v,"gi"),D=new RegExp(l+"(rtl)"+v,"gi"),k=new RegExp(l+"([ns]?)e-resize","gi"),O=new RegExp(l+"([ns]?)w-resize","gi"),T=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+p+"(\\s+)"+p+"(\\s+)"+p+"(\\s+)"+p+y,"gi"),_=new RegExp("((?:-color|border-style)\\s*:\\s*)"+f+"(\\s+)"+f+"(\\s+)"+f+"(\\s+)"+f+y,"gi"),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"),H=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+p,"gi"),$=new RegExp("(text-shadow\\s*:\\s*)"+p,"gi"),B=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+p+"(\\s*\\))","gi"),W=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+p+"((?:\\s*,\\s*"+p+"){0,2}\\s*\\))","gi");function G(e,t,r){var n,o;return"%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r}function V(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?V(n)+" / "+V(o):V(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(D,"$1ltr").replace(x,"rtl")),o.transformEdgeInUrl&&(r=r.replace(M,"$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(k,"$1$2"+e).replace(O,"$1$2e-resize").replace(x,"w-resize").replace(F,U).replace(j,K).replace(z,J).replace(H,J).replace($,K).replace(B,X).replace(W,X).replace(T,"$1$2$3$8$5$6$7$4$9").replace(_,"$1$2$3$8$5$6$7$4$9").replace(q,G).replace(N,G),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)}(EE,EE.exports);var CE=yt(EE.exports),wE="comm",RE="rule",AE="decl",IE=Math.abs,ME=String.fromCharCode;function PE(e){return e.trim()}function LE(e,t,r){return e.replace(t,r)}function DE(e,t,r){return e.indexOf(t,r)}function kE(e,t){return 0|e.charCodeAt(t)}function OE(e,t,r){return e.slice(t,r)}function TE(e){return e.length}function _E(e,t){return t.push(e),e}var qE,NE,FE,jE,zE,HE=1,$E=1,BE=0,WE=0,GE=0,VE="";function UE(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:HE,column:$E,length:a,return:"",siblings:l}}function YE(){return GE=WE>0?kE(VE,--WE):0,$E--,10===GE&&($E=1,HE--),GE}function KE(){return GE=WE<BE?kE(VE,WE++):0,$E++,10===GE&&($E=1,HE++),GE}function XE(){return kE(VE,WE)}function JE(){return WE}function ZE(e,t){return OE(VE,e,t)}function QE(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 eC(e){return PE(ZE(WE-1,nC(91===e?e+2:40===e?e+1:e)))}function tC(e){for(;(GE=XE())&&GE<33;)KE();return QE(e)>2||QE(GE)>3?"":" "}function rC(e,t){for(;--t&&KE()&&!(GE<48||GE>102||GE>57&&GE<65||GE>70&&GE<97););return ZE(e,JE()+(t<6&&32==XE()&&32==KE()))}function nC(e){for(;KE();)switch(GE){case e:return WE;case 34:case 39:34!==e&&39!==e&&nC(GE);break;case 40:41===e&&nC(e);break;case 92:KE()}return WE}function oC(e,t){for(;KE()&&e+GE!==57&&(e+GE!==84||47!==XE()););return"/*"+ZE(t,WE-1)+"*"+ME(47===e?e:KE())}function iC(e){for(;!QE(XE());)KE();return ZE(e,WE)}function aC(e){return function(e){return VE="",e}(lC("",null,null,null,[""],e=function(e){return HE=$E=1,BE=TE(VE=e),WE=0,[]}(e),0,[0],e))}function lC(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=KE()){case 40:if(108!=m&&58==kE(C,d-1)){-1!=DE(C+=LE(eC(v),"&","&\f"),"&\f",IE(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:C+=eC(v);break;case 9:case 10:case 13:case 32:C+=tC(m);break;case 92:C+=rC(JE()-1,7);continue;case 47:switch(XE()){case 42:case 47:_E(uC(oC(KE(),JE()),t,r,s),s),5!=QE(m||1)&&5!=QE(XE()||1)||!TE(C)||" "===OE(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*h:l[u++]=TE(C)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(C=LE(C,/\f/g,"")),f>0&&(TE(C)-d||0===h&&47===m)&&_E(f>32?cC(C+";",n,r,d-1,s):cC(LE(C," ","")+";",n,r,d-2,s),s);break;case 59:C+=";";default:if(_E(E=sC(C,t,r,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)lC(C,t,E,E,x,i,d,l,S);else switch(99===p&&110===kE(C,3)?100:p){case 100:case 108:case 109:case 115:lC(e,E,E,n&&_E(sC(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,n?x:S);break;default:lC(C,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=b=1,y=C="",d=a;break;case 58:d=1+TE(C),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==YE())continue;switch(C+=ME(v),v*h){case 38:b=c>0?1:(C+="\f",-1);break;case 44:l[u++]=(TE(C)-1)*b,b=1;break;case 64:45===XE()&&(C+=eC(KE())),p=XE(),c=d=TE(y=C+=iC(JE())),v++;break;case 45:45===m&&2==TE(C)&&(h=0)}}return i}function sC(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=OE(e,p+1,p=IE(g=a[h])),x=e;v<m;++v)(x=PE(g>0?f[v]+" "+y:LE(y,/&\f/g,f[v])))&&(s[b++]=x);return UE(e,t,r,0===o?RE:l,s,u,c,d)}function uC(e,t,r,n){return UE(e,t,r,wE,ME(GE),OE(e,2,-2),0,n)}function cC(e,t,r,n,o){return UE(e,t,r,AE,OE(e,0,n),OE(e,n+1,-1),n,o)}function dC(e,t,r){switch(e.type){case"@import":case AE:case wE:return e.return=e.return||e.value;case RE:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach((function(e){e.type===wE&&(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),dC);return TE(n)?e.return=e.value+"{"+n+"}":""}function pC(e,t,r,n){if("@keyframes"===e.type||"@supports"===e.type||e.type===RE&&(!e.parent||"@media"===e.parent.type||e.parent.type===RE)){var o=CE.transform(dC(e));e.children=o?aC(o)[0].children:[],e.return=""}}Object.defineProperty(pC,"name",{value:"stylisRTLPlugin"}),function(e){e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive"}(qE||(qE={})),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"}(NE||(NE={})),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"}(FE||(FE={})),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 fC=[0,0],mC={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"},hC={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",...mC,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)"},gC=12,bC=14,vC=16,yC=24,xC=3,SC=300,EC=400,CC=600,wC=700,RC={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};At(hC.GREYSCALE_0,.05),At(hC.GREEN_PALE,.5),At(hC.BLUE_PALE,.5),At(hC.GREEN_PALE,.5),At(hC.BLUE_PALE,.5),At(hC.GREEN_PALE,.5),At(hC.BLUE_PALE,.5);var AC;function IC(){return IC=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},IC.apply(null,arguments)}At(hC.GREEN_PALE,.5),At(hC.BLUE_PALE,.5),At(hC.GREEN_PALE,.5),At(hC.BLUE_PALE,.5);var MC,PC=function(e){return y.createElement("svg",IC({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),AC||(AC=y.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function LC(){return LC=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},LC.apply(null,arguments)}var DC=function(e){return y.createElement("svg",LC({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),MC||(MC=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 kC({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 OC=(e={})=>x.createElement(kC,{...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"}))),TC=(e={})=>x.createElement(kC,{...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"})))),_C=(e={})=>x.createElement(kC,{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"})))),qC=(e={})=>x.createElement(kC,{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"}))),NC=({className:e})=>x.createElement(kC,{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 FC(e){return zx(e)}var jC=ca("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const zC=["center","classes","className"];let HC,$C,BC,WC,GC=e=>e;const VC=ti(HC||(HC=GC`
|
|
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
|
-
`)),
|
|
130
|
+
`)),UC=ti($C||($C=GC`
|
|
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
|
-
`)),
|
|
138
|
+
`)),YC=ti(BC||(BC=GC`
|
|
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
|
-
`)),
|
|
150
|
+
`)),KC=yE("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),XC=yE((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=ma(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),f={width:a,height:a,top:-a/2+i,left:-a/2+o},m=ma(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]),Pl.jsx("span",{className:p,style:f,children:Pl.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(WC||(WC=GC`
|
|
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
|
-
`),qw.rippleVisible,Bw,550,(({theme:e})=>e.transitions.easing.easeInOut),qw.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),qw.child,qw.childLeaving,Ww,550,(({theme:e})=>e.transitions.easing.easeInOut),qw.childPulsate,Vw,(({theme:e})=>e.transitions.easing.easeInOut));var Yw=y.forwardRef((function(e,t){const r=_w({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=An(r,Nw),[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=mo(),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,Ki.jsx(Uw,{classes:{ripple:To(o.ripple,qw.ripple),rippleVisible:To(o.rippleVisible,qw.rippleVisible),ripplePulsate:To(o.ripplePulsate,qw.ripplePulsate),child:To(o.child,qw.child),childLeaving:To(o.childLeaving,qw.childLeaving),childPulsate:To(o.childPulsate,qw.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]),Ki.jsx(Gw,Rn({className:To(qw.root,o.root,i),ref:m},a,{children:Ki.jsx(is,{component:null,exit:!0,children:l})}))}));function Kw(e){return Do("MuiButtonBase",e)}var Xw=Lo("MuiButtonBase",["root","disabled","focusVisible"]);const Jw=["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"],Zw=gE("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"},[`&.${Xw.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Qw=y.forwardRef((function(e,t){const r=_w({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:P,tabIndex:I=0,TouchRippleProps:D,touchRippleRef:L,type:M}=r,k=An(r,Jw),O=y.useRef(null),T=y.useRef(null),_=uo(T,L),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=wo(),[z,H]=y.useState(!1);s&&z&&H(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),O.current.focus()}})),[]);const[$,B]=y.useState(!1);y.useEffect((()=>{B(!0)}),[]);const W=$&&!u&&!s;function V(e,t,r=c){return so((n=>{t&&t(n);return!r&&T.current&&T.current[e](n),!0}))}y.useEffect((()=>{z&&d&&!u&&$&&T.current.pulsate()}),[u,d,z,$]);const G=V("start",E),U=V("stop",h),Y=V("stop",g),K=V("stop",C),X=V("stop",(e=>{z&&e.preventDefault(),w&&w(e)})),J=V("start",P),Z=V("stop",R),Q=V("stop",A),ee=V("stop",(e=>{F(e),!1===q.current&&H(!1),f&&f(e)}),!1),te=so((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&(H(!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=so((e=>{d&&!ne.current&&z&&T.current&&" "===e.key&&(ne.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=so((e=>{d&&" "===e.key&&T.current&&z&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.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=uo(t,j,O),ue=Rn({},r,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Ro({root:["root",t&&"disabled",r&&"focusVisible"]},Kw,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Ki.jsxs(Zw,Rn({as:ae,className:To(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:I,type:M},le,k,{children:[i,W?Ki.jsx(Yw,Rn({ref:_,center:o},D)):null]}))}));var eC=Qw;var tC=Lo("MuiBox",["root"]);const rC=FS(),nC=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=En("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(hx),a=y.forwardRef((function(e,a){const l=function(e=Sx){return xx(e)}(r),s=wx(e),{className:u,component:c="div"}=s,d=An(s,Rx);return Ki.jsx(i,Rn({as:c,ref:a,className:To(u,o?o(n):n),theme:t&&l[t]||l},d))}));return a}({themeId:hy,defaultTheme:rC,defaultClassName:tC.root,generateClassName:Po.generate});var oC=nC;var iC=Lo("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var aC=y.createContext({});function lC(e){return Do("MuiListItemIcon",e)}var sC=Lo("MuiListItemIcon",["root","alignItemsFlexStart"]);const uC=["className"],cC=gE("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})=>Rn({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var dC=y.forwardRef((function(e,t){const r=_w({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=An(r,uC),i=Rn({},r,{alignItems:y.useContext(aC).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Ro({root:["root","flex-start"===t&&"alignItemsFlexStart"]},lC,r)})(i);return Ki.jsx(cC,Rn({className:To(a.root,n),ownerState:i,ref:t},o))}));var pC=Lo("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function fC(e){return Do("MuiMenuItem",e)}var mC=Lo("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const hC=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],gC=gE(eC,{shouldForwardProp:e=>hE(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})=>Rn({},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"}},[`&.${mC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Yx(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${mC.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Yx(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${mC.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Yx(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})`:Yx(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${mC.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${mC.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${iC.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${iC.inset}`]:{marginLeft:52},[`& .${pC.root}`]:{marginTop:0,marginBottom:0},[`& .${pC.inset}`]:{paddingLeft:36},[`& .${sC.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Rn({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${sC.root} svg`]:{fontSize:"1.25rem"}}))));var bC=y.forwardRef((function(e,t){const r=_w({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=An(r,hC),f=y.useContext(aC),m=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=y.useRef(null);lo((()=>{n&&h.current&&h.current.focus()}),[n]);const g=Rn({},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 Rn({},a,Ro({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},fC,a))})(r),v=uo(h,t);let x;return r.disabled||(x=void 0!==c?c:-1),Ki.jsx(aC.Provider,{value:m,children:Ki.jsx(gC,Rn({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:To(b.focusVisible,s),className:To(b.root,d)},p,{ownerState:g,classes:b}))})}));var vC=y.createContext();function yC(e){return Do("MuiTable",e)}Lo("MuiTable",["root","stickyHeader"]);const xC=["className","component","padding","size","stickyHeader"],SC=gE("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Rn({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Rn({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),EC="table",wC=y.forwardRef((function(e,t){const r=_w({props:e,name:"MuiTable"}),{className:n,component:o=EC,padding:i="normal",size:a="medium",stickyHeader:l=!1}=r,s=An(r,xC),u=Rn({},r,{component:o,padding:i,size:a,stickyHeader:l}),c=(e=>{const{classes:t,stickyHeader:r}=e;return Ro({root:["root",r&&"stickyHeader"]},yC,t)})(u),d=y.useMemo((()=>({padding:i,size:a,stickyHeader:l})),[i,a,l]);return Ki.jsx(vC.Provider,{value:d,children:Ki.jsx(SC,Rn({as:o,role:o===EC?null:"table",ref:t,className:To(c.root,n),ownerState:u},s))})}));var CC=wC;var RC=y.createContext();function AC(e){return Do("MuiTableBody",e)}Lo("MuiTableBody",["root"]);const PC=["className","component"],IC=gE("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),DC={variant:"body"},LC="tbody";var MC=y.forwardRef((function(e,t){const r=_w({props:e,name:"MuiTableBody"}),{className:n,component:o=LC}=r,i=An(r,PC),a=Rn({},r,{component:o}),l=(e=>{const{classes:t}=e;return Ro({root:["root"]},AC,t)})(a);return Ki.jsx(RC.Provider,{value:DC,children:Ki.jsx(IC,Rn({className:To(l.root,n),as:o,ref:t,role:o===LC?null:"rowgroup",ownerState:a},i))})}));function kC(e){return Do("MuiTableCell",e)}var OC=Lo("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const TC=["align","className","component","padding","scope","size","sortDirection","variant"],_C=gE("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${to(r.size)}`],"normal"!==r.padding&&t[`padding${to(r.padding)}`],"inherit"!==r.align&&t[`align${to(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Rn({},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?Jx(Yx(e.palette.divider,1),.88):Kx(Yx(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",[`&.${OC.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}))),qC=y.forwardRef((function(e,t){const r=_w({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:l,size:s,sortDirection:u,variant:c}=r,d=An(r,TC),p=y.useContext(vC),f=y.useContext(RC),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=Rn({},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 Ro({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${to(n)}`,"normal"!==o&&`padding${to(o)}`,`size${to(i)}`]},kC,t)})(v);let S=null;return u&&(S="asc"===u?"ascending":"descending"),Ki.jsx(_C,Rn({as:h,ref:t,className:To(x.root,o),"aria-sort":S,scope:g,ownerState:v},d))}));var NC=qC;function FC(e){return Do("MuiTableContainer",e)}Lo("MuiTableContainer",["root"]);const jC=["className","component"],zC=gE("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var HC=y.forwardRef((function(e,t){const r=_w({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=An(r,jC),a=Rn({},r,{component:o}),l=(e=>{const{classes:t}=e;return Ro({root:["root"]},FC,t)})(a);return Ki.jsx(zC,Rn({ref:t,as:o,className:To(l.root,n),ownerState:a},i))}));function $C(e){return Do("MuiTableHead",e)}Lo("MuiTableHead",["root"]);const BC=["className","component"],WC=gE("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),VC={variant:"head"},GC="thead";var UC=y.forwardRef((function(e,t){const r=_w({props:e,name:"MuiTableHead"}),{className:n,component:o=GC}=r,i=An(r,BC),a=Rn({},r,{component:o}),l=(e=>{const{classes:t}=e;return Ro({root:["root"]},$C,t)})(a);return Ki.jsx(RC.Provider,{value:VC,children:Ki.jsx(WC,Rn({as:o,className:To(l.root,n),ref:t,role:o===GC?null:"rowgroup",ownerState:a},i))})}));function YC(e){return Do("MuiTableRow",e)}var KC=Lo("MuiTableRow",["root","selected","hover","head","footer"]);const XC=["className","component","hover","selected"],JC=gE("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,[`&.${KC.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${KC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Yx(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}))`:Yx(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),ZC="tr",QC=y.forwardRef((function(e,t){const r=_w({props:e,name:"MuiTableRow"}),{className:n,component:o=ZC,hover:i=!1,selected:a=!1}=r,l=An(r,XC),s=y.useContext(RC),u=Rn({},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 Ro({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},YC,t)})(u);return Ki.jsx(JC,Rn({as:o,ref:t,className:To(c.root,n),role:o===ZC?null:"row",ownerState:u},l))}));var eR=QC,tR=(e={})=>x.createElement(Dw,{...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:pw.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const rR={MuiAccordion:{styleOverrides:{root:{backgroundColor:pw.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:pw.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:x.createElement(Aw,{"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 ${pw.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:pw.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${pw.MISC_FOCUS_BORDER}`,borderRadius:bw,backgroundColor:pw.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 ${pw.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:pw.WHITE,color:pw.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:bw},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${pw.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:pw.GREYSCALE_0_15,backgroundColor:pw.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:pw.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${pw.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:pw.GREEN_PALE},"&:active":{backgroundColor:pw.GREEN_DARK},"&.Mui-focusVisible":{borderColor:pw.GREEN_PALE,boxShadow:`0 0 0 3px ${Px(pw.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:pw.BLUE_PALE},"&:active":{backgroundColor:pw.BLUE_DARK},"&.Mui-focusVisible":{borderColor:pw.BLUE_PALE,boxShadow:`0 0 0 3px ${Px(pw.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:bw,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:pw.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${pw.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:pw.GREYSCALE_0_15,backgroundColor:pw.GREYSCALE_100_60,"&:active":{backgroundColor:pw.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:pw.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${pw.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:pw.PURPLE,"&.Mui-focusVisible":{borderColor:pw.PURPLE,boxShadow:`0 0 0 3px ${Px(pw.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:pw.GREEN,"&.Mui-focusVisible":{borderColor:pw.GREEN,boxShadow:`0 0 0 3px ${Px(pw.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:pw.BLUE,"&.Mui-focusVisible":{borderColor:pw.BLUE,boxShadow:`0 0 0 3px ${Px(pw.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:pw.ORANGE,"&.Mui-focusVisible":{borderColor:pw.ORANGE,boxShadow:`0 0 0 3px ${Px(pw.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:pw.RED,"&.Mui-focusVisible":{borderColor:pw.RED,boxShadow:`0 0 0 3px ${Px(pw.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:pw.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:pw.PURPLE_PALE},"&:active":{backgroundColor:pw.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:pw.PURPLE_PALE,boxShadow:`0 0 0 3px ${Px(pw.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:pw.GREEN_PALE},"&:active":{backgroundColor:pw.GREEN_DARK},"&.Mui-focusVisible":{borderColor:pw.GREEN_PALE,boxShadow:`0 0 0 3px ${Px(pw.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:pw.BLUE_PALE},"&:active":{backgroundColor:pw.BLUE_DARK},"&.Mui-focusVisible":{borderColor:pw.BLUE_PALE,boxShadow:`0 0 0 3px ${Px(pw.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:pw.ORANGE_PALE},"&:active":{backgroundColor:pw.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:pw.ORANGE_PALE,boxShadow:`0 0 0 3px ${Px(pw.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:pw.RED_PALE},"&:active":{backgroundColor:pw.RED_DARK},"&.Mui-focusVisible":{borderColor:pw.RED_PALE,boxShadow:`0 0 0 3px ${Px(pw.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:pw.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:pw.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:bw,boxShadow:`inset 0 0 0 2px ${pw.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:x.createElement(Iw,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:fw,borderRadius:bw,color:pw.TEXT_PRIMARY,backgroundColor:pw.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:pw.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${pw.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:pw.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:pw.GREYSCALE_0_05,color:pw.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:pw.GREEN,borderColor:pw.GREEN},"&.MuiChip-outlinedInfo":{color:pw.BLUE,borderColor:pw.BLUE},"&.MuiChip-outlinedWarning":{color:pw.ORANGE,borderColor:pw.ORANGE},"&.MuiChip-outlinedError":{color:pw.RED,borderColor:pw.RED}},outlined:{border:`solid 1px ${pw.GREYSCALE_0_15}`,backgroundColor:pw.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:bw,boxShadow:"none",backgroundColor:pw.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:pw.GREEN,borderColor:pw.GREEN},outlinedSecondary:{color:pw.BLUE,borderColor:pw.BLUE},label:{fontFamily:Ew.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:x.createElement(Iw,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:x.createElement(Aw,{"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:bw},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:bw,fontSize:mw,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:pw.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${pw.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:pw.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:pw.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:pw.GREYSCALE_0_05}}},popupIndicator:{borderRadius:bw,border:`solid 1px ${pw.GREYSCALE_0_15}`,color:pw.GREYSCALE_0_60,marginRight:0,width:gw,height:gw},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${pw.GREYSCALE_0_15}`},clearIndicator:{borderRadius:bw,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:pw.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:mw}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:fw,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:pw.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:pw.GREYSCALE_25,fontSize:fw,fontFamily:Ew.FONT_FAMILY,fontWeight:xw,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:pw.TEXT_PRIMARY},"&.Mui-error":{color:pw.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:pw.TEXT_SECONDARY,content:"'(optional)'",fontWeight:yw,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:pw.TEXT_SECONDARY,content:"'(required)'",fontWeight:yw,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:mw,lineHeight:"16px",backgroundColor:pw.WHITE,borderRadius:bw,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${pw.GREYSCALE_0_05}`,borderColor:pw.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${pw.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${pw.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${pw.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${pw.RED}`,boxShadow:`0px 0px 0px 1px ${pw.RED}, inset 0 2px 0 0 ${pw.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${pw.GREYSCALE_0_10}`,borderColor:pw.GREYSCALE_0_10,backgroundColor:pw.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:pw.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:pw.GREYSCALE_0_15,borderRadius:bw,boxShadow:`inset 0 2px 0 0 ${pw.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>x.createElement(Aw,{...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:pw.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:pw.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:pw.GREYSCALE_0_03},"&:active":{backgroundColor:pw.GREYSCALE_0_10},"&:focus":{backgroundColor:pw.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${pw.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${pw.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:pw.GREYSCALE_0_30,"&:hover":{backgroundColor:pw.GREYSCALE_0_0,borderColor:pw.GREYSCALE_0_15},"& ~svg":{color:pw.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${pw.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:bw}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:pw.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${pw.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:pw.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:mw,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:fw,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:fw,fontWeight:xw,color:pw.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:xw}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${pw.GREYSCALE_0_15}, 0px 0px 0px 1px ${pw.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:x.createElement(kw,null),checkedIcon:x.createElement(Ow,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:pw.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${pw.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:pw.GREEN_PALE,boxShadow:`0 0 0 3px ${Px(pw.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:pw.BLUE_PALE,boxShadow:`0 0 0 3px ${Px(pw.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:pw.GREYSCALE_0_20}},"&.Mui-disabled":{fill:pw.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:x.createElement(tR,null),checkedIcon:x.createElement(Lw,null),indeterminateIcon:x.createElement(Mw,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:bw,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:pw.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:pw.GREYSCALE_0_55,color:pw.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:pw.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:pw.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:pw.GREYSCALE_0_55,"&:hover":{color:pw.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:pw.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:pw.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:mw,color:pw.TEXT_PRIMARY,lineHeight:"16px",fontWeight:xw},secondary:{fontSize:fw,color:pw.GREYSCALE_45,fontWeight:yw,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:mw,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:mw,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:pw.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:fw,borderBottom:`solid 1px ${pw.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:mw,color:pw.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:pw.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:pw.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:pw.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:pw.RED}}},"&.Mui-focusVisible":{backgroundColor:pw.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:pw.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:pw.GREEN,height:"24px","&.Mui-disabled":{color:pw.GREYSCALE_0_15}},rail:{backgroundColor:pw.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${pw.GREYSCALE_0_05}`,borderRadius:bw,boxShadow:`inset 0px 0px 0px 1px ${pw.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${pw.GREYSCALE_0_05}`,borderRadius:bw},thumb:{height:"16px",width:"16px",borderRadius:bw,backgroundColor:pw.WHITE,boxShadow:`0px 1px 2px 0px ${pw.GREYSCALE_0_15}, 0px 0px 0px 1px ${pw.GREYSCALE_0_05}`,"&:hover":{borderRadius:bw,boxShadow:`0 2px 4px 0 ${pw.GREYSCALE_0_30}, 0 0 0 1px ${pw.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${pw.GREYSCALE_0_15}, 0 0 0 1px ${pw.GREYSCALE_0_06}, 0 0 0 2px ${pw.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${pw.GREYSCALE_0_15}, 0 0 0 1px ${pw.GREYSCALE_0_06}, 0 0 0 2px ${pw.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:pw.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:pw.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:pw.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:pw.GREYSCALE_0_15},markLabel:{color:pw.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:pw.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:pw.WHITE,color:pw.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:pw.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:pw.GREEN_PALE,boxShadow:`0 0 0 3px ${Px(pw.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:pw.BLUE_PALE,boxShadow:`0 0 0 3px ${Px(pw.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:pw.GREYSCALE_0_15,borderRadius:bw},thumb:{height:"16px",width:"16px",borderRadius:bw,backgroundColor:pw.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:mw,fontWeight:xw,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${pw.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${pw.MISC_FOCUS_BORDER}`,backgroundColor:pw.GREYSCALE_0_03,borderRadius:bw},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:pw.GREYSCALE_25,"&.Mui-selected":{color:pw.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:mw,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:bw,"&:hover":{backgroundColor:`${pw.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 ${pw.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${pw.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:bw,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:pw.GREYSCALE_0_05},"&:hover":{backgroundColor:`${pw.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${pw.GREYSCALE_85}`,borderRight:`1px solid ${pw.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:xw,backgroundColor:pw.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:pw.GREYSCALE_98,borderBottom:`1px solid ${pw.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${pw.GREYSCALE_85}`,borderTop:`1px solid ${pw.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:pw.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:pw.GREYSCALE_0_05,"&:hover":{backgroundColor:pw.GREYSCALE_0_03}},"&&:hover":{backgroundColor:pw.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>x.createElement(Tw,{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 ${pw.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:mw,borderRadius:bw,padding:"7px 16px",border:`1px solid ${pw.GREYSCALE_0_15}`,backgroundColor:pw.GREYSCALE_100_60,color:pw.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:pw.GREYSCALE_0_10,border:`1px solid ${pw.GREYSCALE_0_30}`},"&:hover":{backgroundColor:pw.GREYSCALE_0_03,border:`1px solid ${pw.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:pw.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${pw.MISC_FOCUS_BORDER}`,border:`1px solid ${pw.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:pw.GREYSCALE_25,backgroundColor:pw.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:pw.GREYSCALE_0_10,border:`1px solid ${pw.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:fw,height:24,width:24,padding:7},sizeLarge:{fontSize:hw,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:mw,borderRadius:bw}}},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:pw.GREYSCALE_20},tooltip:{backgroundColor:pw.GREYSCALE_20,fontSize:fw,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var nR=e=>rR;const oR={mode:"light",primary:{ultraLight:pw.GREEN_ULTRA_LIGHT,light:pw.GREEN_PALE,main:pw.GREEN,dark:pw.GREEN_DARK,extraDark:pw.GREEN_EXTRA_DARK,contrastText:pw.WHITE},secondary:{ultraLight:pw.BLUE_ULTRA_LIGHT,light:pw.BLUE_PALE,main:pw.BLUE,dark:pw.BLUE_DARK,extraDark:pw.BLUE_EXTRA_DARK,contrastText:pw.WHITE},error:{ultraLight:pw.RED_ULTRA_LIGHT,light:pw.RED_PALE,main:pw.RED,dark:pw.RED_DARK,extraDark:pw.RED_EXTRA_DARK,contrastText:pw.WHITE},warning:{ultraLight:pw.ORANGE_ULTRA_LIGHT,light:pw.ORANGE_PALE,main:pw.ORANGE,dark:pw.ORANGE_DARK,extraDark:pw.ORANGE_EXTRA_DARK,contrastText:pw.WHITE},success:{ultraLight:pw.GREEN_ULTRA_LIGHT,light:pw.GREEN_PALE,main:pw.GREEN,dark:pw.GREEN_DARK,extraDark:pw.GREEN_EXTRA_DARK,contrastText:pw.WHITE},info:{ultraLight:pw.BLUE_ULTRA_LIGHT,light:pw.BLUE_PALE,main:pw.BLUE,dark:pw.BLUE_DARK,extraDark:pw.BLUE_EXTRA_DARK,contrastText:pw.WHITE},text:{primary:pw.TEXT_PRIMARY,secondary:pw.TEXT_SECONDARY,disabled:pw.GREYSCALE_0_30},action:{hover:pw.GREYSCALE_0_03,hoverOpacity:.03,selected:pw.GREYSCALE_0_05,selectedOpacity:.05,focus:pw.MISC_FOCUS_BORDER},amethyst:{ultraLight:pw.WHITE,main:pw.PURPLE,light:pw.PURPLE_PALE,dark:pw.PURPLE_DARK,extraDark:pw.GREYSCALE_0_0,contrastText:pw.WHITE},background:{paper:pw.WHITE,default:pw.GREYSCALE_95},divider:pw.GREYSCALE_0_15},iR=e=>({components:nR(),palette:oR,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:mw,fontWeightLight:vw,fontWeightRegular:yw,fontWeightMedium:xw,fontWeightBold:Sw,htmlFontSize:mw,fontFamily:Ew.FONT_FAMILY,button:{fontWeight:xw,fontSize:mw,textTransform:"none"},body1:{fontSize:hw,lineHeight:"24px"},body2:{fontSize:mw,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:gw,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:hw,fontWeight:xw,lineHeight:"16px"},h6:{fontSize:mw,fontWeight:xw,lineHeight:"16px"},caption:{color:pw.TEXT_SECONDARY},subtitle1:{fontSize:mw,color:pw.TEXT_SECONDARY},subtitle2:{fontSize:fw,color:pw.TEXT_SECONDARY}},shape:{borderRadius:bw}}),aR={...dw,MISC_FOCUS_BORDER:pw.MISC_FOCUS_BORDER},lR=(e="light")=>iR(),sR=lR().palette,uR=(sR.primary.light,OE.Selected,"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"),cR=4/3,dR="12px",pR="600",fR="Source Sans Pro, sans-serif",mR={height:"auto",fontSize:dR,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"}},hR={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:pR},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},gR=25e4,bR=(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(yh.PixelsMax,Math.max(yh.PixelsMin,m)),i-=n[a]};switch(s){case xh.Pixels:m=u||yh.PixelsDefault,h();break;case xh.Percentage:m=(c||yh.PercentageDefault)/100*t,h();break;case xh.FitToContent:(null===(l=e.representation)||void 0===l?void 0:l.type)===lb.Image?o.push(a):(m=r(d,f,p,e.isLocked,e.isActivelySorted,e.isDim),h());break;case xh.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(yh.AutoMinTable,e)}))}return n},vR=e=>e.ctrlKey||e.metaKey,yR=e=>e.shiftKey&&vR(e),xR=e=>[_E.LEFT,_E.RIGHT,_E.UP,_E.DOWN].includes(e),SR=e=>xR(e)||[_E.HOME,_E.END,_E.PAGE_UP,_E.PAGE_DOWN].includes(e),ER=e=>e.shiftKey&&xR(e.key),wR=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=OE.Inactive;return null!=o&&o.isModal()&&(i=r!==e.selectionColIdx?OE.Disabled:void 0!==n[e.qElemNumber]?OE.Selected:OE.Possible),i},CR=(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"]})},RR=(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),CR(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})},AR=(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&&ER(c)?(-1===i?null==n||n.begin(["/qHyperCubeDef"]):d={...o},d=((e,t,r,n,o)=>{const i={...t};if("key"in n&&ER(n)){i[r.qElemNumber]=r.rowIdx;const t=n.key===_E.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),CR(u,o,d),{...e,rows:d,colIdx:null!==(r=null==l?void 0:l.selectionColIdx)&&void 0!==r?r:s.selectionColIdx,isSelectMultiValues:!0}):e},PR=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}},IR=(e,t)=>{var r;switch(t.type){case TE.SELECT:return RR(e,t.payload);case TE.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 TE.SELECT_MOUSE_UP:return((e,t)=>PR(e.isSelectMultiValues||e.firstCell!==t.cell?e:RR(e,t)))(e,t.payload);case TE.SELECT_MULTI_ADD:return AR(e,t.payload);case TE.SELECT_MULTI_END:return PR(e);case TE.RESET:return null!==(r=e.api)&&void 0!==r&&r.isModal()?e:{...e,rows:{},colIdx:-1};case TE.CLEAR:return Object.keys(e.rows).length?{...e,rows:{}}:e;case TE.UPDATE_PAGE_ROWS:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},DR=4/3,LR=e=>!(null==e||!e.color)||"number"==typeof(null==e?void 0:e.index)&&e.index>-1;function MR(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const kR=e=>Vm(e)?mp.WHITE:mp.TEXT,OR=(e,t)=>e?{borderBottomColor:mp.DARK_MODE_BORDER,borderRightColor:mp.DARK_MODE_BORDER,borderLeftColor:mp.DARK_MODE_BORDER,borderTopColor:mp.DARK_MODE_BORDER}:{borderLeftColor:mp.BORDER_MEDIUM,borderRightColor:mp.BORDER_MEDIUM,borderTopColor:mp.BORDER_HEAVY,borderBottomColor:t?mp.BORDER_HEAVY:mp.BORDER_LIGHT},TR=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*DR+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},_R=e=>{var t;return null===(t=e.components)||void 0===t?void 0:t.find((e=>"theme"===e.key))},qR=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),l={fontFamily:o,color:LR(null==r?void 0:r.fontColor)?MR(mp.TEXT,t,null==r?void 0:r.fontColor):i||mp.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,...OR(t.background.isDark,n)};return Object.keys(l).forEach((e=>{const t=e;null==l[t]&&delete l[t]})),l};function NR(e,t,r){var n,o,i;const a=null===(n=_R(e))||void 0===n?void 0:n.header,l=qR("header",t,a,r);return l.background=(e=>{if(void 0===e)return;const t=Ym(e);return t.opacity=1,t.toString()})(t.background.headerColor),l.hoverBackground=mf(null!==(o=l.background)&&void 0!==o?o:mp.WHITE,Sh),l.activeBackground=mf(null!==(i=l.background)&&void 0!==i?i:mp.WHITE,Eh),l}function FR(e,t,r,n){var o;const i=null===(o=_R(e))||void 0===o?void 0:o.content,a=qR("content",t,i);a.background=t.background.color;const l=TR(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=LR(u)||!!d,f=LR(s)||!!c,m=p||f;let h;h=LR(s)?MR(mp.HOVER,t,s):c||(p?"":mp.HOVER);const g=m?MR(kR(h),t,u):"";return{...a,lastRowBottomBorder:l,hoverColors:{background:h,color:g}}}const jR=(e,t)=>{var r;const n=null!==(r=e.toLowerCase().match(/<[^>]+>/g))&&void 0!==r?r:[];return n.forEach((e=>e in hR&&Object.assign(t,hR[e]))),t};function zR(e,t,r){var n;const o={};let i={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return null==t||null===(n=t.qValues)||void 0===n||n.forEach(((e,t)=>{const n=e.qText,a=n&&Km(n);a&&"none"!==a&&(o[r[t]]=a),i=n?jR(n,i):i})),o.cellBackgroundColor&&!o.cellForegroundColor&&(o.cellForegroundColor=kR(o.cellBackgroundColor)),{...e,...o,color:o.cellForegroundColor||e.color,background:o.cellBackgroundColor||e.background,fontStyle:i.fontStyle,fontWeight:i.fontWeight,textDecoration:i.textDecoration}}const HR=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},$R=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=HR(e,null==t?void 0:t.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},BR=(e,t,r,n)=>{var o,i;const{backgroundColor:a,backgroundFromStyling:l,sheetColorFromCSS:s}=$R(t,r,n);return null!==(o=null!==(i=Qm(l,a,s))&&void 0!==i?i:e)&&void 0!==o?o:mp.WHITE},WR=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return dR}},VR=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",GR=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?pR:"normal",UR=(e,t)=>!1===e&&t.flags.isEnabled("CLIENT_IM_6997_WORD_WRAP")?1:3,YR=e=>parseInt(null!=e?e:mR.fontSize,10)*cR,KR=e=>{const t=Math.max(YR(e.header.fontSize)+8,32),r=YR(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(YR(e.dimension.values.fontSize),YR(e.measure.values.fontSize)),i=(e.contentStaticLineCount||1)*o;return{headerMinRowHeight:t,totalRowLineHeight:r,totalRowMinHeight:n,contentLineHeight:o,contentMinRowHeight:Math.max(i+8+1,24)}},XR=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",JR=(e,t,r,n,o)=>{var i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,w,C,R,A,P,I,D,L,M,k,O,T,_,q,N,F,j,z,H,$,B,W,V,G,U,Y,K,X,J,Z,Q,ee,te,re,ne,oe,ie,ae,le,se,ue,ce,de,pe,fe,me;if(!e.flags.isEnabled("CLIENT_IM_6221_TABLE_STYLING"))return((e,t,r,n)=>{var o,i,a,l,s;const u=null===(o=_R(e))||void 0===o||null===(o=o.content)||void 0===o?void 0:o.rowHeight,c={header:{fontFamily:t.head.fontFamily,fontSize:t.head.fontSize,fontStyle:"normal",fontWeight:pR,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:pR,textDecoration:"none",color:t.totals.color,background:t.totals.background},nullValues:{fontStyle:"",fontWeight:"",textDecoration:"",color:"",background:"#F2F2F2"},grid:{contentLineClamp:null!=u?u:UR(null===(i=e.multiline)||void 0===i?void 0:i.wrapTextInCells,n),headerLineClamp:UR(null===(a=e.multiline)||void 0===a?void 0:a.wrapTextInHeaders,n),border:r.background.isDark?mp.DARK_MODE_BORDER:mp.BORDER_MEDIUM,divider:mp.BORDER_HEAVY,hoverColors:{color:null===(l=t.body.hoverColors)||void 0===l?void 0:l.color,background:null===(s=t.body.hoverColors)||void 0===s?void 0:s.background},lastRowBottomBorder:t.body.lastRowBottomBorder},selectedColors:Wm({desiredColor:t.body.color,theme:r,flags:n.flags}),headerMenuHoverBackground:t.head.hoverBackground,headerMenuActiveBackground:t.head.activeBackground,headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:u},{headerMinRowHeight:d,totalRowLineHeight:p,totalRowMinHeight:f,contentLineHeight:m,contentMinRowHeight:h}=KR(c);return c.headerMinRowHeight=d,c.totalRowLineHeight=p,c.totalRowMinHeight=f,c.contentLineHeight=m,c.contentMinRowHeight=h,c})(t,r,n,e);const{header:he,dimensionValues:ge,measureValues:be,totalValues:ve,nullValues:ye,grid:xe,content:Se}=null!==(i=_R(t))&&void 0!==i?i:{},Ee=BR(r.head.background,n,he,"object.straightTableV2.dimension.label.name.backgroundColor"),we=null!==(a=null!==(l=null!==(s=null!==(u=HR(n,null==ge?void 0:ge.fontColor))&&void 0!==u?u:HR(n,null==Se?void 0:Se.fontColor))&&void 0!==s?s:n.getStyle("object.straightTableV2.dimension","label.value","color"))&&void 0!==l?l:r.body.color)&&void 0!==a?a:mp.TEXT,Ce=null!==(c=null!==(d=null===(p=o.viewState)||void 0===p?void 0:p.maxLineCount)&&void 0!==d?d:null==Se?void 0:Se.rowHeight)&&void 0!==c?c:n.getStyle("object.straightTableV2","grid","lineClamp"),Re={header:{fontFamily:null!==(f=null!==(m=null!==(h=null==he?void 0:he.fontFamily)&&void 0!==h?h:n.getStyle("object.straightTableV2.dimension","label.name","fontFamily"))&&void 0!==m?m:r.head.fontFamily)&&void 0!==f?f:fR,fontSize:WR(null!==(g=null!==(b=null==he?void 0:he.fontSize)&&void 0!==b?b:n.getStyle("object.straightTableV2.dimension","label.name","fontSize"))&&void 0!==g?g:r.head.fontSize),fontStyle:VR(null==he?void 0:he.fontStyle),fontWeight:GR(null==he?void 0:he.fontStyle,pR),textDecoration:XR(null==he?void 0:he.fontStyle),color:null!==(v=null!==(y=null!==(x=HR(n,null==he?void 0:he.fontColor))&&void 0!==x?x:n.getStyle("object.straightTableV2.dimension","label.name","color"))&&void 0!==y?y:r.head.color)&&void 0!==v?v:mp.TEXT,background:Ee},headerMenuHoverBackground:mf(Ee,Sh),headerMenuActiveBackground:mf(Ee,Eh),dimension:{values:{fontFamily:null!==(S=null!==(E=null!==(w=null==ge?void 0:ge.fontFamily)&&void 0!==w?w:n.getStyle("object.straightTableV2.dimension","label.value","fontFamily"))&&void 0!==E?E:r.body.fontFamily)&&void 0!==S?S:fR,fontSize:WR(null!==(C=null!==(R=null!==(A=null==ge?void 0:ge.fontSize)&&void 0!==A?A:null==Se?void 0:Se.fontSize)&&void 0!==R?R:n.getStyle("object.straightTableV2.dimension","label.value","fontSize"))&&void 0!==C?C:r.body.fontSize),fontStyle:VR(null==ge?void 0:ge.fontStyle),fontWeight:GR(null==ge?void 0:ge.fontStyle,"normal"),textDecoration:XR(null==ge?void 0:ge.fontStyle),color:we,background:null!==(P=null!==(I=$R(n,ge,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor)&&void 0!==I?I:r.body.background)&&void 0!==P?P:mp.TRANSPARENT}},measure:{values:{fontFamily:null!==(D=null!==(L=null!==(M=null==be?void 0:be.fontFamily)&&void 0!==M?M:n.getStyle("object.straightTableV2.measure","label.value","fontFamily"))&&void 0!==L?L:r.body.fontFamily)&&void 0!==D?D:fR,fontSize:WR(null!==(k=null!==(O=null!==(T=null==be?void 0:be.fontSize)&&void 0!==T?T:null==Se?void 0:Se.fontSize)&&void 0!==O?O:n.getStyle("object.straightTableV2.measure","label.value","fontSize"))&&void 0!==k?k:r.body.fontSize),fontStyle:VR(null==be?void 0:be.fontStyle),fontWeight:GR(null==be?void 0:be.fontStyle,"normal"),textDecoration:XR(null==be?void 0:be.fontStyle),color:null!==(_=null!==(q=null!==(N=null!==(F=HR(n,null==be?void 0:be.fontColor))&&void 0!==F?F:HR(n,null==Se?void 0:Se.fontColor))&&void 0!==N?N:n.getStyle("object.straightTableV2.measure","label.value","color"))&&void 0!==q?q:r.body.color)&&void 0!==_?_:mp.TEXT,background:null!==(j=null!==(z=$R(n,be,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor)&&void 0!==z?z:r.body.background)&&void 0!==j?j:mp.TRANSPARENT}},totalRow:{fontFamily:null!==(H=null!==($=null!==(B=null==ve?void 0:ve.fontFamily)&&void 0!==B?B:n.getStyle("object.straightTableV2.total","label.value","fontFamily"))&&void 0!==$?$:r.totals.fontFamily)&&void 0!==H?H:fR,fontSize:WR(null!==(W=null!==(V=null!==(G=null==ve?void 0:ve.fontSize)&&void 0!==G?G:null==Se?void 0:Se.fontSize)&&void 0!==V?V:n.getStyle("object.straightTableV2.total","label.value","fontSize"))&&void 0!==W?W:r.totals.fontSize),fontStyle:VR(null==ve?void 0:ve.fontStyle),fontWeight:GR(null==ve?void 0:ve.fontStyle,pR),textDecoration:XR(null==ve?void 0:ve.fontStyle),color:null!==(U=null!==(Y=null!==(K=null!==(X=HR(n,null==ve?void 0:ve.fontColor))&&void 0!==X?X:HR(n,null==Se?void 0:Se.fontColor))&&void 0!==K?K:n.getStyle("object.straightTableV2.total","label.value","color"))&&void 0!==Y?Y:r.totals.color)&&void 0!==U?U:mp.TEXT,background:BR(r.totals.background,n,ve,"object.straightTableV2.total.label.value.backgroundColor")},nullValues:{fontStyle:VR(null==ye?void 0:ye.fontStyle),fontWeight:GR(null==ye?void 0:ye.fontStyle,"normal"),textDecoration:XR(null==ye?void 0:ye.fontStyle),color:null!==(J=null!==(Z=null!==(Q=null!==(ee=HR(n,null==ye?void 0:ye.fontColor))&&void 0!==ee?ee:HR(n,null==Se?void 0:Se.fontColor))&&void 0!==Q?Q:n.getStyle("object.straightTableV2.null","label.value","color"))&&void 0!==Z?Z:r.body.color)&&void 0!==J?J:mp.TEXT,background:null!==(te=null!==(re=HR(n,null==ye?void 0:ye.background))&&void 0!==re?re:n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor"))&&void 0!==te?te:mp.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:null!=Ce?Ce:UR(null===(ne=t.multiline)||void 0===ne?void 0:ne.wrapTextInCells,e),headerLineClamp:UR(null===(oe=t.multiline)||void 0===oe?void 0:oe.wrapTextInHeaders,e),border:null!==(ie=null!==(ae=HR(n,null==xe?void 0:xe.border))&&void 0!==ae?ae:n.getStyle("object.straightTableV2","grid","borderColor"))&&void 0!==ie?ie:n.background.isDark?mp.DARK_MODE_BORDER:mp.BORDER_MEDIUM,divider:null!==(le=null!==(se=HR(n,null==xe?void 0:xe.divider))&&void 0!==se?se:n.getStyle("object.straightTableV2.grid","","divider.borderColor"))&&void 0!==le?le:mp.BORDER_HEAVY,hoverColors:{color:null!==(ue=null!==(ce=HR(n,null==Se?void 0:Se.hoverFontColor))&&void 0!==ce?ce:n.getStyle("object.straightTableV2","","grid.hover.color"))&&void 0!==ue?ue:null===(de=r.body.hoverColors)||void 0===de?void 0:de.color,background:null!==(pe=null!==(fe=HR(n,null==Se?void 0:Se.hoverColor))&&void 0!==fe?fe:n.getStyle("object.straightTableV2","","grid.hover.backgroundColor"))&&void 0!==pe?pe:null===(me=r.body.hoverColors)||void 0===me?void 0:me.background},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:Wm({desiredColor:we,theme:n,flags:e.flags}),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:Ce},{headerMinRowHeight:Ae,totalRowLineHeight:Pe,totalRowMinHeight:Ie,contentLineHeight:De,contentMinRowHeight:Le}=KR(Re);return Re.headerMinRowHeight=Ae,Re.totalRowLineHeight=Pe,Re.totalRowMinHeight=Ie,Re.contentLineHeight=De,Re.contentMinRowHeight=Le,Re},ZR=(e,t,r,n)=>{const o=E((()=>{const o=r.totalsPosition.atTop,i=FR(e,t,r.rows.length,n),a=NR(e,t,!o),l=function(e,t,r){var n;const o=null===(n=_R(e))||void 0===n?void 0:n.content,i=qR("content",t,o),{borderBottomColor:a,borderTopColor:l,background:s}=NR(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},QR=new Map;const eA=L({}),tA=function(e){const t=L([()=>{},new Set]);return QR.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 Ki.jsx(e.Provider,{value:n,children:Ki.jsx(t.Provider,{value:l,children:r})})}}(eA),rA={rows:[],columns:[],totalsPosition:{}},nA=({app:e,children:t,tableData:r=rA,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||cw),[P,I]=((e,t)=>{const[r,n]=D(IR,{pageRows:e,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(r.rows,n),[L,M]=S(-1),k=ZR(i,u,r,d),O=((e,t,r,n,o)=>E((()=>JR(e,t,r,n,o)),[t,r,e,n,o]))(x,i,k,u,y),[T,_,q,N]=((e,t,r,n)=>{const o=t.atBottom||t.atTop,i=ih({...n.header,fontWeight:pR},{maxNbrLinesOfText:3}).measureText,a=ih({...n.totalRow,fontWeight:pR},{maxNbrLinesOfText:3}).measureText,{estimateWidth:l}=ih(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:s}=ih(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((()=>bR(e,r,u)));sh((()=>{f(bR(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 Ki.jsx(tA,{value:{headRowHeight:w,setHeadRowHeight:C,focusedCellCoord:R,setFocusedCellCoord:A,selectionState:P,selectionDispatch:I,hoverIndex:L,setHoverIndex:M,columnWidths:T,setColumnWidths:_,baseProps:F,tableData:r,setYScrollbarWidth:q,setPage:h,pageInfo:g,initialDataPages:b,showRightBorder:N,env:x},children:t})};function oA(e,t){const r=function(e){return QR.get(e)}(e),[n,o]=C(r),[,i]=D((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 iA(e){var t;const r=lR();return null!=r&&null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),FS({...r,direction:e})}const aA={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},lA={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},sA=gl("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":{...aA},"&::-moz-range-track":{...aA},"&::-ms-track":{...aA},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...lA},"&::-moz-range-thumb":{...lA},"&::-ms-thumb":{...lA},"&: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"}}))),uA=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u,accessibilityRelatedArgs:c})=>{const d=ch({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}};sh((()=>m&&g()),[e]);const b=e=>{const t=Math.max(e,yh.PixelsMin);p.current.columnWidth=t,i(t)},v=()=>{if(p.current.columnWidth!==p.current.initWidth){const e={type:xh.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=>{Jm(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=>{Jm(e),document.removeEventListener("touchmove",E),document.removeEventListener("touchend",w),v()},C=!n&&l?e=>{if(e.key===bh.LEFT||e.key===bh.RIGHT){Jm(e);const t=5,r=e.key===bh.LEFT?-t:t;b(p.current.columnWidth+r)}else e.key===bh.SPACE||e.key===bh.ENTER?(Jm(e),l(e),v()):e.key===bh.ESC&&(Jm(e),l(e),b(p.current.initWidth))}:void 0,R=d.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return x.createElement(sA,{style:h,key:t,hoverColor:o,isLastColumn:r,className:vh,"data-testid":vh,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",y),document.addEventListener("mouseup",S),null==s||s(!0),g(e.clientX)},onDoubleClick:()=>a({type:xh.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:yh.PixelsMax,"aria-label":R,"aria-valuemin":yh.PixelsMin,"aria-valuemax":yh.PixelsMax,"aria-valuenow":Number(e.toFixed(1))})};function cA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const dA=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){cA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"}))));function pA(){return pA=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},pA.apply(null,arguments)}const fA=gl(Hu,{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"}))),mA=gl(dA,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),hA=gl(vd)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),gA=gl(dc)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),bA=gl(wd)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),vA=gl(wd,{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")}))),yA=gl("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"}))),xA=gl("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),SA=gl($s)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),EA=gl(Vc)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function wA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const CA=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){wA(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 RA={};const AA=({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(vA,{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),RA={}),null!=a&&a.length&&(d(!0),RA[n]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&x.createElement(yA,null),x.createElement(xA,null,x.createElement(EA,null,x.createElement(o,null)),x.createElement(SA,{variant:"body2"},n)),null!=a&&a.length?x.createElement(CA,null):null),(null==a?void 0:a.length)&&x.createElement(DA,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=RA,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},PA=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map((e=>{var n;return[[e.groupHeading&&x.createElement(bA,{key:e.groupHeading,disabled:!0,style:{opacity:1}},e.groupHeading),null===(n=e.items)||void 0===n?void 0:n.map((e=>x.createElement(AA,pA({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:r}))))].filter(Boolean)]})),IA={appear:200,enter:200,exit:100},DA=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:l})=>n.length?x.createElement(hA,pA({className:mh,open:t,anchorEl:e,onClose:r,transitionDuration:IA,MenuListProps:{id:hh}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map(((n,o)=>[PA({menuGroup:n,isSubMenu:t,handleHeadCellMenuKeyDown:r}),o<e.length-1?x.createElement(gA,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:n,isSubMenu:a,handleHeadCellMenuKeyDown:l})):null,LA=(e,t)=>e.some((e=>t[e]>0)),MA={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},kA=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=S(null),[a,l]=S(MA);return sh((()=>{e||(l(MA),i(null))}),[e]),w((()=>{if(null==n||!n.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const s=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(t,r),u=await n.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject.qDimensionInfo;o=c.qInfo.qId,a?s():(i(u),l((e=>({canSelectAll:LA(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:LA(["qSelected"],e),canSelectPossible:LA(["qOption"],e),canSelectAlternative:LA(["qAlternative"],e),canSelectExcluded:LA(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,s()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}};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 TA=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){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.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 _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 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){_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:"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 NA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const FA=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){NA(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 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 zA=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){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:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"}))));function HA(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=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){HA(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 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 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){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:"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 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 GA=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:"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 UA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const YA=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){UA(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 KA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const XA=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){KA(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 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 ZA=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){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:"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 QA=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const eP="/qListObjectDef",tP=({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[QA.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:TA,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:zA,enabled:l,isActive:!!r&&"D"===i,autoFocus:!a&&l}]}])}if(e.isDim&&null!=i&&i.select){const e=[];r[QA.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:$A,enabled:!0}]}]),r[QA.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:ZA,enabled:!!l,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectAll(eP))},icon:WA,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectPossible(eP))},icon:XA,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectAlternative(eP))},icon:GA,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectExcluded(eP))},icon:YA,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.clearSelections(eP))},icon:qA,enabled:s.canClearSelections}]}]]}]}]),e.length>0&&d.push(...e)}return r[QA.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:FA,enabled:!0}]}]),d},rP=({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=ch({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:b}=n,{fieldInstance:v,selectionActionsEnabledStatus:y}=kA({open:e,headerData:n,app:null==d?void 0:d.app,qStateName:null==d?void 0:d.qStateName}),S=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,stateName:null==d?void 0:d.qStateName})}}),[g,b,c,null==d?void 0:d.qStateName]),E=k((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?x.createElement(fA,{rightAligned:"right"===h,shouldShowMenuIcon:s,className:fh},s&&x.createElement(mA,{height:dh,className:ph,"data-testid":ph,isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},x.createElement(dA,null)),x.createElement(DA,{open:e,anchorEl:r.current,onClose:E,menuGroups:tP({headerData:n,translator:m,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:S,interactions:i,fieldInstance:v,selectionActionsEnabledStatus:y,anchorRef:r,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),handleHeadCellMenuKeyDown:a})):null},nP=e=>e.isDark?{background:e.color,borderColor:mp.DARK_MODE_BORDER,color:mp.DARK_MODE_TEXT,disabledColor:mp.DARK_MODE_DISABLED,iconColor:mp.DARK_MODE_TEXT}:{background:e.color,borderColor:mp.BORDER_MEDIUM,color:mp.TEXT,disabledColor:mp.DISABLED},oP=gl(Hu,{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}`}))),iP=gl(lp,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),aP=gl(Zu,{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)}))),lP=gl($s)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),sP=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=E((()=>nP(n.background)),[n]);if(!r.active)return null;const a=o?x.createElement(oP,{footerStyle:i},e):null;return t?z.createPortal(e,t):a},uP=L({}),cP=()=>C(uP),dP=({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((()=>nP(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=ch({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(uP.Provider,{value:S},e)};let pP=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),fP=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 mP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const hP=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){mP(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 gP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const bP=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){gP(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 vP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const yP=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){vP(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"})))),xP={FirstPage:bP,PreviousPage:hP,NextPage:CA,LastPage:yP,FirstPageRTL:yP,PreviousPageRTL:CA,NextPageRTL:hP,LastPageRTL:bP},SP=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=cP(),u=xP[`${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}},EP=()=>{const{pageInfo:e,width:t}=cP(),r=0===e.page,{IconComponent:n,styledProps:o}=SP({type:pP.FirstPage,disabledCondition:r,pageNumber:0});return t<=fP.FirstPage?null:x.createElement(aP,o,x.createElement(n,{height:dh}))},wP=(e,t,r=!1)=>{r&&e.key===bh.TAB&&!e.shiftKey&&(Jm(e),Xm(e.target,t,!1))},CP=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=cP(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=SP({type:pP.LastPage,disabledCondition:i,pageNumber:r-1}),s=t.enabled?e=>wP(e,t,n):null;return o<=fP.LastPage?null:x.createElement(aP,pA({},l,{onKeyDown:s}),x.createElement(a,{height:dh}))},RP=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=cP(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=SP({type:pP.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>fP.FirstPage&&o>fP.LastPage)&&t.enabled?e=>wP(e,t,n):null;return x.createElement(aP,pA({},l,{onKeyDown:s}),x.createElement(a,{height:dh}))},AP=()=>{const{pageInfo:e}=cP(),t=0===e.page,{IconComponent:r,styledProps:n}=SP({type:pP.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return x.createElement(aP,n,x.createElement(r,{height:dh}))},PP=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=cP(),{page:o,rowsPerPage:i}=r;if(t<=fP.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return x.createElement(lP,{variant:"caption"},a)},IP=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=cP(),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(lP,{variant:"caption",id:d},u,":"),x.createElement(iP,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:p},r))},DP=()=>{var e;const{pageInfo:t,isSelectionMode:r,totalColumnCount:n,width:o,handleChangeRowsPerPage:i}=cP();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!r&&o>fP.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(IP,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},LP=1e3,MP="…",kP=({totalPages:e,page:t})=>{const r=Math.min(e,LP),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-LP):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:MP,disabled:!0},MP)),o<e-1&&a.push(x.createElement("option",{key:"endMoreOptions",value:MP,disabled:!0},MP)),x.createElement(x.Fragment,null,a)},OP=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=cP(),{page:o}=e;if(t<=fP.SelectPage)return null;const i=x.createElement(kP,{totalPages:r,page:o});return x.createElement(IP,{name:"SelectPage",value:o,options:i,handleChange:e=>n(+e.target.value)})};var TP=T((e=>x.createElement(dP,e,x.createElement(DP,null),x.createElement(OP,null),x.createElement(PP,null),x.createElement(EP,null),x.createElement(AP,null),x.createElement(RP,null),x.createElement(CP,null))));const _P=e=>x.createElement(sP,e,x.createElement(TP,e)),qP={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},NP=gE(oC,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.color}))),FP=gE("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e&&"isWordWrapEnabled"!==e})((({lineClamp:e,isHeadCell:t=!1,isPagination:r=!1,isNumeric:n=!1,isWordWrapEnabled:o=!1})=>{if(n||1===e&&!t)return{...qP,whiteSpace:"nowrap",display:r?"block":void 0};const i=t&&r&&!o||o?"break-word":"break-all";return{...qP,wordBreak:i,display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}}));function jP(e,t){const r=M(!1);w((()=>{r.current?e():r.current=!0}),t)}const zP=(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]]},HP=e=>e.querySelector("td[tabindex='0'], th[tabindex='0']"),$P=e=>{const t=e.nextElementSibling;var r;return t?"HR"===t.tagName?$P(t):t:null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[0]},BP=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?BP(t):t},WP=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(`.${vh}`);null==r||r.setAttribute("tabIndex","0"),null==r||r.focus()}),0)},VP=({focusType:e,cell:t})=>{if(t)switch(e){case qE.FOCUS:t.focus(),t.setAttribute("tabIndex","0");break;case qE.FOCUS_BUTTON:const e=t.querySelector(".sn-table-head-label");null==e||e.focus();break;case qE.BLUR:t.blur(),t.setAttribute("tabIndex","-1");break;case qE.ADD_TAB:t.setAttribute("tabIndex","0");break;case qE.REMOVE_TAB:t.setAttribute("tabIndex","-1")}},GP=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o})=>{VP({focusType:qE.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 _E.DOWN:s<a&&s++;break;case _E.UP:s>i&&s--;break;case _E.RIGHT:if(o)break;u<l?u++:s<a&&(s++,u=0);break;case _E.LEFT:if(o)break;u>0?u--:s>0&&(s--,u=l);break;case _E.HOME:(vR(e)||o)&&(s=i),o||(u=0);break;case _E.END:(vR(e)||o)&&(s=a),o||(u=l);break;case _E.PAGE_DOWN:s=Math.min(a,s+10);break;case _E.PAGE_UP:s=Math.max(i,s-10)}return[s,u]})(e,t,r,o),a=zP(t,i);return VP({focusType:qE.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}},UP=(e,t,r,n)=>{var o;(VP({focusType:qE.REMOVE_TAB,cell:HP(t)}),r(e),n.enabled&&!n.active)?null===(o=n.focus)||void 0===o||o.call(n):VP({focusType:qE.ADD_TAB,cell:zP(t,e)})},YP=(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(`.${mh}`);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])},KP=(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])},XP=(e,t=!1)=>e.key===_E.ESC&&!t||(e.key===_E.LEFT||e.key===_E.RIGHT)&&yR(e),JP=e=>{var t;const{key:r,currentTarget:n}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:n;if(r===_E.DOWN||r===_E.UP){const t=e=>r===_E.DOWN?$P(e):BP(e);Jm(e);let n=t(o);for(;n;){if("true"!==n.ariaDisabled){n.focus();break}n=t(n)}}},ZP=({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(OE.Disabled))return void Jm(e);const d=null==c?void 0:c.isModal();if(!XP(e,d))switch(e.key){case _E.SPACE:Jm(e),r.isSelectable&&o&&n({type:TE.SELECT,payload:{cell:r,evt:e,announce:a}});break;case _E.ENTER:Jm(e),d&&(null==c||c.confirm(),a({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case _E.ESC:Jm(e),null==c||c.cancel(),a({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case _E.TAB:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{(null==t?void 0:t.enabled)&&r&&(e.shiftKey||!e.shiftKey&&!n)&&(Jm(e),Xm(e.currentTarget,t,e.shiftKey))})({evt:e,keyboard:l,isSelectionMode:d,paginationNeeded:s});break;case _E.C:Jm(e),vR(e)&&Rh(e.currentTarget);break;default:SR(e.key)&&(Jm(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}=GP({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:TE.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}))}},QP=e=>{const{layout:t,rect:r,theme:n}=oA(eA,(e=>e.baseProps)),[o,i]=S(0),[a,l]=S(0);return _((()=>{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}},eI=gE("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),tI=gE(HC,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.active?"auto":"hidden",border:"none"}))),rI=gE(CC,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),nI=()=>Ki.jsxs(Ki.Fragment,{children:[Ki.jsx(eI,{className:"sn-table-announcer-1","aria-live":"polite","aria-atomic":"true"}),Ki.jsx(eI,{className:"sn-table-announcer-2","aria-live":"polite","aria-atomic":"true"})]}),oI=e=>e.stopPropagation(),iI=({href:e,text:t,interactions:r,color:n})=>x.createElement(_c,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:oI,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}},t),aI="cell-text",lI=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const{styleService:a}=oA(eA,(e=>e.baseProps)),{flags:l}=oA(eA,(e=>e.env));return o?Ki.jsx(FP,{"data-testid":aI,ref:t,component:"span",className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,isWordWrapEnabled:l.isEnabled("CLIENT_IM_6997_WORD_WRAP"),children:e}):Ki.jsx(FP,{"data-testid":aI,ref:t,component:"span",className:"sn-table-cell-text",isNumeric:r,lineClamp:null!=i?i:a.grid.contentLineClamp,isWordWrapEnabled:l.isEnabled("CLIENT_IM_6997_WORD_WRAP"),isPagination:n,children:e})},sI=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}`},uI=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},cI=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{url:o,text:i,imageSize:a,resolvedImagePosition:l}=e,s="fitHeight"===a,u=Ki.jsx("img",{src:o,alt:i,style:{...t,width:s?"auto":"100%",height:"100%",maxHeight:r,objectFit:uI(a),objectPosition:sI(l),overflow:"hidden"}});var c;return n?Ki.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},dI=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),pI=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},fI=(e,t,r)=>{const n={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const r=e.limits&&e.limits.concat().sort(((e,t)=>e.value-t.value));return{lowerLimit:r&&t>0?r[t-1]:{value:0,gradient:!1},upperLimit:r&&r[t]?r[t]:{value:1,gradient:!1}}})(e,t),l=((e,t,r,n,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:l,nextColor:s}=t,u=n===i.value?1:(n-a.value)/(i.value-a.value);return a.gradient&&i.gradient?n-a.value<i.value-n?{color:l.color,t:.5-u}:{color:s.color,t:u-.5}:a.gradient?{color:l.color,t:1-(.5+u/2)}:i.gradient?{color:s.color,t:u/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return l&&Df(e.localPaletteColors[t].color).blend(Df(l.color),l.t)},mI=(e,t,r)=>{const n=((e,t)=>{const{limits:r}=e;return r&&(e.limits=r.sort(((e,t)=>e.value-t.value)),e.limits=r.map((e=>({...e,value:dI(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:pI(n,t,r)})))),n},hI=(e,t,r,n)=>{const o=mI(e,r,n),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let r="",n=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=n&&t<i){r=fI(e,a,t);break}n=i}return r})(o,t);return a},gI=(e,t)=>{const r=(e=>e.map((e=>{var t;return null!==(t=e.value)&&void 0!==t?t:e})).sort(((e,t)=>e-t)))(e),n=r.some((e=>!nv(e)));return 0===r.length||n?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===r.length?((e,t)=>{const r=e[0]-t;if(0===r||!nv(r)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return r>0?{min:t-.5*Math.abs(t),max:e[0]+2*r}:{min:e[0]+2*r,max:t+.5*Math.abs(t)}})(r,t):((e,t)=>{let r=e[e.length-1]-e[0];return r=r>0?r:1,{min:Math.min(t,e[0])-r/2,max:Math.max(t,e[e.length-1])+r/2}})(r,t)},bI=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=gI(e,t),o=Math.abs(t);return{min:null!=r?r:t-o,max:null!=n?n:t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!nv(t))return 0;let a=r&&nv(r)?Math.min(r,t):0;const l=n.sort(((e,t)=>e.value-t.value)),s=o||i;for(let e=0;e<s.length;e++){if(e===s.length-1||t<l[e].value&&t>=a)return e;a=l[e].value}return 0})(e,t,n.min);return{limitRange:n,limitPaletteColorIndex:o}};function vI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const yI=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){vI(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 xI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const SI=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){xI(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 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 wI=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:"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 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:"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 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 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){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:"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 II(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=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){II(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 LI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const MI=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){LI(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 kI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const OI=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){kI(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 TI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const _I=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){TI(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 qI(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){qI(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 FI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const jI=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){FI(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 zI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const HI=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){zI(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"}))));function $I(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const BI=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){$I(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 WI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const VI=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){WI(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 GI(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){GI(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 YI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const XI={m:HI,"ï":jI,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){YI(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:BI,T:VI,U:UI,P:NI,Q:MI,"è":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){KI(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"})))),"¢":PI,"©":RI,"23F4":DI,2013:SI,"&":_I,add:yI,"minus-2":OI,dot:wI},JI=({size:e,iconKey:t,color:r})=>{const n=t&&XI[t]||void 0;return n&&Ki.jsx(n,{style:{color:r,height:e}})},ZI=({representation:e,cellValue:t})=>{const r=e.indicatorConditionalColoring,{styleService:n,theme:o}=oA(eA,(e=>e.baseProps));if(!r)return;const{text:i,indicator:a}=e,{showTextValues:l,position:s,applySegmentColors:u}=null!=a?a:{},c=(d=n.measure.values.fontSize,parseInt(d||dR,10));var d;const p=bI(r,t),f=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(!i||0===(null==i?void 0:i.length)||!((e,t)=>{var r,n,o;return!(!e||0===e.length||!(null!==(r=null===(n=e[t])||void 0===n?void 0:n.gradient)&&void 0!==r?r:null===(o=e[t-1])||void 0===o?void 0:o.gradient))})(i,r.limitPaletteColorIndex))return pI(o,r.limitPaletteColorIndex,n);const a=dI(r.limitRange,t);return hI(o,a,r.limitRange,n)})(r,t,p,o),m=r.segments.paletteColors[(null==p?void 0:p.limitPaletteColorIndex)||0].icon;return l?Ki.jsxs("div",{"data-key":"representation-indicator",style:{display:"grid",gridTemplateColumns:"1fr auto",gap:"2px",alignItems:"center",color:u?f:void 0},children:["left"===s&&JI({size:c,iconKey:m,color:f}),Ki.jsx(lI,{isNumeric:!0,children:i}),"right"===s&&JI({size:c,iconKey:m,color:f})]}):JI({size:c,iconKey:m,color:f})},QI=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o})=>{const{interactions:i,styleService:a}=oA(eA,(e=>e.baseProps)),l=oA(eA,(e=>{var t;return null===(t=e.selectionState.api)||void 0===t?void 0:t.isActive()}));let s=t.representation.text;return t.representation.type!==lb.Link||l||(s=Ki.jsx(iI,{href:t.representation.url,text:t.representation.text,interactions:i,color:r.cellForegroundColor})),t.representation.type===lb.Image?Ki.jsx(cI,{representation:t.representation,textStyle:r,maxImageHeight:a.contentStaticLineCount?a.contentLineHeight*(null!=o?o:a.grid.contentLineClamp):a.contentLineHeight,wrapInContainer:!n}):t.representation.type===lb.Indicator&&"number"==typeof t.qNum?Ki.jsx(ZI,{representation:t.representation,cellValue:+t.qNum}):Ki.jsx(lI,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:s})},eD=({selectionsAPI:e,selectionDispatch:t,setShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{w((()=>{const i=()=>{t({type:TE.RESET})},a=()=>{t({type:TE.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])},tD=(e,t,r,n)=>({handleMouseDown:n=>{null==e||e(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>r({type:TE.SELECT_MULTI_END});r({type:TE.SELECT_MOUSE_DOWN,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:TE.SELECT_MULTI_ADD,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:TE.SELECT_MOUSE_UP,payload:{cell:t,evt:e,announce:n}})}}),rD=gE(MC,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),nD=gE(eR,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})((({hover:e,hoverColors:t,height:r})=>({height:r,"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}}))),oD=gE(NC,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...mR,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}))),iD=gE(NC,{shouldForwardProp:e=>"atTop"!==e&&"headRowHeight"!==e&&"totalsStyle"!==e})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...mR,...e,fontWeight:pR,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 aD(e){return t=>{const{cell:r,styling:n,announce:o,onMouseDown:i}=t,{styleService:a}=oA(eA,(e=>e.baseProps)),l=oA(eA,(e=>wR(r,e.selectionState))),s=oA(eA,(e=>e.selectionDispatch)),{handleMouseDown:u,handleMouseOver:c,handleMouseUp:d}=tD(i,r,s,o),p=function(e,t,r){return t===OE.Selected?{...e,...r}:t===OE.Disabled?{...e,background:`${uR}, ${e.background}`}:e}(n,l,a.selectedColors);return Ki.jsx(e,{...t,styling:p,onMouseUp:d,onMouseDown:u,onMouseOver:c,cellSelectionState:l})}}function lD(e,t){let r=(n=oD,e=>{const{styling:{selectedCellClass:t,...r},component:o,align:i,children:a,scope:l,tabIndex:s,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,title:m,cellSelectionState:h}=e;return Ki.jsx(n,{cellStyle:r,component:o,scope:l,align:i,tabIndex:s,className:`sn-table-cell ${h} ${gh}`,title:m,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,children:a})});var n;return t&&(r=aD(r)),e&&(r=function(e){return t=>{const{cell:r,column:n,styling:o}=t,i=E((()=>r.isNull?o:zR(o,r.qAttrExps,n.qAttrExprInfoIDs)),[o,r.qAttrExps,r.isNull,n.qAttrExprInfoIDs]);return Ki.jsx(e,{...t,styling:i})}}(r)),r}const sD=(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}),uD=()=>{const{columns:e,totalsPosition:t,rows:r}=oA(eA,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,styleService:a,interactions:l}=oA(eA,(e=>e.baseProps)),s=oA(eA,(e=>e.headRowHeight)),u=oA(eA,(e=>e.setFocusedCellCoord));return Ki.jsx(eR,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,c)=>{const d=[t.atTop?1:r.length+1,c];return Ki.jsx(iD,{totalsStyle:{...a.totalRow,...sD(a,t,!1)},headRowHeight:s,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${gh}`,tabIndex:-1,title:l.passive?e.totalInfo:void 0,onKeyDown:e=>{((e,t,r,n,o=!1)=>{if(o)Jm(e);else if(!XP(e))switch(e.key){case _E.C:Jm(e),vR(e)&&Rh(e.currentTarget);break;case _E.SPACE:e.preventDefault();break;default:SR(e.key)&&(Jm(e),GP({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n}))}})(e,n,d,u,null==o?void 0:o.isModal())},onMouseDown:()=>{UP(d,n,u,i)},children:Ki.jsx(lI,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)}))})};var cD=T(uD);const dD=({setShouldRefocus:e,tableWrapperRef:t,announce:r})=>{var n;const{rows:o,columns:i,paginationNeeded:a,totalsPosition:l}=oA(eA,(e=>e.tableData)),{selectionsAPI:s,rootElement:u,keyboard:c,layout:d,interactions:p,styleService:f}=oA(eA,(e=>e.baseProps)),m=oA(eA,(e=>e.setFocusedCellCoord)),h=oA(eA,(e=>e.selectionDispatch)),g=!!p.active&&!!p.select,b=JSON.stringify(i.map((e=>e.qAttrExprInfoIDs))),v=E((()=>JSON.parse(b).map((e=>lD(e.some((e=>["cellBackgroundColor","cellForegroundColor","textStyleExpression"].includes(e))),g)))),[b,g]),y=!(null===(n=_R(d))||void 0===n||null===(n=n.content)||void 0===n||!n.hoverEffect);return eD({keyboard:c,selectionDispatch:h,selectionsAPI:s,setShouldRefocus:e,tableWrapperRef:t}),Ki.jsxs(rD,{lastRowBottomBorder:f.grid.lastRowBottomBorder,children:[l.atTop?Ki.jsx(cD,{}):void 0,o.map(((e,t)=>Ki.jsx(nD,{hoverColors:f.grid.hoverColors,hover:y,tabIndex:-1,className:"sn-table-row sn-table-data-row",rowindex:t,height:f.contentMinRowHeight,children:i.map(((t,n)=>{const{id:o}=t,i=e[n],d=v[n];let b=t.isDim?f.dimension.values:f.measure.values;i.isNull&&(b={...b,...f.nullValues});const y=zR(b,i.qAttrExps,t.qAttrExprInfoIDs);return d&&Ki.jsx(d,{scope:0===n?"row":void 0,component:0===n?"th":void 0,cell:i,column:t,align:i.align,styling:{...b,borderColor:f.grid.border},tabIndex:-1,announce:r,title:p.passive?i.representation.text:void 0,onKeyDown:e=>{ZP({evt:e,rootElement:u,selectionsAPI:s,cell:i,selectionDispatch:h,isSelectionsEnabled:g,setFocusedCellCoord:m,announce:r,keyboard:c,paginationNeeded:a,totalsPosition:l})},onKeyUp:e=>((e,t)=>{e.key===_E.SHIFT&&t({type:TE.SELECT_MULTI_END})})(e,h),onMouseDown:()=>((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,l=o.atTop?i+2:i+1;UP([l,a],t,r,n)})(i,u,m,c,l),children:Ki.jsx(QI,{cell:i,style:y})},o)}))},`row-${t}`))),l.atBottom?Ki.jsx(cD,{}):void 0]})};var pD=T(dD);const fD=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:l,translator:s}=oA(eA,(e=>e.baseProps)),u=oA(eA,(e=>e.columnWidths)),c=oA(eA,(e=>e.setColumnWidths));if(!l.active)return null;return Ki.jsx(uA,{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");VP({focusType:qE.FOCUS,cell:t})})(e.currentTarget),setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:s,columnLabel:i}})};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 hD=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:"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 gD(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){gD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),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 vD(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){vD(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),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"})))),xD=gE("div")({position:"absolute",left:0,bottom:0}),SD=gE(oC,{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"})));gE("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1});const ED=gE(oC,{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},[`& .${fh}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${n} 2fr 20px`:`${n} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:e?2:"span 2"},[`& .${fh}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),wD=gE(oC,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})));gE(oC,{shouldForwardProp:e=>"isVisible"!==e&&"rightAligned"!==e})((({rightAligned:e})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:"24px",display:"flex"}))),gE(bC)((({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"}}))),gE("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),gE(dC)((({theme:e})=>({marginRight:e.spacing(1.5),lineHeight:0}))),gE("div")((({theme:e})=>({height:"350px",boxSizing:"border-box",background:e.palette.common.white})));const CD=gE(NC,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...mR,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom","&&:focus-visible, &&:hover":{background:t.active?r:n}})));gE("div")({display:"flex",alignItems:"center"});const RD=gE("span",{shouldForwardProp:e=>"align"!==e})((({align:e})=>({minWidth:dR,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),AD=({column:e,isInteractionEnabled:t,open:r,setOpen:n,allColumnsIconVisibilityStatusRef:o,isPagination:i,forwardRef:a})=>{const{translator:l,changeSortOrder:s,interactions:u,embed:c,app:d,styleService:p,layout:f}=oA(eA,(e=>e.baseProps)),m=oA(eA,(t=>t.columnWidths[e.pageColIdx])),h=M(null),g=M(null),b=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=ih({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:pR});return 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])})({styleService:p,column:e,columnWidth:m}),v=b(),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n})=>{const o="A"===e?Ki.jsx(hD,{height:dR,"data-testid":"head-cell-sort-ascending-icon"}):Ki.jsx(bD,{height:dR,"data-testid":"head-cell-sort-descending-icon"}),i=r?Ki.jsx(RD,{align:t,children:o}):void 0,a=n?Ki.jsx(wD,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:Ki.jsx(yD,{height:dR,"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 Ki.jsxs(ED,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:e.headTextAlign,children:[S,Ki.jsxs(SD,{className:"sn-table-head-label",textAlign:e.headTextAlign,children:[y,Ki.jsx(lI,{forwardRef:a,isPagination:i,isHeadCell:!0,children:e.label}),x]}),t&&Ki.jsxs(Ki.Fragment,{children:[Ki.jsx(rP,{headerData:e,translator:l,anchorRef:h,handleHeadCellMenuKeyDown:JP,menuAvailabilityFlags:{[QA.SORTING]:!0,[QA.SEARCHING]:!0,[QA.SELECTIONS]:!0,[QA.ADJUST_HEADER_SIZE]:!0},open:r,setOpen:n,interactions:u,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),s(e,r))},searchRelatedArgs:{embed:c,listboxRef:g},selectionRelatedArgs:{app:d,qStateName:f.qStateName},adjustHeaderSizeRelatedArgs:{setFocusOnColumnAdjuster:WP},shouldShowMenuIcon:v.shouldShowMenuIcon}),Ki.jsx(xD,{ref:g}),Ki.jsx(xD,{ref:h})]})]})},PD=({isInteractionEnabled:e,columnsData:t})=>{const[r,n]=S(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=(e=>{const[t,r]=S(!1);return sh((()=>{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(vh)})(t)&&!o&&n(!0),setIsAdjustingWidth:i}},ID=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a}=oA(eA,(e=>e.baseProps)),{columns:l,totalsPosition:s}=oA(eA,(e=>e.tableData)),u=oA(eA,(e=>e.columnWidths[t])),c=oA(eA,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),d=oA(eA,(e=>e.setFocusedCellCoord)),p=oA(eA,(({focusedCellCoord:[e,r]})=>0===e&&r===t)),f=!!n.active&&!c,{open:m,setOpen:h,handleOpenMenu:g,setIsAdjustingWidth:b}=PD({isInteractionEnabled:f,columnsData:l}),v=e.isActivelySorted?NE[e.sortDirection]:void 0,y=m?hh: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 Ki.jsxs(CD,{headerStyle:{...a.header,...sD(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 ${gh}`,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(!XP(e))switch(e.key){case _E.C:Jm(e),vR(e)&&Rh(e.currentTarget);break;case _E.ENTER:case _E.SPACE:i&&i(e);break;default:SR(e.key)&&(Jm(e),GP({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n}))}}else Jm(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):VP({focusType:qE.FOCUS,cell:zP(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:[Ki.jsx(AD,{column:e,isInteractionEnabled:f,open:m,setOpen:h,isPagination:!0}),Ki.jsx(fD,{column:e,isLastColumn:S,setIsAdjustingWidth:b})]},e.id)},DD=()=>{var e;const{columns:t}=oA(eA,(e=>e.tableData)),{styleService:r,viewService:n}=oA(eA,(e=>e.baseProps)),o=oA(eA,(e=>e.setHeadRowHeight)),i=oA(eA,(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:Ki.jsx(UC,{children:Ki.jsx(eR,{ref:a,className:"sn-table-row sn-table-head-row",children:t.map(((e,r)=>Ki.jsx(ID,{column:e,columnIndex:r,columnsLength:t.length},e.id)))})})};var LD=T(DD);const MD=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}=oA(eA,(e=>e.tableData)),{rootElement:b,keyboard:v,translator:y,theme:x,interactions:S,styleService:E,viewService:C,layout:R,rect:A}=oA(eA,(e=>e.baseProps)),P=oA(eA,(e=>e.focusedCellCoord)),I=oA(eA,(e=>e.setFocusedCellCoord)),D=oA(eA,(e=>e.setYScrollbarWidth)),L=oA(eA,(e=>e.showRightBorder)),O=oA(eA,(e=>e.selectionDispatch)),T=oA(eA,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),_=M(!1),q=M(null),N=M(null),{yScrollbarWidth:F}=QP(q),j=`${y.get("SNTable.Accessibility.RowsAndColumns",[String(m.length),String(h.length)])} ${y.get("SNTable.Accessibility.NavigationInstructions")}`,z=fy(R,C),H=z&&null!==(t=C.scrollLeft)&&void 0!==t?t:0,$=z&&null!==(r=C.rowPartialHeight)&&void 0!==r?r:0,B=k((()=>{_.current=b.getElementsByTagName("table")[0].contains(document.activeElement)}),[b]),W=k((e=>{o({...n,page:e}),l({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),p.toString()]],politeness:"assertive"})}),[n,o,p,l]),V=k((e=>{o({...n,page:0,rowsPerPage:e}),l({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[l,n,o]);return YP(N,_,v),KP(q,i,C),(()=>{const{rootElement:e,keyboard:t}=oA(eA,(e=>e.baseProps)),r=oA(eA,(e=>e.focusedCellCoord));sh((()=>{const n=t.active?qE.FOCUS:qE.BLUR,o=t.active?zP(e,r):HP(e);VP({focusType:n,cell:o})}),[t.active,e])})(),w((()=>{const e=q.current;e&&(e.scrollLeft=H,e.scrollTop=$)}),[n,d,H,$]),jP((()=>{(({focusedCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a,totalsPosition:l})=>{VP({focusType:qE.REMOVE_TAB,cell:HP(t)});const s=[l.atTop?2:1,e[1]],u=n?s:cw;if(o(u),!(e=>!e.enabled||e.active)(i))return;const c=r.current?qE.FOCUS:qE.ADD_TAB;r.current=!1;const d=zP(t,u);if(VP({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:P,rootElement:b,shouldRefocus:_,setFocusedCellCoord:I,isSelectionMode:T,keyboard:v,announce:l,totalsPosition:g})}),[m.length,d,c,s]),jP((()=>{D(F)}),[F]),jP((()=>{O({type:TE.UPDATE_PAGE_ROWS,payload:{pageRows:m}})}),[m]),Ki.jsxs(NP,{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(yR(e)){Jm(e);const a=Math.ceil(t/n)-1;e.key===_E.RIGHT&&r<a?(i(),o(r+1)):e.key===_E.LEFT&&r>0&&(i(),o(r-1))}else if(e.key===_E.ESC&&a.enabled&&!l){var s;Jm(e),null===(s=a.blur)||void 0===s||s.call(a,!0)}else xR(e.key)&&Jm(e)})({evt:e,totalRowCount:d,page:s,rowsPerPage:u,handleChangePage:W,setShouldRefocus:B,keyboard:v,isSelectionMode:T})},"data-testid":"sn-table",children:[Ki.jsx(nI,{}),Ki.jsx(tI,{ref:q,className:"sn-table-container",fullHeight:a||!S.active||!f,interactions:S,tabIndex:-1,role:"application","data-testid":"table-container",children:Ki.jsxs(rI,{stickyHeader:!0,"aria-label":j,borderRight:L?`1px solid ${E.grid.border}`:void 0,children:[Ki.jsx(LD,{}),Ki.jsx(pD,{...e,setShouldRefocus:B,tableWrapperRef:N})]})}),Ki.jsx(_P,{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:W,handleChangeRowsPerPage:V,isSelectionMode:T})]})};var kD=T(MD);function OD(){return OD=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},OD.apply(this,arguments)}function TD(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _D(e,t){return _D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_D(e,t)}function qD(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_D(e,t)}var ND=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function FD(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||ND(n)&&ND(o)))return!1;var n,o;return!0}function jD(e,t){var r;void 0===t&&(t=FD);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 zD(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 HD="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function $D(e){cancelAnimationFrame(e.id)}function BD(e,t){var r=HD();var n={id:requestAnimationFrame((function o(){HD()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var WD=-1;function VD(e){if(void 0===e&&(e=!1),-1===WD||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),WD=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return WD}var GD=null;function UD(e){if(void 0===e&&(e=!1),null===GD||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?GD="positive-descending":(t.scrollLeft=1,GD=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),GD}return GD}var YD=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function KD(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,TD(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:TD(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=jD((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=jD((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=jD((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(UD()){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&&$D(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=BD(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}qD(t,e),t.getDerivedStateFromProps=function(e,t){return XD(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=VD();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(UD()){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&&$D(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?YD: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],P=C[1],I=[];if(n>0&&g)for(var D=A;D<=P;D++)for(var L=E;L<=w;L++)I.push(R(t,{columnIndex:L,data:d,isScrolling:v?x:void 0,key:f({columnIndex:L,data:d,rowIndex:D}),rowIndex:D,style:this._getItemStyle(D,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:OD({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},R(u||c||"div",{children:I,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 XD=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},JD=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},ZD=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},QD=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]},eL=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?tL(e,t,r,i,0,n):rL(e,t,r,Math.max(0,i),n)},tL=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),l=QD(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},rL=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&QD(e,t,n,r).offset<o;)n+=a,a*=2;return tL(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},nL=function(e,t,r,n,o,i,a){var l="column"===e?t.width:t.height,s=QD(e,t,r,i),u="column"===e?ZD(t,i):JD(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}},oL=KD({getColumnOffset:function(e,t,r){return QD("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return eL("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=QD("column",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=QD("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:JD,getEstimatedTotalWidth:ZD,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return nL("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return nL("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return QD("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return eL("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=QD("row",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=QD("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}}),iL=function(e,t){return e};function aL(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,TD(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:TD(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=jD((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=jD((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=jD((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(UD()){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&&$D(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=BD(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}qD(t,e),t.getDerivedStateFromProps=function(e,t){return lL(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?VD():0:s.scrollHeight>s.clientHeight?VD():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(UD()){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&&$D(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?iL: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 P=w;P<=C;P++)A.push(R(t,{data:c,key:p(P,c),index:P,isScrolling:b?y:void 0,style:this._getItemStyle(P)}));var I=n(this.props,this._instanceProps);return R(m||h||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:OD({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%":I,pointerEvents:y?"none":void 0,width:x?I:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,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 lL=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},sL=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]},uL=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=sL(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},cL=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&sL(e,r,t).offset<n;)r+=i,i*=2;return uL(e,t,Math.min(r,o-1),Math.floor(r/2),n)},dL=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},pL=aL({getItemOffset:function(e,t,r){return sL(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:dL,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=sL(e,t,o),p=dL(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?uL(e,t,o,0,r):cL(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=sL(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=sL(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 fL(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 mL=["style"],hL=["style"];function gL(e,t){var r=e.style,n=zD(e,mL),o=t.style,i=zD(t,hL);return!fL(r,o)&&!fL(n,i)}const bL=({style:e})=>Ki.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var vL=x.memo(bL,gL);const yL=e=>{var t;return null===(t=e.at(0))||void 0===t||null===(t=t.contentBoxSize.at(0))||void 0===t?void 0:t.blockSize},xL=(e,t)=>{w((()=>{if(!e)return()=>{};const r=new ResizeObserver(t);return r.observe(e),()=>{r.disconnect()}}),[e,t])},SL=()=>{},EL=e=>e.preventDefault();const wL=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o,i;const{rowsInPage:a,columns:l,isHoverEnabled:s,setMeasuredCellHeight:u,lineClamp:c}=n,d=oA(eA,(e=>e.hoverIndex===t)),p=oA(eA,(e=>e.setHoverIndex)),{interactions:f,styleService:m}=oA(eA,(e=>e.baseProps)),h=oA(eA,(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}=oA(eA,(e=>e.baseProps)),r=oA(eA,(e=>e.selectionDispatch)),n="object"==typeof e,o=oA(eA,(t=>n?wR(e,t.selectionState):OE.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=tD(EL,e,r,SL);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g),S=((e,t,r,n)=>{const o=M(null),i=r&&!(null!=r&&r.isNumeric);_((()=>{o.current&&i&&n(o.current.getBoundingClientRect().height,e,t)}),[n,o,e,t,i]);const a=k((r=>{const o=yL(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return xL(o.current,a),o})(t,e,g,u);let E={borderColor:m.grid.border,...m.measure.values};if(null!==(i=l[e])&&void 0!==i&&i.isDim&&(E={borderColor:m.grid.border,...m.dimension.values}),null!=g&&g.isNull&&(E={...E,...m.nullValues}),"object"==typeof g){var w;const n=((e,t,r,n,o,i)=>{const a=!e.isNull&&t.qAttrExprInfoIDs.length?zR(o,e.qAttrExps,t.qAttrExprInfoIDs):o;return n===OE.Selected?{...a,...i.selectedColors}:n===OE.Disabled?{...a,color:r?null===(l=i.grid.hoverColors)||void 0===l?void 0:l.color:a.color,background:`${uR}, ${r?null===(s=i.grid.hoverColors)||void 0===s?void 0:s.background:a.background}`}:r?{...a,...i.grid.hoverColors}:a;var l,s})(g,l[e],s&&d,x,E,m),o={rowindex:t,columnindex:e};return Ki.jsx("div",{className:`sn-table-cell ${x} ${gh}`,style:{...r,...n,display:"flex",alignItems:"start",borderWidth:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:g.isLastColumn&&!h?"0px":"1px",borderStyle:"solid",justifyContent:g.representation.type===lb.Image&&"fitHeight"===g.representation.imageSize?null===(w=g.representation)||void 0===w||null===(w=w.resolvedImagePosition)||void 0===w?void 0:w.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,...o,children:Ki.jsx(QI,{forwardRef:m.contentStaticLineCount||1===c?void 0:S,cell:g,style:n,lineClamp:c,virtualizedCell:!0})})}return Ki.jsx(vL,{style:{...r,...E,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var CL=x.memo(wL,gL);const RL=e=>{const t=M(e);return t.current=e,t},AL=({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},IL=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!(null!=e&&e[t])))},DL=(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;const o=t+n.qLeft,{colIdx:a,isDim:u,isLocked:m,bodyTextAlign:h,selectionColIdx:g,qAttrExprInfoIndex:b,representation:v,conditionalColoring:y}=i[o];f[o]=null!==(r=f[o])&&void 0!==r?r:{id:tv(),...e,align:dy(e,h),rowIdx:d,colIdx:a,isSelectable:u&&!m,pageRowIdx:p,pageColIdx:o,selectionColIdx:g,isLastRow:d===c.qcy-1,isLastColumn:o===c.qcx-1,isNumeric:ov(e),isNull:oy(e,u),representation:ny(e,v,b,l,y)},s(f[o],d,o)})),{row:f,pageRowIdx:p}})(r,l,s,e.qArea,u,n,o,i,a);r[d]=c}))}))},LL=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:l,columns:s,gridState:u,setEstimatedCellHeight:c})=>{const d=oA(eA,(e=>e.env)),p=M([]),f=k(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return DL(t,o,n,s,e,d,c),p.current=n,n}),[i,o,s,e,d,c]),[m,h]=S((()=>f(null!=n?n:[])));sh((()=>{h(f(null!=n?n:[]))}),[n]);const g=((e,t)=>{const r=M(new Set),n=M(new Set),o=M(new Set),i=RL(e),a=RL(t),l=E((()=>({enqueue:e=>{const t=AL(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(AL(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=>h((t=>f(e,t))))),b=k(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(IL(p.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};g.enqueue(e)}}),[p,g]),v=k(((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};g.enqueue(t)}}}),[p,g,o]);return w((()=>{const{qcx:t,qcy:r}=e.qHyperCube.qSize,n=u.current.overscanRowStartIndex,i=u.current.overscanColumnStartIndex,s=n+o.page*o.rowsPerPage,c=t-i,d=o.rowsPerPage-n,p=Math.min(100,c,t,l+5),f=Math.min(100,d,r,a+25);return v(i,s,p,f),()=>{g.clear()}}),[e,a,l,o,g,v,u,r]),{rowsInPage:m,loadRows:v,loadColumns:b}},ML=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},kL=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,OL=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=oA(eA,(e=>e.baseProps.styleService)),i=oA(eA,(e=>e.columnWidths)),{estimateLineCount:a}=ih(o.dimension.values),l=YR(o.dimension.values.fontSize),s=e||t||1===r;return k(((e,t,o)=>{if(s||e.representation.type===lb.Image||e.isNumeric)return;const u=(e=>Math.max(0,e-24-1))(i[o]),c=e.representation.text?a({text:e.representation.text,maxWidth:u,isNumeric:!1}):1,d=Math.min(r,Math.max(1,c));n(d*l,t,o)}),[s,i,a,r,l,n])},TL=({isStaticNbrOfLines:e,minRowHeight:t,state:r,rowCount:n,staticRowHeight:o,viewService:i})=>E((()=>{const{estimatedRowHeight:a,totalRowHeight:l}=e?{totalRowHeight:n*o,estimatedRowHeight:o}:(e=>{let t=0;e.forEach((e=>{t+=e}));const r=0===e.size?0:t/e.size;return{estimatedRowHeight:Math.ceil(r),totalRowHeight:t}})(r.rowHeights);return i.estimatedRowHeight=Math.max(a,t),Math.max(n*t,l)}),[e,t,n,r,o,i]),_L=({rowCount:e,isSnapshot:t,viewService:r,gridRef:n,pageInfo:o})=>{const{styleService:i}=oA(eA,(e=>e.baseProps)),[a,l]=S({rowHeights:new Map,cellHeightsInGrid:new Map}),s=i.contentLineHeight,u=i.contentMinRowHeight,c=!!i.contentStaticLineCount,d=Math.max(8e6/e,u)-9,p=d+9,f=Math.max(1,Math.min(i.grid.contentLineClamp,Math.round(d/s))),m=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:f,lineHeight:s,isStaticNbrOfLines:c});(({gridRef:e,setState:t,pageInfo:r})=>{var n;const{layout:o}=oA(eA,(e=>e.baseProps)),i=oA(eA,(e=>e.columnWidths)),{flags:a}=oA(eA,(e=>e.env)),l=!a.isEnabled("CLIENT_IM_6997_WORD_WRAP")||(null===(n=o.multiline)||void 0===n?void 0:n.wrapTextInCells);sh((()=>{var r;null===(r=e.current)||void 0===r||r.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map})}),[o.qHyperCube.qSize.qcx,o.qHyperCube.qSize.qcy,r.page,l]),sh((()=>{var t;null===(t=e.current)||void 0===t||t.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[i])})({gridRef:n,setState:l,pageInfo:o});const h=(({setState:e,maxCellHeight:t,minRowHeight:r,gridRef:n})=>k(((o,i,a)=>{N((()=>{e((e=>{var l,s;const u=Math.max(r,o+9),c=Math.min(t,u),d=null!==(l=e.cellHeightsInGrid.get(i))&&void 0!==l?l:e.cellHeightsInGrid.set(i,new Map).get(i);if(!kL(d.get(a),c))return e;const p={...e};return d.set(a,c),p.rowHeights.set(i,ML(d)),null===(s=n.current)||void 0===s||s.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),p}))}))}),[e,r,t,n]))({maxCellHeight:p,minRowHeight:u,setState:l,gridRef:n}),g=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>k(((o,i,a)=>{e||t||1===r||n(o,i,a)}),[e,t,r,n]))({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:h});return{setMeasuredCellHeight:g,setEstimatedCellHeight:OL({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:h}),getRowHeight:k((e=>{var t;return c?m:null!==(t=a.rowHeights.get(e))&&void 0!==t?t:u}),[c,u,a.rowHeights,m]),totalRowHeight:TL({isStaticNbrOfLines:c,minRowHeight:u,state:a,staticRowHeight:m,rowCount:e,viewService:r}),lineClamp:f}};var qL;!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(qL||(qL={}));const NL=({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=qL.None,i=qL.None;return o=n>t?qL.Down:n<t?qL.Up:qL.None,i=r>e?qL.Right:r<e?qL.Left:qL.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===qL.Down){const e=x+25;t(b,v,y,u+e>n?n-u:e)}else if(h===qL.Up){const e=x+25,r=o.page*o.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(g===qL.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(g===qL.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]),FL={enabled:!1},jL=()=>{},zL={current:null};const HL=(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"};var WL=T(O(((e,t)=>{var r;const{rect:n,columns:o,pageInfo:i,headerAndTotalsHeight:a}=e,{layout:l,model:s,theme:u,viewService:c,styleService:d}=oA(eA,(e=>e.baseProps)),p=oA(eA,(e=>e.columnWidths)),f=oA(eA,(e=>e.initialDataPages)),m=M(null),h=M(null),g=M({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),b=M(0),v=!(null===(r=_R(l))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect),{rowCount:y,visibleRowCount:x,visibleColumnCount:S}=HL(l,i,n,p,d.contentMinRowHeight),{setMeasuredCellHeight:C,setEstimatedCellHeight:R,getRowHeight:A,lineClamp:P,totalRowHeight:I}=_L({rowCount:y,isSnapshot:!!l.snapshotData,viewService:c,gridRef:m,pageInfo:i}),{rowsInPage:D,loadRows:L,loadColumns:k}=LL({layout:l,model:s,theme:u,initialDataPages:f,pageInfo:i,rowCount:y,visibleRowCount:x,visibleColumnCount:S,columns:o,gridState:g,setEstimatedCellHeight:R}),O=NL({layout:l,loadRows:L,loadColumns:k,rowCount:y,pageInfo:i,gridState:g,viewService:c}),T=E((()=>({rowsInPage:D,columns:o,isHoverEnabled:v,lineClamp:P,setMeasuredCellHeight:C})),[D,o,v,P,C]),q=((e,t,r)=>Math.min(e.height-t,r))(n,a,I);return _((()=>{var e;1===b.current&&(null===(e=m.current)||void 0===e||e.scrollToItem({rowIndex:y-1,align:"start"}))})),function(e){const{selectionsAPI:t}=oA(eA,(e=>e.baseProps)),r=oA(eA,(e=>e.selectionDispatch));w((()=>{r({type:TE.UPDATE_PAGE_ROWS,payload:{pageRows:e}})}),[r,e]),eD({selectionsAPI:t,selectionDispatch:r,setShouldRefocus:jL,keyboard:FL,tableWrapperRef:zL})}(D),F(t,(()=>({interpolatedScrollTo:(e,t)=>{var r,n;const o=(null!==(r=null===(n=h.current)||void 0===n?void 0:n.clientHeight)&&void 0!==r?r:q)-q,i=Math.round(o*e);var a,l,s;(b.current=e,1===b.current)?(null===(a=m.current)||void 0===a||a.scrollToItem({rowIndex:y-1,align:"start"}),null===(l=m.current)||void 0===l||l.scrollTo({scrollLeft:t})):null===(s=m.current)||void 0===s||s.scrollTo({scrollTop:i,scrollLeft:t})},element:h.current})),[h,q,y]),Ki.jsx(oL,{"data-key":"body",ref:m,innerRef:h,style:BL,columnCount:l.qHyperCube.qSize.qcx,columnWidth:e=>p[e],height:q,rowCount:y,rowHeight:A,estimatedRowHeight:c.estimatedRowHeight,width:n.width,itemData:T,onItemsRendered:O,itemKey:$L,className:"sn-table-body",children:CL})})));const VL=({width:e,height:t,children:r})=>Ki.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),GL=(e,t)=>{const r=M(null),n=oA(eA,(e=>e.columnWidths));_((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=k((r=>{const n=yL(r);n&&t(n+9,e)}),[e,t]);return xL(r.current,o),r},UL=gE("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}}))),YL=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,allColumnsIconVisibilityStatusRef:i,setMeasuredCellHeight:a}=r,{interactions:l,styleService:s}=oA(eA,(e=>e.baseProps)),u=oA(eA,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),c=oA(eA,(e=>e.showRightBorder)),d=oA(eA,(e=>e.tableData.totalsPosition)),p=!!l.active&&!u,{open:f,setOpen:m,handleOpenMenu:h,setIsAdjustingWidth:g}=PD({isInteractionEnabled:p,columnsData:n}),b=GL(e,a),v=n[e],y=n.length-1===e,x="right"===v.headTextAlign?"row-reverse":"row";return Ki.jsxs(UL,{className:`sn-table-cell ${gh}`,title:l.passive?v.label:void 0,onClick:h,applicableStyle:{...s.header,...sD(s,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderWidth:y&&!c?"0px 0px 1px 0px":"0px 1px 1px 0px",padding:"4px",justifyContent:v.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:x,userSelect:"none"},interactions:l,hoverBackground:s.headerMenuHoverBackground,background:f?s.headerMenuActiveBackground:s.header.background,children:[Ki.jsx(AD,{forwardRef:b,column:v,isInteractionEnabled:p,open:f,setOpen:m,allColumnsIconVisibilityStatusRef:i}),Ki.jsx(fD,{column:v,isLastColumn:y,onColumnResize:o,setIsAdjustingWidth:g})]})},KL=e=>{const[t,r]=S(new Map);sh((()=>{r(new Map)}),[e.length]);const n=k(((e,t)=>{r((r=>kL(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:E((()=>ML(t)),[t]),setMeasuredCellHeight:n}},XL=(e,t,r)=>{F(e,(()=>({scrollTo:e=>{var r;return null===(r=t.current)||void 0===r?void 0:r.scrollTo(e)},element:r.current})),[t,r])},JL=(e,t,r,n,o)=>{sh((()=>{var t;null==e||null===(t=e.current)||void 0===t||t.resetAfterIndex(0,!1)}),[t,r,e,n,o])},ZL={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},QL=O(((e,t)=>{const{rect:r,columns:n,pageInfo:o,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a}=e,l=M(null),s=M(null),{layout:u,theme:c,styleService:d}=oA(eA,(e=>e.baseProps)),p=oA(eA,(e=>e.columnWidths)),{rowHeight:f,setMeasuredCellHeight:m}=KL(n);return XL(t,l,s),JL(l,u,o,p,c),Ki.jsx(pL,{ref:l,outerRef:s,layout:"horizontal",style:ZL,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>p[e],height:Math.max(f+8,d.headerMinRowHeight),width:r.width,itemData:{columns:n,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a,setMeasuredCellHeight:m},children:YL})}));var eM=T(QL);const tM=x.forwardRef(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a}=oA(eA,(e=>e.baseProps));return Ki.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.active?"auto":"hidden",width:n,height:o},onScroll:i,children:r})})),rM=({children:e,rect:t})=>Ki.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"0px",width:t.width,height:t.height},children:e}),nM=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,{layout:a,interactions:l,styleService:s}=oA(eA,(e=>e.baseProps)),u=oA(eA,(e=>e.showRightBorder)),c=GL(e,i),d=n[e].totalInfo,{totalsTextAlign:p,isTotalNumeric:f}=n[e],m=a.qHyperCube.qSize.qcx-1===e;return Ki.jsx("div",{className:`sn-table-cell ${gh}`,title:l.passive?d:void 0,style:{...t,...s.totalRow,...sD(s,o,!1),background:s.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderLeftWidth:"0px",borderRightWidth:m&&!u?"0px":"1px",borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:p,boxSizing:"border-box",cursor:"default"},children:Ki.jsx(lI,{forwardRef:f?void 0:c,isNumeric:f,children:d})})},oM=O(((e,t)=>{const{rect:r,pageInfo:n,totals:o,columns:i}=e,a=M(null),l=M(null),{layout:s,theme:u,styleService:c}=oA(eA,(e=>e.baseProps)),d=oA(eA,(e=>e.columnWidths)),{rowHeight:p,setMeasuredCellHeight:f}=KL(i);return XL(t,a,l),JL(a,s,n,d,u),Ki.jsx(pL,{ref:a,outerRef:l,layout:"horizontal",style:ZL,itemCount:s.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:Math.max(p,c.totalRowMinHeight),width:r.width,itemData:{columns:i,totals:o,setMeasuredCellHeight:f},children:nM})}));var iM=T(oM);const aM=e=>{var t,r,n;const[o,i]=S(null!==(t=null===(r=e.current)||void 0===r||null===(r=r.element)||void 0===r?void 0:r.clientHeight)&&void 0!==t?t:0);_((()=>{var t;null!==(t=e.current)&&void 0!==t&&t.element&&i(e.current.element.clientHeight)}),[e]);const a=k((e=>{const t=yL(e);t&&i(t)}),[]);return xL(null===(n=e.current)||void 0===n?void 0:n.element,a),o},lM=e=>{var t;const{pageInfo:r}=e,{totalsPosition:n,columns:o,paginationNeeded:i}=oA(eA,(e=>e.tableData)),{layout:a,theme:l,rect:s,viewService:u}=oA(eA,(e=>e.baseProps)),c=oA(eA,(e=>e.columnWidths)),d=oA(eA,(e=>e.setYScrollbarWidth)),p=M(null),f=M(null),m=M(null),h=M(null),{xScrollbarWidth:g,yScrollbarWidth:b}=QP(p),v=M([]),y=E((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(s,i)),[s,i]),x=E((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(y,g,b)),[y,g,b]),{rowCount:S}=HL(a,r,x,c,0),w=(({headerRef:e,totalsRef:t,totalsPosition:r})=>{const n=aM(e),o=aM(t);return r.atTop||r.atBottom?n+o:n})({totalsPosition:n,headerRef:f,totalsRef:m}),{width:C,height:R}=(({bodyRef:e,headerAndTotalsHeight:t,rowCount:r,stickyContainerRect:n,columnWidths:o})=>{const{styleService:i}=oA(eA,(e=>e.baseProps)),a=aM(e)+t,l=r*i.contentMinRowHeight+t;let s=l;return l<n.height&&a>n.height&&(s=a),{width:o.reduce(((e,t)=>e+t),0),height:s}})({bodyRef:h,headerAndTotalsHeight:w,rowCount:S,stickyContainerRect:x,columnWidths:c}),A=((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),P=k((()=>{p.current&&(p.current.scrollTop=0)}),[p]);_((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[o.length]),_((()=>{p.current&&(p.current.scrollTop=0)}),[r,S,l]),jP((()=>{d(b)}),[b]);const I=Ki.jsx(iM,{rect:x,pageInfo:r,columns:o,ref:m,totals:n},"totals");return Ki.jsx(tM,{ref:p,width:y.width,height:y.height,onScroll:A,children:Ki.jsx(VL,{width:C,height:R,children:Ki.jsxs(rM,{rect:x,children:[null!==(t=u.viewState)&&void 0!==t&&t.skipHeader?null:Ki.jsx(eM,{rect:x,pageInfo:r,columns:o,ref:f,columResizeHandler:P,allColumnsIconVisibilityStatusRef:v}),n.atTop?I:null,Ki.jsx(WL,{ref:h,rect:x,pageInfo:r,columns:o,headerAndTotalsHeight:w}),n.atBottom?I:null]})})})};var sM=T(lM);const uM=()=>{const{theme:e,keyboard:t,translator:r,interactions:n,rect:o,layout:i}=oA(eA,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:l,totalColumnCount:s,totalPages:u}=oA(eA,(e=>e.tableData)),c=oA(eA,(e=>e.pageInfo)),d=oA(eA,(e=>e.setPage));return Ki.jsxs(NP,{"data-testid":"sn-table",background:e.background,dir:"ltr",children:[Ki.jsx(sM,{pageInfo:c}),Ki.jsx(_P,{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 cM=T(uM);var dM,pM={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"}(dM||(dM={}));const fM=(e,t)=>n((()=>(function(e){if(e&&e.get&&e.add){const t="SNTable.Accessibility.RowsAndColumns";if(e.get(t)!==t)return;Object.keys(pM).forEach((t=>{e.add(pM[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===dM.FIRST?(u=s,n=dM.SECOND):(u=l,n=dM.FIRST),u.innerHTML=u.innerHTML.endsWith(" ")?a:`${a} `,u.setAttribute("aria-atomic",o.toString()),u.setAttribute("aria-live",i)}})(e,t))),[e,t.language()]),mM={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},hM=({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=fy(l,y),C=my(l,y),R=fM(o,u),A=w?{page:y.page||mM.page,rowsPerPage:y.rowsPerPage||mM.rowsPerPage,rowsPerPageOptions:mM.rowsPerPageOptions}:mM,[P,I]=e(A),[D]=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>iy)return n({...r,rowsPerPage:ay(d,c),page:0}),null;const g=p>10,b=ly(t,o),v=py(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:tv(),...e[o],align:dy(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:ov(e[o]),isNull:oy(e[o],n.isDim),representation:ny(e[o],n.representation,n.qAttrExprInfoIndex,i,n.conditionalColoring)}})),r})))||[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(n,l,P,I,y,x):null),[l,P,n,s,C]);t((()=>{!!(C&&g&&n&&(l.snapshotData||r)&&l&&D&&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=iA(o);null==t||t.render(Ki.jsx(Jr,{stylisPlugins:"rtl"===o?[uw]:void 0,children:Ki.jsx(vE,{theme:x,children:Ki.jsx(nA,{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:Ki.jsx(kD,{...y,direction:o})})})}))}({app:r,model:n,rootElement:o,layout:l,tableData:D,direction:S,pageInfo:P,setPageInfo:I,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,D,s,S,d,f.active,R,p,b,C,l,c,h,o,P,I,u,m,E,v,x])};const gM=({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(gR,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}},bM=({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=!my(o,v),E=n((()=>function(e,t,r){const n=ly(e,r),o=py(e),i=e.qHyperCube.qSize.qcy,a=Math.min(gR,i),l=i>gR&&!!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(gR,t.qHyperCube.qSize.qcy),l=n((()=>({page:o,rowsPerPage:a,rowsPerPageOptions:[]})),[a,o]);if(r){const e=Math.floor(t.qHyperCube.qSize.qcy/gR);e<o&&i(e)}return{pageInfo:l,setPage:i}})(o,S),{initialDataPages:R,isLoading:A}=gM({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=iA("ltr");t.render(Ki.jsx(x.StrictMode,{children:Ki.jsx(vE,{theme:E,children:Ki.jsx(nA,{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:Ki.jsx(cM,{})})})}))}({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])},vM={version:JSON.stringify("3.12.2"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals",label:"Totals"},usePagination:!1,components:[]};function yM(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 xM=(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]}},SM=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const EM=(e,t,r,n)=>{var o;if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||mM.rowsPerPage,l=null!==(o=n.viewState)&&void 0!==o&&o.isMultiPage?0:3;return Math.min(i,a,e-t+1+l)},wM=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=ly(e,t);if(my(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=yM(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:EM(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=xM(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=(SM(m,h,g)?d:d+1)+c;let v=p+c;const y=xM(p,o),x=null==y?void 0:y.getBoundingClientRect();return y&&x&&(SM(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:EM(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},CM=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),RM=e=>e.getStyle("object","straightTableV2","backgroundColor");function AM(e){return{qae:{properties:{initial:vM},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:Jg,exportProperties:Kg,exploration:Zg},ext:Gb(e),component(){var r;const y=u(),x=(e=>{const r=n((()=>ah(e)),[e]);return t((()=>()=>r.unmount()),[r]),r})(y),S=c(),E=d(),w=p(),C=f(),R=m(),A=h(),P=g(),{freeResize:I}=i(),D=b(),L=null!=S&&null!==(r=S.snapshotData)&&void 0!==r&&r.content&&!I?{...D,...S.snapshotData.content.size}:D,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=rh(S,y,CM,RM),T=((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),_=Ub(S.qHyperCube,w),q=((e,t)=>{const{fontSize:r,fontFamily:n}=NR(t,e,!1),{fontSize:o,fontFamily:i}=FR(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(`.${gh}`);null!=n&&n.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{Rh(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}=wM(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:()=>wM(e,t,n)})),[e,t,n])})({layout:S,viewService:M,model:w,rootElement:y,contentRect:D}),bM({app:E,layout:S,model:w,rect:L,theme:O,keyboard:P,translator:R,interactions:C,selectionsAPI:A,changeSortOrder:T,rootElement:y,embed:k,reactRoot:x,applyColumnWidths:_,isFontLoaded:q,viewService:M,env:e}),hM({app:E,model:w,rootElement:y,layout:S,interactions:C,translator:R,selectionsAPI:A,theme:O,changeSortOrder:T,keyboard:P,rect:L,embed:k,reactRoot:x,applyColumnWidths:_,isFontLoaded:q,viewService:M,env:e})}}}export{AM as default};
|
|
193
|
+
`),jC.rippleVisible,VC,550,(({theme:e})=>e.transitions.easing.easeInOut),jC.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),jC.child,jC.childLeaving,UC,550,(({theme:e})=>e.transitions.easing.easeInOut),jC.childPulsate,YC,(({theme:e})=>e.transitions.easing.easeInOut));var JC=y.forwardRef((function(e,t){const r=FC({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=It(r,zC),[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=Yi(),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,Pl.jsx(XC,{classes:{ripple:ma(o.ripple,jC.ripple),rippleVisible:ma(o.rippleVisible,jC.rippleVisible),ripplePulsate:ma(o.ripplePulsate,jC.ripplePulsate),child:ma(o.child,jC.child),childLeaving:ma(o.childLeaving,jC.childLeaving),childPulsate:ma(o.childPulsate,jC.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=y.useCallback(((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const 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]),Pl.jsx(KC,vt({className:ma(jC.root,o.root,i),ref:m},a,{children:Pl.jsx(Nu,{component:null,exit:!0,children:l})}))}));function ZC(e){return ua("MuiButtonBase",e)}var QC=ca("MuiButtonBase",["root","disabled","focusVisible"]);const ew=["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"],tw=yE("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"},[`&.${QC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),rw=y.forwardRef((function(e,t){const r=FC({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:M=0,TouchRippleProps:P,touchRippleRef:L,type:D}=r,k=It(r,ew),O=y.useRef(null),T=y.useRef(null),_=Wi(T,L),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:j}=na(),[z,H]=y.useState(!1);s&&z&&H(!1),y.useImperativeHandle(n,(()=>({focusVisible:()=>{H(!0),O.current.focus()}})),[]);const[$,B]=y.useState(!1);y.useEffect((()=>{B(!0)}),[]);const W=$&&!u&&!s;function G(e,t,r=c){return Bi((n=>{t&&t(n);return!r&&T.current&&T.current[e](n),!0}))}y.useEffect((()=>{z&&d&&!u&&$&&T.current.pulsate()}),[u,d,z,$]);const V=G("start",E),U=G("stop",h),Y=G("stop",g),K=G("stop",w),X=G("stop",(e=>{z&&e.preventDefault(),C&&C(e)})),J=G("start",I),Z=G("stop",R),Q=G("stop",A),ee=G("stop",(e=>{F(e),!1===q.current&&H(!1),f&&f(e)}),!1),te=Bi((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&(H(!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=Bi((e=>{d&&!ne.current&&z&&T.current&&" "===e.key&&(ne.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ie=Bi((e=>{d&&" "===e.key&&T.current&&z&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.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===D?"button":D,le.disabled=s):(k.href||k.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Wi(t,j,O),ue=vt({},r,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:M,focusVisible:z}),ce=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=ia({root:["root",t&&"disabled",r&&"focusVisible"]},ZC,o);return r&&n&&(i.root+=` ${n}`),i})(ue);return Pl.jsxs(tw,vt({as:ae,className:ma(ce.root,a),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:U,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:Y,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:M,type:D},le,k,{children:[i,W?Pl.jsx(JC,vt({ref:_,center:o},P)):null]}))}));var nw=rw;var ow=ca("MuiBox",["root"]);const iw=HS(),aw=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=ii("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(vx),a=y.forwardRef((function(e,a){const l=function(e=wx){return Cx(e)}(r),s=Ax(e),{className:u,component:c="div"}=s,d=It(s,Mx);return Pl.jsx(i,vt({as:c,ref:a,className:ma(u,o?o(n):n),theme:t&&l[t]||l},d))}));return a}({themeId:vy,defaultTheme:iw,defaultClassName:ow.root,generateClassName:la.generate});var lw=aw;var sw=ca("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var uw=y.createContext({});function cw(e){return ua("MuiListItemIcon",e)}var dw=ca("MuiListItemIcon",["root","alignItemsFlexStart"]);const pw=["className"],fw=yE("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})=>vt({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var mw=y.forwardRef((function(e,t){const r=FC({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=It(r,pw),i=vt({},r,{alignItems:y.useContext(uw).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return ia({root:["root","flex-start"===t&&"alignItemsFlexStart"]},cw,r)})(i);return Pl.jsx(fw,vt({className:ma(a.root,n),ownerState:i,ref:t},o))}));var hw=ca("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function gw(e){return ua("MuiMenuItem",e)}var bw=ca("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const vw=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],yw=yE(nw,{shouldForwardProp:e=>vE(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})=>vt({},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"}},[`&.${bw.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Jx(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${bw.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Jx(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${bw.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Jx(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})`:Jx(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${bw.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${bw.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${sw.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${sw.inset}`]:{marginLeft:52},[`& .${hw.root}`]:{marginTop:0,marginBottom:0},[`& .${hw.inset}`]:{paddingLeft:36},[`& .${dw.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&vt({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${dw.root} svg`]:{fontSize:"1.25rem"}}))));var xw=y.forwardRef((function(e,t){const r=FC({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=It(r,vw),f=y.useContext(uw),m=y.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=y.useRef(null);$i((()=>{n&&h.current&&h.current.focus()}),[n]);const g=vt({},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 vt({},a,ia({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},gw,a))})(r),v=Wi(h,t);let x;return r.disabled||(x=void 0!==c?c:-1),Pl.jsx(uw.Provider,{value:m,children:Pl.jsx(yw,vt({ref:v,role:u,tabIndex:x,component:o,focusVisibleClassName:ma(b.focusVisible,s),className:ma(b.root,d)},p,{ownerState:g,classes:b}))})}));var Sw=y.createContext();function Ew(e){return ua("MuiTable",e)}ca("MuiTable",["root","stickyHeader"]);const Cw=["className","component","padding","size","stickyHeader"],ww=yE("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>vt({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":vt({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"}))),Rw="table",Aw=y.forwardRef((function(e,t){const r=FC({props:e,name:"MuiTable"}),{className:n,component:o=Rw,padding:i="normal",size:a="medium",stickyHeader:l=!1}=r,s=It(r,Cw),u=vt({},r,{component:o,padding:i,size:a,stickyHeader:l}),c=(e=>{const{classes:t,stickyHeader:r}=e;return ia({root:["root",r&&"stickyHeader"]},Ew,t)})(u),d=y.useMemo((()=>({padding:i,size:a,stickyHeader:l})),[i,a,l]);return Pl.jsx(Sw.Provider,{value:d,children:Pl.jsx(ww,vt({as:o,role:o===Rw?null:"table",ref:t,className:ma(c.root,n),ownerState:u},s))})}));var Iw=Aw;var Mw=y.createContext();function Pw(e){return ua("MuiTableBody",e)}ca("MuiTableBody",["root"]);const Lw=["className","component"],Dw=yE("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),kw={variant:"body"},Ow="tbody";var Tw=y.forwardRef((function(e,t){const r=FC({props:e,name:"MuiTableBody"}),{className:n,component:o=Ow}=r,i=It(r,Lw),a=vt({},r,{component:o}),l=(e=>{const{classes:t}=e;return ia({root:["root"]},Pw,t)})(a);return Pl.jsx(Mw.Provider,{value:kw,children:Pl.jsx(Dw,vt({className:ma(l.root,n),as:o,ref:t,role:o===Ow?null:"rowgroup",ownerState:a},i))})}));function _w(e){return ua("MuiTableCell",e)}var qw=ca("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);const Nw=["align","className","component","padding","scope","size","sortDirection","variant"],Fw=yE("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${qi(r.size)}`],"normal"!==r.padding&&t[`padding${qi(r.padding)}`],"inherit"!==r.align&&t[`align${qi(r.align)}`],r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>vt({},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?eS(Jx(e.palette.divider,1),.88):Zx(Jx(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",[`&.${qw.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}))),jw=y.forwardRef((function(e,t){const r=FC({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:l,size:s,sortDirection:u,variant:c}=r,d=It(r,Nw),p=y.useContext(Sw),f=y.useContext(Mw),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=vt({},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 ia({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${qi(n)}`,"normal"!==o&&`padding${qi(o)}`,`size${qi(i)}`]},_w,t)})(v);let S=null;return u&&(S="asc"===u?"ascending":"descending"),Pl.jsx(Fw,vt({as:h,ref:t,className:ma(x.root,o),"aria-sort":S,scope:g,ownerState:v},d))}));var zw=jw;function Hw(e){return ua("MuiTableContainer",e)}ca("MuiTableContainer",["root"]);const $w=["className","component"],Bw=yE("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var Ww=y.forwardRef((function(e,t){const r=FC({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=It(r,$w),a=vt({},r,{component:o}),l=(e=>{const{classes:t}=e;return ia({root:["root"]},Hw,t)})(a);return Pl.jsx(Bw,vt({ref:t,as:o,className:ma(l.root,n),ownerState:a},i))}));function Gw(e){return ua("MuiTableHead",e)}ca("MuiTableHead",["root"]);const Vw=["className","component"],Uw=yE("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Yw={variant:"head"},Kw="thead";var Xw=y.forwardRef((function(e,t){const r=FC({props:e,name:"MuiTableHead"}),{className:n,component:o=Kw}=r,i=It(r,Vw),a=vt({},r,{component:o}),l=(e=>{const{classes:t}=e;return ia({root:["root"]},Gw,t)})(a);return Pl.jsx(Mw.Provider,{value:Yw,children:Pl.jsx(Uw,vt({as:o,className:ma(l.root,n),ref:t,role:o===Kw?null:"rowgroup",ownerState:a},i))})}));function Jw(e){return ua("MuiTableRow",e)}var Zw=ca("MuiTableRow",["root","selected","hover","head","footer"]);const Qw=["className","component","hover","selected"],eR=yE("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,[`&.${Zw.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Zw.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Jx(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}))`:Jx(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),tR="tr",rR=y.forwardRef((function(e,t){const r=FC({props:e,name:"MuiTableRow"}),{className:n,component:o=tR,hover:i=!1,selected:a=!1}=r,l=It(r,Qw),s=y.useContext(Mw),u=vt({},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 ia({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},Jw,t)})(u);return Pl.jsx(eR,vt({as:o,ref:t,className:ma(c.root,n),role:o===tR?null:"row",ownerState:u},l))}));var nR=rR,oR=(e={})=>x.createElement(kC,{...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:hC.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const iR={MuiAccordion:{styleOverrides:{root:{backgroundColor:hC.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:hC.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:x.createElement(PC,{"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 ${hC.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:hC.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${hC.MISC_FOCUS_BORDER}`,borderRadius:xC,backgroundColor:hC.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 ${hC.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:hC.WHITE,color:hC.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:xC},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${hC.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:hC.GREYSCALE_0_15,backgroundColor:hC.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:hC.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${hC.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:hC.GREEN_PALE},"&:active":{backgroundColor:hC.GREEN_DARK},"&.Mui-focusVisible":{borderColor:hC.GREEN_PALE,boxShadow:`0 0 0 3px ${Lx(hC.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:hC.BLUE_PALE},"&:active":{backgroundColor:hC.BLUE_DARK},"&.Mui-focusVisible":{borderColor:hC.BLUE_PALE,boxShadow:`0 0 0 3px ${Lx(hC.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:xC,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:hC.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${hC.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:hC.GREYSCALE_0_15,backgroundColor:hC.GREYSCALE_100_60,"&:active":{backgroundColor:hC.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:hC.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${hC.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:hC.PURPLE,"&.Mui-focusVisible":{borderColor:hC.PURPLE,boxShadow:`0 0 0 3px ${Lx(hC.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:hC.GREEN,"&.Mui-focusVisible":{borderColor:hC.GREEN,boxShadow:`0 0 0 3px ${Lx(hC.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:hC.BLUE,"&.Mui-focusVisible":{borderColor:hC.BLUE,boxShadow:`0 0 0 3px ${Lx(hC.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:hC.ORANGE,"&.Mui-focusVisible":{borderColor:hC.ORANGE,boxShadow:`0 0 0 3px ${Lx(hC.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:hC.RED,"&.Mui-focusVisible":{borderColor:hC.RED,boxShadow:`0 0 0 3px ${Lx(hC.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:hC.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:hC.PURPLE_PALE},"&:active":{backgroundColor:hC.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:hC.PURPLE_PALE,boxShadow:`0 0 0 3px ${Lx(hC.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:hC.GREEN_PALE},"&:active":{backgroundColor:hC.GREEN_DARK},"&.Mui-focusVisible":{borderColor:hC.GREEN_PALE,boxShadow:`0 0 0 3px ${Lx(hC.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:hC.BLUE_PALE},"&:active":{backgroundColor:hC.BLUE_DARK},"&.Mui-focusVisible":{borderColor:hC.BLUE_PALE,boxShadow:`0 0 0 3px ${Lx(hC.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:hC.ORANGE_PALE},"&:active":{backgroundColor:hC.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:hC.ORANGE_PALE,boxShadow:`0 0 0 3px ${Lx(hC.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:hC.RED_PALE},"&:active":{backgroundColor:hC.RED_DARK},"&.Mui-focusVisible":{borderColor:hC.RED_PALE,boxShadow:`0 0 0 3px ${Lx(hC.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:hC.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:hC.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:xC,boxShadow:`inset 0 0 0 2px ${hC.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:x.createElement(DC,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:gC,borderRadius:xC,color:hC.TEXT_PRIMARY,backgroundColor:hC.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:hC.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${hC.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:hC.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:hC.GREYSCALE_0_05,color:hC.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:hC.GREEN,borderColor:hC.GREEN},"&.MuiChip-outlinedInfo":{color:hC.BLUE,borderColor:hC.BLUE},"&.MuiChip-outlinedWarning":{color:hC.ORANGE,borderColor:hC.ORANGE},"&.MuiChip-outlinedError":{color:hC.RED,borderColor:hC.RED}},outlined:{border:`solid 1px ${hC.GREYSCALE_0_15}`,backgroundColor:hC.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:xC,boxShadow:"none",backgroundColor:hC.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:hC.GREEN,borderColor:hC.GREEN},outlinedSecondary:{color:hC.BLUE,borderColor:hC.BLUE},label:{fontFamily:RC.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:x.createElement(DC,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:x.createElement(PC,{"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:xC},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:xC,fontSize:bC,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:hC.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${hC.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:hC.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:hC.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:hC.GREYSCALE_0_05}}},popupIndicator:{borderRadius:xC,border:`solid 1px ${hC.GREYSCALE_0_15}`,color:hC.GREYSCALE_0_60,marginRight:0,width:yC,height:yC},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${hC.GREYSCALE_0_15}`},clearIndicator:{borderRadius:xC,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:hC.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:bC}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:gC,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:hC.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:hC.GREYSCALE_25,fontSize:gC,fontFamily:RC.FONT_FAMILY,fontWeight:CC,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:hC.TEXT_PRIMARY},"&.Mui-error":{color:hC.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:hC.TEXT_SECONDARY,content:"'(optional)'",fontWeight:EC,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:hC.TEXT_SECONDARY,content:"'(required)'",fontWeight:EC,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:bC,lineHeight:"16px",backgroundColor:hC.WHITE,borderRadius:xC,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${hC.GREYSCALE_0_05}`,borderColor:hC.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${hC.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${hC.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${hC.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${hC.RED}`,boxShadow:`0px 0px 0px 1px ${hC.RED}, inset 0 2px 0 0 ${hC.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${hC.GREYSCALE_0_10}`,borderColor:hC.GREYSCALE_0_10,backgroundColor:hC.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:hC.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:hC.GREYSCALE_0_15,borderRadius:xC,boxShadow:`inset 0 2px 0 0 ${hC.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>x.createElement(PC,{...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:hC.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:hC.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:hC.GREYSCALE_0_03},"&:active":{backgroundColor:hC.GREYSCALE_0_10},"&:focus":{backgroundColor:hC.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${hC.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${hC.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:hC.GREYSCALE_0_30,"&:hover":{backgroundColor:hC.GREYSCALE_0_0,borderColor:hC.GREYSCALE_0_15},"& ~svg":{color:hC.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${hC.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:xC}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:hC.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${hC.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:hC.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:bC,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:gC,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:gC,fontWeight:CC,color:hC.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:CC}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${hC.GREYSCALE_0_15}, 0px 0px 0px 1px ${hC.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:x.createElement(_C,null),checkedIcon:x.createElement(qC,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:hC.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${hC.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:hC.GREEN_PALE,boxShadow:`0 0 0 3px ${Lx(hC.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:hC.BLUE_PALE,boxShadow:`0 0 0 3px ${Lx(hC.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:hC.GREYSCALE_0_20}},"&.Mui-disabled":{fill:hC.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:x.createElement(oR,null),checkedIcon:x.createElement(OC,null),indeterminateIcon:x.createElement(TC,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:xC,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:hC.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:hC.GREYSCALE_0_55,color:hC.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:hC.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:hC.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:hC.GREYSCALE_0_55,"&:hover":{color:hC.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:hC.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:hC.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:bC,color:hC.TEXT_PRIMARY,lineHeight:"16px",fontWeight:CC},secondary:{fontSize:gC,color:hC.GREYSCALE_45,fontWeight:EC,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:bC,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:bC,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:hC.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:gC,borderBottom:`solid 1px ${hC.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:bC,color:hC.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:hC.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:hC.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:hC.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:hC.RED}}},"&.Mui-focusVisible":{backgroundColor:hC.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:hC.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:hC.GREEN,height:"24px","&.Mui-disabled":{color:hC.GREYSCALE_0_15}},rail:{backgroundColor:hC.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${hC.GREYSCALE_0_05}`,borderRadius:xC,boxShadow:`inset 0px 0px 0px 1px ${hC.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${hC.GREYSCALE_0_05}`,borderRadius:xC},thumb:{height:"16px",width:"16px",borderRadius:xC,backgroundColor:hC.WHITE,boxShadow:`0px 1px 2px 0px ${hC.GREYSCALE_0_15}, 0px 0px 0px 1px ${hC.GREYSCALE_0_05}`,"&:hover":{borderRadius:xC,boxShadow:`0 2px 4px 0 ${hC.GREYSCALE_0_30}, 0 0 0 1px ${hC.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${hC.GREYSCALE_0_15}, 0 0 0 1px ${hC.GREYSCALE_0_06}, 0 0 0 2px ${hC.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${hC.GREYSCALE_0_15}, 0 0 0 1px ${hC.GREYSCALE_0_06}, 0 0 0 2px ${hC.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:hC.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:hC.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:hC.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:hC.GREYSCALE_0_15},markLabel:{color:hC.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:hC.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:hC.WHITE,color:hC.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:hC.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:hC.GREEN_PALE,boxShadow:`0 0 0 3px ${Lx(hC.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:hC.BLUE_PALE,boxShadow:`0 0 0 3px ${Lx(hC.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:hC.GREYSCALE_0_15,borderRadius:xC},thumb:{height:"16px",width:"16px",borderRadius:xC,backgroundColor:hC.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:bC,fontWeight:CC,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${hC.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${hC.MISC_FOCUS_BORDER}`,backgroundColor:hC.GREYSCALE_0_03,borderRadius:xC},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:hC.GREYSCALE_25,"&.Mui-selected":{color:hC.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:bC,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:xC,"&:hover":{backgroundColor:`${hC.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 ${hC.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${hC.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:xC,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:hC.GREYSCALE_0_05},"&:hover":{backgroundColor:`${hC.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${hC.GREYSCALE_85}`,borderRight:`1px solid ${hC.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:CC,backgroundColor:hC.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:hC.GREYSCALE_98,borderBottom:`1px solid ${hC.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${hC.GREYSCALE_85}`,borderTop:`1px solid ${hC.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:hC.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:hC.GREYSCALE_0_05,"&:hover":{backgroundColor:hC.GREYSCALE_0_03}},"&&:hover":{backgroundColor:hC.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>x.createElement(NC,{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 ${hC.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:bC,borderRadius:xC,padding:"7px 16px",border:`1px solid ${hC.GREYSCALE_0_15}`,backgroundColor:hC.GREYSCALE_100_60,color:hC.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:hC.GREYSCALE_0_10,border:`1px solid ${hC.GREYSCALE_0_30}`},"&:hover":{backgroundColor:hC.GREYSCALE_0_03,border:`1px solid ${hC.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:hC.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${hC.MISC_FOCUS_BORDER}`,border:`1px solid ${hC.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:hC.GREYSCALE_25,backgroundColor:hC.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:hC.GREYSCALE_0_10,border:`1px solid ${hC.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:gC,height:24,width:24,padding:7},sizeLarge:{fontSize:vC,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:bC,borderRadius:xC}}},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:hC.GREYSCALE_20},tooltip:{backgroundColor:hC.GREYSCALE_20,fontSize:gC,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var aR=e=>iR;const lR={mode:"light",primary:{ultraLight:hC.GREEN_ULTRA_LIGHT,light:hC.GREEN_PALE,main:hC.GREEN,dark:hC.GREEN_DARK,extraDark:hC.GREEN_EXTRA_DARK,contrastText:hC.WHITE},secondary:{ultraLight:hC.BLUE_ULTRA_LIGHT,light:hC.BLUE_PALE,main:hC.BLUE,dark:hC.BLUE_DARK,extraDark:hC.BLUE_EXTRA_DARK,contrastText:hC.WHITE},error:{ultraLight:hC.RED_ULTRA_LIGHT,light:hC.RED_PALE,main:hC.RED,dark:hC.RED_DARK,extraDark:hC.RED_EXTRA_DARK,contrastText:hC.WHITE},warning:{ultraLight:hC.ORANGE_ULTRA_LIGHT,light:hC.ORANGE_PALE,main:hC.ORANGE,dark:hC.ORANGE_DARK,extraDark:hC.ORANGE_EXTRA_DARK,contrastText:hC.WHITE},success:{ultraLight:hC.GREEN_ULTRA_LIGHT,light:hC.GREEN_PALE,main:hC.GREEN,dark:hC.GREEN_DARK,extraDark:hC.GREEN_EXTRA_DARK,contrastText:hC.WHITE},info:{ultraLight:hC.BLUE_ULTRA_LIGHT,light:hC.BLUE_PALE,main:hC.BLUE,dark:hC.BLUE_DARK,extraDark:hC.BLUE_EXTRA_DARK,contrastText:hC.WHITE},text:{primary:hC.TEXT_PRIMARY,secondary:hC.TEXT_SECONDARY,disabled:hC.GREYSCALE_0_30},action:{hover:hC.GREYSCALE_0_03,hoverOpacity:.03,selected:hC.GREYSCALE_0_05,selectedOpacity:.05,focus:hC.MISC_FOCUS_BORDER},amethyst:{ultraLight:hC.WHITE,main:hC.PURPLE,light:hC.PURPLE_PALE,dark:hC.PURPLE_DARK,extraDark:hC.GREYSCALE_0_0,contrastText:hC.WHITE},background:{paper:hC.WHITE,default:hC.GREYSCALE_95},divider:hC.GREYSCALE_0_15},sR=e=>({components:aR(),palette:lR,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:bC,fontWeightLight:SC,fontWeightRegular:EC,fontWeightMedium:CC,fontWeightBold:wC,htmlFontSize:bC,fontFamily:RC.FONT_FAMILY,button:{fontWeight:CC,fontSize:bC,textTransform:"none"},body1:{fontSize:vC,lineHeight:"24px"},body2:{fontSize:bC,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:yC,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:vC,fontWeight:CC,lineHeight:"16px"},h6:{fontSize:bC,fontWeight:CC,lineHeight:"16px"},caption:{color:hC.TEXT_SECONDARY},subtitle1:{fontSize:bC,color:hC.TEXT_SECONDARY},subtitle2:{fontSize:gC,color:hC.TEXT_SECONDARY}},shape:{borderRadius:xC}}),uR={...mC,MISC_FOCUS_BORDER:hC.MISC_FOCUS_BORDER},cR=(e="light")=>sR(),dR=cR().palette,pR=(dR.primary.light,qE.Selected,"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"),fR=4/3,mR="12px",hR="600",gR="Source Sans Pro, sans-serif",bR={height:"auto",fontSize:mR,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"}},vR={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:hR},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},yR=25e4,xR=(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(xh.PixelsMax,Math.max(xh.PixelsMin,m)),i-=n[a]};switch(s){case Sh.Pixels:m=u||xh.PixelsDefault,h();break;case Sh.Percentage:m=(c||xh.PercentageDefault)/100*t,h();break;case Sh.FitToContent:(null===(l=e.representation)||void 0===l?void 0:l.type)===ub.Image?o.push(a):(m=r(d,f,p,e.isLocked,e.isActivelySorted,e.isDim),h());break;case Sh.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(xh.AutoMinTable,e)}))}return n},SR=e=>e.ctrlKey||e.metaKey,ER=e=>e.shiftKey&&SR(e),CR=e=>[FE.LEFT,FE.RIGHT,FE.UP,FE.DOWN].includes(e),wR=e=>CR(e)||[FE.HOME,FE.END,FE.PAGE_UP,FE.PAGE_DOWN].includes(e),RR=e=>e.shiftKey&&CR(e.key),AR=(e,t)=>{const{colIdx:r,rows:n,api:o}=t;let i=qE.Inactive;return null!=o&&o.isModal()&&(i=r!==e.selectionColIdx?qE.Disabled:void 0!==n[e.qElemNumber]?qE.Selected:qE.Possible),i},IR=(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"]})},MR=(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),IR(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})},PR=(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&&RR(c)?(-1===i?null==n||n.begin(["/qHyperCubeDef"]):d={...o},d=((e,t,r,n,o)=>{const i={...t};if("key"in n&&RR(n)){i[r.qElemNumber]=r.rowIdx;const t=n.key===FE.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),IR(u,o,d),{...e,rows:d,colIdx:null!==(r=null==l?void 0:l.selectionColIdx)&&void 0!==r?r:s.selectionColIdx,isSelectMultiValues:!0}):e},LR=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}},DR=(e,t)=>{var r;switch(t.type){case NE.SELECT:return MR(e,t.payload);case NE.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 NE.SELECT_MOUSE_UP:return((e,t)=>LR(e.isSelectMultiValues||e.firstCell!==t.cell?e:MR(e,t)))(e,t.payload);case NE.SELECT_MULTI_ADD:return PR(e,t.payload);case NE.SELECT_MULTI_END:return LR(e);case NE.RESET:return null!==(r=e.api)&&void 0!==r&&r.isModal()?e:{...e,rows:{},colIdx:-1};case NE.CLEAR:return Object.keys(e.rows).length?{...e,rows:{}}:e;case NE.UPDATE_PAGE_ROWS:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},kR=4/3,OR=e=>!(null==e||!e.color)||"number"==typeof(null==e?void 0:e.index)&&e.index>-1;function TR(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const _R=(e,t)=>e?{borderBottomColor:Uf.DARK_MODE_BORDER,borderRightColor:Uf.DARK_MODE_BORDER,borderLeftColor:Uf.DARK_MODE_BORDER,borderTopColor:Uf.DARK_MODE_BORDER}:{borderLeftColor:Uf.BORDER_MEDIUM,borderRightColor:Uf.BORDER_MEDIUM,borderTopColor:Uf.BORDER_HEAVY,borderBottomColor:t?Uf.BORDER_HEAVY:Uf.BORDER_LIGHT},qR=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*kR+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},NR=e=>{var t;return null===(t=e.components)||void 0===t?void 0:t.find((e=>"theme"===e.key))},FR=(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:OR(null==r?void 0:r.fontColor)?TR(Uf.TEXT,t,null==r?void 0:r.fontColor):i||Uf.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,..._R(t.background.isDark,n)};return Object.keys(l).forEach((e=>{const t=e;null==l[t]&&delete l[t]})),l};function jR(e,t,r){var n,o,i;const a=null===(n=NR(e))||void 0===n?void 0:n.header,l=FR("header",t,a,r);return l.background=(e=>{if(void 0===e)return;const t=oe(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),l.hoverBackground=Vm(null!==(o=l.background)&&void 0!==o?o:Uf.WHITE,Eh),l.activeBackground=Vm(null!==(i=l.background)&&void 0!==i?i:Uf.WHITE,Ch),l}function zR(e,t,r,n){var o;const i=null===(o=NR(e))||void 0===o?void 0:o.content,a=FR("content",t,i);a.background=t.background.color;const l=qR(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=OR(u)||!!d,f=OR(s)||!!c,m=p||f;let h;h=OR(s)?TR(Uf.HOVER,t,s):c||(p?"":Uf.HOVER);const g=m?TR(Yf(h),t,u):"";return{...a,lastRowBottomBorder:l,hoverColors:{background:h,color:g}}}const HR=(e,t)=>{var r;const n=null!==(r=e.toLowerCase().match(/<[^>]+>/g))&&void 0!==r?r:[];return n.forEach((e=>e in vR&&Object.assign(t,vR[e]))),t};function $R(e,t,r){var n;const o={};let i={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return null==t||null===(n=t.qValues)||void 0===n||n.forEach(((e,t)=>{const n=e.qText,a=n&&Xm(n);a&&"none"!==a&&(o[r[t]]=a),i=n?HR(n,i):i})),o.cellBackgroundColor&&!o.cellForegroundColor&&(o.cellForegroundColor=Yf(o.cellBackgroundColor)),{...e,...o,color:o.cellForegroundColor||e.color,background:o.cellBackgroundColor||e.background,fontStyle:i.fontStyle,fontWeight:i.fontWeight,textDecoration:i.textDecoration}}const BR=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},WR=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=BR(e,null==t?void 0:t.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},GR=(e,t,r,n=Uf.WHITE)=>{var o;const{backgroundColor:i,backgroundFromStyling:a,sheetColorFromCSS:l}=WR(e,t,r);return null!==(o=eh(a,i,l,n))&&void 0!==o?o:n},VR=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return mR}},UR=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",YR=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?hR:"normal",KR=(e,t)=>!1===e&&t.flags.isEnabled("CLIENT_IM_6997_WORD_WRAP")?1:3,XR=e=>parseInt(null!=e?e:bR.fontSize,10)*fR,JR=e=>{const t=Math.max(XR(e.header.fontSize)+8,32),r=XR(e.totalRow.fontSize),n=Math.max(r+8+1,24),o=Math.max(XR(e.dimension.values.fontSize),XR(e.measure.values.fontSize)),i=(e.contentStaticLineCount||1)*o;return{headerMinRowHeight:t,totalRowLineHeight:r,totalRowMinHeight:n,contentLineHeight:o,contentMinRowHeight:Math.max(i+8+1,24)}},ZR=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",QR=(e,t,r,n,o)=>{var i,a,l,s,u,c,d,p,f,m,h,g,b,v,y,x,S,E,C,w,R,A,I,M,P,L,D,k,O,T,_,q,N,F,j,z,H,$,B,W,G,V,U,Y,K,X,J,Z,Q,ee,te,re,ne,oe,ie,ae,le,se,ue,ce,de,pe,fe,me;if(!e.flags.isEnabled("CLIENT_IM_6221_TABLE_STYLING"))return((e,t,r,n)=>{var o,i,a,l,s;const u=null===(o=NR(e))||void 0===o||null===(o=o.content)||void 0===o?void 0:o.rowHeight,c={header:{fontFamily:t.head.fontFamily,fontSize:t.head.fontSize,fontStyle:"normal",fontWeight:hR,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:hR,textDecoration:"none",color:t.totals.color,background:t.totals.background},nullValues:{fontStyle:"",fontWeight:"",textDecoration:"",color:"",background:"#F2F2F2"},grid:{contentLineClamp:null!=u?u:KR(null===(i=e.multiline)||void 0===i?void 0:i.wrapTextInCells,n),headerLineClamp:KR(null===(a=e.multiline)||void 0===a?void 0:a.wrapTextInHeaders,n),border:r.background.isDark?Uf.DARK_MODE_BORDER:Uf.BORDER_MEDIUM,divider:Uf.BORDER_HEAVY,hoverColors:{color:null===(l=t.body.hoverColors)||void 0===l?void 0:l.color,background:null===(s=t.body.hoverColors)||void 0===s?void 0:s.background},lastRowBottomBorder:t.body.lastRowBottomBorder},selectedColors:Ym({desiredColor:t.body.color,theme:r,flags:n.flags}),headerMenuHoverBackground:t.head.hoverBackground,headerMenuActiveBackground:t.head.activeBackground,headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:u},{headerMinRowHeight:d,totalRowLineHeight:p,totalRowMinHeight:f,contentLineHeight:m,contentMinRowHeight:h}=JR(c);return c.headerMinRowHeight=d,c.totalRowLineHeight=p,c.totalRowMinHeight=f,c.contentLineHeight=m,c.contentMinRowHeight=h,c})(t,r,n,e);const{header:he,dimensionValues:ge,measureValues:be,totalValues:ve,nullValues:ye,grid:xe,content:Se}=null!==(i=NR(t))&&void 0!==i?i:{},Ee=!0===t.usePagination?Uf.WHITE:Uf.TRANSPARENT,Ce=GR(n,he,"object.straightTableV2.dimension.label.name.backgroundColor",Ee),we=null!==(a=null!==(l=null!==(s=null!==(u=BR(n,null==ge?void 0:ge.fontColor))&&void 0!==u?u:BR(n,null==Se?void 0:Se.fontColor))&&void 0!==s?s:n.getStyle("object.straightTableV2.dimension","label.value","color"))&&void 0!==l?l:r.body.color)&&void 0!==a?a:Uf.TEXT,Re=null!==(c=null!==(d=null===(p=o.viewState)||void 0===p?void 0:p.maxLineCount)&&void 0!==d?d:null==Se?void 0:Se.rowHeight)&&void 0!==c?c:n.getStyle("object.straightTableV2","grid","lineClamp"),Ae={header:{fontFamily:null!==(f=null!==(m=null!==(h=null==he?void 0:he.fontFamily)&&void 0!==h?h:n.getStyle("object.straightTableV2.dimension","label.name","fontFamily"))&&void 0!==m?m:r.head.fontFamily)&&void 0!==f?f:gR,fontSize:VR(null!==(g=null!==(b=null==he?void 0:he.fontSize)&&void 0!==b?b:n.getStyle("object.straightTableV2.dimension","label.name","fontSize"))&&void 0!==g?g:r.head.fontSize),fontStyle:UR(null==he?void 0:he.fontStyle),fontWeight:YR(null==he?void 0:he.fontStyle,hR),textDecoration:ZR(null==he?void 0:he.fontStyle),color:null!==(v=null!==(y=null!==(x=BR(n,null==he?void 0:he.fontColor))&&void 0!==x?x:n.getStyle("object.straightTableV2.dimension","label.name","color"))&&void 0!==y?y:r.head.color)&&void 0!==v?v:Uf.TEXT,background:Ce},headerMenuHoverBackground:Vm(Ce,Eh),headerMenuActiveBackground:Vm(Ce,Ch),dimension:{values:{fontFamily:null!==(S=null!==(E=null!==(C=null==ge?void 0:ge.fontFamily)&&void 0!==C?C:n.getStyle("object.straightTableV2.dimension","label.value","fontFamily"))&&void 0!==E?E:r.body.fontFamily)&&void 0!==S?S:gR,fontSize:VR(null!==(w=null!==(R=null!==(A=null==ge?void 0:ge.fontSize)&&void 0!==A?A:null==Se?void 0:Se.fontSize)&&void 0!==R?R:n.getStyle("object.straightTableV2.dimension","label.value","fontSize"))&&void 0!==w?w:r.body.fontSize),fontStyle:UR(null==ge?void 0:ge.fontStyle),fontWeight:YR(null==ge?void 0:ge.fontStyle,"normal"),textDecoration:ZR(null==ge?void 0:ge.fontStyle),color:we,background:null!==(I=null!==(M=WR(n,ge,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor)&&void 0!==M?M:r.body.background)&&void 0!==I?I:Uf.TRANSPARENT}},measure:{values:{fontFamily:null!==(P=null!==(L=null!==(D=null==be?void 0:be.fontFamily)&&void 0!==D?D:n.getStyle("object.straightTableV2.measure","label.value","fontFamily"))&&void 0!==L?L:r.body.fontFamily)&&void 0!==P?P:gR,fontSize:VR(null!==(k=null!==(O=null!==(T=null==be?void 0:be.fontSize)&&void 0!==T?T:null==Se?void 0:Se.fontSize)&&void 0!==O?O:n.getStyle("object.straightTableV2.measure","label.value","fontSize"))&&void 0!==k?k:r.body.fontSize),fontStyle:UR(null==be?void 0:be.fontStyle),fontWeight:YR(null==be?void 0:be.fontStyle,"normal"),textDecoration:ZR(null==be?void 0:be.fontStyle),color:null!==(_=null!==(q=null!==(N=null!==(F=BR(n,null==be?void 0:be.fontColor))&&void 0!==F?F:BR(n,null==Se?void 0:Se.fontColor))&&void 0!==N?N:n.getStyle("object.straightTableV2.measure","label.value","color"))&&void 0!==q?q:r.body.color)&&void 0!==_?_:Uf.TEXT,background:null!==(j=null!==(z=WR(n,be,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor)&&void 0!==z?z:r.body.background)&&void 0!==j?j:Uf.TRANSPARENT}},totalRow:{fontFamily:null!==(H=null!==($=null!==(B=null==ve?void 0:ve.fontFamily)&&void 0!==B?B:n.getStyle("object.straightTableV2.total","label.value","fontFamily"))&&void 0!==$?$:r.totals.fontFamily)&&void 0!==H?H:gR,fontSize:VR(null!==(W=null!==(G=null!==(V=null==ve?void 0:ve.fontSize)&&void 0!==V?V:null==Se?void 0:Se.fontSize)&&void 0!==G?G:n.getStyle("object.straightTableV2.total","label.value","fontSize"))&&void 0!==W?W:r.totals.fontSize),fontStyle:UR(null==ve?void 0:ve.fontStyle),fontWeight:YR(null==ve?void 0:ve.fontStyle,hR),textDecoration:ZR(null==ve?void 0:ve.fontStyle),color:null!==(U=null!==(Y=null!==(K=null!==(X=BR(n,null==ve?void 0:ve.fontColor))&&void 0!==X?X:BR(n,null==Se?void 0:Se.fontColor))&&void 0!==K?K:n.getStyle("object.straightTableV2.total","label.value","color"))&&void 0!==Y?Y:r.totals.color)&&void 0!==U?U:Uf.TEXT,background:GR(n,ve,"object.straightTableV2.total.label.value.backgroundColor",Ee)},nullValues:{fontStyle:UR(null==ye?void 0:ye.fontStyle),fontWeight:YR(null==ye?void 0:ye.fontStyle,"normal"),textDecoration:ZR(null==ye?void 0:ye.fontStyle),color:null!==(J=null!==(Z=null!==(Q=null!==(ee=BR(n,null==ye?void 0:ye.fontColor))&&void 0!==ee?ee:BR(n,null==Se?void 0:Se.fontColor))&&void 0!==Q?Q:n.getStyle("object.straightTableV2.null","label.value","color"))&&void 0!==Z?Z:r.body.color)&&void 0!==J?J:Uf.TEXT,background:null!==(te=null!==(re=BR(n,null==ye?void 0:ye.background))&&void 0!==re?re:n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor"))&&void 0!==te?te:Uf.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:null!=Re?Re:KR(null===(ne=t.multiline)||void 0===ne?void 0:ne.wrapTextInCells,e),headerLineClamp:KR(null===(oe=t.multiline)||void 0===oe?void 0:oe.wrapTextInHeaders,e),border:null!==(ie=null!==(ae=BR(n,null==xe?void 0:xe.border))&&void 0!==ae?ae:n.getStyle("object.straightTableV2","grid","borderColor"))&&void 0!==ie?ie:n.background.isDark?Uf.DARK_MODE_BORDER:Uf.BORDER_MEDIUM,divider:null!==(le=null!==(se=BR(n,null==xe?void 0:xe.divider))&&void 0!==se?se:n.getStyle("object.straightTableV2.grid","","divider.borderColor"))&&void 0!==le?le:Uf.BORDER_HEAVY,hoverColors:{color:null!==(ue=null!==(ce=BR(n,null==Se?void 0:Se.hoverFontColor))&&void 0!==ce?ce:n.getStyle("object.straightTableV2","","grid.hover.color"))&&void 0!==ue?ue:null===(de=r.body.hoverColors)||void 0===de?void 0:de.color,background:null!==(pe=null!==(fe=BR(n,null==Se?void 0:Se.hoverColor))&&void 0!==fe?fe:n.getStyle("object.straightTableV2","","grid.hover.backgroundColor"))&&void 0!==pe?pe:null===(me=r.body.hoverColors)||void 0===me?void 0:me.background},lastRowBottomBorder:r.body.lastRowBottomBorder},selectedColors:Ym({desiredColor:we,theme:n,flags:e.flags}),headerMinRowHeight:0,totalRowLineHeight:0,totalRowMinHeight:0,contentLineHeight:0,contentMinRowHeight:0,contentStaticLineCount:Re},{headerMinRowHeight:Ie,totalRowLineHeight:Me,totalRowMinHeight:Pe,contentLineHeight:Le,contentMinRowHeight:De}=JR(Ae);return Ae.headerMinRowHeight=Ie,Ae.totalRowLineHeight=Me,Ae.totalRowMinHeight=Pe,Ae.contentLineHeight=Le,Ae.contentMinRowHeight=De,Ae},eA=(e,t,r,n)=>{const o=E((()=>{const o=r.totalsPosition.atTop,i=zR(e,t,r.rows.length,n),a=jR(e,t,!o),l=function(e,t,r){var n;const o=null===(n=NR(e))||void 0===n?void 0:n.content,i=FR("content",t,o),{borderBottomColor:a,borderTopColor:l,background:s}=jR(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},tA=new Map;const rA=L({}),nA=function(e){const t=L([()=>{},new Set]);return tA.set(e,t),({children:r,value:n})=>{const o=D(n),i=D(new Set);C((()=>{o.current=n,i.current.forEach((e=>{e(n)}))}),[n]);const a=k((()=>o.current),[o]),l=E((()=>[a,i.current]),[a]);return Pl.jsx(e.Provider,{value:n,children:Pl.jsx(t.Provider,{value:l,children:r})})}}(rA),oA={rows:[],columns:[],totalsPosition:{}},iA=({app:e,children:t,tableData:r=oA,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||fC),[I,M]=((e,t)=>{const[r,n]=P(DR,{pageRows:e,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return[r,n]})(r.rows,n),[L,D]=S(-1),k=eA(i,u,r,d),O=((e,t,r,n,o)=>E((()=>QR(e,t,r,n,o)),[t,r,e,n,o]))(x,i,k,u,y),[T,_,q,N]=((e,t,r,n)=>{const o=t.atBottom||t.atTop,i=ah({...n.header,fontWeight:hR},{maxNbrLinesOfText:3}).measureText,a=ah({...n.totalRow,fontWeight:hR},{maxNbrLinesOfText:3}).measureText,{estimateWidth:l}=ah(n.dimension.values,{maxNbrLinesOfText:3}),{estimateWidth:s}=ah(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((()=>xR(e,r,u)));uh((()=>{f(xR(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 Pl.jsx(nA,{value:{headRowHeight:C,setHeadRowHeight:w,focusedCellCoord:R,setFocusedCellCoord:A,selectionState:I,selectionDispatch:M,hoverIndex:L,setHoverIndex:D,columnWidths:T,setColumnWidths:_,baseProps:F,tableData:r,setYScrollbarWidth:q,setPage:h,pageInfo:g,initialDataPages:b,showRightBorder:N,env:x},children:t})};function aA(e,t){const r=function(e){return tA.get(e)}(e),[n,o]=w(r),[,i]=P((e=>e+1),0),a=D(t),l=D(),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 lA(e){var t;const r=cR();return null!=r&&null!==(t=r.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(r.components.MuiTable.styleOverrides.root={}),HS({...r,direction:e})}const sA={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},uA={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},cA=Xs("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":{...sA},"&::-moz-range-track":{...sA},"&::-ms-track":{...sA},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...uA},"&::-moz-range-thumb":{...uA},"&::-ms-thumb":{...uA},"&: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"}}))),dA=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u,accessibilityRelatedArgs:c})=>{const d=dh({translator:c.translator}),p=D({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}};uh((()=>m&&g()),[e]);const b=e=>{const t=Math.max(e,xh.PixelsMin);p.current.columnWidth=t,i(t)},v=()=>{if(p.current.columnWidth!==p.current.initWidth){const e={type:Sh.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=>{Zm(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=>{Zm(e),document.removeEventListener("touchmove",E),document.removeEventListener("touchend",C),v()},w=!n&&l?e=>{if(e.key===vh.LEFT||e.key===vh.RIGHT){Zm(e);const t=5,r=e.key===vh.LEFT?-t:t;b(p.current.columnWidth+r)}else e.key===vh.SPACE||e.key===vh.ENTER?(Zm(e),l(e),v()):e.key===vh.ESC&&(Zm(e),l(e),b(p.current.initWidth))}:void 0,R=d.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(c.columnLabel)]);return x.createElement(cA,{style:h,key:t,hoverColor:o,isLastColumn:r,className:yh,"data-testid":yh,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",y),document.addEventListener("mouseup",S),null==s||s(!0),g(e.clientX)},onDoubleClick:()=>a({type:Sh.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:xh.PixelsMax,"aria-label":R,"aria-valuemin":xh.PixelsMin,"aria-valuemax":xh.PixelsMax,"aria-valuenow":Number(e.toFixed(1))})};function pA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const fA=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){pA(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 mA(){return mA=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},mA.apply(null,arguments)}const hA=Xs(yd,{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"}))),gA=Xs(fA,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),bA=Xs(Xp)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),vA=Xs(Bd)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),yA=Xs(tf)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),xA=Xs(tf,{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")}))),SA=Xs("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"}))),EA=Xs("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),CA=Xs(xc)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),wA=Xs(Cp)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function RA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const AA=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){RA(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),x.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"}))));let IA={};const MA=({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=D(null),f=k((e=>{e.stopPropagation(),d(!1)}),[d]);return x.createElement(x.Fragment,null,x.createElement(xA,{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),IA={}),null!=a&&a.length&&(d(!0),IA[n]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&x.createElement(SA,null),x.createElement(EA,null,x.createElement(wA,null,x.createElement(o,null)),x.createElement(CA,{variant:"body2"},n)),null!=a&&a.length?x.createElement(AA,null):null),(null==a?void 0:a.length)&&x.createElement(DA,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=IA,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},PA=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map((e=>{var n;return[[e.groupHeading&&x.createElement(yA,{key:e.groupHeading,disabled:!0,style:{opacity:1}},e.groupHeading),null===(n=e.items)||void 0===n?void 0:n.map((e=>x.createElement(MA,mA({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:r}))))].filter(Boolean)]})),LA={appear:200,enter:200,exit:100},DA=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:l})=>n.length?x.createElement(bA,mA({className:hh,open:t,anchorEl:e,onClose:r,transitionDuration:LA,MenuListProps:{id:gh}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:r})=>e.map(((n,o)=>[PA({menuGroup:n,isSubMenu:t,handleHeadCellMenuKeyDown:r}),o<e.length-1?x.createElement(vA,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:n,isSubMenu:a,handleHeadCellMenuKeyDown:l})):null,kA=(e,t)=>e.some((e=>t[e]>0)),OA={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},TA=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=S(null),[a,l]=S(OA);return uh((()=>{e||(l(OA),i(null))}),[e]),C((()=>{if(null==n||!n.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const s=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=((e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}))(t,r),u=await n.createSessionObject(e),c=await u.getLayout(),{qStateCounts:d}=c.qListObject.qDimensionInfo;o=c.qInfo.qId,a?s():(i(u),l((e=>({canSelectAll:kA(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:kA(["qSelected"],e),canSelectPossible:kA(["qOption"],e),canSelectAlternative:kA(["qAlternative"],e),canSelectExcluded:kA(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,s()}}),[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}};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 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){_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:"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 NA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const FA=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){NA(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 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 zA=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){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:"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 HA(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=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){HA(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 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 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){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:"M.5 4.774v6.452a2 2 0 0 0 1.154 1.813l5.5 2.566a2 2 0 0 0 1.692 0l5.5-2.566a2 2 0 0 0 1.154-1.813V4.774a2 2 0 0 0-1.154-1.813L8.846.395a2 2 0 0 0-1.692 0l-5.5 2.566A2 2 0 0 0 .5 4.774m1 0v-.032l6 2.428v7.493l-5.423-2.53a1 1 0 0 1-.577-.907zm.545-.89.032-.016 5.5-2.567a1 1 0 0 1 .846 0l5.5 2.567.032.015L8 6.293zm12.454.858v6.484a1 1 0 0 1-.576.906L8.5 14.663V7.17z"}))));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 VA=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:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"}))));function UA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const YA=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){UA(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 KA(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const XA=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){KA(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 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 ZA=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){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 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 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 eI=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){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:"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 tI(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){tI(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 nI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const oI=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){nI(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 iI=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const aI="/qListObjectDef",lI=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,setFocusOnColumnAdjuster:c,setActiveFieldCallback:d})=>{const p=[];if(r[iI.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);p.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:qA,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:$A,enabled:l,isActive:!!r&&"D"===i,autoFocus:!a&&l}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:VA,subMenus:[[{items:e.groupDimensionLabels.map(((t,r)=>({id:r+1,itemTitle:t,onClick:async e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:WA,isActive:e.groupDimensionPos===r})))}]]}]}]),t.length>0&&p.push(...t)}if(e.isDim&&null!=i&&i.select){const e=[];r[iI.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:YA,enabled:!0}]}]),r[iI.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:oI,enabled:!!l,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectAll(aI))},icon:XA,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectPossible(aI))},icon:rI,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(null==l?void 0:l.selectListObjectAlternative(aI))},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.selectListObjectExcluded(aI))},icon:eI,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.clearSelections(aI))},icon:FA,enabled:s.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return r[iI.ADJUST_HEADER_SIZE]&&p.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),null==c||c(u)},icon:zA,enabled:!0}]}]),p},sI=({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,env:f})=>{var m;const h=dh({translator:o}),{headTextAlign:g,qLibraryId:b,fieldId:v}=n,y=null==d?void 0:d.app,{fieldInstance:S,selectionActionsEnabledStatus:E}=TA({open:e,headerData:n,app:y,qStateName:null==d?void 0:d.qStateName});let C=null;if(f.flags.isEnabled("CLIENT_IM_7107_TABLE_MENU_CYCLIC_DIM")&&y&&n.qLibraryId){const e=n.qLibraryId;C=async t=>{try{const r=await y.getDimension(e);await r.setActiveField(t)}catch(e){console.error(e)}}}const w=k((()=>{const e=b?{qLibraryId:b,type:"dimension"}:v;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,stateName:null==d?void 0:d.qStateName})}}),[b,v,c,null==d?void 0:d.qStateName]),R=k((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?x.createElement(hA,{rightAligned:"right"===g,shouldShowMenuIcon:s,className:mh},s&&x.createElement(gA,{height:ph,className:fh,"data-testid":fh,isInteractionsActive:null!==(m=i.active)&&void 0!==m&&m},x.createElement(fA,null)),x.createElement(DA,{open:e,anchorEl:r.current,onClose:R,menuGroups:lI({headerData:n,translator:h,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:w,interactions:i,fieldInstance:S,selectionActionsEnabledStatus:E,anchorRef:r,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster,setActiveFieldCallback:C}),handleHeadCellMenuKeyDown:a})):null},uI=e=>e.isDark?{background:e.color,borderColor:Uf.DARK_MODE_BORDER,color:Uf.DARK_MODE_TEXT,disabledColor:Uf.DARK_MODE_DISABLED,iconColor:Uf.DARK_MODE_TEXT}:{background:e.color,borderColor:Uf.BORDER_MEDIUM,color:Uf.TEXT,disabledColor:Uf.DISABLED},cI=Xs(yd,{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}`}))),dI=Xs(zf,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),pI=Xs(Ld,{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)}))),fI=Xs(xc)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),mI=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=E((()=>uI(n.background)),[n]);if(!r.active)return null;const a=o?x.createElement(cI,{footerStyle:i},e):null;return t?z.createPortal(e,t):a},hI=L({}),gI=()=>w(hI),bI=({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((()=>uI(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=dh({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(hI.Provider,{value:S},e)};let vI=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),yI=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 xI(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const SI=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){xI(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 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 CI=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:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"}))));function wI(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){wI(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"})))),AI={FirstPage:CI,PreviousPage:SI,NextPage:AA,LastPage:RI,FirstPageRTL:RI,PreviousPageRTL:AA,NextPageRTL:SI,LastPageRTL:CI},II=({disabledCondition:e,pageNumber:t,type:r})=>{const{direction:n,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=gI(),u=AI[`${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}=gI(),r=0===e.page,{IconComponent:n,styledProps:o}=II({type:vI.FirstPage,disabledCondition:r,pageNumber:0});return t<=yI.FirstPage?null:x.createElement(pI,o,x.createElement(n,{height:ph}))},PI=(e,t,r=!1)=>{r&&e.key===vh.TAB&&!e.shiftKey&&(Zm(e),Jm(e.target,t,!1))},LI=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=gI(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=II({type:vI.LastPage,disabledCondition:i,pageNumber:r-1}),s=t.enabled?e=>PI(e,t,n):null;return o<=yI.LastPage?null:x.createElement(pI,mA({},l,{onKeyDown:s}),x.createElement(a,{height:ph}))},DI=()=>{const{pageInfo:e,keyboard:t,totalPages:r,isSelectionMode:n,width:o}=gI(),i=e.page>=r-1,{IconComponent:a,styledProps:l}=II({type:vI.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>yI.FirstPage&&o>yI.LastPage)&&t.enabled?e=>PI(e,t,n):null;return x.createElement(pI,mA({},l,{onKeyDown:s}),x.createElement(a,{height:ph}))},kI=()=>{const{pageInfo:e}=gI(),t=0===e.page,{IconComponent:r,styledProps:n}=II({type:vI.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return x.createElement(pI,n,x.createElement(r,{height:ph}))},OI=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n}=gI(),{page:o,rowsPerPage:i}=r;if(t<=yI.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,n)}`,n.toString()]);return x.createElement(fI,{variant:"caption"},a)},TI=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=gI(),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(fI,{variant:"caption",id:d},u,":"),x.createElement(dI,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:p},r))},_I=()=>{var e;const{pageInfo:t,isSelectionMode:r,totalColumnCount:n,width:o,handleChangeRowsPerPage:i}=gI();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!r&&o>yI.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(TI,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},qI=1e3,NI="…",FI=({totalPages:e,page:t})=>{const r=Math.min(e,qI),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-qI):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:NI,disabled:!0},NI)),o<e-1&&a.push(x.createElement("option",{key:"endMoreOptions",value:NI,disabled:!0},NI)),x.createElement(x.Fragment,null,a)},jI=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n}=gI(),{page:o}=e;if(t<=yI.SelectPage)return null;const i=x.createElement(FI,{totalPages:r,page:o});return x.createElement(TI,{name:"SelectPage",value:o,options:i,handleChange:e=>n(+e.target.value)})};var zI=T((e=>x.createElement(bI,e,x.createElement(_I,null),x.createElement(jI,null),x.createElement(OI,null),x.createElement(MI,null),x.createElement(kI,null),x.createElement(DI,null),x.createElement(LI,null))));const HI=e=>x.createElement(mI,e,x.createElement(zI,e)),$I={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},BI=yE(lw,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.color}))),WI=yE("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e&&"isWordWrapEnabled"!==e})((({lineClamp:e,isHeadCell:t=!1,isPagination:r=!1,isNumeric:n=!1,isWordWrapEnabled:o=!1})=>{if(n||1===e&&!t)return{...$I,whiteSpace:"nowrap",display:r?"block":void 0};const i=t&&r&&!o||o?"break-word":"break-all";return{...$I,wordBreak:i,display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}}));function GI(e,t){const r=D(!1);C((()=>{r.current?e():r.current=!0}),t)}const VI=(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]]},UI=e=>e.querySelector("td[tabindex='0'], th[tabindex='0']"),YI=e=>{const t=e.nextElementSibling;var r;return t?"HR"===t.tagName?YI(t):t:null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[0]},KI=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?KI(t):t},XI=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(`.${yh}`);null==r||r.setAttribute("tabIndex","0"),null==r||r.focus()}),0)},JI=({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")}},ZI=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o})=>{JI({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 FE.DOWN:s<a&&s++;break;case FE.UP:s>i&&s--;break;case FE.RIGHT:if(o)break;u<l?u++:s<a&&(s++,u=0);break;case FE.LEFT:if(o)break;u>0?u--:s>0&&(s--,u=l);break;case FE.HOME:(SR(e)||o)&&(s=i),o||(u=0);break;case FE.END:(SR(e)||o)&&(s=a),o||(u=l);break;case FE.PAGE_DOWN:s=Math.min(a,s+10);break;case FE.PAGE_UP:s=Math.max(i,s-10)}return[s,u]})(e,t,r,o),a=VI(t,i);return JI({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}},QI=(e,t,r,n)=>{var o;(JI({focusType:jE.REMOVE_TAB,cell:UI(t)}),r(e),n.enabled&&!n.active)?null===(o=n.focus)||void 0===o||o.call(n):JI({focusType:jE.ADD_TAB,cell:VI(t,e)})},eM=(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(`.${hh}`);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])},tM=(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])},rM=(e,t=!1)=>e.key===FE.ESC&&!t||(e.key===FE.LEFT||e.key===FE.RIGHT)&&ER(e),nM=e=>{var t;const{key:r,currentTarget:n}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:n;if(r===FE.DOWN||r===FE.UP){const t=e=>r===FE.DOWN?YI(e):KI(e);Zm(e);let n=t(o);for(;n;){if("true"!==n.ariaDisabled){n.focus();break}n=t(n)}}},oM=({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(qE.Disabled))return void Zm(e);const d=null==c?void 0:c.isModal();if(!rM(e,d))switch(e.key){case FE.SPACE:Zm(e),r.isSelectable&&o&&n({type:NE.SELECT,payload:{cell:r,evt:e,announce:a}});break;case FE.ENTER:Zm(e),d&&(null==c||c.confirm(),a({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case FE.ESC:Zm(e),null==c||c.cancel(),a({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case FE.TAB:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{(null==t?void 0:t.enabled)&&r&&(e.shiftKey||!e.shiftKey&&!n)&&(Zm(e),Jm(e.currentTarget,t,e.shiftKey))})({evt:e,keyboard:l,isSelectionMode:d,paginationNeeded:s});break;case FE.C:Zm(e),SR(e)&&Ih(e.currentTarget);break;default:wR(e.key)&&(Zm(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}=ZI({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:NE.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}))}},iM=e=>{const{layout:t,rect:r,theme:n}=aA(rA,(e=>e.baseProps)),[o,i]=S(0),[a,l]=S(0);return _((()=>{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}},aM=yE("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),lM=yE(Ww,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.active?"auto":"hidden",border:"none"}))),sM=yE(Iw,{shouldForwardProp:e=>"borderRight"!==e})((({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e}))),uM=()=>Pl.jsxs(Pl.Fragment,{children:[Pl.jsx(aM,{className:"sn-table-announcer-1","aria-live":"polite","aria-atomic":"true"}),Pl.jsx(aM,{className:"sn-table-announcer-2","aria-live":"polite","aria-atomic":"true"})]}),cM=e=>e.stopPropagation(),dM=({href:e,text:t,interactions:r,color:n})=>x.createElement(fp,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:cM,style:{pointerEvents:r.active?"auto":"none",color:null!=n?n:void 0,opacity:r.active&&r.passive||n?void 0:.4}},t);var pM,fM;const mM=null!==(pM=window.requestIdleCallback)&&void 0!==pM?pM:(e,t)=>{var r;return setTimeout((()=>{e({})}),null!==(r=null==t?void 0:t.timeout)&&void 0!==r?r:0)},hM=null!==(fM=window.cancelIdleCallback)&&void 0!==fM?fM:e=>clearTimeout(e),gM=e=>{e.style.position="static"},bM=e=>({qDimensionInfo:[{qFallbackTitle:"",qCardinal:1}],qMeasureInfo:[{qFallbackTitle:""}],qDataPages:[{qArea:{qTop:0,qLeft:0,qHeight:e.length,qWidth:2},qMatrix:e}],qEffectiveInterColumnSortOrder:[0,1],qSize:{qcx:2,qcy:e.length},qMode:"S"}),vM=(e,t)=>({y:{data:{field:"qMeasureInfo/0"},invert:!0,min:Math.min(0,e),max:Math.max(0,t)},x:{data:{extract:{field:"qDimensionInfo/0"}},paddingInner:.3,paddingOuter:0,invert:!1,align:0,maxPxStep:12}}),yM=null==$?void 0:$();null==yM||yM.use(H),null==yM||yM.renderer.prio(["canvas"]);const xM=({chart:e,element:t,requestId:r,qMatrix:n,minY:o,maxY:i})=>({renderChartWithRequestIdleCallback:k((()=>{if(null===t.current||null!==e.current)return;r.current=mM((()=>{t.current&&(e.current=((e,{qMatrix:t,minY:r,maxY:n})=>yM.chart({element:e,data:{type:"q",key:"qHyperCube",data:bM(t)},settings:{scales:vM(r,n),components:[{key:"bars",type:"box",data:{extract:{field:"qDimensionInfo/0",props:{start:0,end:{field:"qMeasureInfo/0"}}}},settings:{major:{scale:"x"},minor:{scale:"y"},box:{maxWidthPx:8}},mounted:gM}]}}))(t.current,{qMatrix:n,minY:o,maxY:i}))}),{timeout:250})}),[e,t,i,o,n,r]),safeCancelIdleCallback:k((()=>{null!==r.current&&hM(r.current),r.current=null}),[r])}),SM=({qMatrix:e,minY:t,maxY:r,intersectionRoot:n})=>{const o=D(null),i=D(null),a=D(null),{renderChartWithRequestIdleCallback:l,safeCancelIdleCallback:s}=xM({element:o,chart:i,requestId:a,qMatrix:e,minY:t,maxY:r});return(({element:e,intersectionRoot:t,safeCancelIdleCallback:r,renderChartWithRequestIdleCallback:n,chart:o})=>{const i=k((e=>{var t;null!==(t=e.at(0))&&void 0!==t&&t.isIntersecting?n():r()}),[n,r]);C((()=>{if(!e.current||!t)return()=>{};const n=new IntersectionObserver(i,{root:null==t?void 0:t.current});return n.observe(e.current),()=>{var e;n.disconnect(),r(),null===(e=o.current)||void 0===e||e.destroy(),o.current=null}}),[o,e,i,t,r])})({element:o,intersectionRoot:n,safeCancelIdleCallback:s,renderChartWithRequestIdleCallback:l,chart:i}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:r,intersectionRoot:n})=>{C((()=>n?()=>{}:(e(),()=>{var e;t(),null===(e=r.current)||void 0===e||e.destroy(),r.current=null})),[n,t,e,r])})({intersectionRoot:n,safeCancelIdleCallback:s,renderChartWithRequestIdleCallback:l,chart:i}),o},EM=({height:e,intersectionRoot:t,qMatrix:r,minY:n,maxY:o})=>{const i=SM({intersectionRoot:t,qMatrix:r,minY:n,maxY:o});return x.createElement("div",{"data-testid":"picasso-container",ref:i,style:{width:"100%",height:e,overflow:"hidden"}})},CM="cell-text",wM=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,lineClamp:i})=>{const{styleService:a}=aA(rA,(e=>e.baseProps)),{flags:l}=aA(rA,(e=>e.env));return o?Pl.jsx(WI,{"data-testid":CM,ref:t,component:"span",className:"sn-table-cell-text",lineClamp:a.grid.headerLineClamp,isPagination:n,isHeadCell:!0,isWordWrapEnabled:l.isEnabled("CLIENT_IM_6997_WORD_WRAP"),children:e}):Pl.jsx(WI,{"data-testid":CM,ref:t,component:"span",className:"sn-table-cell-text",isNumeric:r,lineClamp:null!=i?i:a.grid.contentLineClamp,isWordWrapEnabled:l.isEnabled("CLIENT_IM_6997_WORD_WRAP"),isPagination:n,children:e})},RM=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}`},AM=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},IM=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const{url:o,text:i,imageSize:a,resolvedImagePosition:l}=e,s="fitHeight"===a,u=Pl.jsx("img",{src:o,alt:i,style:{...t,width:s?"auto":"100%",height:"100%",maxHeight:r,objectFit:AM(a),objectPosition:RM(l),overflow:"hidden"}});var c;return n?Pl.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},MM=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),PM=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},LM=(e,t,r)=>{const n={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const r=e.limits&&e.limits.concat().sort(((e,t)=>e.value-t.value));return{lowerLimit:r&&t>0?r[t-1]:{value:0,gradient:!1},upperLimit:r&&r[t]?r[t]:{value:1,gradient:!1}}})(e,t),l=((e,t,r,n,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:l,nextColor:s}=t,u=n===i.value?1:(n-a.value)/(i.value-a.value);return a.gradient&&i.gradient?n-a.value<i.value-n?{color:l.color,t:.5-u}:{color:s.color,t:u-.5}:a.gradient?{color:l.color,t:1-(.5+u/2)}:i.gradient?{color:s.color,t:u/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return l&&oe(e.localPaletteColors[t].color).blend(oe(l.color),l.t)},DM=(e,t,r)=>{const n=((e,t)=>{const{limits:r}=e;return r&&(e.limits=r.sort(((e,t)=>e.value-t.value)),e.limits=r.map((e=>({...e,value:MM(t,e.value)})))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map(((e,t)=>({color:PM(n,t,r)})))),n},kM=(e,t,r,n)=>{const o=DM(e,r,n),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let r="",n=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=n&&t<i){r=LM(e,a,t);break}n=i}return r})(o,t);return a},OM=(e,t)=>{const r=(e=>e.map((e=>{var t;return null!==(t=e.value)&&void 0!==t?t:e})).sort(((e,t)=>e-t)))(e),n=r.some((e=>!av(e)));return 0===r.length||n?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===r.length?((e,t)=>{const r=e[0]-t;if(0===r||!av(r)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return r>0?{min:t-.5*Math.abs(t),max:e[0]+2*r}:{min:e[0]+2*r,max:t+.5*Math.abs(t)}})(r,t):((e,t)=>{let r=e[e.length-1]-e[0];return r=r>0?r:1,{min:Math.min(t,e[0])-r/2,max:Math.max(t,e[e.length-1])+r/2}})(r,t)},TM=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=OM(e,t),o=Math.abs(t);return{min:null!=r?r:t-o,max:null!=n?n:t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!av(t))return 0;let a=r&&av(r)?Math.min(r,t):0;const l=n.sort(((e,t)=>e.value-t.value)),s=o||i;for(let e=0;e<s.length;e++){if(e===s.length-1||t<l[e].value&&t>=a)return e;a=l[e].value}return 0})(e,t,n.min);return{limitRange:n,limitPaletteColorIndex:o}};function _M(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const qM=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){_M(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 NM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const FM=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){NM(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 jM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const zM=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){jM(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 HM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const $M=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){HM(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 BM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const WM=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){BM(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 GM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const VM=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){GM(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 UM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const YM=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){UM(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 KM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const XM=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){KM(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 JM(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const ZM=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){JM(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 QM(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){QM(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 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=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){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:"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 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=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){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:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"}))));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=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){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:"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 lP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const sP=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){lP(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 uP(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){uP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),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 dP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const fP={m:oP,"ï":rP,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){dP(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:aP,T:sP,U:cP,P:eP,Q:YM,"è":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){pP(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"})))),"¢":WM,"©":$M,"23F4":VM,2013:FM,"&":ZM,add:qM,"minus-2":XM,dot:zM},mP=({size:e,iconKey:t,color:r})=>{const n=t&&fP[t]||void 0;return n&&Pl.jsx(n,{style:{color:r,height:e}})},hP=({representation:e,cellValue:t})=>{const r=e.indicatorConditionalColoring,{styleService:n,theme:o}=aA(rA,(e=>e.baseProps));if(!r)return;const{text:i,indicator:a}=e,{showTextValues:l,position:s,applySegmentColors:u}=null!=a?a:{},c=(d=n.measure.values.fontSize,parseInt(d||mR,10));var d;const p=TM(r,t),f=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(!i||0===(null==i?void 0:i.length)||!((e,t)=>{var r,n,o;return!(!e||0===e.length||!(null!==(r=null===(n=e[t])||void 0===n?void 0:n.gradient)&&void 0!==r?r:null===(o=e[t-1])||void 0===o?void 0:o.gradient))})(i,r.limitPaletteColorIndex))return PM(o,r.limitPaletteColorIndex,n);const a=MM(r.limitRange,t);return kM(o,a,r.limitRange,n)})(r,t,p,o),m=r.segments.paletteColors[(null==p?void 0:p.limitPaletteColorIndex)||0].icon;return l?Pl.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:"flex-end",gap:"2px",alignItems:"center",color:u?f:void 0},children:["left"===s&&mP({size:c,iconKey:m,color:f}),Pl.jsx(wM,{isNumeric:!0,children:i}),"right"===s&&mP({size:c,iconKey:m,color:f})]}):mP({size:c,iconKey:m,color:f})},gP=(e,t)=>e.contentStaticLineCount?e.contentLineHeight*(null!=t?t:e.grid.contentLineClamp):e.contentLineHeight,bP=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionRoot:i})=>{const{interactions:a,styleService:l}=aA(rA,(e=>e.baseProps)),s=aA(rA,(e=>{var t;return null===(t=e.selectionState.api)||void 0===t?void 0:t.isActive()}));let u=t.representation.text;return t.representation.type!==ub.Link||s||(u=Pl.jsx(dM,{href:t.representation.url,text:t.representation.text,interactions:a,color:r.cellForegroundColor})),t.representation.type===ub.Image?Pl.jsx(IM,{representation:t.representation,textStyle:r,maxImageHeight:gP(l,o),wrapInContainer:!n}):t.representation.type===ub.Indicator&&"number"==typeof t.qNum?Pl.jsx(hP,{representation:t.representation,cellValue:+t.qNum}):t.representation.type===ub.MiniChart&&t.representation.miniChart?Pl.jsx(EM,{height:gP(l,o),intersectionRoot:i,...t.representation.miniChart}):Pl.jsx(wM,{forwardRef:e,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:u})},vP=({selectionsAPI:e,selectionDispatch:t,setShouldRefocus:r,keyboard:n,tableWrapperRef:o})=>{C((()=>{const i=()=>{t({type:NE.RESET})},a=()=>{t({type:NE.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])},yP=(e,t,r,n)=>({handleMouseDown:n=>{null==e||e(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>r({type:NE.SELECT_MULTI_END});r({type:NE.SELECT_MOUSE_DOWN,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:NE.SELECT_MULTI_ADD,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:NE.SELECT_MOUSE_UP,payload:{cell:t,evt:e,announce:n}})}}),xP=yE(Tw,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),SP=yE(nR,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})((({hover:e,hoverColors:t,height:r})=>({height:r,"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}}))),EP=yE(zw,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...bR,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",width:"100%",height:"100%"}))),CP=yE(zw,{shouldForwardProp:e=>"atTop"!==e&&"headRowHeight"!==e&&"totalsStyle"!==e})((({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...bR,...e,fontWeight:hR,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 wP(e){return t=>{const{cell:r,styling:n,announce:o,onMouseDown:i}=t,{styleService:a}=aA(rA,(e=>e.baseProps)),l=aA(rA,(e=>AR(r,e.selectionState))),s=aA(rA,(e=>e.selectionDispatch)),{handleMouseDown:u,handleMouseOver:c,handleMouseUp:d}=yP(i,r,s,o),p=function(e,t,r){return t===qE.Selected?{...e,...r}:t===qE.Disabled?{...e,background:`${pR}, ${e.background}`}:e}(n,l,a.selectedColors);return Pl.jsx(e,{...t,styling:p,onMouseUp:d,onMouseDown:u,onMouseOver:c,cellSelectionState:l})}}function RP(e,t){let r=(n=EP,e=>{const{styling:{selectedCellClass:t,...r},component:o,align:i,children:a,scope:l,tabIndex:s,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,title:m,cellSelectionState:h}=e;return Pl.jsx(n,{cellStyle:r,component:o,scope:l,align:i,tabIndex:s,className:`sn-table-cell ${h} ${bh}`,title:m,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,children:a})});var n;return t&&(r=wP(r)),e&&(r=function(e){return t=>{const{cell:r,column:n,styling:o}=t,i=E((()=>r.isNull?o:$R(o,r.qAttrExps,n.qAttrExprInfoIDs)),[o,r.qAttrExps,r.isNull,n.qAttrExprInfoIDs]);return Pl.jsx(e,{...t,styling:i})}}(r)),r}const AP=(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}),IP=()=>{const{columns:e,totalsPosition:t,rows:r}=aA(rA,(e=>e.tableData)),{rootElement:n,selectionsAPI:o,keyboard:i,styleService:a,interactions:l}=aA(rA,(e=>e.baseProps)),s=aA(rA,(e=>e.headRowHeight)),u=aA(rA,(e=>e.setFocusedCellCoord));return Pl.jsx(nR,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,c)=>{const d=[t.atTop?1:r.length+1,c];return Pl.jsx(CP,{totalsStyle:{...a.totalRow,...AP(a,t,!1)},headRowHeight:s,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${bh}`,tabIndex:-1,title:l.passive?e.totalInfo:void 0,onKeyDown:e=>{((e,t,r,n,o=!1)=>{if(o)Zm(e);else if(!rM(e))switch(e.key){case FE.C:Zm(e),SR(e)&&Ih(e.currentTarget);break;case FE.SPACE:e.preventDefault();break;default:wR(e.key)&&(Zm(e),ZI({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n}))}})(e,n,d,u,null==o?void 0:o.isModal())},onMouseDown:()=>{QI(d,n,u,i)},children:Pl.jsx(wM,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)}))})};var MP=T(IP);const PP=({setShouldRefocus:e,tableWrapperRef:t,announce:r})=>{var n;const{rows:o,columns:i,paginationNeeded:a,totalsPosition:l}=aA(rA,(e=>e.tableData)),{selectionsAPI:s,rootElement:u,keyboard:c,layout:d,interactions:p,styleService:f}=aA(rA,(e=>e.baseProps)),m=aA(rA,(e=>e.setFocusedCellCoord)),h=aA(rA,(e=>e.selectionDispatch)),g=!!p.active&&!!p.select,b=JSON.stringify(i.map((e=>e.qAttrExprInfoIDs))),v=E((()=>JSON.parse(b).map((e=>RP(e.some((e=>["cellBackgroundColor","cellForegroundColor","textStyleExpression"].includes(e))),g)))),[b,g]),y=!(null===(n=NR(d))||void 0===n||null===(n=n.content)||void 0===n||!n.hoverEffect);return vP({keyboard:c,selectionDispatch:h,selectionsAPI:s,setShouldRefocus:e,tableWrapperRef:t}),Pl.jsxs(xP,{lastRowBottomBorder:f.grid.lastRowBottomBorder,children:[l.atTop?Pl.jsx(MP,{}):void 0,o.map(((e,n)=>Pl.jsx(SP,{hoverColors:f.grid.hoverColors,hover:y,tabIndex:-1,className:"sn-table-row sn-table-data-row",rowindex:n,height:f.contentMinRowHeight,children:i.map(((n,o)=>{const{id:i}=n,d=e[o],b=v[o];let y=n.isDim?f.dimension.values:f.measure.values;d.isNull&&(y={...y,...f.nullValues});const x=$R(y,d.qAttrExps,n.qAttrExprInfoIDs);return b&&Pl.jsx(b,{scope:0===o?"row":void 0,component:0===o?"th":void 0,cell:d,column:n,align:d.align,styling:{...y,borderColor:f.grid.border},tabIndex:-1,announce:r,title:p.passive?d.representation.text:void 0,onKeyDown:e=>{oM({evt:e,rootElement:u,selectionsAPI:s,cell:d,selectionDispatch:h,isSelectionsEnabled:g,setFocusedCellCoord:m,announce:r,keyboard:c,paginationNeeded:a,totalsPosition:l})},onKeyUp:e=>((e,t)=>{e.key===FE.SHIFT&&t({type:NE.SELECT_MULTI_END})})(e,h),onMouseDown:()=>((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,l=o.atTop?i+2:i+1;QI([l,a],t,r,n)})(d,u,m,c,l),children:Pl.jsx(bP,{cell:d,style:x,intersectionRoot:t})},i)}))},`row-${n}`))),l.atBottom?Pl.jsx(MP,{}):void 0]})};var LP=T(PP);const DP=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,{applyColumnWidths:a,interactions:l,translator:s}=aA(rA,(e=>e.baseProps)),u=aA(rA,(e=>e.columnWidths)),c=aA(rA,(e=>e.setColumnWidths));if(!l.active)return null;return Pl.jsx(dA,{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");JI({focusType:jE.FOCUS,cell:t})})(e.currentTarget),setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:s,columnLabel:i}})};function kP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const OP=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){kP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),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 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 _P=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){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 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"}))));function qP(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const NP=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){qP(e,t,r[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),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"})))),FP=yE("div")({position:"absolute",left:0,bottom:0}),jP=yE(lw,{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"})));yE("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1});const zP=yE(lw,{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},[`& .${mh}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${n} 2fr 20px`:`${n} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:e?2:"span 2"},[`& .${mh}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}})),HP=yE(lw,{shouldForwardProp:e=>"rightAligned"!==e})((({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})));yE(lw,{shouldForwardProp:e=>"isVisible"!==e&&"rightAligned"!==e})((({rightAligned:e})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:"24px",display:"flex"}))),yE(xw)((({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"}}))),yE("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),yE(mw)((({theme:e})=>({marginRight:e.spacing(1.5),lineHeight:0}))),yE("div")((({theme:e})=>({height:"350px",boxSizing:"border-box",background:e.palette.common.white})));const $P=yE(zw,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,interactions:t,hoverBackground:r,background:n})=>({...bR,...e,cursor:t.active?"pointer":"default",background:n,verticalAlign:"bottom","&&:focus-visible, &&:hover":{background:t.active?r:n}})));yE("div")({display:"flex",alignItems:"center"});const BP=yE("span",{shouldForwardProp:e=>"align"!==e})((({align:e})=>({minWidth:mR,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),WP=({column:e,isInteractionEnabled:t,open:r,setOpen:n,allColumnsIconVisibilityStatusRef:o,isPagination:i,forwardRef:a})=>{const{translator:l,changeSortOrder:s,interactions:u,embed:c,app:d,styleService:p,layout:f}=aA(rA,(e=>e.baseProps)),m=aA(rA,(t=>t.columnWidths[e.pageColIdx])),h=aA(rA,(e=>e.env)),g=D(null),b=D(null),v=(({styleService:e,column:t,columnWidth:r})=>{const{measureText:n}=ah({fontSize:e.header.fontSize,fontFamily:e.header.fontFamily,fontWeight:hR});return 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])})({styleService:p,column:e,columnWidth:m}),y=v(),{StartIcon:x,EndIcon:S,LockIcon:E}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n})=>{const o="A"===e?Pl.jsx(OP,{height:mR,"data-testid":"head-cell-sort-ascending-icon"}):Pl.jsx(_P,{height:mR,"data-testid":"head-cell-sort-descending-icon"}),i=r?Pl.jsx(BP,{align:t,children:o}):void 0,a=n?Pl.jsx(HP,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:Pl.jsx(NP,{height:mR,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:i,LockIcon:a}:{EndIcon:i,LockIcon:a}})(e,y);o&&(o.current[e.pageColIdx]=y);return Pl.jsxs(zP,{shouldShowMenuIcon:y.shouldShowMenuIcon,shouldShowLockIcon:y.shouldShowLockIcon,alignment:e.headTextAlign,children:[E,Pl.jsxs(jP,{className:"sn-table-head-label",textAlign:e.headTextAlign,children:[x,Pl.jsx(wM,{forwardRef:a,isPagination:i,isHeadCell:!0,children:e.label}),S]}),t&&Pl.jsxs(Pl.Fragment,{children:[Pl.jsx(sI,{headerData:e,translator:l,anchorRef:g,handleHeadCellMenuKeyDown:nM,menuAvailabilityFlags:{[iI.SORTING]:!0,[iI.SEARCHING]:!0,[iI.SELECTIONS]:!0,[iI.ADJUST_HEADER_SIZE]:!0},open:r,setOpen:n,interactions:u,sortRelatedArgs:{sortFromMenu:(t,r)=>(t.stopPropagation(),s(e,r))},searchRelatedArgs:{embed:c,listboxRef:b},selectionRelatedArgs:{app:d,qStateName:f.qStateName},adjustHeaderSizeRelatedArgs:{setFocusOnColumnAdjuster:XI},shouldShowMenuIcon:y.shouldShowMenuIcon,env:h}),Pl.jsx(FP,{ref:b}),Pl.jsx(FP,{ref:g})]})]})},GP=({isInteractionEnabled:e,columnsData:t})=>{const[r,n]=S(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=(e=>{const[t,r]=S(!1);return uh((()=>{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(yh)})(t)&&!o&&n(!0),setIsAdjustingWidth:i}},VP=({column:e,columnIndex:t,columnsLength:r})=>{const{interactions:n,rootElement:o,keyboard:i,styleService:a}=aA(rA,(e=>e.baseProps)),{columns:l,totalsPosition:s}=aA(rA,(e=>e.tableData)),u=aA(rA,(e=>e.columnWidths[t])),c=aA(rA,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),d=aA(rA,(e=>e.setFocusedCellCoord)),p=aA(rA,(({focusedCellCoord:[e,r]})=>0===e&&r===t)),f=!!n.active&&!c,{open:m,setOpen:h,handleOpenMenu:g,setIsAdjustingWidth:b}=GP({isInteractionEnabled:f,columnsData:l}),v=e.isActivelySorted?zE[e.sortDirection]:void 0,y=m?gh: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 Pl.jsxs($P,{headerStyle:{...a.header,...AP(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 ${bh}`,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(!rM(e))switch(e.key){case FE.C:Zm(e),SR(e)&&Ih(e.currentTarget);break;case FE.ENTER:case FE.SPACE:i&&i(e);break;default:wR(e.key)&&(Zm(e),ZI({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n}))}}else Zm(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):JI({focusType:jE.FOCUS,cell:VI(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:[Pl.jsx(WP,{column:e,isInteractionEnabled:f,open:m,setOpen:h,isPagination:!0}),Pl.jsx(DP,{column:e,isLastColumn:S,setIsAdjustingWidth:b})]},e.id)},UP=()=>{var e;const{columns:t}=aA(rA,(e=>e.tableData)),{styleService:r,viewService:n}=aA(rA,(e=>e.baseProps)),o=aA(rA,(e=>e.setHeadRowHeight)),i=aA(rA,(e=>e.columnWidths)),a=D(null);return C((()=>{a.current&&o(a.current.getBoundingClientRect().height)}),[r.header.fontSize,i,o]),null!==(e=n.viewState)&&void 0!==e&&e.skipHeader?null:Pl.jsx(Xw,{children:Pl.jsx(nR,{ref:a,className:"sn-table-row sn-table-head-row",children:t.map(((e,r)=>Pl.jsx(VP,{column:e,columnIndex:r,columnsLength:t.length},e.id)))})})};var YP=T(UP);const KP=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}=aA(rA,(e=>e.tableData)),{rootElement:b,keyboard:v,translator:y,theme:x,interactions:S,styleService:E,viewService:w,layout:R,rect:A}=aA(rA,(e=>e.baseProps)),I=aA(rA,(e=>e.focusedCellCoord)),M=aA(rA,(e=>e.setFocusedCellCoord)),P=aA(rA,(e=>e.setYScrollbarWidth)),L=aA(rA,(e=>e.showRightBorder)),O=aA(rA,(e=>e.selectionDispatch)),T=aA(rA,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),_=D(!1),q=D(null),N=D(null),{yScrollbarWidth:F}=iM(q),j=`${y.get("SNTable.Accessibility.RowsAndColumns",[String(m.length),String(h.length)])} ${y.get("SNTable.Accessibility.NavigationInstructions")}`,z=gy(R,w),H=z&&null!==(t=w.scrollLeft)&&void 0!==t?t:0,$=z&&null!==(r=w.rowPartialHeight)&&void 0!==r?r:0,B=k((()=>{_.current=b.getElementsByTagName("table")[0].contains(document.activeElement)}),[b]),W=k((e=>{o({...n,page:e}),l({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),p.toString()]],politeness:"assertive"})}),[n,o,p,l]),G=k((e=>{o({...n,page:0,rowsPerPage:e}),l({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[l,n,o]);return eM(N,_,v),tM(q,i,w),(()=>{const{rootElement:e,keyboard:t}=aA(rA,(e=>e.baseProps)),r=aA(rA,(e=>e.focusedCellCoord));uh((()=>{const n=t.active?jE.FOCUS:jE.BLUR,o=t.active?VI(e,r):UI(e);JI({focusType:n,cell:o})}),[t.active,e])})(),C((()=>{const e=q.current;e&&(e.scrollLeft=H,e.scrollTop=$)}),[n,d,H,$]),GI((()=>{(({focusedCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a,totalsPosition:l})=>{JI({focusType:jE.REMOVE_TAB,cell:UI(t)});const s=[l.atTop?2:1,e[1]],u=n?s:fC;if(o(u),!(e=>!e.enabled||e.active)(i))return;const c=r.current?jE.FOCUS:jE.ADD_TAB;r.current=!1;const d=VI(t,u);if(JI({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:_,setFocusedCellCoord:M,isSelectionMode:T,keyboard:v,announce:l,totalsPosition:g})}),[m.length,d,c,s]),GI((()=>{P(F)}),[F]),GI((()=>{O({type:NE.UPDATE_PAGE_ROWS,payload:{pageRows:m}})}),[m]),Pl.jsxs(BI,{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(ER(e)){Zm(e);const a=Math.ceil(t/n)-1;e.key===FE.RIGHT&&r<a?(i(),o(r+1)):e.key===FE.LEFT&&r>0&&(i(),o(r-1))}else if(e.key===FE.ESC&&a.enabled&&!l){var s;Zm(e),null===(s=a.blur)||void 0===s||s.call(a,!0)}else CR(e.key)&&Zm(e)})({evt:e,totalRowCount:d,page:s,rowsPerPage:u,handleChangePage:W,setShouldRefocus:B,keyboard:v,isSelectionMode:T})},"data-testid":"sn-table",children:[Pl.jsx(uM,{}),Pl.jsx(lM,{ref:q,className:"sn-table-container",fullHeight:a||!S.active||!f,interactions:S,tabIndex:-1,role:"application","data-testid":"table-container",children:Pl.jsxs(sM,{stickyHeader:!0,"aria-label":j,borderRight:L?`1px solid ${E.grid.border}`:void 0,children:[Pl.jsx(YP,{}),Pl.jsx(LP,{...e,setShouldRefocus:B,tableWrapperRef:N})]})}),Pl.jsx(HI,{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:W,handleChangeRowsPerPage:G,isSelectionMode:T})]})};var XP=T(KP),JP=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ZP(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||JP(n)&&JP(o)))return!1;var n,o;return!0}function QP(e,t){var r;void 0===t&&(t=ZP);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}}var eL="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function tL(e){cancelAnimationFrame(e.id)}function rL(e,t){var r=eL();var n={id:requestAnimationFrame((function o(){eL()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var nL=-1;function oL(e){if(void 0===e&&(e=!1),-1===nL||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),nL=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return nL}var iL=null;function aL(e){if(void 0===e&&(e=!1),null===iL||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?iL="positive-descending":(t.scrollLeft=1,iL=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),iL}return iL}var lL=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function sL(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,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,Lt(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:Lt(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=QP((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=QP((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=QP((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(aL()){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&&tL(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=rL(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1)}))},n}Pt(t,e),t.getDerivedStateFromProps=function(e,t){return uL(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=oL();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(aL()){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&&tL(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?lL: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],M=[];if(n>0&&g)for(var P=A;P<=I;P++)for(var L=E;L<=C;L++)M.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 D=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:vt({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},R(u||c||"div",{children:M,ref:s,style:{height:D,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 uL=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},cL=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},dL=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},pL=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]},fL=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?mL(e,t,r,i,0,n):hL(e,t,r,Math.max(0,i),n)},mL=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),l=pL(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},hL=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&pL(e,t,n,r).offset<o;)n+=a,a*=2;return mL(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},gL=function(e,t,r,n,o,i,a){var l="column"===e?t.width:t.height,s=pL(e,t,r,i),u="column"===e?dL(t,i):cL(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}},bL=sL({getColumnOffset:function(e,t,r){return pL("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return fL("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=pL("column",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=pL("column",e,u,n).size;return u},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:cL,getEstimatedTotalWidth:dL,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return gL("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return gL("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return pL("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return fL("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=pL("row",e,t,n),l=r+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=pL("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}}),vL=function(e,t){return e};function yL(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,Lt(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:Lt(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=QP((function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})})),n._callOnScroll=void 0,n._callOnScroll=QP((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=QP((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(aL()){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&&tL(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=rL(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},(function(){n._getItemStyleCache(-1,null)}))},n}Pt(t,e),t.getDerivedStateFromProps=function(e,t){return xL(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?oL():0:s.scrollHeight>s.clientHeight?oL():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(aL()){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&&tL(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?vL: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 M=n(this.props,this._instanceProps);return R(m||h||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:vt({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%":M,pointerEvents:y?"none":void 0,width:x?M:"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 xL=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},SL=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]},EL=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=SL(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},CL=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&SL(e,r,t).offset<n;)r+=i,i*=2;return EL(e,t,Math.min(r,o-1),Math.floor(r/2),n)},wL=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},RL=yL({getItemOffset:function(e,t,r){return SL(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:wL,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=SL(e,t,o),p=wL(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?EL(e,t,o,0,r):CL(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=SL(e,t,n),d=r+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=SL(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 AL(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 IL=["style"],ML=["style"];function PL(e,t){var r=e.style,n=It(e,IL),o=t.style,i=It(t,ML);return!AL(r,o)&&!AL(n,i)}const LL=({style:e})=>Pl.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var DL=x.memo(LL,PL);const kL=e=>{var t;return null===(t=e.at(0))||void 0===t||null===(t=t.contentBoxSize.at(0))||void 0===t?void 0:t.blockSize},OL=(e,t,r)=>{C((()=>{const n=r?r(e):e.current;if(!n)return()=>{};const o=new ResizeObserver(t);return o.observe(n),()=>{o.disconnect()}}),[e,t,r])},TL=()=>{},_L=e=>e.preventDefault();const qL=({columnIndex:e,rowIndex:t,style:r,data:n})=>{var o,i;const{rowsInPage:a,columns:l,isHoverEnabled:s,setMeasuredCellHeight:u,lineClamp:c}=n,d=aA(rA,(e=>e.hoverIndex===t)),p=aA(rA,(e=>e.setHoverIndex)),{interactions:f,styleService:m}=aA(rA,(e=>e.baseProps)),h=aA(rA,(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}=aA(rA,(e=>e.baseProps)),r=aA(rA,(e=>e.selectionDispatch)),n="object"==typeof e,o=aA(rA,(t=>n?AR(e,t.selectionState):qE.Inactive)),i=t.active&&t.select;if(n&&i){const{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i}=yP(_L,e,r,TL);return{handleMouseDown:t,handleMouseOver:n,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(g),S=((e,t,r,n)=>{const o=D(null),i=r&&!(null!=r&&r.isNumeric),a=k((r=>{const o=kL(r);o&&i&&n(o,e,t)}),[t,n,e,i]);return OL(o,a),o})(t,e,g,u);let E={borderColor:m.grid.border,...m.measure.values};if(null!==(i=l[e])&&void 0!==i&&i.isDim&&(E={borderColor:m.grid.border,...m.dimension.values}),null!=g&&g.isNull&&(E={...E,...m.nullValues}),"object"==typeof g){var C;const n=((e,t,r,n,o,i)=>{const a=!e.isNull&&t.qAttrExprInfoIDs.length?$R(o,e.qAttrExps,t.qAttrExprInfoIDs):o;return n===qE.Selected?{...a,...i.selectedColors}:n===qE.Disabled?{...a,color:r?null===(l=i.grid.hoverColors)||void 0===l?void 0:l.color:a.color,background:`${pR}, ${r?null===(s=i.grid.hoverColors)||void 0===s?void 0:s.background:a.background}`}:r?{...a,...i.grid.hoverColors}:a;var l,s})(g,l[e],s&&d,x,E,m),o={rowindex:t,columnindex:e};return Pl.jsx("div",{className:`sn-table-cell ${x} ${bh}`,style:{...r,...n,display:"flex",alignItems:"start",borderWidth:"0px",borderBottomWidth:g.isLastRow?"0px":"1px",borderRightWidth:g.isLastColumn&&!h?"0px":"1px",borderStyle:"solid",justifyContent:g.representation.type===ub.Image&&"fitHeight"===g.representation.imageSize?null===(C=g.representation)||void 0===C||null===(C=C.resolvedImagePosition)||void 0===C?void 0:C.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,...o,children:Pl.jsx(bP,{forwardRef:m.contentStaticLineCount||1===c?void 0:S,cell:g,style:n,lineClamp:c,virtualizedCell:!0})})}return Pl.jsx(DL,{style:{...r,...E,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var NL=x.memo(qL,PL);const FL=e=>{const t=D(e);return t.current=e,t},jL=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,zL=(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},HL=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some((e=>!(null!=e&&e[t])))},$L=(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;const o=t+n.qLeft,{colIdx:a,isDim:u,isLocked:m,bodyTextAlign:h,selectionColIdx:g,qAttrExprInfoIndex:b,representation:v,conditionalColoring:y,qMiniChart:x}=i[o];f[o]=null!==(r=f[o])&&void 0!==r?r:{id:ov(),...e,align:my(e,h),rowIdx:d,colIdx:a,isSelectable:u&&!m,pageRowIdx:p,pageColIdx:o,selectionColIdx:g,isLastRow:d===c.qcy-1,isLastColumn:o===c.qcx-1,isNumeric:lv(e),isNull:ly(e,u),representation:ay(e,v,b,l,y,x)},s(f[o],d,o)})),{row:f,pageRowIdx:p}})(r,l,s,e.qArea,u,n,o,i,a);r[d]=c}))}))},BL=({layout:e,model:t,theme:r,initialDataPages:n,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:l,columns:s,gridState:u,setEstimatedCellHeight:c})=>{const d=aA(rA,(e=>e.env)),p=D([]),f=k(((t,r)=>{const n=Array.isArray(r)?r.slice(0,i):(e=>Array(e).fill(void 0))(i);return $L(t,o,n,s,e,d,c),p.current=n,n}),[i,o,s,e,d,c]),[m,h]=S((()=>f(null!=n?n:[])));uh((()=>{h(f(null!=n?n:[]))}),[n]);const g=((e,t)=>{const r=D(new Set),n=D(new Set),o=D(new Set),i=FL(e),a=FL(t),l=E((()=>({enqueue:e=>{const t=jL(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(jL(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=>h((t=>f(e,t))))),b=k(((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(HL(p.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};g.enqueue(e)}}),[p,g]),v=k(((e,t,r,n)=>{for(let i=t;i<t+n;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(zL(p.current,e,t,r,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:r};g.enqueue(t)}}}),[p,g,o]);return C((()=>{const{qcx:t,qcy:r}=e.qHyperCube.qSize,n=u.current.overscanRowStartIndex,i=u.current.overscanColumnStartIndex,s=n+o.page*o.rowsPerPage,c=t-i,d=o.rowsPerPage-n,p=Math.min(100,c,t,l+5),f=Math.min(100,d,r,a+25);return v(i,s,p,f),()=>{g.clear()}}),[e,a,l,o,g,v,u,r]),{rowsInPage:m,loadRows:v,loadColumns:b}},WL=e=>{let t=0;return e.forEach((e=>{e>t&&(t=e)})),t},GL=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,VL=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=aA(rA,(e=>e.baseProps.styleService)),i=aA(rA,(e=>e.columnWidths)),{estimateLineCount:a}=ah(o.dimension.values),l=XR(o.dimension.values.fontSize),s=e||t||1===r;return k(((e,t,o)=>{if(s||e.representation.type===ub.Image||e.isNumeric)return;const u=(e=>Math.max(0,e-24-1))(i[o]),c=e.representation.text?a({text:e.representation.text,maxWidth:u,isNumeric:!1}):1,d=Math.min(r,Math.max(1,c));n(d*l,t,o)}),[s,i,a,r,l,n])},UL=({isStaticNbrOfLines:e,minRowHeight:t,state:r,rowCount:n,staticRowHeight:o,viewService:i})=>E((()=>{const{estimatedRowHeight:a,totalRowHeight:l}=e?{totalRowHeight:n*o,estimatedRowHeight:o}:(e=>{let t=0;e.forEach((e=>{t+=e}));const r=0===e.size?0:t/e.size;return{estimatedRowHeight:Math.ceil(r),totalRowHeight:t}})(r.rowHeights);return i.estimatedRowHeight=Math.max(a,t),Math.max(n*t,l)}),[e,t,n,r,o,i]),YL=({rowCount:e,isSnapshot:t,viewService:r,gridRef:n,pageInfo:o})=>{const{styleService:i}=aA(rA,(e=>e.baseProps)),[a,l]=S({rowHeights:new Map,cellHeightsInGrid:new Map}),s=i.contentLineHeight,u=i.contentMinRowHeight,c=!!i.contentStaticLineCount,d=Math.max(8e6/e,u)-9,p=d+9,f=Math.max(1,Math.min(i.grid.contentLineClamp,Math.round(d/s))),m=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:f,lineHeight:s,isStaticNbrOfLines:c});(({gridRef:e,setState:t,pageInfo:r})=>{var n;const{layout:o}=aA(rA,(e=>e.baseProps)),i=aA(rA,(e=>e.columnWidths)),{flags:a}=aA(rA,(e=>e.env)),l=!a.isEnabled("CLIENT_IM_6997_WORD_WRAP")||(null===(n=o.multiline)||void 0===n?void 0:n.wrapTextInCells);uh((()=>{var r;null===(r=e.current)||void 0===r||r.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map})}),[o.qHyperCube.qSize.qcx,o.qHyperCube.qSize.qcy,r.page,l]),uh((()=>{var t;null===(t=e.current)||void 0===t||t.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[i])})({gridRef:n,setState:l,pageInfo:o});const h=(({setState:e,maxCellHeight:t,minRowHeight:r,gridRef:n})=>k(((o,i,a)=>{N((()=>{e((e=>{var l,s;const u=Math.max(r,o+9),c=Math.min(t,u),d=null!==(l=e.cellHeightsInGrid.get(i))&&void 0!==l?l:e.cellHeightsInGrid.set(i,new Map).get(i);if(!GL(d.get(a),c))return e;const p={...e};return d.set(a,c),p.rowHeights.set(i,WL(d)),null===(s=n.current)||void 0===s||s.resetAfterIndices({columnIndex:a,rowIndex:i,shouldForceUpdate:!1}),p}))}))}),[e,r,t,n]))({maxCellHeight:p,minRowHeight:u,setState:l,gridRef:n}),g=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>k(((o,i,a)=>{e||t||1===r||n(o,i,a)}),[e,t,r,n]))({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:h});return{setMeasuredCellHeight:g,setEstimatedCellHeight:VL({isSnapshot:t,isStaticNbrOfLines:c,lineClamp:f,setCellHeight:h}),getRowHeight:k((e=>{var t;return c?m:null!==(t=a.rowHeights.get(e))&&void 0!==t?t:u}),[c,u,a.rowHeights,m]),totalRowHeight:UL({isStaticNbrOfLines:c,minRowHeight:u,state:a,staticRowHeight:m,rowCount:e,viewService:r}),lineClamp:f}};var KL;!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(KL||(KL={}));const XL=({layout:e,loadRows:t,loadColumns:r,rowCount:n,pageInfo:o,gridState:i,viewService:a})=>k((({overscanColumnStartIndex: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=KL.None,i=KL.None;return o=n>t?KL.Down:n<t?KL.Up:KL.None,i=r>e?KL.Right:r<e?KL.Left:KL.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(i.current,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===KL.Down){const e=x+25;t(b,v,y,u+e>n?n-u:e)}else if(h===KL.Up){const e=x+25,r=o.page*o.rowsPerPage,n=Math.max(r,v-25);t(b,n,y,e)}if(g===KL.Right){const t=e.qHyperCube.qSize.qcx-b,n=y+5,o=Math.min(t,n);r(b,v,o,x)}else if(g===KL.Left){const t=Math.max(0,b-5),n=Math.min(e.qHyperCube.qSize.qcx,y+5);r(t,v,n,x)}}),[i,n,o.page,o.rowsPerPage,a,t,e.qHyperCube.qSize.qcx,r]),JL={enabled:!1},ZL=()=>{},QL={current:null};const eD=(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}},tD=({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}`},rD={overflow:"hidden",willChange:"auto"};var nD=T(O(((e,t)=>{var r;const{rect:n,columns:o,pageInfo:i,headerAndTotalsHeight:a}=e,{layout:l,model:s,theme:u,viewService:c,styleService:d}=aA(rA,(e=>e.baseProps)),p=aA(rA,(e=>e.columnWidths)),f=aA(rA,(e=>e.initialDataPages)),m=D(null),h=D(null),g=D({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),b=D(0),v=!(null===(r=NR(l))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect),{rowCount:y,visibleRowCount:x,visibleColumnCount:S}=eD(l,i,n,p,d.contentMinRowHeight),{setMeasuredCellHeight:w,setEstimatedCellHeight:R,getRowHeight:A,lineClamp:I,totalRowHeight:M}=YL({rowCount:y,isSnapshot:!!l.snapshotData,viewService:c,gridRef:m,pageInfo:i}),{rowsInPage:P,loadRows:L,loadColumns:k}=BL({layout:l,model:s,theme:u,initialDataPages:f,pageInfo:i,rowCount:y,visibleRowCount:x,visibleColumnCount:S,columns:o,gridState:g,setEstimatedCellHeight:R}),O=XL({layout:l,loadRows:L,loadColumns:k,rowCount:y,pageInfo:i,gridState:g,viewService:c}),T=E((()=>({rowsInPage:P,columns:o,isHoverEnabled:v,lineClamp:I,setMeasuredCellHeight:w})),[P,o,v,I,w]),q=((e,t,r)=>Math.min(e.height-t,r))(n,a,M);return _((()=>{var e;1===b.current&&(null===(e=m.current)||void 0===e||e.scrollToItem({rowIndex:y-1,align:"start"}))})),function(e){const{selectionsAPI:t}=aA(rA,(e=>e.baseProps)),r=aA(rA,(e=>e.selectionDispatch));C((()=>{r({type:NE.UPDATE_PAGE_ROWS,payload:{pageRows:e}})}),[r,e]),vP({selectionsAPI:t,selectionDispatch:r,setShouldRefocus:ZL,keyboard:JL,tableWrapperRef:QL})}(P),F(t,(()=>({interpolatedScrollTo:(e,t)=>{var r,n;const o=(null!==(r=null===(n=h.current)||void 0===n?void 0:n.clientHeight)&&void 0!==r?r:q)-q,i=Math.round(o*e);var a,l,s;(b.current=e,1===b.current)?(null===(a=m.current)||void 0===a||a.scrollToItem({rowIndex:y-1,align:"start"}),null===(l=m.current)||void 0===l||l.scrollTo({scrollLeft:t})):null===(s=m.current)||void 0===s||s.scrollTo({scrollTop:i,scrollLeft:t})},element:h.current})),[h,q,y]),Pl.jsx(bL,{"data-key":"body",ref:m,innerRef:h,style:rD,columnCount:l.qHyperCube.qSize.qcx,columnWidth:e=>p[e],height:q,rowCount:y,rowHeight:A,estimatedRowHeight:c.estimatedRowHeight,width:n.width,itemData:T,onItemsRendered:O,itemKey:tD,className:"sn-table-body",children:NL})})));const oD=({width:e,height:t,children:r})=>Pl.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:r}),iD=(e,t)=>{const r=D(null),n=aA(rA,(e=>e.columnWidths));_((()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)}),[t,r,e,n.length]);const o=k((r=>{const n=kL(r);n&&t(n+9,e)}),[e,t]);return OL(r,o),r},aD=yE("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}}))),lD=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,allColumnsIconVisibilityStatusRef:i,setMeasuredCellHeight:a}=r,{interactions:l,styleService:s}=aA(rA,(e=>e.baseProps)),u=aA(rA,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),c=aA(rA,(e=>e.showRightBorder)),d=aA(rA,(e=>e.tableData.totalsPosition)),p=!!l.active&&!u,{open:f,setOpen:m,handleOpenMenu:h,setIsAdjustingWidth:g}=GP({isInteractionEnabled:p,columnsData:n}),b=iD(e,a),v=n[e],y=n.length-1===e,x="right"===v.headTextAlign?"row-reverse":"row";return Pl.jsxs(aD,{className:`sn-table-cell ${bh}`,title:l.passive?v.label:void 0,onClick:h,applicableStyle:{...s.header,...AP(s,d,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderWidth:y&&!c?"0px 0px 1px 0px":"0px 1px 1px 0px",padding:"4px",justifyContent:v.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:x,userSelect:"none"},interactions:l,hoverBackground:s.headerMenuHoverBackground,background:f?s.headerMenuActiveBackground:s.header.background,children:[Pl.jsx(WP,{forwardRef:b,column:v,isInteractionEnabled:p,open:f,setOpen:m,allColumnsIconVisibilityStatusRef:i}),Pl.jsx(DP,{column:v,isLastColumn:y,onColumnResize:o,setIsAdjustingWidth:g})]})},sD=e=>{const[t,r]=S(new Map);uh((()=>{r(new Map)}),[e.length]);const n=k(((e,t)=>{r((r=>GL(r.get(t),e)?new Map(r).set(t,e):r))}),[]);return{rowHeight:E((()=>WL(t)),[t]),setMeasuredCellHeight:n}},uD=(e,t,r)=>{F(e,(()=>({scrollTo:e=>{var r;return null===(r=t.current)||void 0===r?void 0:r.scrollTo(e)},element:r.current})),[t,r])},cD=(e,t,r,n,o)=>{uh((()=>{var t;null==e||null===(t=e.current)||void 0===t||t.resetAfterIndex(0,!1)}),[t,r,e,n,o])},dD={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},pD=O(((e,t)=>{const{rect:r,columns:n,pageInfo:o,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a}=e,l=D(null),s=D(null),{layout:u,theme:c,styleService:d}=aA(rA,(e=>e.baseProps)),p=aA(rA,(e=>e.columnWidths)),{rowHeight:f,setMeasuredCellHeight:m}=sD(n);return uD(t,l,s),cD(l,u,o,p,c),Pl.jsx(RL,{ref:l,outerRef:s,layout:"horizontal",style:dD,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>p[e],height:Math.max(f+8,d.headerMinRowHeight),width:r.width,itemData:{columns:n,columResizeHandler:i,allColumnsIconVisibilityStatusRef:a,setMeasuredCellHeight:m},children:lD})}));var fD=T(pD);const mD=x.forwardRef(((e,t)=>{const{children:r,width:n,height:o,onScroll:i}=e,{interactions:a}=aA(rA,(e=>e.baseProps));return Pl.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.active?"auto":"hidden",width:n,height:o},onScroll:i,children:r})})),hD=({children:e,rect:t})=>Pl.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"0px",width:t.width,height:t.height},children:e}),gD=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i}=r,{layout:a,interactions:l,styleService:s}=aA(rA,(e=>e.baseProps)),u=aA(rA,(e=>e.showRightBorder)),c=iD(e,i),d=n[e].totalInfo,{totalsTextAlign:p,isTotalNumeric:f}=n[e],m=a.qHyperCube.qSize.qcx-1===e;return Pl.jsx("div",{className:`sn-table-cell ${bh}`,title:l.passive?d:void 0,style:{...t,...s.totalRow,...AP(s,o,!1),background:s.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderLeftWidth:"0px",borderRightWidth:m&&!u?"0px":"1px",borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:p,boxSizing:"border-box",cursor:"default"},children:Pl.jsx(wM,{forwardRef:f?void 0:c,isNumeric:f,children:d})})},bD=O(((e,t)=>{const{rect:r,pageInfo:n,totals:o,columns:i}=e,a=D(null),l=D(null),{layout:s,theme:u,styleService:c}=aA(rA,(e=>e.baseProps)),d=aA(rA,(e=>e.columnWidths)),{rowHeight:p,setMeasuredCellHeight:f}=sD(i);return uD(t,a,l),cD(a,s,n,d,u),Pl.jsx(RL,{ref:a,outerRef:l,layout:"horizontal",style:dD,itemCount:s.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:Math.max(p,c.totalRowMinHeight),width:r.width,itemData:{columns:i,totals:o,setMeasuredCellHeight:f},children:gD})}));var vD=T(bD);const yD=e=>{var t;return null===(t=e.current)||void 0===t?void 0:t.element},xD=e=>{var t,r;const[n,o]=S(null!==(t=null===(r=e.current)||void 0===r||null===(r=r.element)||void 0===r?void 0:r.clientHeight)&&void 0!==t?t:0),i=k((e=>{const t=kL(e);t&&o(t)}),[]);return OL(e,i,yD),n},SD=e=>{var t;const{pageInfo:r}=e,{totalsPosition:n,columns:o,paginationNeeded:i}=aA(rA,(e=>e.tableData)),{layout:a,theme:l,rect:s,viewService:u}=aA(rA,(e=>e.baseProps)),c=aA(rA,(e=>e.columnWidths)),d=aA(rA,(e=>e.setYScrollbarWidth)),p=D(null),f=D(null),m=D(null),h=D(null),{xScrollbarWidth:g,yScrollbarWidth:b}=iM(p),v=D([]),y=E((()=>((e,t)=>{const r=e.height-(t?41:0);return{width:e.width,height:r}})(s,i)),[s,i]),x=E((()=>((e,t,r)=>({width:e.width-r,height:e.height-t}))(y,g,b)),[y,g,b]),{rowCount:S}=eD(a,r,x,c,0),C=(({headerRef:e,totalsRef:t,totalsPosition:r})=>{const n=xD(e),o=xD(t);return r.atTop||r.atBottom?n+o:n})({totalsPosition:n,headerRef:f,totalsRef:m}),{width:w,height:R}=(({bodyRef:e,headerAndTotalsHeight:t,rowCount:r,stickyContainerRect:n,columnWidths:o})=>{const{styleService:i}=aA(rA,(e=>e.baseProps)),a=xD(e)+t,l=r*i.contentMinRowHeight+t;let s=l;return l<n.height&&a>n.height&&(s=a),{width:o.reduce(((e,t)=>e+t),0),height:s}})({bodyRef:h,headerAndTotalsHeight:C,rowCount:S,stickyContainerRect:x,columnWidths:c}),A=((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),I=k((()=>{p.current&&(p.current.scrollTop=0)}),[p]);_((()=>{p.current&&(p.current.scrollLeft=0,p.current.scrollTop=0)}),[o.length]),_((()=>{p.current&&(p.current.scrollTop=0)}),[r,S,l]),GI((()=>{d(b)}),[b]);const M=Pl.jsx(vD,{rect:x,pageInfo:r,columns:o,ref:m,totals:n},"totals");return Pl.jsx(mD,{ref:p,width:y.width,height:y.height,onScroll:A,children:Pl.jsx(oD,{width:w,height:R,children:Pl.jsxs(hD,{rect:x,children:[null!==(t=u.viewState)&&void 0!==t&&t.skipHeader?null:Pl.jsx(fD,{rect:x,pageInfo:r,columns:o,ref:f,columResizeHandler:I,allColumnsIconVisibilityStatusRef:v}),n.atTop?M:null,Pl.jsx(nD,{ref:h,rect:x,pageInfo:r,columns:o,headerAndTotalsHeight:C}),n.atBottom?M:null]})})})};var ED=T(SD);const CD=()=>{const{theme:e,keyboard:t,translator:r,interactions:n,rect:o,layout:i}=aA(rA,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:l,totalColumnCount:s,totalPages:u}=aA(rA,(e=>e.tableData)),c=aA(rA,(e=>e.pageInfo)),d=aA(rA,(e=>e.setPage));return Pl.jsxs(BI,{"data-testid":"sn-table",background:e.background,dir:"ltr",children:[Pl.jsx(ED,{pageInfo:c}),Pl.jsx(HI,{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 wD=T(CD);var RD,AD={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"}(RD||(RD={}));const ID=(e,t)=>n((()=>(function(e){if(e&&e.get&&e.add){const t="SNTable.Accessibility.RowsAndColumns";if(e.get(t)!==t)return;Object.keys(AD).forEach((t=>{e.add(AD[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===RD.FIRST?(u=s,n=RD.SECOND):(u=l,n=RD.FIRST),u.innerHTML=u.innerHTML.endsWith(" ")?a:`${a} `,u.setAttribute("aria-atomic",o.toString()),u.setAttribute("aria-live",i)}})(e,t))),[e,t.language()]),MD={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},PD=({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=gy(l,y),w=by(l,y),R=ID(o,u),A=C?{page:y.page||MD.page,rowsPerPage:y.rowsPerPage||MD.rowsPerPage,rowsPerPageOptions:MD.rowsPerPageOptions}:MD,[I,M]=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>sy)return n({...r,rowsPerPage:uy(d,c),page:0}),null;const g=p>10,b=cy(t,o),v=hy(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:ov(),...e[o],align:my(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:lv(e[o]),isNull:ly(e[o],n.isDim),representation:ay(e[o],n.representation,n.qAttrExprInfoIndex,i,n.conditionalColoring,n.qMiniChart)}})),r})))||[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}(n,l,I,M,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=lA(o);null==t||t.render(Pl.jsx(_o,{stylisPlugins:"rtl"===o?[pC]:void 0,children:Pl.jsx(SE,{theme:x,children:Pl.jsx(iA,{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:Pl.jsx(XP,{...y,direction:o})})})}))}({app:r,model:n,rootElement:o,layout:l,tableData:P,direction:S,pageInfo:I,setPageInfo:M,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,M,u,m,E,v,x])};const LD=({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(yR,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}},DD=({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=!by(o,v),E=n((()=>function(e,t,r){const n=cy(e,r),o=hy(e),i=e.qHyperCube.qSize.qcy,a=Math.min(yR,i),l=i>yR&&!!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(yR,t.qHyperCube.qSize.qcy),l=n((()=>({page:o,rowsPerPage:a,rowsPerPageOptions:[]})),[a,o]);if(r){const e=Math.floor(t.qHyperCube.qSize.qcy/yR);e<o&&i(e)}return{pageInfo:l,setPage:i}})(o,S),{initialDataPages:R,isLoading:A}=LD({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=lA("ltr");t.render(Pl.jsx(x.StrictMode,{children:Pl.jsx(SE,{theme:E,children:Pl.jsx(iA,{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:Pl.jsx(wD,{})})})}))}({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])},kD={version:JSON.stringify("3.13.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 OD(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 TD=(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]}},_D=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const qD=(e,t,r,n)=>{var o;if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||MD.rowsPerPage,l=null!==(o=n.viewState)&&void 0!==o&&o.isMultiPage?0:3;return Math.min(i,a,e-t+1+l)},ND=(e,t,r)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const n=cy(e,t);if(by(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=OD(r,n);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:qD(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=TD(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=(_D(m,h,g)?d:d+1)+c;let v=p+c;const y=TD(p,o),x=null==y?void 0:y.getBoundingClientRect();return y&&x&&(_D(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:qD(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:n}},FD=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),jD=e=>e.getStyle("object","straightTableV2","backgroundColor");function zD(e){return{qae:{properties:{initial:kD},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:Qg,exportProperties:Jg,exploration:eb},ext:Kb(e),component(){var r;const y=u(),x=(e=>{const r=n((()=>lh(e)),[e]);return t((()=>()=>r.unmount()),[r]),r})(y),S=c(),E=d(),C=p(),w=f(),R=m(),A=h(),I=g(),{freeResize:M}=i(),P=b(),L=null!=S&&null!==(r=S.snapshotData)&&void 0!==r&&r.content&&!M?{...P,...S.snapshotData.content.size}:P,D=(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=nh(S,y,FD,jD),T=((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),_=Xb(S.qHyperCube,C),q=((e,t)=>{const{fontSize:r,fontFamily:n}=jR(t,e,!1),{fontSize:o,fontFamily:i}=zR(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(`.${bh}`);null!=n&&n.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{Ih(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}=ND(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:()=>ND(e,t,n)})),[e,t,n])})({layout:S,viewService:D,model:C,rootElement:y,contentRect:P}),DD({app:E,layout:S,model:C,rect:L,theme:O,keyboard:I,translator:R,interactions:w,selectionsAPI:A,changeSortOrder:T,rootElement:y,embed:k,reactRoot:x,applyColumnWidths:_,isFontLoaded:q,viewService:D,env:e}),PD({app:E,model:C,rootElement:y,layout:S,interactions:w,translator:R,selectionsAPI:A,theme:O,changeSortOrder:T,keyboard:I,rect:L,embed:k,reactRoot:x,applyColumnWidths:_,isFontLoaded:q,viewService:D,env:e})}}}export{zD as default};
|